set

operator fun set(vararg indices: Int, c: Int)

Set some indices of colors to c. If an index is not a valid index in colors, this will add it to the end of colors, though not necessarily at the index specified.


operator fun set(indices: IntRange, c: Int)

Set a range of indices of colors to c. If an index is not a valid in colors, this will add the color to the end of colors, though not necessarily at the index specified.