r/AskProgramming • u/Difficult-Ebb8250 • Oct 04 '26
C/C++ What programming language would you recommend for making a 2D animation program?
Hi! I'm working on a personal project where I'm making my own 2D animation software.
The idea is to eventually have features such as a drawing canvas, layers, a timeline, brushes, vector and bitmap tools, and animation features. I'd like it to run on Windows, with the possibility of supporting other platforms in the future.
I'm currently trying to decide which programming language and framework would be the best fit for this kind of application.
For people who have experience developing graphics software, animation tools, drawing applications, or similar programs:
What programming language and framework would you recommend, and why?
I'm particularly interested in rendering performance, canvas/drawing capabilities, GPU acceleration, handling larger projects, and keeping the codebase manageable as the software grows.
I'm not looking for someone to develop it for me. I'm mainly looking for advice before I get too far into the project.
Thanks!
3
u/icemage_999 Oct 04 '26
Likely C++ for a project like this, maybe you can get away with C# to begin with for a "safer" sandbox to start, at the cost of a lot of power and speed. If you're looking to eventually optimize and compartmentalize your code base, you'll want the closer-to-metal functionality that C++ offers and rules out a lot of the higher level languages.
2
u/[deleted] Oct 04 '26
I built exactly this some years back with C#, though the animation component became less of a focus and it evolved into more of a corporate tool for bulk generation of PDFs and reports. I was trying to make something that could handle documents, spreadsheets and art, but my clientele only really cared about the first two things so the animation components were pretty much left to rot.
2
u/Beginning-Limit8796 Oct 04 '26
C++ is the absolute gold standard for this scale of graphics software (just look at Krita or Blender). For what you want to achieve (canvas, timeline, layering, and cross-platform support), here is the industry-standard stack:
If you want a modern alternative that is easier to manage but slightly less mature for heavy rendering frameworks than C++, C# with AvaloniaUI or Rust with wgpu are viable paths. But for professional rendering performance with low latency, stick to C++ and Qt.
2
u/salazka Oct 04 '26
From the sound of it, C++?
I think that would be a good choice.
1
u/Sewter0 Oct 04 '26
Try python with Manim, if you like programming.
1
u/huuaaang Oct 04 '26
If you want to target Windows, C# is the preferred way to go these days. Probably WPF or WinUI 3 for framework.
1
u/BoBoBearDev Oct 04 '26 edited Oct 04 '26
Idk, but dotnet with Avalonia is a nice way to make it completely multiplat. And dotnet is easiet than C++ due to GC. The final rendering is just a video, so the little GC hickups is unrelated. The latest version of Avalonia is using something with hardware acceleration as well, so the editor will be smooth.
Disclaimer, I am only aware of the technology and general capacity of Avalonia. Eveyeone loves it. I haven't tried it myself.
Finally, you might as will use game engine like Unity or Gado. They have nice real time 2D graphics for games already.