Color
Last updated
Was this helpful?
Last updated
Was this helpful?
The Color property controls the color value used when drawing a visible Line.
The following code creates a visible red line:
The following shows a transparent white line. Note that colors are pre-multiplied so all color values must be multiplied by the alpha value.
The following code creates a half-transparent red line:
The transparency can be difficult to see without zooming in. The following image shows the corner of the blue rectangle zoomed in.