format
typescript
Color.toString()class: Color
description
Converts the current color object to a string.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
string | A color string. |
code example
javascript
function Test() {
let color = new Color(0.25, 0.5, 1.0, 0.65);
let colorStr = color.toString();
console.log(colorStr); // (0.25, 0.5, 1.0, 0.65)
}