Shoes.app :width => 800, :height => 630 do
a = stack do
fill "#FFF"
stroke "#222"
rect(0,0,200,200)
stroke "#F00"
rect(10,10,180,180)
end
keypress {|key|
append {
stroke "#222"
nofill
rect(10,10,180,180)
}
}
end
#----------------------------------------------------------------------
All I want to do is replace the red hollow rectangle with a grey one
when I press a key. However it replaces it with a reddish grey one
instead. This happens even when I change stroke "#222" to stroke
rgb(32, 32, 32, 255), i.e. setting an explicit alpha value.
martin