mapscript.colorObj

class mapscript.colorObj(red: int = 0, green: int = 0, blue: int = 0, alpha: int = 255)

An object representing a color.

Attributes

alpha

int Alpha (opacity) component of color in range [0-255]

blue

int Blue component of color in range [0-255]

green

int Green component of color in range [0-255]

red

int Red component of color in range [0-255]

thisown

The membership flag

Methods

__init__(red: int = 0, green: int = 0, blue: int = 0, alpha: int = 255)[source]

An object representing a color.

setHex(psHexColor: char) int[source]
setRGB(red: int, green: int, blue: int, alpha: int = 255) int[source]
toHex() char[source]