- Preparing search index...
- The search index is not available
feng3d
Constructors
constructor
- new Color3(r?: number, g?: number, b?: number): Color3
-
Parameters
-
r: number = 1
-
g: number = 1
-
b: number = 1
Properties
__class__
__class__: "Color3"
Methods
equals
- equals(object: Color3, precision?: number): boolean
-
Parameters
-
-
precision: number = mathUtil.PRECISION
Returns boolean
fromUnit
- fromUnit(color: number): Color3
-
setTo
- setTo(r: number, g: number, b: number): Color3
-
Parameters
-
r: number
-
g: number
-
b: number
toArray
- toArray(array?: number[], offset?: number): number[]
-
Parameters
-
array: number[] = []
-
offset: number = 0
Returns number[]
toHexString
- toHexString(): string
-
Returns string
toInt
- toInt(): number
-
Returns number
toString
- toString(): string
-
Returns string
Static
ToHex
- ToHex(i: number): string
-
Returns string
Static
fromUnit
- fromUnit(color: number): Color3
-
颜色