{"id":16237557,"url":"https://github.com/lexus2k/canvas","last_synced_at":"2025-10-27T13:32:01.665Z","repository":{"id":108162613,"uuid":"199947264","full_name":"lexus2k/canvas","owner":"lexus2k","description":"Canvas graphics library","archived":false,"fork":false,"pushed_at":"2024-08-19T17:26:43.000Z","size":814,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-14T17:06:59.952Z","etag":null,"topics":["arduino","arduino-library","canvas2d","gfx","graphics"],"latest_commit_sha":null,"homepage":null,"language":"C","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/lexus2k.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"lexus2k","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://www.paypal.me/lexus2k"]}},"created_at":"2019-08-01T00:24:18.000Z","updated_at":"2025-06-15T13:24:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"d88c9d36-d0a1-458f-a342-95b1a70a0f5d","html_url":"https://github.com/lexus2k/canvas","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lexus2k/canvas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexus2k%2Fcanvas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexus2k%2Fcanvas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexus2k%2Fcanvas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexus2k%2Fcanvas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lexus2k","download_url":"https://codeload.github.com/lexus2k/canvas/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lexus2k%2Fcanvas/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279020085,"owners_count":26086805,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["arduino","arduino-library","canvas2d","gfx","graphics"],"created_at":"2024-10-10T13:36:08.287Z","updated_at":"2025-10-14T17:07:10.725Z","avatar_url":"https://github.com/lexus2k.png","language":"C","readme":"# Canvas graphics library for small embedded systems\n\n[tocstart]: # (toc start)\n\n  * [Introduction](#introduction)\n  * [Key Features](#key-features)\n  * [Why canvas library](#why-canvas-library)\n  * [Setting up](#setting-up)\n  * [License](#license)\n\n[tocend]: # (toc end)\n\n## Introduction\n\nSmall canvas graphics library for small embedded systems\n\n## Key Features\n\n * Supports\n   * monochrome color buffers\n   * RGB 332 color buffers\n   * RGB 565 color buffers\n * Small flash footprint\n * Easy to use\n   * Used in [ssd1306](https://github.com/lexus2k/lcdgfx) library\n\nExample:\n\n```.cpp\n// Create 8-bit RGB (3-3-2) canvas 64x64 pixels\nNanoCanvas\u003c64,64,8\u003e canvas;\ncanvas.clear();\ncanvas.drawLine(10,10,30,23);\n// To get width, height, and access the bitmap data use methods below\n// canvas.width(), canvas.height(), canvas.getData()\n// If you need to know, how many bytes in single canvas row, use\n// canvas.pitch() method.\n```\n\n## Why canvas library\n\nThe main idea is to have small flash footprint. The [test](examples/test/test.ino) demo example\ncan be compiled either with Adafruit GFX support or canvas GFX support. Just only having Adafruit\nGFX 8-bit buffer defined in your application requires 6KiB of flash (for AVR), while the same\ncode with canvas gfx library uses less than 1KiB of flash.\n\n## Setting up\n\n*Setting up for Arduino from github sources)*\n * Download source from https://github.com/lexus2k/canvas\n * Put the sources to Arduino/libraries/canvas/ folder\n\n*Using with plain avr-gcc:*\n * Download source from https://github.com/lexus2k/canvas\n * Build the library (variant 1)\n   \u003e cd canvas/src \u0026\u0026 make -f Makefile.avr MCU=your_mcu\n\n   * Link library to your project (refer to [Makefile.avr](examples/Makefile.avr) in examples folder).\n * Build demo code (variant 2)\n   \u003e cd canvas/tools \u0026\u0026 ./build_and_run.sh -p avr -m `your_mcu` test/test\n\n *For esp32:*\n  * Download source from https://github.com/lexus2k/canvas\n  * Put downloaded sources to components/canvas/ folder.\n  * Compile your project as described in ESP-IDF build system documentation\n\nFor more information about this library, please, visit https://github.com/lexus2k/canvas or\nrefer to [Documentation](http://lexus2k.github.io/canvas).\nIf you found any problem or have any idea, please, report to Issues section.\n\n## License\n\nThe library is free. If this project helps you, you can give me a cup of coffee.\n\nMIT License\n\nCopyright (c) 2016-2019, Alexey Dynda\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n","funding_links":["https://ko-fi.com/lexus2k","https://www.paypal.me/lexus2k"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexus2k%2Fcanvas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flexus2k%2Fcanvas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flexus2k%2Fcanvas/lists"}