Ensures that the colors and locations arrays have the same length. If one array is shorter, it is padded with default values to match the length of the longer array. The locations array is ensured to end with a 1 if it's shorter.
colors
locations
1
An object containing colors and locations arrays.
An object with colors and locations arrays of equal length.
Ensures that the
colors
andlocations
arrays have the same length. If one array is shorter, it is padded with default values to match the length of the longer array. Thelocations
array is ensured to end with a1
if it's shorter.