JSFiddle

  • Region around a point #1 is the latest revision

    finds the polygon including a particular point

    var grigen=0.000;
    var vagus =0.1;
    
    // canvas and mousedown related variables
    var canvas = document.getElementById("canvas");
    var ctx ...
  • Are all triangles equalaterial?

    jQuery 1.9.1, HTML, CSS, JavaScript, jQuery UI 1.9.2

    // Are all triangles equalaterial?
    
    // Global variables 
    var    x1 = 185; // first point of triangle
    var    y1 = 50;
    
    var    x2 = 108; // second ...
  • Wren Code #8 is the latest revision

    jQuery 2.2.3, HTML, CSS, JavaScript

    conv = [7,4,4,4,12,1,3,6,10,0,
         7,0,1,7,9,2,0,6,2 ...
  • Maximum triangle

    jQuery 2.1.4, HTML, CSS, JavaScript, jQuery UI 1.11.4

    //Alternate triangles in a polygon.
    // canvas, jQuery UI
    // canvas and mousedown related variables
    var canvas = document.getElementById("canvas");
    var ctx ...
  • Alternate triangles

    jQuery 2.1.4, HTML, CSS, JavaScript, jQuery UI 1.11.4

    //Alternate triangles in a polygon.
    // canvas, jQuery UI
    // canvas and mousedown related variables
    var canvas = document.getElementById("canvas");
    var ctx ...
  • Partial inelastic collision #1 is the latest revision

    From http://jsbin.com/quqega/37/edit?html,js,output see http://stackoverflow.com/questions/29382782/problems-with-vector-reflection-with-particle-collisions

    var width = window.innerWidth;
    		var height = window.innerHeight;
    		var renderer = new THREE.WebGLRenderer();
    		document.body.appendChild(renderer.domElement);
    		renderer.setSize ...
  • Rectangle in the box

    jQuery 1.9.1, HTML, CSS, JavaScript, jQuery UI 1.9.2

    // canvas and mousedown related variables
    var canvas = document.getElementById("canvas");
    var ctx = canvas.getContext("2d");
    var $canvas = $("#canvas");
    var canvasOffset ...
  • Circles around a circle #4 is the latest revision

    jQuery 1.9.1, HTML, CSS, JavaScript

    // Circles around a circle
    
    // canvas and mousedown related variables
    var canvas = document.getElementById("canvas");
    var ctx = canvas.getContext("2d");
    var ...
  • Ulam spiral #5 is the latest revision

    jQuery 1.11.0, HTML, CSS, JavaScript

    $("textarea#output").val("Hello world");
    
    spiral = function(x,y) {
        var res;
        var u = x+y;
        var v = x-y;
        if(u ...
  • Ford Circles

    jQuery 1.9.1, HTML, CSS, JavaScript, jQuery UI 1.9.2

    // Are all triangles equalaterial?
    
    // Global variables 
    var    x0 = 50; // Coord of 0/1
    var    y0 = 450;
    
    var    x1 = 450; // Coord ...