@needle-tools/engine
Version:
Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.
24 lines (23 loc) • 911 B
TypeScript
import { Color, ColorRepresentation } from "three";
/**
* RGBAColor is a class that represents a color with red, green, blue and alpha components.
*/
export declare class RGBAColor extends Color {
alpha: number;
get isRGBAColor(): boolean;
set a(val: number);
get a(): number;
constructor(color: ColorRepresentation);
/**
* Creates a new RGBAColor with the given red, green, blue and alpha components.
* Color values should be in the range [0, 1].
*/
constructor(r: number, g: number, b: number, a: number);
clone(): this;
copy(col: RGBAColor | Color): this;
lerp(color: Color, alpha: number): this;
lerpColors(color1: Color, color2: Color, alpha: number): this;
multiply(color: Color): this;
fromArray(array: number[], offset?: number): this;
static fromColorRepresentation(col: ColorRepresentation): RGBAColor;
}