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

Reorder how context transforms are applied #36

Closed
noelwelsh opened this issue Jun 21, 2016 · 2 comments
Closed

Reorder how context transforms are applied #36

noelwelsh opened this issue Jun 21, 2016 · 2 comments
Labels

Comments

@noelwelsh
Copy link
Contributor

Doodle currently applies the inner most ContextTransform. E.g.

circle(10).fillColor(Color.red).fillColor(Color.blue)

will produce a red circle. A more sensible semantics is to produce a blue circle.

@noelwelsh noelwelsh added the bug label Jun 21, 2016
@d-lowl
Copy link

d-lowl commented Apr 3, 2017

Additionally circle(10).fillColor(Color.red).lineWidth(10.0) and circle(10).lineWidth(10.0).fillColor(Color.red) both produce circle with standard line width (fill color seem to be overlay/override it). Without fillColor the line width is correct. Not sure if it is due to the same issue

Edit: apparently the line width is not overriden to default value, but only half of the line is overlaid by filling colour. (i.e. instead of line of width 10 it visually appear as of width 5). I'm not sure if it is expected behaviour or not. Hope it helps.

@noelwelsh
Copy link
Contributor Author

Fixed in 0.9

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

No branches or pull requests

2 participants