You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems to me that OpenFL isn't correctly filling the interiors of some non-convex polygons (drawn using flash.display.Graphics). I'm appending a simple example here. When I run it with the latest lime toolchain, I clearly see that the stroke and fill of the shape don't match up. The shape should look like two pentagons glued together. But the filled region loses one of the indentations.
package;
import flash.display.Sprite;
class Main extends Sprite {
static private var coords = [
54.0512197394158, -39.2705098312484,
25.5195242505612, -30,
7.885966681787, -54.2705098312484,
-20.6457288070676, -63.5410196624969,
-20.6457288070676, -93.5410196624968,
7.885966681787, -102.811529493745,
25.5195242505612, -78.5410196624969,
54.0512197394158, -69.2705098312484 ];
public function new () {
super ();
var s = new Sprite();
var g = s.graphics;
g.lineStyle( 1.0, 0x000000, 1.0 );
g.beginFill( 0xa0e0e0, 1.0 );
g.moveTo( coords[0], coords[1] );
var idx = 2;
while( idx < coords.length ) {
g.lineTo( coords[idx], coords[idx+1] );
idx += 2;
}
g.endFill();
s.x = 400;
s.y = 400;
addChild( s );
}
}
The text was updated successfully, but these errors were encountered:
It seems to me that OpenFL isn't correctly filling the interiors of some non-convex polygons (drawn using flash.display.Graphics). I'm appending a simple example here. When I run it with the latest lime toolchain, I clearly see that the stroke and fill of the shape don't match up. The shape should look like two pentagons glued together. But the filled region loses one of the indentations.
The text was updated successfully, but these errors were encountered: