__init__ constructor

On this page

init

Initializes a new Color instance.

def __init__(self, alpha, red, green, blue):
    ...
Parameter Type Description
alpha int The alpha component from 0 to 255.
red int The red component from 0 to 255.
green int The green component from 0 to 255.
blue int The blue component from 0 to 255.

init

Initializes a new instance of the Color class.

def __init__(self, red, green, blue):
    ...
Parameter Type Description
red int The red component from 0 to 255.
green int The green component from 0 to 255.
blue int The blue component from 0 to 255.

See Also

On this page