All Projects → jojoee → pixel-mask-generator

jojoee / pixel-mask-generator

Licence: MIT license
🎮 🎲 Procedural pixel generator (mask) + visualizer

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to pixel-mask-generator

Opencv Cheat Sheet
Opencv cheat sheet for C++
Stars: ✭ 30 (+100%)
Mutual labels:  pixel, mask
ColorByNumber-iOS
Color by Number: a pixel coloring game on iOS.
Stars: ✭ 50 (+233.33%)
Mutual labels:  pixel
prompt-password-strength
Custom mask function for prompt-password that adds a 'strength progress meter' that changes color as the password strength increases. Uses zxcvbn, the popular password strength estimation tool brought to you by dropbox.
Stars: ✭ 18 (+20%)
Mutual labels:  mask
dalmoori-font
예쁜 도트 그래픽 한글 글꼴
Stars: ✭ 82 (+446.67%)
Mutual labels:  pixel
pixelart.js
punks.js - draw punk (pixel) art images using any design (in ascii text) in any colors; incl. 2x/4x/8x zoom for bigger sizes and more
Stars: ✭ 132 (+780%)
Mutual labels:  pixel
PixelGlitch
Image glitch visualization using various Pixel Sorting methods for Processing
Stars: ✭ 25 (+66.67%)
Mutual labels:  pixel
Lpd8806
Arduino library for LED strips and pixels using LPD8806 (and probably LPD8803/LPD8809)
Stars: ✭ 207 (+1280%)
Mutual labels:  pixel
mask export
Export your mask elements as extension
Stars: ✭ 45 (+200%)
Mutual labels:  mask
vite-plugin-radar
All in one analytics loader for vite
Stars: ✭ 64 (+326.67%)
Mutual labels:  pixel
8192px
A collaborative pixel art experiment
Stars: ✭ 64 (+326.67%)
Mutual labels:  pixel
FormatEditText
格式化输入框,可用来格式化数字、金额、号码等; FormatEditText can be used as a formatted text input box
Stars: ✭ 121 (+706.67%)
Mutual labels:  mask
ark-pixel-font
Open source Pan-CJK pixel font / 开源的泛中日韩像素字体
Stars: ✭ 1,767 (+11680%)
Mutual labels:  pixel
Pixel-Wallpaper-app
An app full of Constantly updating Google Pixel wallpapers
Stars: ✭ 120 (+700%)
Mutual labels:  pixel
react-native-floating-label-input
A customizable React Native TextInput with its placeholder always shown. Includes masks, global styles, character count, and a bunch else.
Stars: ✭ 206 (+1273.33%)
Mutual labels:  mask
vue-input-mask
Yet another Vue component for input masking
Stars: ✭ 18 (+20%)
Mutual labels:  mask
ngx-ion-simple-mask
Input mask for Angular/Ionic
Stars: ✭ 21 (+40%)
Mutual labels:  mask
findpeaks
The detection of peaks and valleys in a 1d-vector or 2d-array (image)
Stars: ✭ 121 (+706.67%)
Mutual labels:  mask
pixel-experiments
Various experiments using the pixel library
Stars: ✭ 86 (+473.33%)
Mutual labels:  pixel
AsLib
🎨: RPG map maker (paint tool)
Stars: ✭ 82 (+446.67%)
Mutual labels:  pixel
vscode-luna-paint
A raster image editor extension for VS Code
Stars: ✭ 235 (+1466.67%)
Mutual labels:  pixel

pixel-mask-generator

Travis Codecov Version - npm License - npm semantic-release

Very inspired and copy some code from zfedoran/pixel-sprite-generator

pixel-mask-generator - screenshot Greenkeeper badge

Installation

// npm
npm install pixel-mask-generator --save
const pmg = require('pixel-mask-generator')

// Bower
bower install pixel-mask-generator --save
<script src="bower_components/pixel-mask-generator/dist/index.js"></script>

Example usage

const mask = new pmg.Mask([
  0, 0, 0, 0, 0, 0,
  0, 0, 0, 0, 1, 1,
  0, 0, 0, 0, 1, -1,
  0, 0, 0, 1, 1, -1,
  0, 0, 0, 1, 1, -1,
  0, 0, 1, 1, 1, -1,
  0, 1, 1, 1, 2, 2,
  0, 1, 1, 1, 2, 2,
  0, 1, 1, 1, 2, 2,
  0, 1, 1, 1, 1, -1,
  0, 0, 0, 1, 1, 1,
  0, 0, 0, 0, 0, 0
], 6, true, false)
const sprite = new pmg.Sprite(mask)
sprite.generate()

// resize and append
const resizedSpriteCanvasEle = pmg.util.resize(sprite.canvas, 10)
const body = document.body
body.appendChild(resizedSpriteCanvasEle)

Note

  • Compatible with all browsers
  • Unit test: add more tests
  • Automated scripts: browser compatibility test
  • Automated scripts: deploy to gh-pages
  • Branch: split code from master and gh-pages
  • Dependency: split static/random.js to another repository
  • Dependency: split resize function to another repository
  • Mask: add more masks
  • Demo: update demo page
  • Coverage: increase coverage threshold
  • Article: copy original article into the repo, in case the site and mirror are down
  • Algorithm: change algorithm toward to the original, should be symmetrical

Contribute for owner

$ npm install -g semantic-release-cli
$ semantic-release-cli setup

Using above command to setup "semantic-release"

Contribute

  1. Fork the repo
  2. Install Node.js and dependencies
  3. Make a branch for your change and make your changes
  4. Run git add -A to add your changes
  5. Run npm run commit (don't use git commit)
  6. Push your changes with git push then create Pull Request

Reference

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].