{"id":32284733,"url":"https://github.com/kui/pixel_canvas","last_synced_at":"2026-02-21T07:03:10.467Z","repository":{"id":18397847,"uuid":"21579246","full_name":"kui/pixel_canvas","owner":"kui","description":"A Polymer.dart custom elements to view and draw pixels","archived":false,"fork":false,"pushed_at":"2015-08-17T05:34:08.000Z","size":3244,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-15T02:00:10.622Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://kui.github.io/pixel_canvas/","language":"Dart","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/kui.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}},"created_at":"2014-07-07T17:11:03.000Z","updated_at":"2015-08-17T04:18:19.000Z","dependencies_parsed_at":"2022-09-07T16:03:23.534Z","dependency_job_id":null,"html_url":"https://github.com/kui/pixel_canvas","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kui/pixel_canvas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kui%2Fpixel_canvas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kui%2Fpixel_canvas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kui%2Fpixel_canvas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kui%2Fpixel_canvas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kui","download_url":"https://codeload.github.com/kui/pixel_canvas/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kui%2Fpixel_canvas/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29675925,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T06:23:40.028Z","status":"ssl_error","status_checked_at":"2026-02-21T06:23:39.222Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-10-23T01:36:10.285Z","updated_at":"2026-02-21T07:03:10.460Z","avatar_url":"https://github.com/kui.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"Pixel Canvas\n==============\n\nA custom element with Polymer.dart.\n\n* [Live demo](http://kui.github.io/pixel_canvas/)\n* [Example code](https://github.com/kui/dots_canvas/tree/master/example/index.html)\n\nExample Usage\n--------------\n\nIn your html:\n\n```html\n\u003cbody bgcolor=\"#ccc\"\u003e\n  \u003cpixel-canvas verticalPixels=\"10\" horizontalPixels=\"10\" pixelSize=\"50\"\u003e\n    [\n      [\"green\"],\n      [\"red\", null, \"blue\"],\n      [\"rgb(255, 128, 128)\", \"rgb(128, 255, 128)\", \"rgb(128, 128, 255)\"],\n      [null, null, \"#f00\", \"#333\", \"#ffffff\", \"#abab00\"],\n      null,\n      [],\n      [\"\", \"\"],\n      [\"rgba(0, 255, 255, 0.2)\",\n       \"rgba(0, 255, 255, 0.4)\",\n       \"rgba(0, 255, 255, 0.6)\",\n       \"rgba(0, 255, 255, 0.8)\",\n       \"rgba(0, 255, 255, 1.0)\"]\n    ]\n  \u003c/pixel-canvas\u003e\n\u003c/body\u003e\n```\n\nthen it will be renderd like:\n\n![the sample of screenshot](https://raw.githubusercontent.com/kui/pixel_canvas/master/example/screenshot1.png)\n\n`drawable` attribute\n-----------------------\n\nWhen the `drawable` attribute is attached, you can draw the canvas.\nSee [demo](http://kui.github.io/pixel_canvas/) and [it's code](https://github.com/kui/pixel_canvas/blob/master/example/index.html#L153)\n\nBuild and push gh-pages\n------------------------\n\n```sh\n$ tool/gh-pages.dart\n$ git push origin gh-pages\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkui%2Fpixel_canvas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkui%2Fpixel_canvas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkui%2Fpixel_canvas/lists"}