MMpy.Colour.G

Syntax

colour.G

Description

Property to set or return the green component of a colour object.

Parameters

Type
Description
int Sets the G component of the colour.

Returns

Type
Description
int Returns the G component of the colour.

Notes

This is a read/write property.

If the colour has been constructed with null=True, attempting to read or write to any of the colour components will result in a RuntimeError being raised.

Examples

colour = MMpy.Colour(255,6,103)
green = colour.G  # 6
colour.G = 160

Resource ID

IDPH_COLOUR_G