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

Implement the Draw trait for Layer #111

Merged
merged 1 commit into from
Jan 14, 2024
Merged

Implement the Draw trait for Layer #111

merged 1 commit into from
Jan 14, 2024

Conversation

abey79
Copy link
Owner

@abey79 abey79 commented Jan 14, 2024

This PR makes it possible to directly draw into a layer:

use vsvg::{Draw, DocumentTrait};

let mut doc = vsvg::Document::default();
let layer = doc.get_mut(0);

// Add a new path into the layer with default path metadata:
layer.circle(5.0, 5.0, 10.0);

@abey79 abey79 added vsvg Relates to vsvg feature New feature labels Jan 14, 2024
@abey79 abey79 merged commit 2484929 into master Jan 14, 2024
11 of 12 checks passed
@abey79 abey79 deleted the layer-draw branch January 14, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature vsvg Relates to vsvg
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Draw for Layer
1 participant