box, roundLevel doesn't produce same corners

Discuss any general programming issues here

box, roundLevel doesn't produce same corners

Postby 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
peceha
 
Posts: 69
Joined: Tue Dec 13, 2016 9:39 am
Location: Poland

Re: box, roundLevel doesn't produce same corners

Postby 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
xabierpayet
 
Posts: 146
Joined: Fri Feb 24, 2012 10:34 am

Re: box, roundLevel doesn't produce same corners

Postby peceha » Tue Feb 07, 2017 9:27 pm

Thanks, that works :P
peceha
 
Posts: 69
Joined: Tue Dec 13, 2016 9:39 am
Location: Poland


Return to General programming

Who is online

Users browsing this forum: No registered users and 2 guests