{"id":13508361,"url":"https://github.com/mmmries/chunky_svg","last_synced_at":"2025-04-14T19:55:06.149Z","repository":{"id":29082270,"uuid":"32610446","full_name":"mmmries/chunky_svg","owner":"mmmries","description":"An Elixir library for generating SVG images","archived":false,"fork":false,"pushed_at":"2021-12-14T12:49:49.000Z","size":31,"stargazers_count":32,"open_issues_count":5,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T08:19:28.739Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mmmries.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-20T22:33:17.000Z","updated_at":"2024-09-22T09:46:38.000Z","dependencies_parsed_at":"2022-08-07T14:01:12.521Z","dependency_job_id":null,"html_url":"https://github.com/mmmries/chunky_svg","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmmries%2Fchunky_svg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmmries%2Fchunky_svg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmmries%2Fchunky_svg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmmries%2Fchunky_svg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmmries","download_url":"https://codeload.github.com/mmmries/chunky_svg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248952197,"owners_count":21188422,"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":"2024-08-01T02:00:51.998Z","updated_at":"2025-04-14T19:55:06.129Z","avatar_url":"https://github.com/mmmries.png","language":"Elixir","funding_links":[],"categories":["Images"],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/mmmries/chunky_svg.svg)](https://travis-ci.org/mmmries/chunky_svg)\n[![Hex.pm](https://img.shields.io/hexpm/v/chunky_svg.svg)](https://hex.pm/packages/chunky_svg)\n\nChunky SVG\n=========\n\nThis library is inspired by [the Ruby library \"Chunky PNG\"](https://github.com/wvanbergen/chunky_png).\n\nIt is meant as an experiment to play with the idea of representing expressing charts or visualizations in a higher-level language that renders down to SVG.\n\nProject Status\n==============\n\nThis is a for-fun and for-learning project. It is not being used in any production systems that I am aware of.\n\nWhat Can I Draw?\n================\n\nYou can drawn any of the SVG primitives like this:\n\n```elixir\nChunkySVG.render([{:circle, %{cx: 50, cy: 50, r: 40}, nil}])\n```\n\nWhich would generate this:\n\n\u003csvg viewBox=\"0 0 100 100\" height=\"100\" width=\"100\"\u003e\n  \u003ccircle cx=\"50\" cy=\"50\" r=\"40\" /\u003e\n\u003c/svg\u003e\n\nChunkySVG also knows how to draw other things in terms of SVG primitives:\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n      `{:hexagon, %{cx: 50, cy: 50, r: 40}}`\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003cimg height=\"100\" width=\"100\" src=\"http://mmmries.github.io/chunky_svg/examples/hexagon.svg\" /\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n      `{:pentagon, %{cx: 50, cy: 50, r: 40}}`\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003cimg height=\"100\" width=\"100\" src=\"http://mmmries.github.io/chunky_svg/examples/pentagon.svg\" /\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n      `{:octagon, %{cx: 50, cy: 50, r: 40}}`\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003cimg height=\"100\" width=\"100\" src=\"http://mmmries.github.io/chunky_svg/examples/octagon.svg\" /\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmmries%2Fchunky_svg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmmries%2Fchunky_svg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmmries%2Fchunky_svg/lists"}