From 4c2069ceefb9be500754bdbbf1b2129d0dc3ace6 Mon Sep 17 00:00:00 2001 From: Dominic Matarese Date: Mon, 30 Jan 2023 18:18:13 -0500 Subject: added documentation --- 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..da1ed95 --- /dev/null +++ b/readme.md @@ -0,0 +1,33 @@ + +# 2D Graphics Manipulator + +This is a Java program that demonstrates the manipulation of 2D graphics using the `java.awt.*` package and a `Graphics2D` object. It can generate a fractal image, convert pixels of an existing image to greyscale, and generate a random image where each pixel is a random color. The input image is hardcoded as input.jpg and located in the working directory, and the output images are also saved in the working directory. + +## Features + +- Generate fractal images using recursion +- Convert existing images to greyscale +- Generate random images with random colored pixels + +## Dependencies + +- Java Development Kit (JDK) +- IDE (Integrated Development Environment) or a text editor + +## Usage +``` +javac main.java +java main +``` + +1. The program will execute all three functions: `generateRandom`, `generateFractal`, and `convertGrayscale`. + +## Note + +- The program uses recursion and image processing techniques to generate fractal images and to perform image manipulation +- The program uses the `java.awt.*` package and a `Graphics2D` object to perform image manipulation +- The input image is hardcoded and located in the working directory, the output images are also saved in the working directory. + +## License + +This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -- cgit v1.2.1