{"id":25894621,"url":"https://github.com/larpon/sgldraw","last_synced_at":"2025-03-02T22:02:24.403Z","repository":{"id":40560422,"uuid":"475794460","full_name":"larpon/sgldraw","owner":"larpon","description":"An experimental real-time vector render V module based on `sokol.sgl`","archived":false,"fork":false,"pushed_at":"2025-02-18T15:01:36.000Z","size":57,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-18T16:21:38.301Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"V","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/larpon.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-30T08:47:33.000Z","updated_at":"2025-02-18T15:01:39.000Z","dependencies_parsed_at":"2024-06-12T23:00:05.962Z","dependency_job_id":"24a10b34-717a-4e53-89a2-2de866ee9374","html_url":"https://github.com/larpon/sgldraw","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larpon%2Fsgldraw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larpon%2Fsgldraw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larpon%2Fsgldraw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larpon%2Fsgldraw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/larpon","download_url":"https://codeload.github.com/larpon/sgldraw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241577073,"owners_count":19984941,"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","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":[],"created_at":"2025-03-02T22:01:50.667Z","updated_at":"2025-03-02T22:02:24.390Z","avatar_url":"https://github.com/larpon.png","language":"V","funding_links":[],"categories":["Recently Updated","Libraries"],"sub_categories":["[Feb 28, 2025](/content/2025/02/28/README.md)","Graphics"],"readme":"# sgldraw\n\n`sgldraw` is a GPU accelerated, fairly performant, V module for\ndrawing vector shapes through `sokol.sgl`.\n\nThe example can be run with: `v run examples/app.v`:\n![screenshot](https://raw.githubusercontent.com/larpon/sgldraw/master/img/screenshot.png)\n\nThe special thing about `sgldraw` is that it's real-time - meaning that it'll draw all\nshapes from scratch 60 frames per second.\n\nIt also handles line widths \u003e 1 - which makes the shapes look more like they'd do in\ne.g. Inkscape. All shapes can also be animated with `sgl` transforms or by changing\neach vertice coordinate the shapes is made up from.\n\n## Why\nIt was an experiment on doing real-time vector graphics and also\nto explore a way to package vector shape drawing into a self-contained\nand standalone module.\n\n`sgldraw` has served as a personal sandbox but\nI'm releasing it to the public in case some of the code might\nbe of interest to anyone.\n\n## Install\n\n```bash\ngit clone https://github.com/larpon/sgldraw.git ~/.vmodules/sgldraw\n```\nWhen `sgldraw` is in `~/.vmodules/` you can run the examples and import\nit as a normal V module with `import sgldraw`.\n\n## Notes\n\n**Legacy project**\n\nIt's not completely abandoned, but my focus is currently elsewhere\nin V-land.\n\n**Licenses**\n\nSome code found in this module is adapted from code originally written by\nChris H.F. Tsang published under the [CPOL License](https://en.wikipedia.org/wiki/Code_Project_Open_License).\n\nAlso note that the `earcut` module is based on work licenced under the [ISC License](https://github.com/mapbox/earcut/blob/master/LICENSE).\nThe version of `earcut` is from [Larpon/earcut](https://github.com/larpon/earcut/)@[1790a9e](https://github.com/larpon/earcut/tree/1790a9e60dae09889b95b337acb205699fd4f51e).\n\nBoth CPOL and ISC are very permissive licenses that ressembles MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flarpon%2Fsgldraw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flarpon%2Fsgldraw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flarpon%2Fsgldraw/lists"}