Mishin Control

Information

This article was written on 03 Oct 2012, and is filled under ICM.

Current post is tagged

problems loading JS — here are some stills: code in comment

One Comment

  1. HannahMishin
    10/09/2012

    loat lineA=1;
    float locationA = 5;
    int lineC;
    int posC;
    int VAxis;
    int VLineWhite;
    int VLineBlk;
    int YAxis=0;
    int PAxis;
    int PLine;
    int Vspeed;
    int posOP=1;
    int lineOP;

    void setup() {
    size (600, 500);
    background (255);
    }
    void draw() {
    //reddraws background (rect
    noStroke();
    fill(205, 205, 153, 5);
    rect (0, 0, width, height);

    // println (pmouseX);
    // println (pmouseY);
    PLine();
    RedLines();
    PurpleLines();
    LightSq();
    VLineBlk();
    VLineWhite();
    //circle on mouse X
    fill (255, 10);
    noStroke ();
    ellipse (400, 200, mouseX, mouseX);
    }

    //to do; create another stagnant line that is drawn over and over of thick lines from upper R corner to middle or less of canvas
    void RedLines() {
    //red lines from topL

    lineA= lineA+locationA;

    for (lineA = lineA+20; lineA < height; lineA =lineA+10) {
    strokeWeight (11);
    stroke (220, 134, 128, 25);
    line(110, height/3, width, lineA);
    }
    }
    ////creates two lines (seemingly bkg) which grow apart
    void PurpleLines() {
    // from bottom R 1/4 section
    lineC++;
    posC++;
    line (10, height, posC, lineC);
    if (lineC> width||lineC>height) {
    strokeWeight (15);
    stroke (000, 102, 104, 25);
    //line (10, height, posC, lineC);
    }
    else {
    lineC= -lineC-posC;
    line (10, height, width, lineC);
    //create pink line to appear when the PurpleLines meet
    if (posC > 349)
    {
    strokeWeight(20);
    stroke(255, 102, 153, 5);
    line (width, height, posC*-2, 123);
    }//make that pink line jump and fall the opposite way
    else {
    strokeWeight(20);
    stroke(255, 102, 153, 10);
    line (width, height, posC, 0);
    }
    }
    }
    ////square which responds to mouseY.

    void LightSq() {
    //squares light grey

    if (mouseY > 300) {
    noStroke();
    fill (102,102,051, 10);
    rect (0, 250, width,height);
    }
    }
    void VLineWhite() {
    //white line to the right THEN comes from upper Right and falls down
    VLineWhite ++;
    Vspeed++;
    strokeWeight(12);
    stroke(255, 10);
    line (0, 200, VLineWhite, Vspeed);
    if (VLineWhite >width) {
    VLineWhite=VLineWhite+Vspeed *-1;
    strokeWeight(12);
    stroke(255, 30);
    }
    if (Vspeed > 486){

    // //Lrg green circle that appears after white line reaches 486
    noStroke();
    fill (104, 253, 254, 5);
    ellipse(242, 283, 200, 200);
    }
    ///circle that is before circle above
    else{
    noStroke();
    fill (204, 253, 254, 5);
    ellipse(42, 283, 50, 50);
    }
    }
    void VLineBlk() {
    //dark line sweeps mid to bottomr from r

    VLineBlk++;
    strokeWeight(12);
    stroke(0, 051);
    line (0, VLineBlk, width, height);
    if (VLineBlk > height) {

    VLineBlk–;
    VAxis –;
    strokeWeight(12);
    stroke(051, 051, 051, 10);
    line (-10, VLineBlk, 200, VAxis);
    }
    }
    void PLine() {
    PAxis= 0;
    PLine=width;
    for (PLine=VAxis; PLine strokeWeight (10);
    stroke (153, 054, 000, 2);
    line (PAxis, height, width, PLine+100);
    }
    }

    void keyPressed() {
    fill (255, 2);
    rect(20, 0, width, height);
    fill (102, 51, 102, 10);
    ellipse(400, 100, 150, 150);
    }

Leave a Reply