https://github.com/hopson97/pixelator
Input an image, out comes pixel art
https://github.com/hopson97/pixelator
Last synced: 4 months ago
JSON representation
Input an image, out comes pixel art
- Host: GitHub
- URL: https://github.com/hopson97/pixelator
- Owner: Hopson97
- Created: 2018-10-05T20:24:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-25T06:42:31.000Z (over 6 years ago)
- Last Synced: 2025-03-10T17:29:56.810Z (10 months ago)
- Language: CMake
- Size: 16.6 KB
- Stars: 29
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pixelator
Simple program to take an image and pixelate it.
It works by taking the average colour around an area, and then filling that area with that colour
## Building
Requires SFML library
On Ubuntu:
```
sudo apt-get install libsfml-dev
```
Building:
```
git clone https://github.com/Hopson97/Pixelator.git
cd Pixelator
cmake .
make
```
## Running
```
./pixelator
```
The pixel size must be a number divisible exactly by both the image width and height
## Example
```
./pixelator monalisa.jpg 12
```
Output:
