@therealowenj/proxel
v1.0.1
Published
Proxel - the not-so-great image programming language
Maintainers
Readme
Proxel; the not-so-great image programming language!
Proxel (Programming Pixel) is an esoteric programming language, so it's NOT made to be fun and games. (It is, though!)
Installation
Install as a global CLI tool:
npm install -g @therealowenj/proxel-cliOr install from source:
git clone <repo>
cd proxel
npm install
npm linkUsage
Once installed, run any .prxl file with:
proxel Rainbox.prxlOr with the full path:
proxel /path/to/file.prxlSyntax
The init line
For an image:
init canvas sizex sizey canvascolor pixelsize type imageFor a video:
init canvas sizex sizey canvascolor pixelsize type video fps loopParameters:
sizex- Width of the canvas in pixelssizey- Height of the canvas in pixelscanvascolor- Background color (see colors below)pixelsize- Size of each pixel in pixelstype- Eitherimageorvideofps- Frames per second (video only)loop- Whether the video loops (video only, optional)
The pixel lines
To draw a single pixel:
x y colorThe frame lines
For videos, separate frames using curly braces:
frame 1 {
2 2 white
9 2 white
}
frame 2 {
2 8 white
9 8 white
}Supported Colors
Red, Green, Blue, Yellow, White, Black, Gray, Cyan, Magenta, Orange, Purple, Brown, Pink and Lime.
Examples
Simple image:
init canvas 10 10 white 40 type image
5 5 redVideo with animation:
init canvas 10 10 black 40 type video 1 loop
frame 1 {
2 2 white
9 2 white
2 8 white
2 9 white
3 9 white
4 9 white
5 9 white
6 9 white
7 9 white
8 9 white
9 9 white
9 8 white
}
frame 2 {
2 8 white
2 9 white
3 9 white
4 9 white
5 9 white
6 9 white
7 9 white
8 9 white
9 9 white
9 8 white
}License
The GNU General Public License v3.0, see the LICENSE file for full info.
This is a fun little project. It won't be maintained regularly, but feel free to contribute or fork it!
