Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Incorrect Scaling #333

Open
mbebenita opened this issue May 23, 2013 · 3 comments
Open

Incorrect Scaling #333

mbebenita opened this issue May 23, 2013 · 3 comments

Comments

@mbebenita
Copy link
Contributor

Scaling movie clips in Flash doesn't seem to scale the resulting stroked path the same way canvas does. It scales the path then strokes it. It computes a width for the stroke based on the scale style and strokes evenly. The easiest way to try this out is to draw a circle with a thick stroke then scale the shape in the X or Y direction.

@magcius
Copy link
Contributor

magcius commented May 23, 2013

It depends on the flags that are set. In the Flash authoring environment, click on your movie clip and there should be a "Scaling" combo box in the Properties pane. These set the NoHScaleFlag / NoVScaleFlag of LineStyle2.

@mbebenita
Copy link
Contributor Author

These flags seem to compute the width of the entire stroke depending on the H or V scaling. In all cases, the stroke width is uniform. Currently, in Shumway, it looks like we first stroke then scale the stroked path which makes it look all distorted.

@magcius
Copy link
Contributor

magcius commented May 23, 2013

Well, that's not entirely true.

See http://cairographics.org/tutorial/#L2linewidth.

NoHScale / NoVScale being on would produce the former, and them being off would produce the latter.

@ghost ghost assigned tbtlr and claus Jul 31, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants