Red Property
The Red property sets the red channel value of a ColorRGBA object. Returns an integer between 0 and 255.
Syntax
object.Red = Value
Parameter |
Type |
Description |
Value |
Integer: (0 to 255) |
0 = No red 255 = Max red |
Remarks
The red 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.
Example1
This example demonstrates how to set the intensity of an object’s red channel to half.
Debug.Print ColorRGBA.Red = 128
Example2
This example demonstrates how to retrieve the intensity of an object’s red channel.
Debug.Print ColorRGBA.Red
Used by: ColorRGBA object