Describes an RGB color.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer(kind=int32), | public | :: | alpha | = | 0 |
The alpha component of the color (must be between 0 and 255). Notice, 0 is fully opaque and 255 is fully transparent. |
|
| integer(kind=int32), | public | :: | blue | = | 255 |
The blue component of the color (must be between 0 and 255). |
|
| integer(kind=int32), | public | :: | green | = | 0 |
The green component of the color (must be between 0 and 255). |
|
| integer(kind=int32), | public | :: | red | = | 0 |
The red component of the color (must be between 0 and 255). |
Returns the color in hexadecimal format.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(color), | intent(in) | :: | this |
The color object. |
A string containing the hexadecimal equivalent.