Prepared Color Container
A set of colors ready for use with a LED strip. Colors blend from one to the next along the length of the strip.
See also
Properties
Functions
Compares this PreparedColorContainer
against another ColorContainer
or an Int
. If other
is a ColorContainer
, the originalColors parameter is compared to the originalColors
parameter. If other
is a PreparedColorContainer
, the originalColors parameters are compared. If other
is an Int
, the color parameter is compared to the Int
.
Returns a new ColorContainer with the same colors as this instance, but inverted.
Returns a new ColorContainer with the same colors as this instance, inverted, but only including the ranges of indices specified.
Returns a new ColorContainer with the same colors as this instance, inverted, but only including the indices specified.
Report whether colors
is empty
Report whether colors
is not empty
If this PreparedColorContainer
is the correct size, return this instance, otherwise a new instance of the correct size
Create a PreparedColorContainer with the same colors as this PreparedColorContainer, shifted by offset
. The color at index 0
will be moved to index offset
. Negative offsets and offsets that are larger than the size of colors
are supported.
Convert a PreparedColorContainer into a shuffled list of SortablePixels
Operator overload that returns a new ColorContainer containing the inverse of the colors in this ColorContainer.