From 13b012ff7391e21e3f5d06fb0790af5673867eae Mon Sep 17 00:00:00 2001 From: Mahdi Dibaiee Date: Sat, 8 Oct 2016 15:46:25 +0330 Subject: [PATCH] readme --- README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..ea11e89 --- /dev/null +++ b/README.md @@ -0,0 +1,33 @@ +picedit +======= + +A simple CLI and API for image manipulation + +CLI Usage +--------- + +``` +Usage: picedit [OPTIONS] +Options: + --contrast - a number between -255 and 255 + --brightness - a number between -255 and 255 + --gamma + --fade - a number between 0 and 100 + --rotate - rotate image by n degrees + --grayscale - turn the image grayscale + --invert - invert (negative) the image + --output - output name, defaults to 'output.png' +``` + +Library +------- +Documentation available at hackage + +```haskell +import Picture + +main = do + pic <- readPicture "myfile.png" + + writePicturePng "output.png" (grayscale pic) +```