shared::utils::colors_utils

Function color

Source
pub fn color(pixel_intensity: PixelIntensity) -> [u8; 3]
Expand description

Generates a color based on the provided pixel intensity.

§Arguments

  • pixel_intensity: A PixelIntensity containing the number of iterations and the norm of the complex point.

§Returns

Returns an array containing the RGB values of the color.