Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stroke Problem #152

Open
yooni126 opened this issue Jun 11, 2017 · 0 comments
Open

Stroke Problem #152

yooni126 opened this issue Jun 11, 2017 · 0 comments

Comments

@yooni126
Copy link

hi
i use starling 2 and also use your new extenstion for starling 2
i draw a rectangle with move to & line to codes ::

var points:Point = StaticValues.baseArray.array[0].startPoint;
for (var i = 0; i < StaticValues.baseArray.array.length; i++)
{

main.bodyShape.graphics.lineStyle(main.lineWidth);

var partI:Part = new Part(StaticValues.baseArray.array[i]);

var points2:Array = StaticValues.baseArray.bodyPoints(partI, main, false);
if (partI.part_select)
{
 main.bodyShape.graphics.beginFill(0x0065b3);
 main.bodyShape.graphics.lineStyle(main.lineWidth);

}
else if (partI.other_part)
{
 main.bodyShape.graphics.beginFill(0x00a0e4);
 main.bodyShape.graphics.lineStyle(main.lineWidth);

}
else
{
 main.bodyShape.graphics.beginFill(0xfefefe);
 main.bodyShape.graphics.lineStyle(main.lineWidth);
}

if (partI.model == PartModels.ARC)
{
 drawArc(main.bodyShape, points2[0], points2[1], points2[2]);
 drawArc(main.bodyShape, points2[3], points2[4], points2[5], true);
 main.bodyShape.graphics.lineTo(points2[0].x, points2[0].y);
 
}
else if (partI.model == PartModels.FRAME)
{
 
 main.bodyShape.graphics.moveTo(points2[0].x, points2[0].y);
 main.bodyShape.graphics.lineTo(points2[1].x, points2[1].y);
 main.bodyShape.graphics.lineTo(points2[2].x, points2[2].y);
 main.bodyShape.graphics.lineTo(points2[3].x, points2[3].y);
 main.bodyShape.graphics.lineTo(points2[0].x, points2[0].y);
 
}
main.bodyShape.graphics.endFill();

}

but when i release my project my rectangle has different stroke !
see this picture please:
https://www.dropbox.com/s/c4jhczgz4cffo6g/stroke.png?dl=0
why?
how can i solve my problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant