https://github.com/hmaach/drawing-with-java
A simple Rust project to draw basic geometrical shapes (points, lines, rectangles, triangles, circles) on an image
https://github.com/hmaach/drawing-with-java
01-edu drawing graphics java java-jwt zone01oujda
Last synced: 5 months ago
JSON representation
A simple Rust project to draw basic geometrical shapes (points, lines, rectangles, triangles, circles) on an image
- Host: GitHub
- URL: https://github.com/hmaach/drawing-with-java
- Owner: hmaach
- Created: 2025-08-17T10:42:12.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-08-17T11:58:39.000Z (5 months ago)
- Last Synced: 2025-08-17T12:27:10.340Z (5 months ago)
- Topics: 01-edu, drawing, graphics, java, java-jwt, zone01oujda
- Language: Java
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Drawing with Java
This project draws basic shapes (points, lines, rectangles, triangles, circles) onto an image using Java.
It demonstrates the use of custom interfaces (`Drawable`, `Displayable`) and object-oriented design.
## 📂 Project Structure
```
src/
│── geometrical_shapes/
│ ├── Circle.java
│ ├── Line.java
│ ├── Point.java
│ ├── Rectangle.java
│ └── Triangle.java
├── interfaces/
│ ├── Drawable.java
│ └── Displayable.java
├── utils/
│ ├── ColorUtils.java
│ └── Image.java
│── Main.java
└── Makefile
````
## 🚀 How to Run
1. Compile all sources:
```bash
make build
```
2. Run the program:
```bash
make run
```
3. The program will generate an image file:
```
image.png
```
## Features
* Draw points, lines, rectangles, triangles, circles
* Generate random circles
* Save result as `PNG` image