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 [2016/08/08 14:24] admin |
en:color [2020/11/22 20:54] admin |
||
---|---|---|---|
Line 3: | Line 3: | ||
==== Format ==== | ==== Format ==== | ||
- | **color** | + | **color** |
- | **color** ( //color_name// )\\ | + | **color** ( [[colorconstants|color_name]] )\\ |
- | **color** | + | **color** |
- | **color** ( // | + | **color** ( [[rgb|rgb_expression]] |
- | **color** | + | **color** |
- | **color** ( //pen_color_name// , //brush_color_name// )\\ | + | **color** ( [[string|svg_color_string]] )\\ |
- | **color** | + | **color** [[colorconstants|pen_color_name]] , [[colorconstants|brush_color_name]]\\ |
- | **color** ( // | + | **color** ( [[colorconstants|pen_color_name]] , [[colorconstants|brush_color_name]] )\\ |
+ | **color** | ||
+ | **color** ( [[rgb|pen_rgb_expression]] | ||
+ | **color** [[string|pen_svg_color_string]], | ||
+ | **color** ( [[string|pen_svg_color_string]], | ||
==== Description ==== | ==== Description ==== | ||
Line 20: | Line 24: | ||
If the current pen and brush are both set to CLEAR the pixels or shapes drawn will clear the pixels of the graphics output area and make them transparent. | If the current pen and brush are both set to CLEAR the pixels or shapes drawn will clear the pixels of the graphics output area and make them transparent. | ||
- | ===Color names and RGB values=== | + | {{page>en:colorconstants}} |
- | ^Color Name^ARGB Values^Integer^^ | + | |
- | |black|255, 0, 0, 0|4278190080|{{:color_black.png|Black}}| | + | |
- | |white|255, 255, 255, 255|4294506744|{{: | + | |
- | |red|255, 255, 0, 0|4294901760|< | + | |
- | |darkred|255, | + | |
- | |green|255, 0, 255, 0|4278255360|< | + | |
- | |darkgreen|255, | + | |
- | |blue|255, 0, 0, 255|4278190335|< | + | |
- | |darkblue|255, | + | |
- | |cyan|255, 0, 255, 255|4278255615|< | + | |
- | |darkcyan|255, | + | |
- | |purple|255, | + | |
- | |darkpurple|255, | + | |
- | |yellow|255, | + | |
- | |darkyellow|255, | + | |
- | |orange|255, | + | |
- | |darkorange|255, | + | |
- | |grey|255, 164, 164 , | + | |
- | |darkgrey|255, | + | |
- | |clear|0, 0, 0, 0|0|~~SP~~| | + | |
==== Deprecated Form ==== | ==== Deprecated Form ==== | ||
Line 72: | Line 56: | ||
|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.| |