All Projects → abey79 → vpype-pixelart

abey79 / vpype-pixelart

Licence: MIT license
Pixel art plotting in vpype

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to vpype-pixelart

Vpype
The Swiss-Army-knife command-line tool for plotter vector graphics.
Stars: ✭ 292 (+630%)
Mutual labels:  generative-art, vector-graphics
isovoxel
Isometric voxel generative art
Stars: ✭ 60 (+50%)
Mutual labels:  generative-art, pen-plotter
Geopattern
📐 Create beautiful generative image patterns from a string in golang.
Stars: ✭ 1,113 (+2682.5%)
Mutual labels:  pixel-art, generative-art
neon
Generative art piece made using 2d vector field
Stars: ✭ 26 (-35%)
Mutual labels:  generative-art, vector-graphics
Generative-Art
A selection of generative art scripts written in Python
Stars: ✭ 284 (+610%)
Mutual labels:  generative-art, vector-graphics
ZzSprite
Pixel Art Sprite Generator
Stars: ✭ 85 (+112.5%)
Mutual labels:  pixel-art, generative-art
BezierKit
Bezier curves and paths in Swift for building vector applications
Stars: ✭ 190 (+375%)
Mutual labels:  vector-graphics
SlopeCraft
Get your map pixel art in minecraft
Stars: ✭ 298 (+645%)
Mutual labels:  pixel-art
dots
Dots & Boxes Visualization
Stars: ✭ 16 (-60%)
Mutual labels:  generative-art
facet
Facet is a live coding system for algorithmic music
Stars: ✭ 72 (+80%)
Mutual labels:  generative-art
qt5-vector-graphic-shaders
A Qt5 application to experiment vector graphic shaders
Stars: ✭ 37 (-7.5%)
Mutual labels:  vector-graphics
PixelArtWithExcelByMATLAB
This MATLAB program read a image and draw it pixel by pixel in an Excel file.本程序用MATLAB代码,读取一张图片,然后在一个Excel文档里通过背景色填充的方法画出来。
Stars: ✭ 18 (-55%)
Mutual labels:  pixel-art
project-cordon-sprites
Community driven CC0-1.0 pixel art repository for indie developers.
Stars: ✭ 66 (+65%)
Mutual labels:  pixel-art
AnimatedVectorDrawableCompat-play-to-reset-button
An Android app using the AnimatedVectorDrawable support library
Stars: ✭ 56 (+40%)
Mutual labels:  vector-graphics
samila
Generative Art Generator
Stars: ✭ 750 (+1775%)
Mutual labels:  generative-art
jigsaws
Abstract Puzzles generative jigsaw puzzles showcase and IDE
Stars: ✭ 15 (-62.5%)
Mutual labels:  generative-art
random-art-generator
Command-line application to produce generative art based on a target image
Stars: ✭ 32 (-20%)
Mutual labels:  generative-art
pixture
A Minetest subgame geared towards minimalist survival
Stars: ✭ 33 (-17.5%)
Mutual labels:  pixel-art
camp
Building generative VR worlds on the Web
Stars: ✭ 16 (-60%)
Mutual labels:  generative-art
lexys-labyrinth
Chip's Challenge 2 emulator that runs in a browser
Stars: ✭ 46 (+15%)
Mutual labels:  pixel-art

vpype-pixelart

vpype plug-in to plot pixel art.

Usage

Convert pixelart image to vectors

The pixelart command takes an image file as input and converts it to lines according to one of three modes (big, line, and small – see examples below). Each unique color in the the input file results in a new layer created. Pixels which are 100% transparent (alpha = 0) yield no output.

Example invocation:

$ vpype pixelart --mode snake --pen-width .35mm input.png linesort write output.svg

Inline help:

$ vpype pixelart --help

Convert geometries to bitmaps and back to vector

The pixelize command rasterizes the current geometries into a bitmap, and converts them back to vectors similarly to the pixelart command.

Example invocation:

$ vpype read input.svg pixelize --mode snake --pen-width .35mm linesort write output.svg

Inline help:

$ vpype pixelize --help

Examples

Mode big

In this mode, each pixel is drawn using a 5x5 square spiral. The pixel pitch is thus five times the specified pen width.

Cactus sprites from Super Mario World:

cactus

Result plotted with Pentel Sign Pen (using --pen-width 0.6mm):

big mode plotted pixelart

Mode line

In this mode, horizontal lines are generated for horizontal sequences of same-color pixels. The pixel pitch is equal to the specified pen width.

Original art by Reddit user u/_NoMansDream:

pixel art by u/_NoMansDream

Result plotted with Pentel Sign Pen (using --pen-width 0.6mm):

line mode plotted pixelart

Mode snake

In this mode, [snake](https://en.wikipedia.org/wiki/Snake_(video_game_genre)-like lines attempt to traverse zones of contiguous, same-color pixels. Again, the pixel pitch is equal to the specified pen width.

Detail of the snake algoritm:

image

Result plotted with Pentel Sign Pen (using --pen-width 0.5mm):

vpype banner in MacPaint UX

pixelize command

Series of cubes created with vpype-perspective and pixelated using pixelize:

image

Installation

See vpype's installation instructions for information on how to install vpype.

Existing vpype installation

If vpype was installed using pipx, use the following command:

$ pipx inject vpype vpype-pixelart

If vpype was installed using pip in a virtual environment, activate the virtual environment and use the following command:

$ pip install vpype-pixelart

Check that your install is successful:

$ vpype --help
Usage: vpype [OPTIONS] COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]...

Options:
  -v, --verbose
  -I, --include PATH  Load commands from a command file.
  --help              Show this message and exit.

Commands:
[...]
  Plugins:
    pixelart   Plot pixel art.
[...]

Stand-alone installation

Use this method if you need to edit this project. First, clone the project:

$ git clone https://github.com/abey79/vpype-pixelart.git
$ cd vpype-pixelart

Create a virtual environment:

$ python3 -m venv venv
$ source venv/bin/activate
$ pip install --upgrade pip

Install vpype-pixelart and its dependencies (including vpype):

$ pip install -e .

Check that your install is successful:

$ vpype --help
Usage: vpype [OPTIONS] COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]...

Options:
  -v, --verbose
  -I, --include PATH  Load commands from a command file.
  --help              Show this message and exit.

Commands:
[...]
  Plugins:
    pixelart   Plot pixel art.
[...]

License

See the LICENSE file for details.

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].