Tut­o­r­i­a­l 6: Dra­w­i­n­g with Ran­d­o­m­n­e­s­s

by Rhys Hobbs
  • Show Sketch
/** @peep sketchcode */
 
size(400, 400);    //size of sketch area
noFill();          //no fill of the bezier curves
strokeWeight(18);  //stroke opacity - higher number the less transparent
stroke(0, 130);    //stroke colour and level of opacity. (
                   //bezier(1st coordinates: x, y, control pt 1: x, y,
                   // (control pt 2: x, y, 2nd coordinates 2: x, y)
                   //bezier([first coordinates: first x-pt, first y-pt], [first control pt coordinates: first control-pt x, first control-pt y],
                   //[second control pt coordinates: second control-pt x, second control-pt y], [second coordinates: second x-pt, second y-pt]);
bezier(0, random(width), random(height), random(width), random(height), random(width), 400, random(width));
bezier(0, random(width), random(height), random(width), random(height), random(width), 400, random(width));
bezier(0, random(width), random(height), random(width), random(height), random(width), 400, random(width));
bezier(0, random(width), random(height), random(width), random(height), random(width), 400, random(width));
bezier(0, random(width), random(height), random(width), random(height), random(width), 400, random(width));
bezier(0, random(width), random(height), random(width), random(height), random(width), 400, random(width));
bezier(0, random(width), random(height), random(width), random(height), random(width), 400, random(width));
bezier(0, random(width), random(height), random(width), random(height), random(width), 400, random(width));

Comments

Nobody has said anything yet.