opaque
An RGB value finished as a fully opaque color.
opaque(rgb: PaintSlot): PatternPaint
Import patterns from shaders/std and use patterns.opaque.
Parameters
| Name | Type | Notes |
|---|---|---|
rgb | PaintSlot |
Example
paint: opaque(mixOf(times(rgbOf(cubeColor), faces.tone), rgbOf(p('lineColor')), faces.wire))
See also
rgbOf— The RGB channels of a color, without its alpha.withAlpha— A color with its alpha replaced by a separately built mask.