Rep For Graphics Example on Java Using Graphic and Graphics2D Class
- Install
- How To Use
- Line
- Rectangle
- Oval
- Arc
- Animations
- Polygon
- Graphics2D
- Fractals
- Helpers
- Contributing
- License
$ git clone https://github.com/HaythamaSalama/graphic-java- After install the project , the structure folder like this :
- Every class that contains functions that draw something for example
ArcClass that containscircle,example1
- If you need to draw a specific function or show the output put the function on
paintfuncton to show the output. by default, all functions exist onpaintbut it's committed
example this is paint method on Oval Class you need to show the output the example11() :
Before :
@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 :
@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);
}Pull requests and stars are always welcome.
Copyright © 2022, Haytham Salama. Released under the MIT License.


