{"id":21581541,"url":"https://github.com/thoughtscript/exp_whiteboard_js_2023","last_synced_at":"2025-03-18T08:14:34.186Z","repository":{"id":234975412,"uuid":"789842574","full_name":"Thoughtscript/exp_whiteboard_js_2023","owner":"Thoughtscript","description":"Experiments with the Canvas API","archived":false,"fork":false,"pushed_at":"2024-12-29T23:01:41.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T14:44:59.211Z","etag":null,"topics":["canvas","html5","javascript"],"latest_commit_sha":null,"homepage":"https://thoughtscript.github.io/exp_whiteboard_js_2023/","language":"JavaScript","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/Thoughtscript.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":"2024-04-21T17:46:37.000Z","updated_at":"2024-12-29T23:01:44.000Z","dependencies_parsed_at":"2024-11-24T18:03:17.172Z","dependency_job_id":null,"html_url":"https://github.com/Thoughtscript/exp_whiteboard_js_2023","commit_stats":null,"previous_names":["thoughtscript/exp_whiteboard_js","thoughtscript/exp_whiteboard_js_2023"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Fexp_whiteboard_js_2023","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Fexp_whiteboard_js_2023/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Fexp_whiteboard_js_2023/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thoughtscript%2Fexp_whiteboard_js_2023/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thoughtscript","download_url":"https://codeload.github.com/Thoughtscript/exp_whiteboard_js_2023/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244181391,"owners_count":20411605,"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":["canvas","html5","javascript"],"created_at":"2024-11-24T14:12:52.182Z","updated_at":"2025-03-18T08:14:34.157Z","avatar_url":"https://github.com/Thoughtscript.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# exp_whiteboard_js\n\n[![](https://img.shields.io/badge/Canvas-API-orange.svg)](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API)\n\nAn experiment to get more acquainted with the [Canvas API](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API) (I was looking into this a long time ago and wanted to revisit this topic).\n\nI was also concerned by the lack of simple drawing tools and found the following example inspiring: https://github.com/os1ma/handwriting-canvas/blob/main/LICENSE. Whole companies and websites have launched to do this kind of thing and I was surprised at how easy it is to implement from scratch.\n\nGood to practice proper Library and SDK design.\n\n## Use\n\n### Drawing\n\n1. Use your mouse to draw lines, curves, etc. \n2. **Hold-Down** the **Left-Mouse-Button** to do so.\n\n### Erase\n\n1. Select **Erase**.\n1. Use your mouse to erase specific parts of your drawings.\n2. **Hold-Down** the **Left-Mouse-Button** to do so.\n\n\u003e Select **Erase** again to draw once more!\n\n### Clear the Whiteboard (Entirely)\n\n1. Select **Clear** to reset the page/return it to its blank state.\n\n### Save\n\n1. Select **Save** to download your drawing.\n2. (You can import these or use them to generate an inventory of Machine Learning items for [Numpy](https://numpy.org/) - say for Image Recognition).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtscript%2Fexp_whiteboard_js_2023","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthoughtscript%2Fexp_whiteboard_js_2023","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtscript%2Fexp_whiteboard_js_2023/lists"}