Permalink
Browse files

Added a few more gears and tweaked the gear positions.

  • Loading branch information...
zgrossbart committed Nov 26, 2011
1 parent b9aae5c commit eee84064777d8b9cd4bb805bed00b87571462afa
Showing with 10 additions and 8 deletions.
  1. +2 −2 processing_gears.html
  2. +8 −6 processing_gears.java
View
@@ -25,8 +25,8 @@
<a href="https://github.com/zgrossbart/3gears" id="forkme"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" /></a>
<canvas width="960" height="650" data-processing-sources="processing_gears.java"></canvas></p>
- <h2 style="font-family: ff-basic-gothic-web-pro,Verdana,Arial,Sans-serif;left: 445px;position: absolute;top: 525px;width: 190px;">Gears in Processing.js</h2>
+ <h2 style="font-family: ff-basic-gothic-web-pro,Verdana,Arial,Sans-serif;left: 370px;position: absolute;top: 525px;width: 190px;">Gears in Processing.js</h2>
- <span style="font-family: ff-basic-gothic-web-pro,Verdana,Arial,Sans-serif;left: 725px;position: absolute;top: 585px; font-size: 12px;">by <a href="http://www.zackgrossbart.com">Zack Grossbart</a></span>
+ <span style="font-family: ff-basic-gothic-web-pro,Verdana,Arial,Sans-serif;left: 705px;position: absolute;top: 585px; font-size: 12px;">by <a href="http://www.zackgrossbart.com">Zack Grossbart</a></span>
</body>
</html>
View
@@ -36,13 +36,15 @@ void setup() {
Gear redGear = new Gear(x, y, speed, 0, #ee2a33, 15, true); // red gear
gears.add(redGear);
- HashMap map = addGear(x, y, redGear, 9, #00aeef, speed, 35); // blue gear
- map = addGear(map.get('x'), map.get('y'), map.get('gear'), 11, #52b755, map.get('speed'), 110); // green gear
+ HashMap map = addGear(x, y, redGear, 9, #00aeef, speed, 30); // blue gear
+ map = addGear(map.get('x'), map.get('y'), map.get('gear'), 11, #52b755, map.get('speed'), 125); // green gear
map = addGear(map.get('x'), map.get('y'), map.get('gear'), 38, #d03c3a, map.get('speed'), 25); // dark red gear
- map = addGear(map.get('x'), map.get('y'), map.get('gear'), 21, #F00FF0, map.get('speed'), 281); // light purple gear
- map = addGear(map.get('x'), map.get('y'), map.get('gear'), 8, #f8b724, map.get('speed'), 188); // yellow gear
- map = addGear(map.get('x'), map.get('y'), map.get('gear'), 6, #e0cb61, map.get('speed'), 221); // beige gear
- map = addGear(map.get('x'), map.get('y'), map.get('gear'), 4, #f69c9f, map.get('speed'), 210); // pink gear
+ map = addGear(map.get('x'), map.get('y'), map.get('gear'), 4, #ac6a13, map.get('speed'), 318); // light brown gear
+ map = addGear(map.get('x'), map.get('y'), map.get('gear'), 7, #F00FF0, map.get('speed'), 281); // light purple gear
+ map = addGear(map.get('x'), map.get('y'), map.get('gear'), 8, #f8b724, map.get('speed'), 257); // yellow gear
+ map = addGear(map.get('x'), map.get('y'), map.get('gear'), 16, #e0cb61, map.get('speed'), 188); // beige gear
+ map = addGear(map.get('x'), map.get('y'), map.get('gear'), 4, #f69c9f, map.get('speed'), 201); // pink gear
+ map = addGear(map.get('x'), map.get('y'), map.get('gear'), 7, #825f84, map.get('speed'), 175); // pink gear
frameRate(30);
//drawX();

0 comments on commit eee8406

Please sign in to comment.