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

How to draw a line between two points #44

Closed
Tilix4 opened this issue Nov 15, 2020 · 1 comment
Closed

How to draw a line between two points #44

Tilix4 opened this issue Nov 15, 2020 · 1 comment

Comments

@Tilix4
Copy link

Tilix4 commented Nov 15, 2020

I'm working on a Nodal tool using your crate. To make links between them, I need to draw a line between two points. Is this currently possible?

@emilk
Copy link
Owner

emilk commented Nov 15, 2020

Sure! ui.painter().line_segment([from, to], (width, color));

@emilk emilk closed this as completed Nov 15, 2020
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

No branches or pull requests

2 participants