Team:TU Eindhoven/the game
From 2014.igem.org
(Difference between revisions)
Rafiqlubken (Talk | contribs) |
|||
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"; | ||
int cx, cy; | int cx, cy; | ||
float secondsRadius; | float secondsRadius; | ||
Line 43: | Line 44: | ||
float hoursRadius; | float hoursRadius; | ||
float clockDiameter; | float clockDiameter; | ||
+ | PImage img; | ||
void setup() { | void setup() { | ||
Line 53: | Line 55: | ||
hoursRadius = radius * 0.50; | hoursRadius = radius * 0.50; | ||
clockDiameter = radius * 1.8; | clockDiameter = radius * 1.8; | ||
+ | img = loadImage("https://static.igem.org/mediawiki/2014/9/98/Jasper_TU_Eindhoven.jpg"); | ||
cx = width / 2; | cx = width / 2; | ||
Line 60: | Line 63: | ||
void draw() { | void draw() { | ||
background(255, 0, 0); | background(255, 0, 0); | ||
- | + | image(img, 0, 0, width, height); | |
// Draw the clock background | // Draw the clock background | ||
fill(80); | fill(80); |
Revision as of 14:09, 16 July 2014
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">