• fullscreen
  • MondrianSketch.pde
  • size(122, 116);
    background(255);
    
    //box1
    rectMode(CENTER);
    stroke(0);
    strokeWeight(3);
    fill(194, 28, 5);
    rect(0, 0, 22, 26);
    
    //box2
    rectMode(CENTER);
    noStroke();
    fill(31, 74, 176);
    rect(41, 0, 15, 26);
    
    //box3
    rectMode(CENTER);
    stroke(0);
    strokeWeight(3);
    noFill();
    rect(0, 13, 22, 102);
    
    //remainingboxes_stroke
    noStroke();
    
    //box4
    fill(194, 28, 5);
    rect(0, 23, 20, 15);
    
    //box5
    fill(194, 28, 5);
    rect(0, 60, 20, 7);
    
    //box6
    fill(245, 194, 41);
    rect(41, 54, 15, 18);
    
    //box7
    fill(194, 28, 5);
    rect(112, 54, 11, 7);
    
    //box8
    fill(31, 74, 176);
    rect(115, 115, 17, 6);
    
    //box9
    fill(200);
    rect(90, 115, 20, 6);
    
    //box10
    fill(200);
    rect(102, 115, 8, 6);
    
    //lines
    stroke(0);
    strokeWeight(3);
    
    
    //line1
    line(0, 13, 118, 13);
    
    //line2
    line(11, 43, 118, 43);
    
    //line3
    line(0, 64, 122, 64);
    
    //line4
    line(33, 0, 33, 116);
    
    //line5
    line(47, 0, 47, 64);
    
    //line6
    line(36, 110, 122, 110);
    
    //line7
    line(81, 0, 81, 116);
    
    //line8
    line(87, 0, 87, 116);
    
    //line9
    line(95, 0, 95, 109);
    
    //line10
    line(107, 0, 107, 116);
    
    //line11
    line(118, 0, 118, 64);
    
    //line12
    line(84, 89, 122, 89);
    

    code

    tweaks (0)

    about this sketch

    This sketch is running as Java applet, exported from Processing.

    license

    advertisement

    Alex Samuel

    Mondrian Sketch

    Add to Faves Me Likey@!
    You must login/register to add this sketch to your favorites.

    07.31 | Homework Assignment

    You need to login/register to comment.