EnglishРусский  

   ..

   SRC

   defines.g

   Desktop.g

   Font.g

   GraphicsUtils.g

   Image.g

   Screen.g

   Sound.g

   Sprites.g

The project is closed! You can look at a new scripting language. It is available on GitHub.
Also, try our open source cross-platform automation software.

Ads

Installer and installation software
Commercial and Freeware installers.

source\dev\directx\lib\GraphicsUtils.g
 1 //Color
 2 func int RGB2BGR(int RGB){
 3   return (RGB & 0xFF)<<16 + ((RGB >> 8 & 0xFF)<<8) + (RGB>>16)
 4 }
 5 func int getRed(int RGB){
 6   return RGB >> 16
 7 }
 8 func int getGreen(int RGB){
 9   return RGB >> 8 & 0xFF
10 }
11 func int getBlue(int RGB){
12   return RGB & 0xFF
13 }
14 func int RGB(int R G B){
15   return (R<<16) + (G<<8) + B
16 }
17