---
title: "opaque"
description: "An RGB value finished as a fully opaque color."
group: "paint"
groupTitle: "Painting"
categoryId: "patterns"
categorySlug: "patterns"
categoryTitle: "Patterns & tiling"
kind: "function"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/paint/patterns.ts#L346"
---

# opaque

An RGB value finished as a fully opaque color.

```ts
opaque(rgb: PaintSlot): PatternPaint
```

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

## Parameters

| Name | Type | Notes |
|---|---|---|
| `rgb` | `PaintSlot` |  |

## Example

```ts
paint: opaque(mixOf(times(rgbOf(cubeColor), faces.tone), rgbOf(p('lineColor')), faces.wire))
```

## See also

- [`rgbOf`](/docs/primitives/patterns/rgbof) — The RGB channels of a color, without its alpha.
- [`withAlpha`](/docs/primitives/patterns/withalpha) — A color with its alpha replaced by a separately built mask.

## Used by

[IsometricCubes](/docs/components/isometriccubes)