Ibon Mainar has been doing some awesome work lately with torn cardboard and his red, blue, and yellow piece was my first Processing inspiration. I created an aleatoric image generator that replicates the randomness of tearing different surfaces and uses Ibon’s colors, which work really well together. (The still images are from his blog)

Here’s the code:

float ba = 200;
float bb = 175;
 
void setup() {
  size(300, 400);
  frameRate(1);
  noStroke();
  background(#FFFFFF);
  noFill();}
 
void draw() {
  background(#FFFFFF);
  fill(115, 195, 235);
  rect(30, 30, width-60, height-60);
  strokeWeight(0);
  fill(194, 24, 63);
  for (int i = 30; i < (width-30); i++) {
  rect(i, 30, 1, (ba-2) + random(4));
  ba = (ba -2)+ random(4);}
  fill(248, 211, 88);
  for (int i = 30; i < (width-30); i++) {
  rect(i, 30, 1, (bb-2) + random(4));
  bb = (bb -2)+ random(4);}
  if (ba - bb < 0 ) {
  bb = bb - 15;}
  if (bb - ba < 0 ) {
  ba = ba - 15;}
  if (bb + ba < 150) {
  bb = bb + 30;
  ba = ba + 50;}}
  1. rubmyabualrub reblogged this from mainart
  2. giuseppecolonna reblogged this from chadkouri
  3. miserabilia reblogged this from antibanksy
  4. antibanksy reblogged this from evhan55
  5. evhan55 reblogged this from clintonmckay
  6. oddnogg reblogged this from fyprocessing
  7. nornico reblogged this from mainart
  8. invictus1951 reblogged this from mainart
  9. shanerutledge1 reblogged this from mainart
  10. aldaharmen reblogged this from mainart
  11. instagral reblogged this from fyprocessing
  12. newsandviews13 reblogged this from mainart
  13. hollystewart081 reblogged this from mainart
  14. mymuzings reblogged this from mainart
  15. membranoproliferative reblogged this from fyprocessing
  16. irvinchong reblogged this from mainart
  17. candvanet reblogged this from mainart
  18. tyreagir21 reblogged this from mainart
  19. juniesharcusq reblogged this from mainart
  20. bloopis reblogged this from mainart
  21. digitalmediamarketing2014 reblogged this from mainart
  22. adibourkes123 reblogged this from mainart
  23. abbeywrotten reblogged this from mainart
  24. andypan33 reblogged this from mainart
  25. iwritecode64 reblogged this from fyprocessing