| | 27 | |
| | 28 | Note that for other drawing commands the position is set using ''<move></>''. |
| | 29 | |
| | 30 | === Setting colors === |
| | 31 | |
| | 32 | {{{ |
| | 33 | <color>r g b</> |
| | 34 | |
| | 35 | Set the color to be used by the next command. |
| | 36 | }}} |
| | 37 | |
| | 38 | The values ''r'', ''g'' and ''b'' are in the range 0.0 to 1.0. They form a final RGB value for the color. |
| | 39 | |
| | 40 | {{{ |
| | 41 | Examples: |
| | 42 | |
| | 43 | 0.2 0.2 0.2 : a light grey |
| | 44 | 1.0 0.0 0.0 : pure red |
| | 45 | 1 0 0 : same as before |
| | 46 | 0.0 0.0 0.0 : black |
| | 47 | }}} |
| | 48 | ---- |
| | 49 | {{{ |
| | 50 | <colora>r g b a</> |
| | 51 | |
| | 52 | Set the color and alpha to be used by the next command. |
| | 53 | }}} |
| | 54 | |
| | 55 | Same as the ''<color></>'' but you may specify the alpha. A value of ''a'' can be chosen between 0.0 to 1. |
| | 56 | |
| | 57 | {{{ |
| | 58 | a=1 : completely opaque |
| | 59 | a=0.0 : completely transparent (this means invisible) |
| | 60 | a=0.5 : 50% transparent |
| | 61 | }}} |