Move toColor into channels

It operates on rgba channels, not a packed 32 bit int
This commit is contained in:
Daniel Imms
2023-12-28 09:29:30 -08:00
parent 6e351dd4ac
commit 94a9ce8566
6 changed files with 44 additions and 26 deletions
+2 -2
View File
@@ -110,8 +110,8 @@ export interface ICharset {
export type CharData = [number, string, number, number];
export interface IColor {
css: string;
rgba: number; // 32-bit int with rgba in each byte
readonly css: string;
readonly rgba: number; // 32-bit int with rgba in each byte
}
export type IColorRGB = [number, number, number];