aboutsummaryrefslogtreecommitdiff
path: root/src/spectrum.rs
blob: aa3705698020ec4e91bac4b520f431189b2fe62e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::Float;

// TODO implement SampledSpectrum instead for nicer images

pub struct Spectrum {
    c: [Float; 3],
}

impl Spectrum {
    fn from_rgb(r: Float, g: Float, b: Float) -> Spectrum {
        Spectrum { c: [r, g, b] }
    }
}