Add derives for Color
This commit is contained in:
parent
fa03455457
commit
66e44293de
1 changed files with 1 additions and 0 deletions
|
@ -13,6 +13,7 @@ pub use text_render::TextRenderer;
|
||||||
|
|
||||||
/// The color to use when rendering text.
|
/// The color to use when rendering text.
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
|
#[derive(Clone, Copy, Debug)]
|
||||||
pub struct Color {
|
pub struct Color {
|
||||||
/// The red component of the color.
|
/// The red component of the color.
|
||||||
pub r: u8,
|
pub r: u8,
|
||||||
|
|
Loading…
Reference in a new issue