Glimmr Drawing Commands

version 2/101030 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - RGB specified as a fixed point percentage

    To decide which number is r%/R% --/= (R - a real number) g%/G% --/= (G - a real number) b%/B% --/= (B - a real number):
        unless R is real less than 0 or R is real greater than 100.0000 or G is real less than 0 or G is real greater than 100.0000 or B is real less than 0 or B is real greater than 100.0000:
            let R1 be R real times 2.5500 as an integer;
            let G1 be G real times 2.5500 as an integer;
            let B1 be B real times 2.5500 as an integer;
            decide on (R1 * 65536) + (G1 * 256) + B1;
        decide on 0;