GithubHelp home page GithubHelp logo

aug-projects / javagraphics Goto Github PK

View Code? Open in Web Editor NEW

This project forked from haythamasalama/graphics

0.0 0.0 0.0 74 KB

Java graphics example code repository.

Home Page: https://github.com/HaythamaSalama/graphic-java

Java 100.00%

javagraphics's Introduction

Java Graphic

github

Rep For Graphics Example on Java Using Graphic and Graphics2D Class

Contents

Install

$ git clone https://github.com/HaythamaSalama/graphic-java

How To Use

  • After install the project , the structure folder like this :

image

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

image

  • 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 :

@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);
}

Contributing

Pull requests and stars are always welcome.

License

Copyright © 2022, Haytham Salama. Released under the MIT License.


javagraphics's People

Contributors

haythamasalama avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.