Instant properties: green

The instant property green corresponds to the green component stored within a color operand.

Declaration

uint8 color.green

Discussion

The read access to this property returns the green component of a color operand. The write access modifies the green component of a color operand. Other components (red, blue and alpha) are not affected by the modification. The green property is valid in range 0 .. 255 with the value 255 representing the maximal intensity. For example:

var color c = #FFFF007F; // Read the green value var uint8 result = c.green; // result = 255 // Modify the green value c.green = 200; // c = #FFC8007F

Usage in Inspector

When working with Inspector you can easily access, evaluate and modify the green component. For this purpose select in Inspector the desired color property or attribute and click on the small triangle on its left side to expand and display the subordinated components: