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

Provide filling support for conics #9

Open
wants to merge 4 commits into
base: conicDrawing4
Choose a base branch
from

Conversation

elkins0
Copy link

@elkins0 elkins0 commented Jan 24, 2017

These changes support using eval_helper.drawconic to handle filling of conics. 63_Conic.html now has an appearance manipulation section to demonstrate this.

To match the filling and drawing behavior of Cinderella exemplified by eval_helper.drawpolygon, this changes eval_helper.drawconic to csctx.fill() if Render2D.fillColor is set and then csctx.stroke() the curve without the boundary segments if Render2D.lsize is not zero. Also fixed eval_helper.drawpolygon to not csctx.stroke() if Render2D.lsize is zero since otherwise path is drawn.
Changes conic elements to use new conicDefault insead of lineDefault. conicDefault is based on polygonDefault and differs by setting el.filled to false instead of true.
This changes drawgeoconic to also pass fillalpha and fillcolor values in the modifs dictionary.
Added fillcolor and fillalpha so that they are included in the Co element's appearance. An appearance section has also been added so that the Co element's appearance can be easily manipulated. The sameLines example test for being able to display two parallel lines with no separation.
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

Successfully merging this pull request may close these issues.

1 participant