- Preparing search index...
- The search index is not available
feng3d
Constructors
constructor
- new Color3(r?, g?, b?): Color3
-
Parameters
-
Optional r: number
-
Optional g: number
-
Optional b: number
Properties
__class__
__class__: "Color3"
b
b: number
g
g: number
r
r: number
Static Private _BLACK
_BLACK: any
Static Private _WHITE
_WHITE: any
Accessors
Static BLACK
- get BLACK(): Readonly<Color3>
-
Returns Readonly<Color3>
Static WHITE
- get WHITE(): Readonly<Color3>
-
Returns Readonly<Color3>
Methods
clone
- clone(): Color3
-
copy
- copy(color): Color3
-
equals
- equals(object, precision?): boolean
-
Parameters
-
-
Optional precision: number
Returns boolean
fromUnit
- fromUnit(color): Color3
-
mix
- mix(color, rate): Color3
-
mixTo
- mixTo(color, rate, vout?): Color3
-
Parameters
-
-
rate: number
-
Optional vout: Color3
scale
- scale(s): Color3
-
scaleTo
- scaleTo(s, vout?): Color3
-
Parameters
-
s: number
-
Optional vout: Color3
setTo
- setTo(r, g, b): Color3
-
Parameters
-
r: number
-
g: number
-
b: number
toArray
- toArray(array?, offset?): number[]
-
Parameters
-
Optional array: number[]
-
Optional offset: number
Returns number[]
toHexString
- toHexString(): string
-
Returns string
toInt
- toInt(): number
-
Returns number
toString
- toString(): string
-
Returns string
toVector3
- toVector3(vector3?): Vector3
-
Static ToHex
- ToHex(i): string
-
Returns string
Static fromColor4
- fromColor4(color4): Color3
-
Static fromUnit
- fromUnit(color): Color3
-
颜色