ARGB32

ai.dragonfly.mesh.sRGB.ARGB32
object ARGB32

Attributes

Source
sRGB.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ARGB32.type

Members list

Value members

Concrete methods

def apply(ci: Int): ARGB32

Attributes

Source
sRGB.scala
def apply(red: Int, green: Int, blue: Int): ARGB32

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
def apply(alpha: Int, red: Int, green: Int, blue: Int): ARGB32

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