times
The product of two values: a mask scaled by a prop, an RGB dimmed by a shade, two masks combined.
times(a: PaintSlot, b: PaintSlot): PatternPaint
Import patterns from shaders/std and use patterns.times.
Parameters
| Name | Type | Notes |
|---|---|---|
a | PaintSlot | |
b | PaintSlot |
Example
mask: times(faces.random, p('colorVariation'))
See also
mixOf— A straight blend from one value to another by an amount from 0 to 1.vary— A color lightened or darkened per cell by a shade factor, alpha untouched.