rgbOf
The RGB channels of a color, without its alpha.
rgbOf(color: PaintSlot): PatternPaint
Import patterns from shaders/std and use patterns.rgbOf.
Finish it with opaque or withAlpha to make a color again.
Parameters
| Name | Type | Notes |
|---|---|---|
color | PaintSlot |
Example
paint: opaque(mixOf(times(rgbOf(cubeColor), faces.tone), rgbOf(p('lineColor')), faces.wire))
See also
alphaOf— The alpha channel of a color, as a number per pixel.opaque— An RGB value finished as a fully opaque color.