We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3985bf commit e02f8adCopy full SHA for e02f8ad
color.rs
@@ -15,6 +15,8 @@ mod color_data;
15
pub type ColorFloat = c_float;
16
17
18
+#[deriving(Clone)]
19
+#[deriving(Eq)]
20
pub struct RGBA {
21
// All in 0..1
22
red: ColorFloat,
@@ -23,6 +25,8 @@ pub struct RGBA {
23
25
alpha: ColorFloat,
24
26
}
27
28
29
30
pub enum Color {
31
CurrentColor,
32
RGBA(RGBA),
0 commit comments