chickadee » macaw » rgb8-mul

rgb-mul color_1 color ...procedure
rgb8-mul color_1 color ...procedure
hsl-mul color_1 color ...procedure

Multiply each non-alpha component of color_1 by the corresponding component of zero or more colors, similar to the "multiply" layer blend mode in image editing software.

Be aware that rgb8-mul behaves as if the components were divided by 255, i.e. multiplying by white (rgb8 255 255 255) has no effect. Also, rgb8-mul truncates each component to an integer.

The result type and color space used depends on the procedure. The result will have the same alpha as color_1. The alphas of the other colors determine how much effect they have.