index.php 4.95 KB
Newer Older
O'Reilly Media, Inc's avatar
O'Reilly Media, Inc committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
<?php
   include "config.php";  // Load the array of examples
   $example = $_GET["example"]; //Fetch the example from the query string
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <!-- charset must remain utf-8 to be handled properly by Processing -->
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />

    <title>Getting Started with Processing: <? echo $examples[$example]["title"]; ?></title>

  </head>

  <body>

     <h1 style="color:#0EA5DC">Getting Started with Processing</h1>
     <h2 style="color:#FF0019">Ben Fry and Casey Reas</h1>
     <p>
     <h3><? echo $example.", ".$examples[$example]["title"]; ?></h3>
     <p><strong>NOTE:</strong> The example programs from the book are included in the latest version of Processing: click the File menu, choose examples, and click GettingStartedBook.</p>

     <p>You can download Processing from <a href="http://processing.org/">http://processing.org/</a></p>


	<!-- This version plays nicer with older browsers, 
	     but requires JavaScript to be enabled. 
	     http://java.sun.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html -->
	<script type="text/javascript"
		src="http://www.java.com/js/deployJava.js"></script>
	<script type="text/javascript">
  /* <![CDATA[ */

  var attributes = { 
    code: '<? echo $example; ?>.class',
    archive: '<? echo $example; ?>.jar',
    width: <? echo $examples[$example]['width']; ?>, 
    height: <? echo $examples[$example]['height']; ?>, 
    image: 'loading.gif'
  };
  var parameters = { };
  var version = '1.5';
  deployJava.runApplet(attributes, parameters, version);

  /* ]]> */
        </script>
        
	<noscript> <div>
	  <!--[if !IE]> -->
	  <object classid="java:<? echo $example; ?>.class" 
            	  type="application/x-java-applet"
            	  archive="<? echo $example; ?>.jar"
            	  width="<? $examples[$example]['width']; ?>" height="<? $examples[$example]['height']; ?>"
            	  standby="Loading Processing software..." >
            
	    <param name="archive" value="<? $example; ?>.jar" />
	    
	    <param name="mayscript" value="true" />
	    <param name="scriptable" value="true" />
	    
	    <param name="image" value="loading.gif" />
	    <param name="boxmessage" value="Loading Processing software..." />
	    <param name="boxbgcolor" value="#FFFFFF" />
	    
	    <param name="test_string" value="outer" />
	  <!--<![endif]-->

	    <!-- For more instructions on deployment, 
		 or to update the CAB file listed here, see:
		 http://java.sun.com/javase/6/webnotes/family-clsid.html
		 http://java.sun.com/javase/6/webnotes/install/jre/autodownload.html -->
	    <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
		    codebase="http://java.sun.com/update/1.6.0/jinstall-6u20-windows-i586.cab"
		    width="<? $examples[$example]['width']; ?>" height="<? $examples[$example]['height']; ?>"
		    standby="Loading Processing software..."  >
	      
	      <param name="code" value="<? $examples; ?>" />
	      <param name="archive" value="<? $examples; ?>.jar" />
	      
	      <param name="mayscript" value="true" />
	      <param name="scriptable" value="true" />
	      
	      <param name="image" value="loading.gif" />
	      <param name="boxmessage" value="Loading Processing software..." />
	      <param name="boxbgcolor" value="#FFFFFF" />
	      
	      <param name="test_string" value="inner" />
	      
	      <p>
		<strong>
		  This browser does not have a Java Plug-in.
		  <br />
		  <a href="http://www.java.com/getjava" title="Download Java Plug-in">
		    Get the latest Java Plug-in here.
		  </a>
		</strong>
	      </p>
	      
	    </object>
	    
	  <!--[if !IE]> -->
	  </object>
	  <!--<![endif]-->

	</div> </noscript>

      </div>
      
      <p>
	
      </p>
      
    </div>

<p>
<p>
For more information, check out these great <a href="http://processing.org/learning/">Processing tutorials</a>.
<hr>
<p><strong>In the Maker Shed:</strong></p>

<table>
<tr>
<td>
<a href="http://www.makershed.com"><img src="http://blog.craftzine.com/makershedsmall.jpg" height="45" width="200"  
alt="Makershedsmall" /></a></br>
<div style="align: right;"><img src="http://www.makershed.com/v/vspfiles/photos/9781449379803-2T.jpg"
width="193" height="300" alt="processingCover.jpg"/></div>
</td>
<td>
<a  
href="http://www.makershed.com/ProductDetails.asp?ProductCode=9781449379803">Getting Started with Processing</a> Learn computer programming the easy way with Processing, a simple  language that lets you use code to create drawings, animation, and  interactive graphics. Programming courses usually start with theory,  but this book lets you jump right into creative and fun projects.  It's ideal for anyone who wants to learn basic programming, and  serves as a simple introduction to graphics for people with some  programming skills. </p>
</td>
</tr>
</table>
  </body>
</html>