Strange problem with View
[1/2] from: cyoungbl::legato::com at: 3-Aug-2001 14:33
Okay, going on with my checkerboard attempts, I'm creating a checkerboard
and just toying around with how I'm going to display pieces. Here is some
code that draws red pieces on every other row of green squares:
grey-square: [ box silver 50x50 ]
green-square: [ box leaf 50x50 ]
checkerboard: [
across
space 0x0
]
loop 4 [
loop 4 [
append checkerboard grey-square
append checkerboard green-square
append checkerboard [
pad -38x12
box red 26x26 effect [ oval 0.128.0 ]
pad 12x-12
]
]
append checkerboard 'return
loop 4 [
append checkerboard green-square
append checkerboard grey-square
]
append checkerboard 'return
]
append checkerboard 'origin
view layout checkerboard
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?
Thanks,
Carl Youngblood
[2/2] 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
<<quoted lines omitted: 4>>
> 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
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted