Skip to content

A-R-Sobuj/Drawing-Pad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Sobuj's Drawing Pad

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.

Features

🖌️ Freehand Drawing 🔲 Draw Shapes: Rectangle, Oval 🎨 Color Picker (with transparency control) ↕️ Adjust Stroke Size 👁️ Live Preview of Stroke + Opacity 🧽 Eraser Tool ↩️ Undo / Redo 🧼 Clear Canvas

How to Run

Make sure you have Java JDK 8 or above installed.

Compile the code:

javac Drawing_Pad.java Run the program:

java Drawing_Pad

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.

Screenshot

Screenshot 2025-05-10 185417

File Info

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.

License

MIT License

About

A basic drawing pad using Java.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages