Skip to content

Latest commit

 

History

History
68 lines (49 loc) · 1.16 KB

File metadata and controls

68 lines (49 loc) · 1.16 KB

phresh

Description

'phresh' is an interporetor for the photo editing programming language by the same name.

Installation and Usage

Clone this repository:

$ git clone 'https://github.com/kickhead13/phresh.git'

Compile the interpretor and run example to see what happens :)

$ cd phresh 
$ cargo build --release
$ ./target/release/phresh ./examples/open_and_save_image.phresh

Have fun editing :P

Some fun examples

Fuzzy

img image1 'assets/pfp.jpg'
img image2 'assets/pfp.jpg'
layer image1 image2 0 -10 33
layer image1 image2 0 10 33
save image1 'assets/fuzz.jpg' jpg

Inception

img image1 'assets/pfp.jpg'
downscale image1 image1 0 0 100 2
downscale image1 image1 0 0 100 4
downscale image1 image1 0 0 100 8
save image1 'assets/inception.jpg' jpg

Download from the web

img download 'https://onlinedi.vision/cdn/test/stest.jpeg'
save download 'assets/download.jpg' jpg