tuples: make color data pub.
This commit is contained in:
parent
d8f91a823e
commit
536b6bed1f
@ -126,9 +126,9 @@ pub fn cross(a: Tuple, b: Tuple) -> Tuple {
|
|||||||
|
|
||||||
#[derive(Copy, Clone, Debug, PartialEq)]
|
#[derive(Copy, Clone, Debug, PartialEq)]
|
||||||
pub struct Color {
|
pub struct Color {
|
||||||
red: f32,
|
pub red: f32,
|
||||||
green: f32,
|
pub green: f32,
|
||||||
blue: f32,
|
pub blue: f32,
|
||||||
}
|
}
|
||||||
pub fn color(red: f32, green: f32, blue: f32) -> Color {
|
pub fn color(red: f32, green: f32, blue: f32) -> Color {
|
||||||
Color { red, green, blue }
|
Color { red, green, blue }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user