my face drawn in coding using simple "line(x1,y1,x2,y2);" function.
i did add some simple ellipses within another ellipse with point at the centre for eyes, but it reduced the images stylised strength.
the coding can be found here - http://www.ashthegreat.pwp.blueyonder.co.uk/facecodeblog.txt
Here i attempted to incorparate some for loops.
size (550,500);
for(int i=2; i<20; i++)
{
println(i);
fill(255,i*20,0);
rect(i*25,25,25,30);
}
The use of random
size(250,250);
background(0,0,0);
rect(random(250),random(250),random(250),random(250));
randomly placing the rectangle and having a random size.
the back ground colour and rectangle color can also easily be randomized by using
size(250,250);
background(random(255),random(255),random(255));
stroke(random(255),random(255),random(255),random(255));
fill(random(255),random(255),random(255),random(255));
rect(random(250),random(250),random(250),random(250));
BLOODY MAD FOR IT!!! :D
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment