box, roundLevel doesn't produce same corners

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

box, roundLevel doesn't produce same corners

Post by peceha » Tue Feb 07, 2017 11:53 am

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: 160
Joined: Fri Feb 24, 2012 10:34 am

Re: box, roundLevel doesn't produce same corners

Post by xabierpayet » Tue Feb 07, 2017 8:40 pm

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 9:39 am
Location: Poland

Re: box, roundLevel doesn't produce same corners

Post by peceha » Tue Feb 07, 2017 9:27 pm

Thanks, that works :P

Post Reply