thnx colin & terry
very cool colin! my math`s a bit rusty:-((
i need it for a iterating set / get pixel routine so using integer instead
of rgb can realy save time...
i just added the alpha
on inttorgb int
  b = int mod 256
  int = int / 256
  g = int mod 256
  int = int / 256
  r = int mod 256
  int = int / 256
  a = int mod 256
  return [a,rgb(r,g,b)]
end 


on rgbToInt c,a  
  int = a*16777216 + c.red*65536 + c.green*256 + c.blue
  return int
end
thnx again, stefan


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to