@pbroom/color-kit/interopTypes
UnpackColorsOptions
Options for unpackColors.
import type { UnpackColorsOptions } from '@pbroom/color-kit/interop';types.ts:95interface UnpackColorsOptions {
alpha?: boolean;
stride?: number;
offset?: number;
count?: number;
}Properties
- alpha?
booleandefaultfalse - Read alpha from the fourth component of each color. When
false, alpha is1. - stride?
numberdefaultalpha ? 4 : 3 - Distance, in array elements, between the first components of consecutive colors.
- offset?
numberdefault0 - Array index of the first color's first component.
- count?
numberdefaultas many complete colors as fit after `offset - Number of colors to read.
Also exported from
@pbroom/color-kitthe same declaration, re-exported