MCPcopy Create free account
hub / github.com/algoscienceacademy/RustUI / rgb

Method rgb

src/style.rs:89–91  ·  view source on GitHub ↗
(r: f32, g: f32, b: f32)

Source from the content-addressed store, hash-verified

87 pub const GREEN: Color = Color { r: 0.0, g: 1.0, b: 0.0, a: 1.0 };
88
89 pub fn rgb(r: f32, g: f32, b: f32) -> Self {
90 Self { r, g, b, a: 1.0 }
91 }
92
93 pub fn rgba(r: f32, g: f32, b: f32, a: f32) -> Self {
94 Self { r, g, b, a }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected