import Color from '@mobilizing/library/js/Mobilizing/renderer/3D/three/types/Color.js'
Color
Extends:
three~THREE_Color → Color
Represents a RGB color to be used in materials applied on Meshes.
This class extends the one from Three.js, API available here : https://threejs.org/docs/#api/en/math/Color
Static Method Summary
Method Summary
Public Methods | ||
public | copy(): * Copies this color. | |
public | Build a HTML color string with the given alpha. | |
public | Creates a color based on [0;255] RGB values |
Static Public Methods
Public Methods
public makeRGBAStringWithAlpha(a: Number): String source
Build a HTML color string with the given alpha.
Params:
Name | Type | Attribute | Description |
a | Number | The alpha component [0;255]. |
Return:
String | a string representation of the color with alpha |