Skip to content

royqh1979/JEasyGraphics

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 

JEasyGraphics

An easy-to-use Java graphics library whose api is like Borland Turbo C++ Graphics.h lib, and turtle graphics.

It's good for introduction classes on Java or Computer Graphics.

Examples

Basic Drawing


public static void main(String[] args){
    JEasyGraphics eg=JEasyGraphics.init(800,600);
    eg.circle(40,40,40);
    eg.line(100,100,200,200);
    eg.pause();
    eg.close();
}

Turtle Graphics


    public static void main(String[] args){
        Turtle t=Turtle.createWorld(800,600);
        t.setPenSize(1);
        t.setSpeed(100);
        t.fd(100);
        t.rt(90);
        t.fd(100);
        t.rt(90);
        t.fd(100);
        t.rt(90);
        t.fd(100);
        t.rt(90);
        t.pause();
        t.close();
    }

About

A graphics library whose api is like Borland Turbo C++ Graphics lib

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages