Skip to content

Improve Canvas ergonomics#293

Merged
hecrj merged 10 commits into
masterfrom
improvement/canvas-ergonomics
Apr 15, 2020
Merged

Improve Canvas ergonomics#293
hecrj merged 10 commits into
masterfrom
improvement/canvas-ergonomics

Conversation

@hecrj

@hecrj hecrj commented Apr 14, 2020

Copy link
Copy Markdown
Member

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
Comment thread wgpu/src/widget/canvas/path/builder.rs
@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