opaque

An RGB value finished as a fully opaque color.

opaque(rgb: PaintSlot): PatternPaint

Import patterns from shaders/std and use patterns.opaque.

Parameters

NameTypeNotes
rgbPaintSlot

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.

Used by

IsometricCubes