This shows you the differences between two versions of the page.
en:getbrushcolor [2016/01/01 22:41] 127.0.0.1 external edit |
en:getbrushcolor [2016/08/13 09:11] admin |
||
---|---|---|---|
Line 4: | Line 4: | ||
getbrushcolor() | getbrushcolor() | ||
- | returns | + | returns |
==== Description ==== | ==== Description ==== | ||
Returns the ARGB value of the current drawing brush color (last set by color statement). ARGB is calculated by the formula ( (a * 256 + r) * 256 + b) * 256 + g where alpha, red, green, and blue are between 0 and 255. If the drawing color has been set to CLEAR a 0 will be returned. | Returns the ARGB value of the current drawing brush color (last set by color statement). ARGB is calculated by the formula ( (a * 256 + r) * 256 + b) * 256 + g where alpha, red, green, and blue are between 0 and 255. If the drawing color has been set to CLEAR a 0 will be returned. |