 |
Author |
Topic: hc100 wallpaper (Read 1900 times) |
|
bsr

|
hc100 wallpaper
« on: Nov 12th, 2004, 3:40pm » |
|
http://hippocamp.net will shortly be releasing it's 100th free online release so to celebrate i've made some artwork for the regulars to have as wallpaper on their desktops. the size and colour of each circle along the spiral represents the number of tracks and the size of the download for each release::: http://hippocamp.panicnow.net/media/hc100/ (this code was adapted from some earlier work i did for the 50th release: http://hippocamp.net/misc/portfolio/hippo50/default.htm unfortunately this time i couldn't use the postscipt library- i couldn't get the circles to plot along the spiral using the simple method i've used (ie, no math!) and the illustrator library draws text parallel to the screen so wouldn't work either.) Code: size(1300,1000);//SMALLER SIZE USED WHILE TWEAKING //size(2600,2000);//BIGGER SIZE FOR FINAL OUTPUT background(215); rectMode(CENTER_DIAMETER); ellipseMode(CENTER_DIAMETER); BFont metaBold; metaBold = loadFont("GillSans.vlw.gz");//DATA DIRECTORY textFont(metaBold, 65); String lines[] = loadStrings("datahc.txt");//DATA DIRECTORY String words[] = loadStrings("datahc.txt");//DATA DIRECTORY int xpos = 280; int ypos = 1; translate((width/2)+80,(height/2)-120,-1500); //BEGIN MAIN LOOP for (int i=0; i < lines.length; i++) { String werd[] = splitStrings(words[i]); int list[] = splitInts(lines[i]); rotateZ(0.1415);//CREATE SPIRAL noStroke();//NO STOKE USED noSmooth();//TEXT LOOKS SHIT WITH SMOOTH() fill((list[2]+100),(list[2]*3),(list[2]*5));//TEXT COLOUR text(werd[0] + " " + werd[3], xpos, ypos-4);//RELEASE fill((sq(list[2])*1.7),(sq(list[2])),(sq(list[2])),85); smooth();//TURN ON SMOOTH TO DRAW CIRCLES ellipse(xpos, ypos, sq(list[1])/14, sq(list[1])/14);//MAIN CIRCLE fill(255,205,255,255);//CENTRE CIRCLE COLOUR ellipse(xpos, ypos, 7, 7);//SMALL CENTRE CIRCLE ypos = ypos + 19;//MOVE DOWN BEFORE NEXT RELEASE } //save("targa.tga");//SCREENGRAB |
|
|
« Last Edit: Nov 12th, 2004, 3:43pm by bsr » |
|
http://hippocamp.net
|
|
|
|