Automation: a problem involving cow dung
Posted: Sat Feb 19, 2022 10:44 am
Having a "morning spat" with someone singing the dubious joys of Python, and both
trying to create a 640 x 480 window with a 300 x 200 RED rectangle in the centre.
Certainly with LiveCode I had no problem whatsoever EXCEPT that what should have been RED came out as COW DUNG:
- -
-
Now why would that be?
-
trying to create a 640 x 480 window with a 300 x 200 RED rectangle in the centre.
Certainly with LiveCode I had no problem whatsoever EXCEPT that what should have been RED came out as COW DUNG:
- -
Code: Select all
on mouseUp
create stack "newWindow"
set the width of stack "newWindow" to 640
set the height of stack "newWindow" to 480
set the loc of stack "newWindow" to the screenLoc
create grc "sexyRect" in card 1 of stack "newWindow"
set the width of grc "sexyRect" of card 1 of stack "newWindow" to 300
set the height of grc "sexyRect" of card 1 of stack "newWindow" to 200
set the loc of grc "sexyRect" of card 1 of stack "newWindow" to 320, 240
set the backColor of grc "sexyRect" of card 1 of stack "newWindow" to red
set the opaque of grc "sexyRect" of card 1 of stack "newWindow" to true
end mouseUp
Now why would that be?
-