Hacker GitHub

← All repos

Lichtso/contrast_renderer

View on GitHub ↗ ★ 87 Rust

Contrast is a WebGPU based 2D render engine written in Rust

9 mentions on Hacker News by 3 people: 0 stories, 9 comments · first 2022-08-10 · latest 2026-03-19

Mentions per year 9 mentions · busiest year 2022 (3)
20082026
  1. …in a shader toy [6] a while back. [0]: https://news.ycombinator.com/item?id=46473247#46530503 [1]: https://github.com/Lichtso/contrast_renderer [2]: https://github.com/Lichtso/contrast_renderer/blob/main/src/s... [3]:…
    comment by Lichtso · 2026-03-19 · in A Decade of Slug
  2. …And for the full complexity of dealing with self intersecting loops and cusps see: https://github.com/Lichtso/contrast_renderer/blob/main/src/f... > The winding number logic is usually super involved, especially when multiple sub-shapes…
  3. …en.wikipedia.org/wiki/Signed_distance_function [1]: https://en.wikipedia.org/wiki/Implicit_curve [2]: https://github.com/Lichtso/contrast_renderer/blob/a189d64a13...
  4. …building on top of WebGPU for that, like: https://github.com/linebender/vello and (shameless plug): https://github.com/Lichtso/contrast_renderer
    comment by Lichtso · 2024-11-22 · in What's Next for WebGPU
  5. …by converting it to quadratic bezier curve segments. Do you think that's a path to follow? [0] https://github.com/Lichtso/contrast_renderer [1] https://mattdesl.svbtle.com/drawing-lines-is-hard [2] https://scribe.rip/@evanwallace/easy-scala…
    comment by lagrange77 · 2024-11-20 · in AAA – Analytical Anti-Aliasing
  6. …part ends up as 0) Compute shaders avoid all these problems and work on WebGPU 1.0 today. [1]: https://github.com/Lichtso/contrast_renderer
    comment by raphlinus · 2023-04-15 · in WebGPU Fundamentals
  7. …You can also checkout the "feature/ui" branch in GIT [1] to get the UI framework prototype. [1]: https://github.com/Lichtso/contrast_renderer/tree/feature/ui
    comment by Lichtso · 2022-12-14 · in Rust: State of GUI, December 2022
  8. …an experimental UI framework on top, which you can try in the browser if you have WebGPU enabled: https://github.com/Lichtso/contrast_renderer
    comment by Lichtso · 2022-12-14 · in Rust: State of GUI, December 2022
  9. …approach to filling curves. I have implemented a GPU vector renderer using that: https://github.com/Lichtso/contrast_renderer Here the implicit curve filling extracted as a shader toy: https://www.shadertoy.com/view/WlcBRn It can even do c
    comment by Lichtso · 2022-08-10 · in Vector graphics on GPU