- +'<h2>'\r
- +"Psychlops Tutorial"\r
- +'</h2>'\r
- );\r
- \r
- var basiccode='using namespace Psychlops;'\r
- +'void psychlops_main() {'\r
- +'Canvas window(Canvas::window);'\r
- +'Psychlops::Rectangle figure;'\r
- +'figure.set( 100, 100 );'\r
- +'figure.centering();'\r
- +'figure.shift( 10, 10 );'\r
- +'figure.draw( Color( 1, 0, 0) );'\r
- +'window.flip();'\r
- +'while(!Keyboard::esc.pushed()){}";'\r
-\r
- $('#showcodebutton').html(\r
- '<form action="./showcode.php" target="_blank" method="POST" enctype="multipart/form-data">'\r
- +'<input type="hidden" name="code" value='+basiccode+' />'\r
- +'<input type="submit" value="Get CS Code! " name="submit" />'\r
- +'</form>'\r
- );\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
- var paper=Raphael("basiccode_navi", 800, 260);\r
-\r
- var line;\r
- line =paper.path("M130 140 L180 140");\r
- line.attr({stroke: "#aaaaaa"});\r
- line = paper.path("M230 140 L280 140");\r
- line.attr({stroke: "#aaaaaa"});\r
- line = paper.path("M330 140 L380 140");\r
- line.attr({stroke: "#aaaaaa"});\r
- line = paper.path("M430 140 L480 140");\r
- line.attr({stroke: "#aaaaaa"});\r
- line = paper.path("M530 140 L580 140");\r
- line.attr({stroke: "#aaaaaa"});\r