-
Notifications
You must be signed in to change notification settings - Fork 0
Convert
Description
A class for conversion between color spaces.
Remarks
_
Description
Convert a color to a hex value representation in the form #RRGGBBAA.
Parameters
| Name | Type | Description |
|---|---|---|
rgba |
RGBA | The color to convert |
Return types
string
Remarks
_
Description
Convert a color to a hex value representation in the form #RRGGBBAA.
Parameters
| Name | Type | Description |
|---|---|---|
r |
number | The red component (0-255) |
g |
number | The green component (0-255) |
b |
number | The blue component (0-255) |
a |
number | The alpha component (0-255) |
Return types
string
Remarks
_
Description
Convert hex value representation in the form #RRGGBBAA to a color.
Parameters
| Name | Type | Description |
|---|---|---|
hex |
string | The string to convert |
Return types
Remarks
_
Description
Convert a color to a hex value representation in the form #RRGGBBAA.
Parameters
| Name | Type | Description |
|---|---|---|
hsva |
HSVA | The color to convert |
Return types
string
Remarks
_
Description
Convert a color to a hex value representation in the form #RRGGBBAA.
Parameters
| Name | Type | Description |
|---|---|---|
h |
number | The hue component (0-360) |
s |
number | The saturation component (0-1) |
v |
number | The brightness component (0-1) |
a |
number | The alpha component (0-1) |
Return types
string
Remarks
_
Description
Convert hex value representation in the form #RRGGBBAA to a HSVA color.
Parameters
| Name | Type | Description |
|---|---|---|
hex |
string | The string to convert |
Return types
Remarks
_
Description
Convert a color from RGBA color space to HSVA color space.
Parameters
| Name | Type | Description |
|---|---|---|
hex |
string | The string to convert |
Return types
Remarks
_
Description
Convert a color from RGBA color space to HSVA color space.
Parameters
| Name | Type | Description |
|---|---|---|
r |
number | The red component (0-255) |
g |
number | The green component (0-255) |
b |
number | The blue component (0-255) |
a |
number | The alpha component (0-255) |
Return types
Remarks
_
Description
Convert a color from HSVA color space to RGBA color space.
Parameters
| Name | Type | Description |
|---|---|---|
hsva |
HSVA | The color to convert |
Return types
Remarks
_
Description
Convert a color from HSVA color space to RGBA color space.
Parameters
| Name | Type | Description |
|---|---|---|
h |
number | The hue component (0-360) |
s |
number | The saturation component (0-1) |
v |
number | The brightness component (0-1) |
a |
number | The alpha component (0-1) |
Return types
Remarks
_
Global
- Global Functions
- Scene
- Channel
- StringChannel
- TextChannel
- Trigger
- TriggerChannel
- Context
- Event
- Convert
Channels
Controllers
- Controller
- CanvasController
- ImageController
- SpriteController
- TextController
- CameraController
- TrackController
- NoteGroupController
Internal Controllers
Data types