{"id":16504481,"url":"https://github.com/22a/cs4012-lab1","last_synced_at":"2025-07-10T08:44:02.725Z","repository":{"id":87798344,"uuid":"73557772","full_name":"22a/cs4012-lab1","owner":"22a","description":":art: Web service that renders shapes described by a DSL as SVG","archived":false,"fork":false,"pushed_at":"2016-11-21T23:30:04.000Z","size":199,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T00:51:13.904Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/22a.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":"2016-11-12T14:35:42.000Z","updated_at":"2016-11-21T23:34:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"5be95e0a-4060-4859-8ebc-fdf264e1e4b8","html_url":"https://github.com/22a/cs4012-lab1","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/22a/cs4012-lab1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/22a%2Fcs4012-lab1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/22a%2Fcs4012-lab1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/22a%2Fcs4012-lab1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/22a%2Fcs4012-lab1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/22a","download_url":"https://codeload.github.com/22a/cs4012-lab1/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/22a%2Fcs4012-lab1/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264552349,"owners_count":23626702,"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-10-11T15:03:25.018Z","updated_at":"2025-07-10T08:44:02.668Z","avatar_url":"https://github.com/22a.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SVGoodness\n\nA web service that lets you describe drawings in a custom shape DSL and have them rendered as SVG in realtime in front of your very eyes.\n\n![Screenshot of SVGoodness](/.github/screenshot.png?raw=true \"Screenshot of SVGoodness\")\n\n\n## Prerequisites\n\n* [Haskell Stack](https://www.haskellstack.org)\n\n\n## Installation\n\nClone the repo:\n```bash\ngit clone https://github.com/22a/cs4012-lab1.git \u0026\u0026 cd cs4012-lab1\n```\n\nSetup the project:\n```bash\nstack setup\n```\n\nBuild the project:\n```bash\nstack build\n```\n\nRun the server:\n```bash\nstack exec cs4012-lab1-exe\n```\n\n## Usage\n\nNavitage to `localhost:3000` in your browser\n\n\n## Shape DSL Syntax\n\nA `Drawing` is a list of `Shapes`.\nA `Shape` is a triple of a basic shape, the stylesheet for that shape, and a transformation to be applied to that shape.\nTransformations are composed with the infix `:\u003e` operator and are applied from left to right.\n\n\n### Possible Basic Shapes\n* Empty\n* Square\n* Circle\n\n### Stylesheets\nStylesheets are a triple of stroke width, stroke colour, and fill colour. All three are mandatory.\n\n### Possible Transformations\n* Ident\n* Translate tx ty\n* Scale sx sy\n* SkewX angle\n* SkewY angle\n* Rotate angle\n\nThe order of transformation matters, these two are not the same:\n* `(Scale 2.0 2.0)       :\u003e (Translate 10.0 10.0)`\n* `(Translate 10.0 10.0) :\u003e (Scale 2.0 2.0)`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F22a%2Fcs4012-lab1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F22a%2Fcs4012-lab1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F22a%2Fcs4012-lab1/lists"}