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

Improve Canvas ergonomics #293

Merged
merged 10 commits into from
Apr 15, 2020
Merged

Improve Canvas ergonomics #293

merged 10 commits into from
Apr 15, 2020

Conversation

hecrj
Copy link
Member

@hecrj hecrj commented Apr 14, 2020

This PR makes some arguments in the methods of canvas::Frame generic, improving usability and reducing verbosity in many common scenarios.

Additionally, helper methods have been added to Path for creating lines, rectangles, and circles directly without the need of a closure.

As a result, the clock and solar_system examples are simpler and easier to read now!

@hecrj hecrj added the improvement An internal improvement label Apr 14, 2020
@hecrj hecrj added this to the 0.1.1 milestone Apr 14, 2020
@hecrj hecrj self-assigned this Apr 14, 2020
@hecrj hecrj force-pushed the improvement/canvas-ergonomics branch from c582532 to 6d7f2b3 Compare April 14, 2020 05:19
@hecrj hecrj added the feature New feature or request label Apr 14, 2020
@hecrj hecrj merged commit 99352f0 into master Apr 15, 2020
@hecrj hecrj deleted the improvement/canvas-ergonomics branch April 15, 2020 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request improvement An internal improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants