{"id":13906453,"url":"https://github.com/arhea/brushjs","last_synced_at":"2025-04-23T18:04:34.615Z","repository":{"id":1656615,"uuid":"2382698","full_name":"arhea/brushjs","owner":"arhea","description":"Provides a single API for drawing Canvas or SVG elements.","archived":false,"fork":false,"pushed_at":"2016-08-11T20:24:10.000Z","size":32,"stargazers_count":14,"open_issues_count":0,"forks_count":12,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-23T18:04:19.273Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/arhea.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":"2011-09-14T02:08:25.000Z","updated_at":"2023-01-07T04:49:55.000Z","dependencies_parsed_at":"2022-08-30T10:51:25.844Z","dependency_job_id":null,"html_url":"https://github.com/arhea/brushjs","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/arhea%2Fbrushjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arhea%2Fbrushjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arhea%2Fbrushjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arhea%2Fbrushjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arhea","download_url":"https://codeload.github.com/arhea/brushjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250487530,"owners_count":21438612,"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-06T23:01:36.149Z","updated_at":"2025-04-23T18:04:34.593Z","avatar_url":"https://github.com/arhea.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# BrushJS\nBrushJS provides a single API for drawing on the canvas as well as writing to SVG.\n\n## Example\n\n```html\n\u003ccanvas id=\"SVG\" width=\"600\" height=\"600\" style=\"border: solid 1px #999999; float: left;\"\u003eYour browser does not support canvas.\u003c/canvas\u003e\n\u003cdiv id=\"xml\" style=\"border: solid 1px #999999; float: left;\"\u003e\u003c/div\u003e\n```\n\n```javascript\nvar ctx = new Brush( \"#SVG\" );\nctx.fillStyle = \"#333333\";\nctx.font = \"20px sans-serif\";\nctx.fillText( \"Sample Text\" , 300 , 300 );\n\ndocument.getElementById( \"xml\" ).innerHTML = ctx.toDataURL( \"image/svg+xml\" );\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farhea%2Fbrushjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farhea%2Fbrushjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farhea%2Fbrushjs/lists"}