Solomon
YaBB Newbies
Offline
Posts: 7
England, UK
Re: Designing Typefaces Using Processing.
Reply #5 - Feb 11th , 2008, 12:46pm
Thanks for the reply there but I tried those and they save each file as the same thing, even though it say on the website that they do versions. This is the coding that I have been using: void setup(){ size (400, 400); background (255); smooth(); noLoop(); } void draw(){ float a = random (0, 100); if (a < 50){ float b = random (1, 40); strokeWeight(b); float c = random (20, 380); float d = random (20, 380); float e = random (20, 380); line (c, d, c, e); } float g = random (0, 100); if (g < 50){ float h = random (1, 40); strokeWeight(h); float i = random (20, 230); float j = random (20, 380); float k = random (20, 380); line (i, j, k, j); } float f = random (0, 100); if (f < 50);{ float h = random (1, 40); strokeWeight(h); float i = random (20, 230); float j = random (20, 380); float k = random (20, 380); float l = random (20, 380); line (i, j, k, l); } float m = random (0, 100); if (m < 50){ float n = random (1, 40); strokeWeight(n); float o = random (20, 380); float p = random (20, 380); float q = random (20, 380); float r = random (20, 380); line (o, p, q, r); } float s = random (0, 100); if (s < 50){ noFill(); float t = random (1, 40); float u = random (1, 40); float v = random (1, 40); stroke (t, u, v); stroke (0, 0, 0); float o = random (20, 380); float p = random (20, 380); float q = random (20, 380); float r = random (20, 380); float w = random (20, 380); float x = random (20, 380); float y = random (20, 380); float z = random (20, 380); bezier(z, y, x, w, r, q, p, o); } float t = random (0, 100); if (t < 50){ noFill(); float i = random (1, 40); float j = random (1, 40); float k = random (1, 40); stroke (i, j, k); stroke (0, 0, 0); float o = random (20, 380); float p = random (20, 380); float q = random (20, 380); float r = random (20, 380); float w = random (20, 380); float x = random (20, 380); float y = random (20, 380); float z = random (20, 380); bezier(z, y, x, w, r, q, p, o); } saveFrame("######.tif"); } As you can see its all about random lines being placed on a page.