box, roundLevel doesn't produce same corners

Discuss any general programming issues here
Post Reply
peceha
Posts: 111
Joined: Tue Dec 13, 2016 8:39 am
Location: Poland

box, roundLevel doesn't produce same corners

Post by peceha »

Hi,

is it normal behaviorfor BOX command that ROUNDLEVEL or CORNERA, CORNERB... arguments even if set to the same value produce a rectangle with every corner differently rounded?
For example:

Code: Select all

Box(0,0,64,64,#WHITE,{RoundLevel = 25})
Box(0,64,64,64,#WHITE,{CornerA=25, CornerB=25, CornerC=25, CornerD=25})
displays 2 rectangles with rounded corners but not even 1 corner looks like the others.

Thanks
xabierpayet
Posts: 267
Joined: Fri Feb 24, 2012 9:34 am

Re: box, roundLevel doesn't produce same corners

Post by xabierpayet »

setformstyle(#antialias)
Box(0,0,64,64,#WHITE,{RoundLevel = 25})
Box(0,64,64,64,#WHITE,{CornerA=25, CornerB=25, CornerC=25, CornerD=25})
WaitLeftMouse()

try now
peceha
Posts: 111
Joined: Tue Dec 13, 2016 8:39 am
Location: Poland

Re: box, roundLevel doesn't produce same corners

Post by peceha »

Thanks, that works :P
Post Reply