Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Struct Color

sealed struct Color
RGBA color which fits the format of colors having Alpha, Red, Green and Blue Channels. Each channel is represented as a float in the range 0.0 to 1.0. If a channel value is less than 0.0, it is clamped to 0.0. If a channel value is greater than 1.0, it is clamped to 1.0.

Fields

Constants

WHITE

Color = {1.0f, 1.0f, 1.0f, 1.0f}
Represents fully opaque White.

BLACK

Color = {0.0f, 0.0f, 0.0f, 1.0f}
Represents fully opaque Black.

GRAY

Color = {0.5f, 0.5f, 0.5f, 1.0f}
Represents fully opaque Gray.

RED

Color = {1.0f, 0.0f, 0.0f, 1.0f}
Represents fully opaque Red.

GREEN

Color = {0.0f, 1.0f, 0.0f, 1.0f}
Represents fully opaque Green.

BLUE

Color = {0.0f, 0.0f, 1.0f, 1.0f}
Represents fully opaque Blue.

CYAN

Color = {0.0f, 1.0f, 1.0f, 1.0f}
Represents fully opaque Cyan.

MAGENTA

Color = {1.0f, 0.0f, 1.0f, 1.0f}
Represents fully opaque Magenta.

YELLOW

Color = {1.0f, 1.0f, 0.0f, 1.0f}
Represents fully opaque Yellow.

TRANSPARENT

Color = {0.0f, 0.0f, 0.0f, 0.0f}
Represents fully Transparent color.
Last modified on October 29, 2026