This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
en:color [2020/11/22 21:05] admin |
en:color [2020/11/22 21:25] admin |
||
---|---|---|---|
Line 3: | Line 3: | ||
==== Format ==== | ==== Format ==== | ||
- | **color** [[colorconstants|color_name]]\\ | + | **color** color\\ |
- | **color** ( [[colorconstants|color_name]] )\\ | + | **color** ( color )\\ |
- | **color** [[rgb|rgb_expression]]\\ | + | **color** |
- | **color** ( [[rgb|rgb_expression]] )\\ | + | **color** ( pen_color, brush_color |
- | **color** [[expression|svg_color_string]]\\ | + | |
- | **color** ( [[expression|svg_color_string]] | + | |
- | **color** | + | |
- | **color** ( [[colorconstants|pen_color_name]] | + | |
- | **color** [[rgb|pen_rgb_expression]] , [[rgb|brush_rgb_expression]]\\ | + | |
- | **color** ( [[rgb|pen_rgb_expression]] , [[rgb|brush_rgb_expression]] )\\ | + | |
- | **color** [[expression|pen_svg_color_string]], | + | |
- | **color** ( [[expression|pen_svg_color_string]], | + | |
==== Description ==== | ==== Description ==== | ||
- | Sets the current drawing color to // | + | Sets the current drawing color to // |
- one of the defined color constants (see table below); | - one of the defined color constants (see table below); | ||
Line 27: | Line 19: | ||
* 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 | + | - using an svg color name as a string |
+ | - or using a string with a "#" | ||
Line 53: | Line 46: | ||
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 the following:\\ |
- | {{:color.png|Color}} | + | {{en:color2.png|Color}} |