How can I draw only one pixel ? #2984
Unanswered
seleniakos
asked this question in
Q&A
Replies: 3 comments
-
did you ever find out |
Beta Was this translation helpful? Give feedback.
0 replies
-
Canvas allow you to draw with single pixel precision. Usually you use that to draw multiple pixels but nobody is stopping you. The demo app has an example with glow. But doing that stuff is fairly advanced. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Heres how I did it
then
so get a painter from any Ui and then draw a 1 by 1 rectangle |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, new in Rust and egui world, I was in vain looking for an example to draw one single pixel, something like "painter.draw_pixel(x, y, color)"... Can anybody give me a hint ?
Beta Was this translation helpful? Give feedback.
All reactions