{"id":13760511,"url":"https://github.com/rm-hull/monet","last_synced_at":"2025-05-10T11:30:20.184Z","repository":{"id":4686858,"uuid":"5833602","full_name":"rm-hull/monet","owner":"rm-hull","description":"A ClojureScript visual library","archived":false,"fork":true,"pushed_at":"2017-01-06T18:10:42.000Z","size":155,"stargazers_count":166,"open_issues_count":5,"forks_count":10,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-09T06:47:57.123Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.destructuring-bind.org/monet/","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ibdknox/monet","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rm-hull.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2012-09-16T21:55:44.000Z","updated_at":"2023-03-29T10:46:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rm-hull/monet","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/rm-hull%2Fmonet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rm-hull%2Fmonet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rm-hull%2Fmonet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rm-hull%2Fmonet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rm-hull","download_url":"https://codeload.github.com/rm-hull/monet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253409863,"owners_count":21903979,"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-03T13:01:11.821Z","updated_at":"2025-05-10T11:30:19.893Z","avatar_url":"https://github.com/rm-hull.png","language":"Clojure","funding_links":[],"categories":["Clojure","Awesome ClojureScript"],"sub_categories":["Canvas"],"readme":"# monet\n[![Build Status](https://travis-ci.org/rm-hull/monet.svg?branch=master)](http://travis-ci.org/rm-hull/monet)\n[![Dependencies Status](https://jarkeeper.com/rm-hull/monet/status.svg)](https://jarkeeper.com/rm-hull/monet)\n[![Downloads](https://jarkeeper.com/rm-hull/monet/downloads.svg)](https://jarkeeper.com/rm-hull/monet)\n[![Clojars Project](https://img.shields.io/clojars/v/rm-hull/monet.svg)](https://clojars.org/rm-hull/monet)\n[![Maintenance](https://img.shields.io/maintenance/yes/2017.svg?maxAge=2592000)]()\n\nmonet is a small ClojureScript library to make it easier (and\nperformant) to work with canvas and visuals.\n\n### Including in your project\n\nThere is a version hosted at [Clojars](https://clojars.org/rm-hull/monet).\nFor leiningen include a dependency:\n\n```clojure\n[rm-hull/monet \"0.3.0\"]\n```\n\nFor maven-based projects, add the following to your `pom.xml`:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003erm-hull\u003c/groupId\u003e\n  \u003cartifactId\u003emonet\u003c/artifactId\u003e\n  \u003cversion\u003e0.2.2\u003c/version\u003e\n\u003c/dependency\u003e\n```\n## Usage\n\n```clojure\n(ns game.core\n  (:require [monet.canvas :as canvas])\n\n(def canvas-dom (.getElementById js/document \"canvas\"))\n\n(def monet-canvas (canvas/init canvas-dom \"2d\"))\n\n(canvas/add-entity monet-canvas :background\n                   (canvas/entity {:x 0 :y 0 :w 600 :h 600} ; val\n                                  nil                       ; update function\n                                  (fn [ctx val]             ; draw function\n                                    (-\u003e ctx\n                                        (canvas/fill-style \"#191d21\")\n                                        (canvas/fill-rect val)))))\n```\n\n## Documentation\n\nSee the [API Documentation](http://rm-hull.github.io/monet).\n\nFor more info on what the functions do look at the camel case versions\nin JS docs (for example the\n[mozilla developer network](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Canvas_tutorial?redirectlocale=en-US\u0026redirectslug=Canvas_tutorial)).\n\nSome futher usage details can be found in\n[doc/GUIDE.md](https://github.com/rm-hull/monet/blob/master/doc/GUIDE.md)\n\n## License\n\nCopyright (C) 2011-14 Chris Granger, Richard Hull \u0026 others.\n\nDistributed under the Eclipse Public License, the same as Clojure.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frm-hull%2Fmonet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frm-hull%2Fmonet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frm-hull%2Fmonet/lists"}