ctor

sfml.graphics.Color.ctor
object ctor

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ctor.type

Members list

Value members

Concrete methods

def apply(): ctor

Default constructor.

Default constructor.

Constructs an opaque black color. It is equivalent to Color(0, 0, 0, 255)

Attributes

def apply(red: Int, green: Int, blue: Int, alpha: Int): ctor

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