Sonar helps you commit clean C++ code every time. With over 550 unique rules to find C++ bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work. Learn more →
Top 3 2d-graphics-library Open-Source Projects
-
-
I've done a library for vector graphics on the GPU which works pretty well for my uses:
https://github.com/audulus/vger
and a rust version:
https://github.com/audulus/vger-rs
(which powers my rust GUI library: https://github.com/audulus/rui)
Here's the approach for rendering path fills. From the readme:
> The bezier path fill case is somewhat original. To avoid having to solve quadratic equations (which has numerical issues), the fragment function uses a sort-of reverse Loop-Blinn. To determine if a point is inside or outside, vger tests against the lines formed between the endpoints of each bezier curve, flipping inside/outside for each intersection with a +x ray from the point. Then vger tests the point against the area between the bezier segment and the line, flipping inside/outside again if inside. This avoids the pre-computation of Loop-Blinn, and the AA issues of Kokojima.
It works pretty well, and doesn't require as much preprocessing as the code in the article. Also doesn't require any GPU compute (though I do use GPU compute for some things). I think ultimately the approach in the article (essentially Piet-metal, aka tessellating and binning into tiles) will deliver better performance, and support more primitives, but at greater implementation complexity. I've tried the Piet-metal approach myself and it's tricky! I like the simpler Shadertoy/SDF inspired approach :)
-
InfluxDB
Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
-
gfx
GFX is a device independent graphics library primarily intended for IoT MCUs but not limited to that. (by codewitch-honey-crisis)
2d-graphics-library related posts
- htcw_gfx 1.4.6 is released
- Initial SVG support in htcw_gfx 1.4.4
- Just got SVG graphics rendering on an ESP32
- Alternatives to LVGL for embedded graphics on a monochrome display?
- htcw_gfx 1.3.8 is out and published to PIO
- Since so many people have a little TTGO Display T1...
- I've updated my Sonos remote code
-
A note from our sponsor - Sonar
www.sonarsource.com | 29 Mar 2023
Index
What are some of the best open-source 2d-graphics-library projects? This list will help you:
Project | Stars | |
---|---|---|
1 | detonator | 228 |
2 | vger-rs | 128 |
3 | gfx | 65 |