processing

Out of context: Reply #1

  • Started
  • Last post
  • 4 Responses
  • PIZZA0

    really basic way would be maybe setting up a draw loop then set the x/y of the object you are trying to place to the mouse position and also print the mousex/y to the console and make a note of the numbers when it's where you want it.

    void setup(){
    size(500,500);
    background(0);
    stroke(255);
    fill(255);
    }

    void draw(){
    background(0);
    ellipse(mouseX,mouseY,50,50);
    println("x:"+mouseX+" y:"+mouseY);
    }

    • i'm really computer illiterate when you say console, what do you mean? is that the same as what's in the utilities folder on a mac?DeIntegro

View thread