This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { isNumber, isBetween } from './numbers' | |
type ARGB32 = number | |
/** | |
* Represents a red-green-blue key-value object. | |
* all values are limited from 0 to 255 when used internally. | |
*/ | |
type RGB = { red: number; green: number; blue: number } | |
type RGBA = RGB & { alpha: number } | |
type RGBA32 = number |