Team:TU Eindhoven/the game

From 2014.igem.org

(Difference between revisions)
 
(7 intermediate revisions not shown)
Line 1: Line 1:
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
<html>
-
<!-- saved from url=(0046)https://www.processing.org/examples/clock.html -->
+
<body>
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" class=" js no-touch" style=""><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+
-
<title>Clock \ Examples \ Processing.org</title>
+
-
+
-
<link rel="icon" href="https://www.processing.org/favicon.ico" type="image/x-icon">
+
-
+
-
+
-
<meta name="Author" content="Casey Reas &amp; Ben Fry">
+
-
<meta name="Publisher" content="Processing">
+
-
<meta name="Keywords" content="Processing, Processing, Interactive Media, Electronic Arts, Programming, Java, Ben Fry, Casey Reas">
+
-
<meta name="Description" content="Processing is an electronic sketchbook for developing
+
-
ideas. It is a context for learning fundamentals of computer programming
+
-
within the context of the electronic arts.">
+
-
<meta name="Copyright" content="All contents copyright Ben Fry, Casey Reas, MIT Media Laboratory">
+
-
   
+
-
    <script type="text/javascript" async="" src="https://2014.igem.org/Team:TU_Eindhoven/the_game/processing?action=raw&ctype=text/js"></script>
+
-
<link href="https://2014.igem.org/Team:TU_Eindhoven/the_game/style?action=raw&ctype=text/css" rel="stylesheet" type="text/css">
+
-
<style type="text/css">@font-face {
+
-
  font-family: "PjsEmptyFont";
+
-
  src: url('data:application/x-font-ttf;base64,AAEAAAAKAIAAAwAgT1MvMgAAAAAAAAEoAAAAVmNtYXAAAAAAAAABiAAAACxnbHlmAAAAAAAAAbwAAAAkaGVhZAAAAAAAAACsAAAAOGhoZWEAAAAAAAAA5AAAACRobXR4AAAAAAAAAYAAAAAGbG9jYQAAAAAAAAG0AAAABm1heHAAAAAAAAABCAAAACBuYW1lAAAAAAAAAeAAAAAgcG9zdAAAAAAAAAIAAAAAEAABAAAAAQAAAkgTY18PPPUACwAgAAAAALSRooAAAAAAyld0xgAAAAAAAQABAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAAACAAIAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACMAIwAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAMAAQAAAAwABAAgAAAABAAEAAEAAABB//8AAABB////wAABAAAAAAAAAAgAEgAAAAEAAAAAAAAAAAAAAAAxAAABAAAAAAABAAEAAQAAMTcBAQAAAAAAAgAeAAMAAQQJAAEAAAAAAAMAAQQJAAIAAgAAAAAAAQAAAAAAAAAAAAAAAAAA')
+
-
      format('truetype');
+
-
}</style><style type="text/css"></style></head>
+
-
<body id="Examples" onload="">
+
-
+
-
<!-- ==================================== PAGE ============================ -->
+
-
<div id="container">
+
-
+
-
<!-- ==================================== HEADER ============================ --><a id="TOP" name="TOP"></a>
+
-
+
-
<!-- ==================================== NAVIGATION ============================ -->
+
-
+
-
<!-- ==================================== CONTENT ============================ -->
+
<iframe src="https://www.youtube.com/watch?v=-IL8dUZ1Fxk" width="1000" height="800"></iframe>
-
<div class="content">
+
-
  <p class="ref-notice">&nbsp;</p>
+
 +
<p>Some older browsers don't support iframes.</p>
 +
<p>If they don't, the iframe will not be visible.</p>
-
<div class="example"><script type="application/processing">
 
-
// The next line is needed if running in JavaScript Mode with Processing.js
 
-
/* @pjs preload="http://i.imgur.com/gDccyRX.png, http://i.imgur.com/V6756WQ.png, http://i.imgur.com/qmz6Tqx.png, http://i.imgur.com/kTG3cjw.png, http://i.imgur.com/rXLfh0n.png, http://i.imgur.com/DF3iOQN.png, http://i.imgur.com/HsgqFiR.png, http://i.imgur.com/yt3xRrC.png, http://i.imgur.com/oqpG7r6.png, http://i.imgur.com/tVs8PA3.png, http://i.imgur.com/8TgXchE.png, http://i.imgur.com/k2JxEjl.png, http://i.imgur.com/87sB8SH.png, http://i.imgur.com/vWEOnlj.png, http://i.imgur.com/sua0hIH.png, http://i.imgur.com/o2V20If.png, http://i.imgur.com/V2v8JpM.png, http://i.imgur.com/7VmOmW1.png, http://i.imgur.com/NW22Blc.png, http://i.imgur.com/9uJagVU.png, http://i.imgur.com/C7xi9eF.png, http://i.imgur.com/V8Tyv9D.png, http://i.imgur.com/14eMBR8.png, http://i.imgur.com/rKe6hVf.png, http://i.imgur.com/i9jxTsO.png, http://i.imgur.com/i9jxTsO.png, http://i.imgur.com/EY7xXur.png, http://i.imgur.com/qiWx2fF.png, http://i.imgur.com/2YUI7lW.png, http://i.imgur.com/KQ0ZyBA.png, http://i.imgur.com/ermi0iK.png, http://i.imgur.com/EKrOZM8.png, http://i.imgur.com/8VAJ6Bt.png, http://i.imgur.com/t2kTiPr.png, http://i.imgur.com/UmJRy3m.png, http://i.imgur.com/nkWwyFH.png, http://i.imgur.com/klMOhVr.png, http://i.imgur.com/CfREnca.png, http://i.imgur.com/1Sk2HSE.png, http://i.imgur.com/ymhoulY.png, http://i.imgur.com/G7MdUHm.png, http://i.imgur.com/P5kUXSf.png, http://i.imgur.com/oW2kyrW.png, http://i.imgur.com/wrpjZ1g.png, http://i.imgur.com/oi4cINP.png, http://i.imgur.com/wyzfNAg.jpg"; */
 
-
PImage img;  // Declare variable "a" of type PImage
+
</body>
-
 
+
</html>
-
void setup() {
+
-
  size(640, 360);
+
-
  // The image file must be in the data folder of the current sketch
+
-
  // to load successfully
+
-
  img = loadImage("http://i.imgur.com/wyzfNAg.jpg");  // Load the image into the program 
+
-
}
+
-
 
+
-
void draw() {
+
-
  // Displays the image at its actual size at point (0,0)
+
-
  image(img, mouseX, mouseY);
+
-
  // Displays the image at point (0, height/2) at half of its size
+
-
  image(img, 0, height/2, img.width/2, img.height/2);
+
-
}
+
-
</script><canvas width="640" height="360" tabindex="0" id="__processing0" style="image-rendering: -webkit-optimize-contrast !important;"></canvas>
+
-
<p class="doc"><!-- ==================================== FOOTER ============================ -->   </p>
+
-
</div>
+
-
</div>
+
-
<div id="footer">
+
-
    <div id="copyright"></div>
+
-
</div>
+
-
 
+
-
</div>
+
-
<script src="./Clock  Examples  Processing.org_files/jquery.min.js"></script>
+
-
<script>window.jQuery || document.write('<script src="../javascript/jquery-1.9.1.min.js"><\/script>')</script>
+
-
<script src="./Clock  Examples  Processing.org_files/processing.js" type="text/javascript"></script>
+
-
<script src="./Clock  Examples  Processing.org_files/site.js" type="text/javascript"></script>
+
-
 
+
-
<script type="text/javascript">
+
-
 
+
-
  var _gaq = _gaq || [];
+
-
  _gaq.push(['_setAccount', 'UA-40016511-1']);
+
-
  _gaq.push(['_setDomainName', 'processing.org']);
+
-
  _gaq.push(['_trackPageview']);
+
-
 
+
-
  (function() {
+
-
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+
-
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+
-
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+
-
  })();
+
-
 
+
-
</script>
+
-
+
-
 
+
-
<span style="position: absolute; top: 0px; left: 0px; opacity: 0; font-family: PjsEmptyFont, fantasy;">AAAAAAAA</span></body></html>
+

Latest revision as of 20:28, 17 July 2014

Some older browsers don't support iframes.

If they don't, the iframe will not be visible.