StarlingGraphics / Starling-Extension-Graphics

flash.display.Graphics style extension for the Starling Flash GPU rendering framework
https://github.com/StarlingGraphics/Starling-Extension-Graphics/wiki
MIT License
282 stars 89 forks source link

Two questions regarding quality #129

Closed joeshields-at-gruden closed 9 years ago

joeshields-at-gruden commented 9 years ago

Hi, I'm adding a rounded rect in my Air iOS app and the top left corner seems to have a slice of the corner slices missing, I have tried changing x,y,w,h,border radius and cannot get this last piece to work. All other corners are working as expected. Please see the image attached.

Is there a way to increase the number of corner radius pieces? thereby theoretically increasing the quality of the curve?

Cheers screen shot 2015-03-02 at 4 00 06 pm

IonSwitz commented 9 years ago

I've checked in a fix for the break in the line, and I have tried it with a number of different test scenarios, but please let me know if you find something odd... (Use the Source tree, not the SWC, I am unable to produce a SWC for the project)

When it comes to the quality of the curve, the granularity of radius pieces won't really matter, as the aliasing will be terrible no matter what. Your best bet there is to try to get a texture with a gradual alpha to work in order to make the curve smoother.

joeshields-at-gruden commented 9 years ago

Spot on, fixed. Thanks.