Team:TU Eindhoven/the game
From 2014.igem.org
(Difference between revisions)
Line 38: | Line 38: | ||
<div class="example"><script type="application/processing"> | <div class="example"><script type="application/processing"> | ||
- | @pjs preload="https://static.igem.org/mediawiki/2014/9/98/Jasper_TU_Eindhoven.jpg"; | + | //@pjs preload="https://static.igem.org/mediawiki/2014/9/98/Jasper_TU_Eindhoven.jpg"; |
int cx, cy; | int cx, cy; | ||
float secondsRadius; | float secondsRadius; | ||
Line 55: | Line 55: | ||
hoursRadius = radius * 0.50; | hoursRadius = radius * 0.50; | ||
clockDiameter = radius * 1.8; | clockDiameter = radius * 1.8; | ||
- | img = loadImage("Jasper_TU_Eindhoven.jpg"); | + | //img = loadImage("Jasper_TU_Eindhoven.jpg"); |
cx = width / 2; | cx = width / 2; | ||
Line 63: | Line 63: | ||
void draw() { | void draw() { | ||
background(255, 0, 0); | background(255, 0, 0); | ||
- | image(img, 0, 0, width, height); | + | //image(img, 0, 0, width, height); |
// Draw the clock background | // Draw the clock background | ||
fill(80); | fill(80); |
Revision as of 14:10, 16 July 2014
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">