da-vaibhav / to-pixels

convert images to pixel art and have fun

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

new Pixel('art');

var pixelass = new Pixel('ass');

pixelASS.png

convert images to pixelart and more

  • Ever wanted to upscae an image while keeping the pixel density?
  • Ever wanted to make a mosaic effect from an image?
  • Absolutely sick of square pixels?
  • In need of a generator that delivers, images, canvas, SVG or box-shadow versions?

Pixels is here

npm i to-pixel
import Pixel from 'to-pixel'

simple

  var pixelart = new Pixel({
    src: 'art.png'
  },target);

options

  var pixelart = new Pixel({
    src: 'art.png',
    pixel: 4,
    scale: 32,
    // ... (src,type,pixel,scale,shape)
  },target);

methods

  var pixelart = new Pixel({
    src: 'art.png'
  },target);

  pixelart.scale(64);
  pixelart.pixel(4);
  pixelart.resize(64,4);
  pixelart.shape('circle');
  pixelart.src('ass.png');
  pixelart.type('svg');
Method description
scale witdh of input
pixel size of pixel
resize see scale & pixel
shape shape of pixel (circle, undefined)
type type of output (canvas, svg,img,shadow)
src image-src of input

About

convert images to pixel art and have fun


Languages

Language:JavaScript 100.0%