Colors are represented either as literal names or as three or
four floating point values (red, green, blue, alpha) each ranging
between 0 and 100 percent. The alpha value is optional as it is not
used when drawing and defaults to 100. For more details see the
Specifying
Colors section.
For example all of the following draw red rectangles:
ca.DrawShape "rect", "Rect=0,0,10,10 PaintColor=red"
ca.DrawShape "rect", "Rect=0,0,10,10 PaintColor=100,0,0"
ca.DrawShape "rect", "Rect=0,0,10,10
PaintColor=100.0,0.0,0.0,100.0"
ca.DrawShape "rect", "Rect=0,0,10,10 PaintColor=0d255,0d0,0d0"
ca.DrawShape "rect", "Rect=0,0,10,10 PaintColor=0xFF,0x00,0x00"
ca.DrawShape "rect", "Rect=0,0,10,10 PaintColor=#ff0000"
|
|
|