plutovg
plutovg copied to clipboard
Tiny 2D vector graphics library in C
 ```c for (int x = 0; x < 10; x++) { for (int y = 0; y < 10; y++) { float rx = 10 + x * 40,...
fr: 100, cr: 5 ```c #include "plutovg.h" int main(void) { const int width = 150; const int height = 150; plutovg_surface_t *surface = plutovg_surface_create(width, height); plutovg_t *pluto = plutovg_create(surface); plutovg_save(pluto);...
``` Your browser does not support the canvas element. var canvas = document.getElementById("myCanvas"); var ctx = canvas.getContext("2d"); ctx.fillStyle = "#FF0000"; ctx.fillRect(0,0,150,75); ctx.fillStyle = "#00FF00"; ctx.fillRect(50,50,150,75); ctx.fillStyle = "#0000FF"; ctx.fillRect(100,100,150,75); ```...
# Example : ```c plutovg_font_book_t* book = plutovg_font_book_create(); plutovg_font_book_add_from_file(book, "fonts/Helvetica.ttf", "Helvetica", plutovg_font_style_normal); plutovg_font_book_add_from_file(book, "fonts/Helvetica-Bold.ttf", "Helvetica", plutovg_font_style_bold); ``` ### Setting Font : ```c plutovg_surface_t* surface = plutovg_surface_create(128, 128); plutovg_t* pluto =...
``` static unsigned int __inline clz(unsigned int x) { int c = 31; x &= ~x + 1; if (n & 0x0000FFFF) c -= 16; if (n & 0x00FF00FF) c...
This declares the version of the library to be 1.0 and enables proper `find_package` usage by consuming projects. Versioning is required to not produce broken CMake packages that have no...
Hello, I am experimenting with this library to implement a simple embedded graphic UI by creating a surface at the frame buffer address. Everything works fine as long as I...
Resolves #31 After introducing the updates from lunasvg, plutovg can be used as a submodule from lunasvg.