FromRed creates a new color with all channels set to zero except for the red component, which is assigned to the passed value.
Parameters |
Description |
UByte r |
A value that is stored in the new colors red channel. |
A new Color object initialized to rgba(r,0,0,0).