ARGB32
Attributes
- Source
- sRGB.scala
- Graph
-
- Supertypes
- Self type
-
ARGB32.type
Members list
Value members
Concrete methods
Attributes
- Source
- sRGB.scala
Factory method to create a fully opaque ARGB instance from separate, specified red, green, blue components and a default alpha value of 255. Parameter values are derived from the least significant byte. Integer values that range outside of [0-255] may give unexpected results. For values taken from user input, sensors, or otherwise uncertain sources, consider using the factory method in the Color companion object.
Factory method to create a fully opaque ARGB instance from separate, specified red, green, blue components and a default alpha value of 255. Parameter values are derived from the least significant byte. Integer values that range outside of [0-255] may give unexpected results. For values taken from user input, sensors, or otherwise uncertain sources, consider using the factory method in the Color companion object.
Value parameters
- blue
-
integer value from [0-255] representing the blue component in RGB space.
- green
-
integer value from [0-255] representing the green component in RGB space.
- red
-
integer value from [0-255] representing the red component in RGB space.
Attributes
- Returns
-
an instance of the ARGB case class.
- See also
-
ai.dragonfly.color.ColorVectorSpace.argb for a method of constructing ARGB objects that validates inputs.
- Example
-
val c = ARGB32(72,105,183)
- Source
- sRGB.scala
Factory method to create an ARGB instance from separate, specified red, green, blue, and alpha components. Parameter values are derived from the least significant byte. Integer values that range outside of [0-255] may give unexpected results. For values taken from user input, sensors, or otherwise uncertain sources, consider using the factory method in the Color companion object.
Factory method to create an ARGB instance from separate, specified red, green, blue, and alpha components. Parameter values are derived from the least significant byte. Integer values that range outside of [0-255] may give unexpected results. For values taken from user input, sensors, or otherwise uncertain sources, consider using the factory method in the Color companion object.
Value parameters
- alpha
-
integer value from [0-255] representing the alpha component in ARGB space. Defaults to 255.
- blue
-
integer value from [0-255] representing the blue component in RGB space.
- green
-
integer value from [0-255] representing the green component in RGB space.
- red
-
integer value from [0-255] representing the red component in RGB space.
Attributes
- Returns
-
an instance of the ARGB case class.
- See also
-
ai.dragonfly.color.ARGB.getIfValid for a method of constructing ARGB objects with input validation.
- Example
-
val c = ARGB32(72,105,183)
- Source
- sRGB.scala