Glimmr Drawing Commands

version 2/101030 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Chapter - Specifying color using RGB formula


    Section - RGB color specification

    To decide which number is R/r --/= (R - a number) G/g --/= (G - a number) B/b --/= (B - a number):
        unless R < 0 or R > 255 or G < 0 or G > 255 or B < 0 or B > 255:
            decide on (R * 65536) + (G * 256) + B;
        decide on 0;