Green Property

The Green property sets the green channel value of a ColorRGBA object. Returns an integer between 0 and 255.

Syntax

object.Green = Value

Parameter

Type

Description

Value

Integer:

(0 to 255)

0 = No green

255 = Max green

Remarks

The green channel component of palette colors can be found on the SrfColor Values page.

The color of an object can also be set to a palette color using the Color Property.

Example 1

This example demonstrates how to set the intensity of an object’s green channel to half.

Debug.Print ColorRGBA.Green = 128

Example 2

This example demonstrates how to retrieve the intensity of an object’s green channel.

Debug.Print ColorRGBA.Green

Used by: ColorRGBA object