Advertisement
xeromino

alpha

May 11th, 2016
481
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. float x, y, theta;
  2. int frms = 280, num = 3;
  3.  
  4. void setup() {
  5.   size(540, 540);
  6.   background(0);
  7. }
  8.  
  9. void draw() {
  10.   blendMode(SUBTRACT);
  11.   fill(1);
  12.   noStroke();
  13.   rect(0, 0, width, height);
  14.   blendMode(BLEND);
  15.   fill(255);
  16.   for (int i=0; i<num; i++) {
  17.     x = width/2 + sin(theta)*60*(i+1);
  18.     y = height/2 + cos(theta)*60*(i+1);
  19.     ellipse(x, y, 25, 25);
  20.   }
  21.   theta += TWO_PI/frms;
  22. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement