ââ# Welcome to HashLips đ
All the code in these repos was created and explained by HashLips on the main YouTube channel.
To find out more please visit:
HashLips Art Pixelator đĨ
HashLips Art Pixelator is a tool used to convert multiple images to pixelated images.
Installation đ ī¸
If you are cloning the project then run this first, otherwise you can download the source code on the release page and skip this step.
git clone https://github.com/HashLips/hashlips_art_engine.git
Go to the root of your folder and run this command if you have yarn installed.
yarn install
Alternatively you can run this command if you have node installed.
npm install
Usage âšī¸
In order to convert images into pixelated images you would need a list of images that you want to convert. Place all these images that will be converted in the /input
directory.
Then simply run this command:
node index.js
All your images will be outputted in the /build
directory.
If you want to change the ratio of the pixelation then you can update the ratio property on the pixelFormat
object in the src/config.js
file. The lower the number on the left, the more pixelated the image will be.
const pixelFormat = {
ratio: 5 / 128,
};
That's it, now you have pixelated images.
Hope you create some awesome artworks with this code đ