tuples: make color data pub.

This commit is contained in:
Bill Thiede 2021-06-24 16:40:21 -07:00
parent d8f91a823e
commit 536b6bed1f

View File

@ -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 }