Skip to main content

sample

Function sample 

Source
pub fn sample(x: f64, y: f64, size: [u32; 2], shift: f32) -> [f32; 3]
Expand description

The image’s colour at image point (x, y) (continuous) for a size and a shift: smooth hues, rings, and a faint one-pixel checker so 100 % and above show single pixels. Linear RGB.