MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / color

Method color

src/text.rs:51–54  ·  view source on GitHub ↗
(&mut self, color: impl Into<Color>)

Source from the content-addressed store, hash-verified

49 /// Sets the text color.
50 #[inline]
51 pub fn color(&mut self, color: impl Into<Color>) -> &mut Self {
52 self.color = color.into();
53 self
54 }
55
56 /// Sets the font to use for this text element.
57 #[inline]

Callers 4

test_beginFunction · 0.45
test_exampleFunction · 0.45
test_floatingFunction · 0.45
test_simple_text_measureFunction · 0.45

Calls

no outgoing calls

Tested by 4

test_beginFunction · 0.36
test_exampleFunction · 0.36
test_floatingFunction · 0.36
test_simple_text_measureFunction · 0.36