{"id":32155480,"url":"https://github.com/dylanxyz/nanovg.jl","last_synced_at":"2026-02-21T10:32:19.107Z","repository":{"id":61883092,"uuid":"554487040","full_name":"dylanxyz/NanoVG.jl","owner":"dylanxyz","description":"Julia bindings for the NanoVG drawing library.","archived":false,"fork":false,"pushed_at":"2022-12-16T21:50:32.000Z","size":1092,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-24T11:42:55.157Z","etag":null,"topics":["graphics","julia","opengl"],"latest_commit_sha":null,"homepage":"","language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dylanxyz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-10-19T22:32:38.000Z","updated_at":"2025-04-22T09:00:40.000Z","dependencies_parsed_at":"2022-10-23T01:15:19.746Z","dependency_job_id":null,"html_url":"https://github.com/dylanxyz/NanoVG.jl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dylanxyz/NanoVG.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanxyz%2FNanoVG.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanxyz%2FNanoVG.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanxyz%2FNanoVG.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanxyz%2FNanoVG.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dylanxyz","download_url":"https://codeload.github.com/dylanxyz/NanoVG.jl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanxyz%2FNanoVG.jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280256248,"owners_count":26299343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["graphics","julia","opengl"],"created_at":"2025-10-21T12:03:16.748Z","updated_at":"2025-10-21T12:03:18.431Z","avatar_url":"https://github.com/dylanxyz.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NanoVG\n\nJulia bindings for the [NanoVG](https://github.com/memononen/nanovg) drawing library.\n\n\u003e NanoVG is small antialiased vector graphics rendering library for OpenGL. \n\u003e It has lean API modeled after HTML5 canvas API. It is aimed to be a practical and fun toolset for building scalable user interfaces and visualizations.\n\n## Screenshot\n\n![NanoVG Demo](assets/screenshot.png)\n\n## Installation\n\nNanoVG is a \u0026nbsp;\n    \u003ca href=\"https://julialang.org\"\u003e\n        \u003cimg src=\"https://raw.githubusercontent.com/JuliaLang/julia-logo-graphics/master/images/julia.ico\" width=\"16em\"\u003e\n        Julia Language\n    \u003c/a\u003e\n    \u0026nbsp; package. To install NanoVG,\n    \u003ca href=\"https://docs.julialang.org/en/v1/manual/getting-started/\"\u003eopen\n    Julia's interactive session (known as REPL)\u003c/a\u003e and press \u003ckbd\u003e]\u003c/kbd\u003e key in the REPL to use the package mode, then type the following command:\n\u003c/p\u003e\n\n```shell\npkg\u003e add https://github.com/dylanxyz/NanoVG.jl\n```\n\n\u003e Note that NanoVG is not yet at the public registry,\n\u003e installation is done directly from this repo.\n\n## Documentation\n\nIn progress...\n\n## Basic Example\n\n```julia\nusing GLFW\nusing NanoVG\nusing ModernGL\n\nfunction main()\n   title = \"NanoVG Basic Example\"\n   width = 800\n   height = 600\n\n   window = GLFW.CreateWindow(width, height, title)\n   @assert window.handle != C_NULL \"Could not create a GLFW window 😢\"\n\n   GLFW.MakeContextCurrent(window)\n\n   # Create the NanoVG context with the GL3 implementation\n   NanoVG.create(NanoVG.GL3, antialiasing=true)\n\n   while true\n      if GLFW.WindowShouldClose(window) break end\n      # get the framebuffer size\n      width, height = GLFW.GetFramebufferSize(window)\n      # get the window size\n      winWidth, winHeight = GLFW.GetWindowSize(window)\n      # dpr = device pixel ratio\n      dpr = width / winWidth\n      # set the viewport\n      glViewport(0, 0, width, height)\n      # create a new frame\n      NanoVG.frame(winWidth, winHeight, dpr)\n      # drawing functions should be called here\n      \n      # set the fill color\n      fillcolor(rgb(128, 32, 56))\n      # draw a filled circle at the center of the screen\n      circle(width/2, height/2, 128, :fill)\n\n      # render the frame to the screen\n      NanoVG.render()\n\n      GLFW.SwapBuffers(window)\n      GLFW.PollEvents()\n   end\n\n   NanoVG.dispose()\n   GLFW.DestroyWindow(window)\nend\n\nmain()\n```\n\n## License\n\nThis package is licensed under the [MIT](LICENSE) license.\n\nNanoVG is licensed under the [zlib license](https://github.com/memononen/nanovg/blob/master/LICENSE.txt).\n\nAdditional licenses for [assets](examples/assets):\n\n- Roboto is licensed under the [Apache License](https://www.apache.org/licenses/LICENSE-2.0)\n- Entypo licensed under CC BY-SA 4.0.\n- Noto Emoji licensed under [SIL Open Font License, Version 1.1](http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi\u0026id=OFL)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanxyz%2Fnanovg.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdylanxyz%2Fnanovg.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanxyz%2Fnanovg.jl/lists"}