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

Add a new function draw_device_line_with_config #506

Open
impopular-guy opened this issue Feb 25, 2023 · 0 comments
Open

Add a new function draw_device_line_with_config #506

impopular-guy opened this issue Feb 25, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@impopular-guy
Copy link

The function fn (ctx &Context) draw_line_with_config(x f32, y f32, x2 f32, y2 f32, config PenConfig) in module gg is very useful for drawing custom lines.

Currently, there exists only fn (c &CanvasLayout) draw_device_line(d DrawDevice, ..., color gx.Color) which accepts only color as a config param.

A new function fn (c &CanvasLayout) draw_device_line_with_config(d DrawDevice, ..., config LineConfig) that accepts a similar PenConfig struct as an argument would be very helpful.

@impopular-guy impopular-guy added the enhancement New feature or request label Feb 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant