An open API service indexing awesome lists of open source software.

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

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