/** * RGBA formatted color parser * * @public */ export declare const RGBA_FORMAT: Readonly<{ r: (rgba: number) => number; g: (rgba: number) => number; b: (rgba: number) => number; a: (rgba: number) => number; x: (rgba: number) => number; y: (rgba: number) => number; z: (rgba: number) => number; w: (rgba: number) => number; }>; /** * ABGR formatted color parser * * @public */ export declare const ABGR_FORMAT: Readonly<{ a: (abgr: number) => number; b: (abgr: number) => number; g: (abgr: number) => number; r: (abgr: number) => number; x: (abgr: number) => number; y: (abgr: number) => number; z: (abgr: number) => number; w: (abgr: number) => number; }>; /** * @public */ export declare class Color { /** * The red component. This is assumed to be a byte value. */ r: number; /** * The green component. This is assumed to be a byte value. */ g: number; /** * The blure component. This is assumed to be a byte value. */ b: number; /** * The alpha component. This is assumed to be a byte value. */ a: number; static create(r: number, g: number, b: number, a: number): Color; static fromRgba(rgba: number): Color; static fromRgbaHex(rgba: string): Color; static rgba(r: number, g: number, b: number, a: number): number; static xyzw(x: number, y: number, z: number, w: number): number; static AliceBlue: Color; static AntiqueWhite: Color; static Aqua: Color; static Aquamarine: Color; static Azure: Color; static Beige: Color; static Bisque: Color; static Black: Color; static BlanchedAlmond: Color; static Blue: Color; static BlueViolet: Color; static Brown: Color; static BurlyWood: Color; static CadetBlue: Color; static Chartreuse: Color; static Chocolate: Color; static Coral: Color; static CornflowerBlue: Color; static Cornsilk: Color; static Crimson: Color; static Cyan: Color; static DarkBlue: Color; static DarkCyan: Color; static DarkGoldenrod: Color; static DarkGray: Color; static DarkGreen: Color; static DarkKhaki: Color; static DarkMagenta: Color; static DarkOliveGreen: Color; static DarkOrange: Color; static DarkOrchid: Color; static DarkRed: Color; static DarkSalmon: Color; static DarkSeaGreen: Color; static DarkSlateBlue: Color; static DarkSlateGray: Color; static DarkTurquoise: Color; static DarkViolet: Color; static DeepPink: Color; static DeepSkyBlue: Color; static DimGray: Color; static DodgerBlue: Color; static Firebrick: Color; static FloralWhite: Color; static ForestGreen: Color; static Fuchsia: Color; static Gainsboro: Color; static GhostWhite: Color; static Gold: Color; static Goldenrod: Color; static Gray: Color; static Green: Color; static GreenYellow: Color; static Honeydew: Color; static HotPink: Color; static IndianRed: Color; static Indigo: Color; static Ivory: Color; static Khaki: Color; static Lavender: Color; static LavenderBlush: Color; static LawnGreen: Color; static LemonChiffon: Color; static LightBlue: Color; static LightCoral: Color; static LightCyan: Color; static LightGoldenrodYellow: Color; static LightGray: Color; static LightGreen: Color; static LightPink: Color; static LightSalmon: Color; static LightSeaGreen: Color; static LightSkyBlue: Color; static LightSlateGray: Color; static LightSteelBlue: Color; static LightYellow: Color; static Lime: Color; static LimeGreen: Color; static Linen: Color; static Magenta: Color; static Maroon: Color; static MediumAquamarine: Color; static MediumBlue: Color; static MediumOrchid: Color; static MediumPurple: Color; static MediumSeaGreen: Color; static MediumSlateBlue: Color; static MediumSpringGreen: Color; static MediumTurquoise: Color; static MediumVioletRed: Color; static MidnightBlue: Color; static MintCream: Color; static MistyRose: Color; static Moccasin: Color; static NavajoWhite: Color; static Navy: Color; static OldLace: Color; static Olive: Color; static OliveDrab: Color; static Orange: Color; static OrangeRed: Color; static Orchid: Color; static PaleGoldenrod: Color; static PaleGreen: Color; static PaleTurquoise: Color; static PaleVioletRed: Color; static PapayaWhip: Color; static PeachPuff: Color; static Peru: Color; static Pink: Color; static Plum: Color; static PowderBlue: Color; static Purple: Color; static Red: Color; static RosyBrown: Color; static RoyalBlue: Color; static SaddleBrown: Color; static Salmon: Color; static SandyBrown: Color; static SeaGreen: Color; static SeaShell: Color; static Sienna: Color; static Silver: Color; static SkyBlue: Color; static SlateBlue: Color; static SlateGray: Color; static Snow: Color; static SpringGreen: Color; static SteelBlue: Color; static Tan: Color; static Teal: Color; static Thistle: Color; static Tomato: Color; static TransparentBlack: Color; static TransparentWhite: Color; static Turquoise: Color; static Violet: Color; static Wheat: Color; static White: Color; static WhiteSmoke: Color; static Yellow: Color; static YellowGreen: Color; constructor( /** * The red component. This is assumed to be a byte value. */ r?: number, /** * The green component. This is assumed to be a byte value. */ g?: number, /** * The blure component. This is assumed to be a byte value. */ b?: number, /** * The alpha component. This is assumed to be a byte value. */ a?: number); /** * Gets the color as 0xRGBA number where R starts at low bit and A ends at high bit */ get rgba(): number; /** * Gets the color as 0xABGR number where A starts at low bit and R ends at high bit */ get abgr(): number; get xyzw(): number[]; /** * Gets the red component divided by 255 */ get x(): number; /** * Gets the green component divided by 255 */ get y(): number; /** * Gets the blue component divided by 255 */ get z(): number; /** * Gets the alpha component divided by 255 */ get w(): number; get clone(): Color; } //# sourceMappingURL=Color.d.ts.map