chickadee » macaw » rgb8-scale

rgb-scale color_1 nprocedure
rgb8-scale color_1 nprocedure
hsl-scale color_1 nprocedure

Multiply each non-alpha component of color by the real number n. rgb8-scale truncates each component to an integer. Unlike rgb8-mul, scaling by 1.0 (not 255) has no effect.

The result type and color space used depends on the procedure. The result will have the same alpha as color_1.