|
|
|
setPenColor colornumber
setPC colornumber
setPenColor rgblist
setPC rgblist
setPenColor colorname
setPC colorname
sets the pen color to the given number, which must be a integer, or a rgblist (consisting of three items, red, green, and blue, which must be in the range 0..1), or must be one of the color names in the wxWidgets color database. Color 0 is always black; color 7 is always white. Other color numbers may or may not be consistent between machines, but colors by name should be platform independent - as is wxWidgets.
Examples:
disls ;is neccessary to make independent color drawings setpc 1 box setpc 2 box setpc 3 box setpc 4 box setpc 7 box setpc rgb 1 0 0 box setpc rgb 0 1 0 box setpc rgb 0 0 1 box setpc rgba 0 0 0 .2 box setpc rgba 0 0 0 .2 box setpc rgba 0 0 0 .2 box setpc rgba 0 0 0 .2 box setpc rgba 0 0 0 .2 box setpc [0 0.5 0] box setpc "red box setpc "yellow box |
|
|
|