@polyzone/core
Version:
PolyZone core API
26 lines (25 loc) • 669 B
TypeScript
import { Color4 } from "./Color4";
export declare class Color3 {
private _r;
private _g;
private _b;
constructor(r: number, g: number, b: number);
withR(value: number): Color3;
withG(value: number): Color3;
withB(value: number): Color3;
toColor4(alpha?: number): Color4;
get r(): number;
set r(value: number);
get g(): number;
set g(value: number);
get b(): number;
set b(value: number);
static white(): Color3;
static black(): Color3;
static red(): Color3;
static green(): Color3;
static blue(): Color3;
static yellow(): Color3;
static fuchsia(): Color3;
static cyan(): Color3;
}