1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

you like?

Discussion in 'Entertainment and Technology' started by fallendream, Jun 10, 2009.

  1. fallendream

    Full Member

    Joined:
    Jan 1, 2009
    Messages:
    715
    Likes Received:
    0
    on the program 'processing' (downloaded at processing.org) i made a program style thing.

    :

    void setup() {
    size(800, 800);
    stroke(255);
    fill(random(255), random(255), random(255));
    }

    void draw() {
    ellipse(400, 400, mouseX, mouseY);
    }

    void mousePressed() {
    background(random(255), random(255), random(255));
    fill(random(255), random(255), random(255));
    }


    though now i have a question to ask you intelligent people, how do i make it do it randomly instead of by mouse movement?