A simple Java Swing-based drawing application that allows users to draw freely, create shapes, adjust stroke thickness, control color opacity, undo/redo actions, erase, and preview their drawing settings in real time.
🖌️ Freehand Drawing
🔲 Draw Shapes: Rectangle, Oval
🎨 Color Picker (with transparency control)
Make sure you have Java JDK 8 or above installed.
javac Drawing_Pad.java Run the program:
Controls Use the Color button to pick a drawing color. Use the Stroke slider to set how thick/thin your strokes should be. Use the Alpha slider to control how transparent the color is. Use the Eraser button to switch to erasing mode. Use the Undo and Redo buttons to navigate changes. Use the Clear button to wipe the canvas. Use the Shape Selector to choose between free draw, rectangle, or oval.
All code is in a single file: Drawing_Pad.java No external dependencies or libraries required. Preview A small circular preview is shown at the top toolbar that updates to reflect the current stroke width and opacity settings.
MIT License
