/Connecting-Dots

My first GUI program inspired by ViHart's Doodles

Primary LanguageJavaMIT LicenseMIT

Connecting Dots

First I want to say that this was truly inspired by ViHart's Doodles which can be found here. I recommend to watch it because there are so many other amazing simple designs. This was my first GUI program done in Java for my AP Computer Science class in highschool

Graph

Graph2

Graph3

Graph4

There's some really poor naming going on here but there's no acctual name I could find for this design

The Code

Here is a simple snippet of code just to understand what's going on, that can be ran in Processing

void setup(){
    size(500, 500);
}

void draw(){
    translate(250, 250);
    
    int x = 250, y = 0;
    while(x > 0){
        x -= 10;
        y += 10;
      
        line(0 , y, x , 0);
        line(0 , y, -x , 0);
        line(0 , -y, x , 0);
        line(0 , -y, -x , 0);
    }
}