a-e-k/canvas_ity
View on GitHub ↗ ★ 625 C++
A tiny, single-header <canvas>-like 2D rasterizer for C++
11 mentions on Hacker News by 4 people: 3 stories, 8 comments · first 2022-10-10 · latest 2026-02-22
20082026
-
Author here. I have a JavaScript port of my automated test suite ( https://github.com/a-e-k/canvas_ity/blob/main/test/test.html ) that I used to compare my library against browser <canvas> implementations. I was surprised by all of the…
comment by a_e_k · 2026-02-22 · in Canvas_ity: A tiny, single-header <canvas>-like 2D rasterizer for C++ -
The list of "recommended reading" from one of the issues looks great: https://github.com/a-e-k/canvas_ity/issues/11#issuecomment-2...
comment by nicoburns · 2026-02-21 · in Canvas_ity: A tiny, single-header <canvas>-like 2D rasterizer for C++ -
…someone could easily create an extension script to do it. [0] https://jsfiddle.net/y7m16wa0/ [1] https://github.com/a-e-k/canvas_ity/blob/main/test/test.cpp#... , https://github.com/a-e-k/canvas_ity/blob/main/test/test.html...
comment by a_e_k · 2024-07-06 · in GPU-Friendly Stroke Expansion -
…the author of another CPU-only 2D vector graphics library that might be of interest: - Canvas Ity ( https://github.com/a-e-k/canvas_ity ) It's a tiny single-header C++ library in the style of the STB libraries. My aim was to make it dirt…
comment by a_e_k · 2024-02-20 · in WebKit switching to Skia for 2d graphics rendering -
…in different browsers to see how their canvas implementations render those fonts. [0] https://github.com/a-e-k/canvas_ity [1] https://www.w3.org/TR/2015/REC-2dcontext-20151119/ [2] https://standards.iso.org/ittf/PubliclyAvailableStandards/c…
comment by a_e_k · 2024-01-02 · in Writing a TrueType font renderer -
…of the rendering pipeline's dataflow and the top-level functions responsible for each stage: https://github.com/a-e-k/canvas_ity/blob/f32fbb37e2fe7c0fcae...
comment by a_e_k · 2023-02-28 · in The Lone Developer Problem -
https://github.com/a-e-k/canvas_ity A tiny, single-header <canvas>-like 2D rasterizer for C++ More detail -- This is an STB-style single-header C++ library with no dependencies beyond the standard C++ library. In about 2300 lines of…
comment by a_e_k · 2023-01-26 · in Ask HN: What have you created that deserves a second chance on HN? -
…an uncompressed PNG writer for RGBA8 images in a single function. It's just over 90 lines of C++: https://github.com/a-e-k/canvas_ity/blob/f32fbb37e2fe7c0fcae...
comment by a_e_k · 2023-01-19 · in Hello, PNG