David Marcus.

RSS | Random | Archive

About Me

Twenty-One.
Phoenix, AZ.
My ART 294 Classmates, You are on the Wrong Blog But I Will be Double Posting on This Tumblr.

Blogs I follow:

Theme by: Miguel
  1. carci·no·gene·sis
  2. Photo Book 294
  3. Donut MAXMSP Code

    import codeanticode.syphon.*;
    import shapes3d.utils.*;
    import shapes3d.animation.*;
    import shapes3d.*;
    import peasy.*;

    PeasyCam cam;

    Toroid toroid;
    Toroid toroid2;
    Toroid toroid3;
    Toroid toroid4;
    Toroid toroid5;
    Toroid toroid6;

    PGraphics canvas;
    SyphonServer server;
    float angleX, angleY, angleZ;

    public void setup() {
    size(400, 400, P3D);

    cam = new PeasyCam(this, 400);
    cam.setMinimumDistance(350);
    cam.setMaximumDistance(750);

    toroid = new Toroid(this, 30, 60);
    toroid.setRadius(50, 45, 80);
    toroid.rotateToX(radians(-30));
    toroid.stroke(color(0, 0, 60));
    toroid.strokeWeight(0);
    toroid.setTexture(“pd_a2.jpg”, 6, 1);
    toroid.drawMode(S3D.TEXTURE | S3D.WIRE);

    toroid2 = new Toroid(this, 30, 60);
    toroid2.setRadius(25, 22.5, 40);
    toroid2.rotateToX(radians(-30));
    toroid2.stroke(color(0, 0, 60));
    toroid2.strokeWeight(0);
    toroid2.setTexture(“pd_a2.jpg”, 6, 1);
    toroid2.drawMode(S3D.TEXTURE | S3D.WIRE);

    toroid3 = new Toroid(this, 30, 60);
    toroid3.setRadius(12.5, 11.25, 20);
    toroid3.rotateToX(radians(-30));
    toroid3.stroke(color(0, 0, 60));
    toroid3.strokeWeight(0);
    toroid3.setTexture(“pd_a2.jpg”, 6, 1);
    toroid3.drawMode(S3D.TEXTURE | S3D.WIRE);

    toroid4 = new Toroid(this, 30, 60);
    toroid4.setRadius(12.5, 11.25, 20);
    toroid4.rotateToX(radians(-30));
    toroid4.stroke(color(0, 0, 60));
    toroid4.strokeWeight(0);
    toroid4.setTexture(“pd_a2.jpg”, 6, 1);
    toroid4.drawMode(S3D.TEXTURE | S3D.WIRE);

    toroid5 = new Toroid(this, 30, 60);
    toroid5.setRadius(37.5, 33.75, 60);
    toroid5.rotateToX(radians(-30));
    toroid5.stroke(color(0, 0, 60));
    toroid5.strokeWeight(0);
    toroid5.setTexture(“pd_a2.jpg”, 6, 1);
    toroid5.drawMode(S3D.TEXTURE | S3D.WIRE);

    toroid6 = new Toroid(this, 30, 60);
    toroid6.setRadius(9.4, 8.4, 15);
    toroid6.rotateToX(radians(-30));
    toroid6.stroke(color(0, 0, 60));
    toroid6.strokeWeight(0);
    toroid6.setTexture(“pd_a2.jpg”, 6, 1);
    toroid6.drawMode(S3D.TEXTURE | S3D.WIRE);


    // Create syhpon server to send frames out.
    server = new SyphonServer(this, “Processing Syphon”);
    }

    public void draw() {
    rotateX(-.5);
    rotateY(-.5);

    background(20);
    toroid.draw();
    toroid.rotateBy(radians(-0.6f), 0, 0);

    pushMatrix();
    translate(220,-30,15);
    toroid2.rotateBy(radians(2f), 0, radians(2f));
    toroid2.draw();
    popMatrix();

    pushMatrix();
    translate(-200,50,-25);
    toroid3.rotateBy(radians(-0.2f), radians(0.6f), radians(-3f));
    toroid3.draw();
    popMatrix();

    pushMatrix();
    translate(25,-100,-200);
    toroid4.rotateBy(0, radians(3f), radians(6f));
    toroid4.draw();
    popMatrix();

    pushMatrix();
    translate(-70,177,165);
    toroid5.rotateBy(0, radians(2f), radians(-4f));
    toroid5.draw();
    popMatrix();

    pushMatrix();
    translate(0,-200,80);
    toroid6.rotateBy(0, 0, radians(-1.5f));
    toroid6.draw();
    popMatrix();



    }

  4. Programming For Practicallity Code

    Simple Polymorphis

    // The Nature of Code
    // Daniel Shiffman
    // http://natureofcode.com


    import peasy.*;

    PeasyCam cam;

    // One array of Shapes
    Shape[] shapes = new Shape[50];

    float counter = 0.0;
    float rotateAll = 0;

    void setup() {
    size(600,600,P3D);
    cam = new PeasyCam(this, -100);

    translate(50, 50, 0);

    for (int i = 0; i < shapes.length; i++ ) {
    int r = int(random(2));
    // Randomly put either circles or squares in our array
    if (r == 0) {
    shapes[i] = new Sphere(100,100,100,10,color(random(255),random(255),random(255)));
    } else {
    shapes[i] = new Box(100,100,100,10);
    }
    }
    }

    void draw() {
    background(255);

    pushMatrix();
    translate(50, 50, 0);
    //rotateAll = rotateAll + 0.01;
    //rotate(rotateAll);
    for (int i = 0; i < shapes.length; i++ ) {
    shapes[i].jiggle();
    shapes[i].display();
    counter = counter + 0.000001;
    }
    popMatrix();
    }

    Box 

    // The Nature of Code
    // Daniel Shiffman
    // http://natureofcode.com

    class Box extends Shape {
    // Variables are inherited from the parent.
    // We could also add variables unique to the Box class if we so desire

    Box(float x_, float y_, float z_, float r_) {
    // If the parent constructor takes arguments then super() needs to pass in those arguments.
    super(x_,y_,z_,r_);
    }

    // Inherits jiggle() from parent


    // Call the parent jiggle, but do some more stuff too
    void jiggle() {
    super.jiggle();
    // The Sphere jiggles its size as well as its x,y location.
    r += random(-1,1);
    r = constrain(r,0,100);
    }

    // The Box overrides its parent for display.
    void display() {

    // rectMode(CENTER);
    // rect(x,y,r,r);
    // translate(x,y,z);

    if (counter == 0 ) {
    translate(counter,counter,counter);
    }
    else if (counter == 1 ){
    translate(counter/x,counter/y,counter/z);
    }
    else {
    translate(x,y,z);
    }
    rotate(x/y);
    box(r,r,r);
    fill(175);
    stroke(0);
    }
    }

    Box

    // The Nature of Code
    // Daniel Shiffman
    // http://natureofcode.com

    class Shape {
    float x;
    float y;
    float z;
    float r;

    Shape(float x_, float y_, float z_, float r_) {
    x = x_;
    y = y_;
    z = z_;
    r = r_;
    }

    void jiggle() {
    x += random(-1,1);
    y += random(-1,1);
    z += random(-1,1);
    }

    // A generic shape does not really know how to be displayed.
    // This will be overridden in the child classes.
    void display() {
    point(x,y,z);
    translate(0,0,0);
    }
    }

    Sphere

    // The Nature of Code
    // Daniel Shiffman
    // http://natureofcode.com

    class Sphere extends Shape {

    // Inherits all instance variables from parent + adding one
    color c;

    Sphere(float x_, float y_, float z_, float r_, color c_) {
    super(x_,y_,z_,r_); // Call the parent constructor
    c = c_; // Also deal with this new instance variable
    }

    // Call the parent jiggle, but do some more stuff too
    void jiggle() {
    super.jiggle();
    // The Sphere jiggles its size as well as its x,y location.
    r += random(-1,1);
    r = constrain(r,0,100);
    }

    // The changeColor() function is unique to the Sphere class.
    void changeColor() {
    c = color(random(255),random(255),random(255));
    }

    void display() {
    // ellipseMode(CENTER);
    if (counter == 0) {
    translate (x,y*2,z-350);
    }
    // else if (counter < 0.5 ){
    // translate(counter*1000,counter*1000,counter*1000);
    // }
    else {
    translate(x*1.5,y*1.5,z);
    }
    stroke(0);
    fill(c);
    sphere(r);
    // ellipse(x,y,r,r);
    }
    }

  5. 1 Notes
  6. thomholt:

    Story Book 3 — Graffiti Days

    1. Which set of photos do you think told the best story or was the most cohesive as a group? Why? 

    This set of photos is definitely the most cohesive as a group. Three of the five photos are facial structures, all with different cultural depictions and ulterior motives. I think the other two are a well placed for a tie into the main theme. Did you have to go hunting for these, or did you have all these hits mapped, they are beautiful. 

  7. 3 Notes
    Reblogged: thomholt
  8. the ladder of chipotle.

  9. 1 Notes
  10. Minutes after the shooting. Even before the news channel helicopter appeared.  All my access to parking was cut off. 

    Minutes after the shooting. Even before the news channel helicopter appeared.  All my access to parking was cut off. 

  11. 2 Notes
  12. 4 hour Difference.

  13. 1 Notes
  14. 1 Notes