22

Hey everyone,

Basically the title. I'd like to learn how to make my own drawing program and I'm slightly surprised that I can't seem to find anything about it. No tutorials or discussions about requirements or just general tutorials.

Does anyone have any recommendations on where I could start?

you are viewing a single comment's thread
view the rest of the comments

Art. Raster specifically, not looking to do vector at the moment.

[-] VaxHacker@programming.dev 3 points 3 months ago

There are a few basic things you need to sort out first. Keep it as simple as possible so start monochrome, and just add functionality to draw dots on a canvas. You'll need file handling capability almost immediately so figure out a way to (de-)serialise the information to recreate the artwork to read and write it to a file.

That'll keep you going for a few weeks, unless you're vibing it ~~in which case months~~ by which point you might have had other ideas of features to add, assuming you already know how to write GUI applications.

Interesting point about monochrome. If I remember correctly though, pixels are rendered with rgba values right? So does monochrome do anything programmatically different than color? Or maybe grayscale does?

And no, i'm not vibing this...i want to learn how to do this myself and not just regurgitate some hallucinated bullshit.

I am lacking in how to write GUI applications without using a game engine. I used a lot of Unity with C# and way before that I was using actionscript with Flash lol but other than a handful of WPF apps and WinForms with Powershell I haven't done straight GUI applications.

[-] VaxHacker@programming.dev 2 points 3 months ago

It's about keeping it simple: black and white only, which of course are RGB(0,0,0) and RGB(255,255,255). If you want to use colours, you need a colour selector which is unnecessary fluff at this point. Obviously it'll be a critical element fairly soon, but right at the start of the project it's (arguably of course) less important than the application structure and just getting an MVP together. If you want to do colours before you do File-Open and File-Save that's a valid choice.

load more comments (1 replies)
load more comments (1 replies)
load more comments (1 replies)
this post was submitted on 31 Dec 2025
22 points (100.0% liked)

Rust

7950 readers
6 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 2 years ago
MODERATORS