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/02/28 10:46] 127.0.0.1 external edit |
en:color [2020/11/22 21:09] admin |
||
---|---|---|---|
Line 7: | Line 7: | ||
**color** [[rgb|rgb_expression]]\\ | **color** [[rgb|rgb_expression]]\\ | ||
**color** ( [[rgb|rgb_expression]] )\\ | **color** ( [[rgb|rgb_expression]] )\\ | ||
+ | **color** [[expression|svg_color_string]]\\ | ||
+ | **color** ( [[expression|svg_color_string]] )\\ | ||
**color** [[colorconstants|pen_color_name]] , [[colorconstants|brush_color_name]]\\ | **color** [[colorconstants|pen_color_name]] , [[colorconstants|brush_color_name]]\\ | ||
**color** ( [[colorconstants|pen_color_name]] , [[colorconstants|brush_color_name]] )\\ | **color** ( [[colorconstants|pen_color_name]] , [[colorconstants|brush_color_name]] )\\ | ||
**color** [[rgb|pen_rgb_expression]] , [[rgb|brush_rgb_expression]]\\ | **color** [[rgb|pen_rgb_expression]] , [[rgb|brush_rgb_expression]]\\ | ||
- | **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); | ||
+ | - an integer to define the color where ((a * 256 + r) * 256 + g) * 256 + b, | ||
+ | * a - transparency 0 = transparent to 255 = opaque | ||
+ | * r - red 0 = off to 255 = full on | ||
+ | * g - green 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, | ||
+ | - or using an svg color name as a string [[https:// | ||
When drawing solid shapes ([[Chord|Chord]], | When drawing solid shapes ([[Chord|Chord]], | ||
Line 52: | Line 66: | ||
|0.9.9.28|Changed color values to include Alpha (transparency) and changed color constants to new ARGB values.| | |0.9.9.28|Changed color values to include Alpha (transparency) and changed color constants to new ARGB values.| | ||
|0.9.9.45|changed values to positive numbers following formula as documented.| | |0.9.9.45|changed values to positive numbers following formula as documented.| | ||
+ | |2.0.99.4|Added ability to use string names and hex values for colors.| |