sfml.graphics.Color
See theColor companion trait
object Color
Attributes
Members list
Value members
Concrete methods
Transparent (black) predefined color.
Transparent (black) predefined color.
Attributes
Default constructor.
Default constructor.
Constructs an opaque black color. It is equivalent to Color(0, 0, 0, 255)
Attributes
Construct the color from its 4 RGBA components.
Construct the color from its 4 RGBA components.
Value parameters
- alpha
-
Alpha (opacity) component (in the range [0, 255])
- blue
-
Blue component (in the range [0, 255])
- green
-
Green component (in the range [0, 255])
- red
-
Red component (in the range [0, 255])
Attributes
Construct the color from 32-bit unsigned integer.
Construct the color from 32-bit unsigned integer.
Value parameters
- color
-
Number containing the RGBA components (in that order)
Attributes
In this article