{"id":18008293,"url":"https://github.com/tanakaworld/ng-pixel","last_synced_at":"2025-07-29T08:04:16.353Z","repository":{"id":33370565,"uuid":"37015448","full_name":"tanakaworld/ng-pixel","owner":"tanakaworld","description":"A directive to generate pixel pattern","archived":false,"fork":false,"pushed_at":"2015-12-28T01:32:46.000Z","size":1588,"stargazers_count":10,"open_issues_count":8,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-24T02:05:47.556Z","etag":null,"topics":["angularjs"],"latest_commit_sha":null,"homepage":"","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/tanakaworld.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":"2015-06-07T12:17:05.000Z","updated_at":"2021-11-22T08:47:14.000Z","dependencies_parsed_at":"2022-09-05T01:00:36.665Z","dependency_job_id":null,"html_url":"https://github.com/tanakaworld/ng-pixel","commit_stats":null,"previous_names":["tanakayutaro/ng-pixel"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tanakaworld/ng-pixel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanakaworld%2Fng-pixel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanakaworld%2Fng-pixel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanakaworld%2Fng-pixel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanakaworld%2Fng-pixel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tanakaworld","download_url":"https://codeload.github.com/tanakaworld/ng-pixel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tanakaworld%2Fng-pixel/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267652298,"owners_count":24122092,"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-07-29T02:00:12.549Z","response_time":2574,"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":["angularjs"],"created_at":"2024-10-30T01:18:13.355Z","updated_at":"2025-07-29T08:04:16.227Z","avatar_url":"https://github.com/tanakaworld.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ngPixel - Generate pixel pattern using AngularJS\nAn AngularJS simple directive that generate pixel pattern.\n\n[![Build Status](https://travis-ci.org/tanakaworld/ng-pixel.svg?branch=master)](https://travis-ci.org/TanakaYutaro/ng-pixel)\n\n\n![ngPixel logo](https://raw.githubusercontent.com/wiki/tanakayutaro/ng-pixel/images/ng-pixel-logo.png)\n\n## Dependencies\n* angular.js, any version starting with 1\n\n## Installation\n\n#### Manual Download\nDownload the from [here](https://github.com/tanakaworld/ng-pixel/releases/)\n\n#### Bower\n```\nbower install ng-pixel\n```\n\n## Introduction\n\n1. Copy `ng-pixel.js` to your project directory\n\n2. Set `ngPixel` as a dependency in your module\n\n\t```javascript\n\tangular.module(\"myApp\", [\"ngPixel\"])\n\t```\n\n3. Add ng-pixel directive to the wanted element\n\n  ```html\n  \u003cng-pixel data='[{\"xels\":[{\"id\":0,\"color\":\"#106CB7\"},{\"id\":1,\"color\":\"#F7EF22\"},{\"id\":2,\"color\":\"#D11E45\"}]},{\"xels\":[{\"id\":3,\"color\":\"#F7923A\"},{\"id\":4,\"color\":\"FFFFFF\"},{\"id\":5,\"color\":\"#F7EF22\"}]},{\"xels\":[{\"id\":6,\"color\":\"#139B69\"},{\"id\":7,\"color\":\"#D11E45\"},{\"id\":8,\"color\":\"#106CB7\"}]}]'/\u003e\n  ```\nUsing [ngPixel editor](http://tanakaworld.github.io/ng-pixel/editor/), you can generate json for `data` attribute.\n\n4. Done! You can draw following pixel pattern!!\n\n\t![ngPixel example 2](https://raw.githubusercontent.com/wiki/tanakayutaro/ng-pixel/images/ngPixel-Installation-1.png)\n\n## ngPixel attributes\n* data : Pixel color info. [ngPixel editor](http://tanakaworld.github.io/ng-pixel/editor/) support to genarating.\n* config : Each pixel size (px). Default `width: 20`, `height: 20`\n\n\t```html\n\t\u003cng-pixel data='Generated color info' config='{ width: 30, height: 30 }' /\u003e\n\t```\n\n## Editor\n\nUsing [ngPixel editor](http://tanakaworld.github.io/ng-pixel/editor/), you can generate pixel data.\n\n### STEP 1 Set cell numbers\nSelect the number of width, height.\n\n### STEP 2 Pick colors\nClick cell, and select the color.\n\n![ngPixel example 1](https://raw.githubusercontent.com/wiki/tanakayutaro/ng-pixel/images/ngPixel-Editor-1.png)\n\n### STEP 3 Copy result\nCopy generated code, and set to data property of ng-pixel tag.\n\n\n## Example\ncoming soon...\n\n![ngPixel example 1](https://raw.githubusercontent.com/wiki/tanakayutaro/ng-pixel/images/ngPixel-Example-1.png)\n\n\n## TODO\n* ngPixel\n\t* event binding (each cells)\n\t* pixel animation\n* ngPixel Editor\n\t* import ngPixel json\n\t* import image, and convert to json\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanakaworld%2Fng-pixel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftanakaworld%2Fng-pixel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanakaworld%2Fng-pixel/lists"}