This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:color [2020/11/22 21:05] admin |
en:color [2020/11/22 21:16] admin |
||
---|---|---|---|
Line 27: | Line 27: | ||
* b - blue 0 = off to 255 = full on | * b - blue 0 = off to 255 = full on | ||
- the [[rgb|rgb]] function passing it 3 or 4 numbers from 0-255, | - the [[rgb|rgb]] function passing it 3 or 4 numbers from 0-255, | ||
- | - or using an svg color definition | + | - or using an svg color name as a string |
Line 53: | Line 53: | ||
color rgb(255, | color rgb(255, | ||
circle 100,100,25 | circle 100,100,25 | ||
+ | |||
+ | penwidth 5 | ||
+ | color " | ||
+ | rect 150, | ||
+ | |||
+ | color " | ||
+ | rect 175, | ||
</ | </ | ||
Will draw a grey rectangle with a green circle filled with red and then a pink circle inside it.\\ | Will draw a grey rectangle with a green circle filled with red and then a pink circle inside it.\\ |