{"repo":"fabioarnold/nanovg-zig","free":true,"listed":false,"github":"https://github.com/fabioarnold/nanovg-zig","clone":"git clone https://github.com/fabioarnold/nanovg-zig.git","description":"A small anti-aliased hardware-accelerated vector graphics library","language":"C","stars":246,"topics":["2d","gamedev","graphics","opengl","vector","vector-graphics","zig","zig-package"],"license":"Zlib","category":"game-templates","readme_excerpt":"NanoVG - Zig Version ========== This is a rewrite of the original NanoVG library using the Zig programming language. NanoVG is a small anti-aliased hardware-accelerated vector graphics library. It has a lean API modeled after the HTML5 canvas API. It is aimed to be a practical and fun toolset for building scalable user interfaces or any other real time visualizations. Screenshot Examples There's a WebAssembly example using WebGL which you can immediately try here: https://fabioarnold.github.io/nanovg-zig. The source for this example can be found in example wasm.zig and can be built by running zig build -Dtarget=wasm32-freestanding . A native cross-platform example using GLFW can be found in example glfw.zig and can be built and run with zig build run . It requires GLFW to be installed. On Windows vcpkg is an additional requirement. For an example on how to use nanovg-zig in your project's build.zig you can take a look at https://github.com/fabioarnold/MiniPixel/blob/main/build.zig. Features Basic shapes: rect, rounded rect, ellipse, arc Arbitrary paths of bezier curves with holes Arbitrary stack-based 2D transforms Strokes with different types of caps and joins Fills with gradient support Types of gradients: linear, box (useful for shadows), radial Text with automatic linebreaks and blurring Images as pattern for fills and strokes Features exclusive to the Zig version Clip paths Image blurring Usage ===== The NanoVG API is modeled loosely on the HTML5 canvas API. If you know ","default_branch":null,"files":null,"tree":[],"storefront":"/r/fabioarnold","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fabioarnold/nanovg-zig/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}