[REBOL] Re: Strange problem with View
From: carl:cybercraft at: 4-Aug-2001 11:47
On 04-Aug-01, Carl Youngblood wrote:
> The problem I'm having is with the oval command. It is supposed to
> set the color around the oval to the tuple you give it. 0.128.0 is
> supposed to be the same as the green color. It's not (at least not
> when _I_ run it). However, if I substitute it with 200.200.200 I
> definitely see a difference. It's almost like it's converting the
> edge color into grayscale. I'm running the latest Win2k version.
> Could someone please try this code and tell me if they get similar
> results?
The oval (and Draw's circle command) is bugged, I think. Compare...
view layout [box red effect [draw [pen blue fill-pen green circle
10x10 10]]]
with...
view layout [box red effect [draw [pen blue fill-pen blue circle 10x10
10]]]
In the second example where draw's pen and fill-pen are the same
colour you get just a blue box instead of a blue circle with no
obvious edge colour.
However, draw's circle is still usable if you're happy to give your
circle an edge with a different colour, so it could be a substitute
for your misbehaving oval. The docs for the draw dialect are
available via the View Desktop in the rebol.com Docs folder. See
EasyDraw.
--
Carl Read