# ColorBars

> Colour test bars.

| Node | ColorBars |
|---|---|
| Menu | Draw › ColorBars |
| **Names in each format** | |
| .oink comp (JSON) | `"type": "OC_N_colorbars"` |
| .nk script | `ColorBars` ([how .nk import works](/docs/nuke-users/nk-import)) |
| Python | `nuke.createNode("ColorBars")` |
| Assistant (MCP) | `create_node(type="ColorBars")` |
| Tab search | `colorbars`, or its initials `cb` |

![ColorBars properties](/shots/nodes/colorbars@2x.webp)

## Inputs and outputs

| Port | Name | Type |
|---|---|---|
| output 0 | Image | image |

## Knobs

Panel tab **Colorbars**, in panel order.

| Knob | Label | Type | Default | Range / values | .nk knob | Description |
|---|---|---|---|---|---|---|
| `barintensity` | bar intensity | float | `0.75` | 0 to 1 | `barintensity` |  |
| `width_prop` | width | float | `1920` | 1 to 8192 (integer) |  |  |
| `height_prop` | height | float | `1080` | 1 to 8192 (integer) |  |  |

### Other knobs (Python, .nk and the assistant; not on the panel)

| Knob | Label | Type | Default | Range / values | .nk knob | Description |
|---|---|---|---|---|---|---|
| `gl_color` | Viewer Controls Color | float ×3 | `0, 0, 0` | 0 to 1 |  |  |
| `postage_stamp_frame` | Static Frame | int | `1` | -2147483648 to 2147483647 |  |  |
| `lifetimeStart` | Lifetime Start | int | `0` | -2147483648 to 2147483647 |  |  |
| `lifetimeEnd` | Lifetime End | int | `100` | -2147483648 to 2147483647 |  |  |
| `useLifetime` | Use Lifetime | boolean | `false` |  |  |  |
| `cached` | Cached | boolean | `false` |  |  |  |
| `bookmark` | Bookmark | boolean | `false` |  |  |  |
| `dope_sheet` | Dope Sheet | boolean | `false` |  |  |  |
| `clone_group` | Clone Group | string |  |  |  |  |
| `link_source` | Link Source | string |  |  |  |  |
| `link_overrides` | Link Overrides | string |  |  |  |  |
| `split_views` | Split Views | string |  |  |  |  |
| `format` | Format | enum | `custom` | custom, HD_1080, HD_720, UHD_4K, 2K_DCP, 4K_DCP, 2K_Super_35, PAL, NTSC, square_1K, square_2K |  |  |


---
Sources: opencomp_core/nodes/color/colorbars.py, opencomp_electron/src/components/properties/knobSchema.ts, opencomp_core/nk/mapping.py
