array.new_color

A new array<color> with `size` elements, all set to initial_value (default na). Keep it in a var to grow it across bars; a plain variable gets a new array on every bar.

array.new_color(size: int = 0, initial_value: color = na) -> array<color>

Parameters

Example

var colors = array.new_color(3, color.gray)