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

rect_stroke changed how it renders #5510

Open
cybersoulK opened this issue Dec 21, 2024 · 0 comments
Open

rect_stroke changed how it renders #5510

cybersoulK opened this issue Dec 21, 2024 · 0 comments

Comments

@cybersoulK
Copy link

cybersoulK commented Dec 21, 2024

image image

Upgraded egui from 0.28.1 to master, and see a difference in rect_stroke, i much preferred the nice gradient.
is the removal of the gradient a feature or bug?

let painter = context.layer_painter(layer_id);
...
let stroke = egui::Stroke::new(6.0, color.gamma_multiply(0.5));
painter.rect_stroke(rect.clone(), 5.0, stroke);     

(ignore the slight change in blue color between the 2 screenshots)

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

1 participant