use-revolution Digest, Vol 45, Issue 11

Jim Lambert jiml at netrin.com
Tue Jun 5 17:11:04 EDT 2007


on mouseup
   put the mousecolor && "*" && the backgroundcolor of me
end mouseup

With this script in a rectangle graphic, clicking produces:

0,127,255 * 44,255,34

Why would the mousecolor not equal the backgroundcolor of the graphic?
In fact clicking in different parts of the graphic (which is a solid 
green in this case) produces differing values for the mousecolor even 
though it's all the same green!

Also,

on mousedown
   put the mousecolor
end mousedown

in the script of a card that is entirely empty (white) produces varying 
values none of which is 255,255,255.

Do I have to do some kind of colorspace conversion?

version 2.8.1
OSX 10.3.9

Thanks,

Jim Lambert


More information about the use-livecode mailing list