Bedrock color primitive — packed-RGBA pack/unpack, sRGB↔linear transfer, HSL/HSV, OkLab, luminance/contrast, premultiply, hex; pure value/space math over plain numbers and LinearColor
Bedrock color primitive — packed-RGBA pack/unpack, sRGB↔linear transfer, HSL/HSV, OkLab, luminance/contrast, premultiply, hex; pure value/space math over plain numbers and LinearColor
Install
npm install @flighthq/color
Import the supported application-facing API from @flighthq/color. The @flighthq/color/contract export is the wider package-to-package contract used to compose Flight itself.
This package is part of the locked-version Flight SDK graph. Applications may instead install and import @flighthq/sdk when package-level tree shaking is sufficient.
Bedrock color primitive — packed-RGBA pack/unpack, sRGB↔linear transfer, HSL/HSV, OkLab, luminance/contrast, premultiply, hex; pure value/space math over plain numbers and LinearColor