https://github.com/haythamasalama/graphics
🖼️ Java graphics example code repository.
https://github.com/haythamasalama/graphics
affinetransform awt graphics graphics-java graphics2d java polygon
Last synced: 2 months ago
JSON representation
🖼️ Java graphics example code repository.
- Host: GitHub
- URL: https://github.com/haythamasalama/graphics
- Owner: Haythamasalama
- Created: 2022-03-09T19:40:52.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-08-16T14:53:56.000Z (about 2 years ago)
- Last Synced: 2024-10-29T10:10:37.945Z (12 months ago)
- Topics: affinetransform, awt, graphics, graphics-java, graphics2d, java, polygon
- Language: Java
- Homepage: https://github.com/HaythamaSalama/graphics
- Size: 74.2 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Java Graphic
> Rep For Graphics Example on Java Using Graphic and Graphics2D Class
## Contents
- [Install](#install)
- [How To Use](#how-to-use)
- [Line](https://github.com/HaythamaSalama/graphic-java/tree/master/src/Line)
- [Rectangle](https://github.com/HaythamaSalama/graphic-java/tree/master/src/Rectangle)
- [Oval](https://github.com/HaythamaSalama/graphic-java/tree/master/src/Oval)
- [Arc](https://github.com/HaythamaSalama/graphic-java/tree/master/src/Arc)
- [Animations](https://github.com/HaythamaSalama/graphic-java/tree/master/src/Animations)
- [Polygon](https://github.com/HaythamaSalama/graphic-java/tree/master/src/Polygon)
- [Graphics2D](https://github.com/HaythamaSalama/graphic-java/tree/master/src/Graphics2D)
- [Fractals](https://github.com/HaythamaSalama/graphic-java/tree/master/src/Fractals)
- [Helpers](https://github.com/HaythamaSalama/graphic-java/tree/master/src/Helpers)
- [Contributing](#Contributing)
- [License](#License)## Install
```sh
$ git clone https://github.com/HaythamaSalama/graphic-java
```## How To Use
* After install the project , the structure folder like this :

* Every class that contains functions that draw something for example `Arc` Class that contains `circle` , `example1`

* If you need to draw a specific function or show the output put the function on `paint` functon to show the output. by default, all functions exist on `paint` but it's committed
example this is paint method on `Oval` Class you need to show the output the `example11()` :
Before :
```java
@Override
public void paint(Graphics g) {
super.paint(g);
// this.circle(g);
// this.oval(g);
// this.example3(g);
// this.example4(g);
// this.example5(g);
// this.example6(g);
// this.example7(g);
// this.example8(g);
// this.example9(g);
// this.example10(g);
// this.example11(g);
}
```
After :
```java
@Override
public void paint(Graphics g) {
super.paint(g);
// this.circle(g);
// this.oval(g);
// this.example3(g);
// this.example4(g);
// this.example5(g);
// this.example6(g);
// this.example7(g);
// this.example8(g);
// this.example9(g);
// this.example10(g);
this.example11(g);
}
```## ❤ Sponsor me if you find the work valuable
## Contributing
Pull requests and stars are always welcome.
## License
Copyright © 2022, [Haytham Salama](https://github.com/haythamasalama).
Released under the [MIT License](LICENSE).***