User Tools

Site Tools


en:getcolor

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:getcolor [2016/08/13 09:11]
admin
en:getcolor [2020/02/28 10:46]
Line 1: Line 1:
-===== GetColor (Function) ===== 
-==== Format ==== 
-getcolor\\ 
-getcolor() 
- 
-returns [[rgb|rgb_expression]] 
- 
-==== Description ==== 
-Returns the ARGB value of the current drawing pen 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. 
- 
-==== Example ==== 
-<code> 
-color red, blue 
-print getcolor 
-</code> 
-will print 
-<code> 
--65536 
-</code> 
- 
-==== See Also ==== 
-{{page>en:start#Graphics - Colors&noheader}} 
- 
-==== History ====  
-|0.9.5m|New to version| 
-|0.9.9.28|Changed to return ARGB value| 
  
en/getcolor.txt ยท Last modified: 2020/02/28 10:46 (external edit)