Skip to main content

compute_tonal_colors

Function compute_tonal_colors 

pub fn compute_tonal_colors(
    ambient_color: impl Into<Color>,
    spot_color: impl Into<Color>,
) -> (Color, Color)
Expand description

Helper routine to compute color values for one-pass tonal alpha.

  • ambient_color Original ambient color
  • spot_color Original spot color

Returns the modified ambient and spot colors.