{"id":18709117,"url":"https://github.com/jojoee/pixel-mask-generator","last_synced_at":"2025-10-13T09:46:44.611Z","repository":{"id":57325016,"uuid":"105424508","full_name":"jojoee/pixel-mask-generator","owner":"jojoee","description":":video_game: :game_die: Procedural pixel generator (mask) + visualizer","archived":false,"fork":false,"pushed_at":"2021-08-22T11:34:00.000Z","size":146,"stargazers_count":17,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-30T12:39:27.759Z","etag":null,"topics":["generator","mask","pcg","pcgen","pixel","pixel-sprite-generator","visualization"],"latest_commit_sha":null,"homepage":"https://jojoee.github.io/pixel-mask-generator","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/jojoee.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":"2017-10-01T06:47:17.000Z","updated_at":"2025-06-19T14:43:52.000Z","dependencies_parsed_at":"2022-08-31T00:01:05.752Z","dependency_job_id":null,"html_url":"https://github.com/jojoee/pixel-mask-generator","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jojoee/pixel-mask-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fpixel-mask-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fpixel-mask-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fpixel-mask-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fpixel-mask-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jojoee","download_url":"https://codeload.github.com/jojoee/pixel-mask-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fpixel-mask-generator/sbom","scorecard":{"id":529440,"data":{"date":"2025-08-11","repo":{"name":"github.com/jojoee/pixel-mask-generator","commit":"b2596fae829fc22a02446a64059afd7d50fb5694"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/15 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T05:21:31.569Z","repository_id":57325016,"created_at":"2025-08-20T05:21:31.569Z","updated_at":"2025-08-20T05:21:31.569Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014566,"owners_count":26085536,"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-13T02:00:06.723Z","response_time":61,"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":["generator","mask","pcg","pcgen","pixel","pixel-sprite-generator","visualization"],"created_at":"2024-11-07T12:26:21.330Z","updated_at":"2025-10-13T09:46:44.572Z","avatar_url":"https://github.com/jojoee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pixel-mask-generator\n\n[![Travis](https://img.shields.io/travis/jojoee/pixel-mask-generator.svg)](https://travis-ci.org/jojoee/pixel-mask-generator)\n[![Codecov](https://img.shields.io/codecov/c/github/jojoee/pixel-mask-generator.svg)](https://codecov.io/github/jojoee/pixel-mask-generator)\n[![Version - npm](https://img.shields.io/npm/v/pixel-mask-generator.svg)](https://www.npmjs.com/package/pixel-mask-generator)\n[![License - npm](https://img.shields.io/npm/l/pixel-mask-generator.svg)](http://opensource.org/licenses/MIT)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)\n\nVery inspired and copy some code from [zfedoran/pixel-sprite-generator](https://github.com/zfedoran/pixel-sprite-generator)\n\n[![pixel-mask-generator - screenshot](https://raw.githubusercontent.com/jojoee/pixel-mask-generator/master/screenshot.jpg \"pixel-mask-generator - screenshot\")](https://jojoee.github.io/pixel-mask-generator/) [![Greenkeeper badge](https://badges.greenkeeper.io/jojoee/pixel-mask-generator.svg)](https://greenkeeper.io/)\n\n## Installation\n\n```\n// npm\nnpm install pixel-mask-generator --save\nconst pmg = require('pixel-mask-generator')\n\n// Bower\nbower install pixel-mask-generator --save\n\u003cscript src=\"bower_components/pixel-mask-generator/dist/index.js\"\u003e\u003c/script\u003e\n```\n\n## Example usage\n\n```javascript\nconst mask = new pmg.Mask([\n  0, 0, 0, 0, 0, 0,\n  0, 0, 0, 0, 1, 1,\n  0, 0, 0, 0, 1, -1,\n  0, 0, 0, 1, 1, -1,\n  0, 0, 0, 1, 1, -1,\n  0, 0, 1, 1, 1, -1,\n  0, 1, 1, 1, 2, 2,\n  0, 1, 1, 1, 2, 2,\n  0, 1, 1, 1, 2, 2,\n  0, 1, 1, 1, 1, -1,\n  0, 0, 0, 1, 1, 1,\n  0, 0, 0, 0, 0, 0\n], 6, true, false)\nconst sprite = new pmg.Sprite(mask)\nsprite.generate()\n\n// resize and append\nconst resizedSpriteCanvasEle = pmg.util.resize(sprite.canvas, 10)\nconst body = document.body\nbody.appendChild(resizedSpriteCanvasEle)\n```\n\n## Note\n- [x] Compatible with all browsers\n- [ ] Unit test: add more tests\n- [ ] Automated scripts: browser compatibility test\n- [ ] Automated scripts: deploy to `gh-pages`\n- [ ] Branch: split code from `master` and `gh-pages`\n- [ ] Dependency: split `static/random.js` to another repository\n- [ ] Dependency: split `resize` function to another repository\n- [ ] Mask: add more masks\n- [ ] Demo: update demo page\n- [ ] Coverage: increase coverage threshold\n- [ ] Article: copy original article into the repo, in case the site and mirror are down\n- [ ] Algorithm: change algorithm toward to the original, should be symmetrical\n\n## Contribute for owner\n\n```\n$ npm install -g semantic-release-cli\n$ semantic-release-cli setup\n\nUsing above command to setup \"semantic-release\"\n```\n\n## Contribute\n1. Fork the repo\n2. Install `Node.js` and dependencies\n3. Make a branch for your change and make your changes\n4. Run `git add -A` to add your changes\n5. Run `npm run commit` (don't use `git commit`)\n6. Push your changes with `git push` then create Pull Request\n\n## Reference\n- [zfedoran/pixel-sprite-generator](https://github.com/zfedoran/pixel-sprite-generator)\n- [blipn/pixel-sprite-generator-nodejs](https://github.com/blipn/pixel-sprite-generator-nodejs)\n- [HSL and HSV](https://en.wikipedia.org/wiki/HSL_and_HSV)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjojoee%2Fpixel-mask-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjojoee%2Fpixel-mask-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjojoee%2Fpixel-mask-generator/lists"}