JSFiddle

  • centers of triangles.

    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 ...
  • Rectangle in the box

    jQuery 1.9.1, HTML, CSS, JavaScript

    // canvas and mousedown related variables
    var canvas = document.getElementById("canvas");
    var ctx = canvas.getContext("2d");
    var $canvas = $("#canvas");
    var canvasOffset ...
  • Partial inelastic collision

    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 ...
  • equangular pentagons

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

    // Find the points of intersection of two circles
    
    // Global variables 
    var    x1 = 100; // Base of first point
    var    y1 = 250 ...
  • Super-ellipsoid #44 is the latest revision

    jQuery 2.1.0, HTML, CSS, JavaScript

    // A super ellipse
    var controls, scene, camera, box, spline, counter = 0;
    
    var tangent = new THREE.Vector3();
    var axis = new THREE ...
  • Rectangle in the box #1 is the latest revision

    jQuery 1.9.1, HTML, CSS, JavaScript

    // canvas and mousedown related variables
    var canvas = document.getElementById("canvas");
    var ctx = canvas.getContext("2d");
    var $canvas = $("#canvas");
    var canvasOffset ...
  • Circles around a circle #1 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 ...
  • centers of triangles. #6 is the latest revision

    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 ...
  • 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 ...
  • Region around a point

    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 ...