This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <meta content="width=device-width, initial-scale=1.0" name="viewport"/> | |
| <title>Turtle App (Modular)</title> | |
| </head> | |
| <body> | |
| <script type="text/javascript">(function(global){function setupStyles(){const sty=document.createElement('style');sty.textContent=` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> | |
| <title>WebGL - 3D Torus</title> | |
| </head> | |
| <body></body> | |
| <script>(function(global){function cube(dx=1,dy,dz){const numVertices=24;const stride=6*4;const X=0.5*dx;const Y=dy|X;const Z=dz|X;const vertices=new Float32Array([X,-Y,-Z,1,0,0,X,Y,-Z,1,0,0,X,Y,Z,1,0,0,X,-Y,Z,1,0,0,-X,Y,Z,-1,0,0,-X,Y,-Z,-1,0,0,-X,-Y,-Z,-1,0,0,-X,-Y,Z,-1,0,0,-X,Y,-Z,0,1,0,-X,Y,Z,0,1,0,X,Y,Z,0,1,0,X,Y,-Z,0,1,0,X,-Y,Z,0,-1,0,-X,-Y,Z,0,-1,0,-X,-Y,-Z,0,-1,0,X,-Y,-Z,0,-1,0,-X,-Y,Z,0,0,1,X,-Y,Z,0,0,1,X,Y,Z,0,0,1,-X,Y,Z,0,0,1,X,Y,-Z,0,0,-1,X,-Y,-Z,0,0,-1,-X,-Y,-Z,0,0,-1,-X,Y,-Z,0,0,-1,]);const indices=new Int16Array([0,1,2,2,3,0,4,5,6,6,7,4,8,9,10,10,11,8,12,13,14,14,15,12,16,17,18,18,19,16,20,21,22,22,23,20]);return{indices,vertices,stride,numVertices};} | |
| function circle(r,n){const epath=[];for(let i=0;i<n;i++){const theta=i*2*Math.PI/n;const s=Math.sin(theta);const c=Math.cos(theta);epath[i]=[[r*c,r*s],[ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <meta content="width=device-width, initial-scale=1.0, user-scalable=yes" name="viewport"/> | |
| <title>Trackpad Test</title> | |
| </head> | |
| <body> | |
| <script type="text/javascript">(function(global){class StateManager{constructor(){this.state={};this.subscribers=new Set();} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.