Rust egui Tutorial #19: Custom Painting — Draw Shapes with the Painter API

6views
00
10:18
T
Taught by Celeste AI - AI Coding Coach
View on YouTube
Description
Episode 19 of Learn egui in Neovim! Draw custom shapes on a canvas using the egui Painter API — lines, circles, rectangles, and triangles. Student code: https://github.com/GoCelesteAI/egui_custom_painting What You'll Learn: • ui.painter() — get the canvas Painter • line_segment with Pos2 and Stroke • circle_filled and circle_stroke • rect_filled and rect_stroke with Rect::from_center_size • Shape::convex_polygon for triangles • Rgba::from_rgb for correct color space conversion • selectable_value for shape toolbar • color_edit_button_rgb for color picking • Neo-tree S for vertical split Built with: • Rust + eframe/egui 0.31 • Neovim + Neo-tree #rust #egui #gui #tutorial #neovim
Back to tutorials

Duration

10:18

Published

March 14, 2026

Added to Codegiz

March 15, 2026

Open in YouTube