I'm having trouble with filling a shape composed of only cubic curves using the drawer class. The curves seem to be filled individually not a composite shape? My code follows, thanks!
var line1:CubicCurve = new CubicCurve( 0, 0, 25, 25, -25, 75, 0, 100 ); line1.useControlPoints( true ); line1.lineStyle( 0, 0x000000, 50 );
var line2:CubicCurve = new CubicCurve( 0, 100, 25, 125, 75, 75, 100, 100 ); line2.useControlPoints( true ); line2.lineStyle( 0, 0x000000, 50 );
var line3:CubicCurve = new CubicCurve( 100, 100, 75, 75, 125, 25, 100, 0 ); line3.useControlPoints( true ); line3.lineStyle( 0, 0x000000, 50 );
var line4:CubicCurve = new CubicCurve( 100, 0, 75, -25, 25, 25, 0, 0 ); line4.useControlPoints( true ); line4.lineStyle( 0, 0x000000, 50 );
var drawer:Drawer = new Drawer( _root ); drawer.addChild( line1 ); drawer.addChild( line2 ); drawer.addChild( line3 ); drawer.addChild( line4 );
drawer.draw(); drawer.fillStyle( 0xFF0000, 50 ); drawer.fill();
This has been fixed in the newest 1.07 BETA 5: http://www.alex-uhlmann.de/flash/animationpackage/unstable/
Let me know if you have further problems.
Best, Alex
Log in to post a comment.
I'm having trouble with filling a shape composed of only cubic curves using the drawer class. The curves seem to be filled individually not a composite shape? My code follows, thanks!
var line1:CubicCurve = new CubicCurve( 0, 0, 25, 25, -25, 75, 0, 100 );
line1.useControlPoints( true );
line1.lineStyle( 0, 0x000000, 50 );
var line2:CubicCurve = new CubicCurve( 0, 100, 25, 125, 75, 75, 100, 100 );
line2.useControlPoints( true );
line2.lineStyle( 0, 0x000000, 50 );
var line3:CubicCurve = new CubicCurve( 100, 100, 75, 75, 125, 25, 100, 0 );
line3.useControlPoints( true );
line3.lineStyle( 0, 0x000000, 50 );
var line4:CubicCurve = new CubicCurve( 100, 0, 75, -25, 25, 25, 0, 0 );
line4.useControlPoints( true );
line4.lineStyle( 0, 0x000000, 50 );
var drawer:Drawer = new Drawer( _root );
drawer.addChild( line1 );
drawer.addChild( line2 );
drawer.addChild( line3 );
drawer.addChild( line4 );
drawer.draw();
drawer.fillStyle( 0xFF0000, 50 );
drawer.fill();
This has been fixed in the newest 1.07 BETA 5:
http://www.alex-uhlmann.de/flash/animationpackage/unstable/
Let me know if you have further problems.
Best,
Alex