Module image_functions

Source

Functionsยง

f64_vector3_to_u8
Takes a normalized Vector3<f64> and returns a conversion to Vector3<u8> in 24 bit color space
length
Returns the length of UV coordinate
normal_to_rgb
Takes a normalized value and returns a conversion to a single 8 bit color channel
uv
Returns the UV space conversion of the pixel coordinate. Centered at (0,0). Adjusted for aspect ratio.