JSFiddle

hacatu's public fiddles

  • Excavation

    No-Library (pure JS), HTML, CSS, JavaScript

  • orx3nkn9

    No-Library (pure JS), HTML, CSS, JavaScript

  • Particle Engine test

    Click on the green dashed box to create random particles. Hit escape to clear them.

  • A Rotating Tetrahedron

    This is a canvas 3d demo made without webGL. It stores objects using a triangle object which contains the coordinates for the corners and the normal, as well as the color. The triangle objects should use pointers to points so that shared points would only be transformed once, but js doesn't have pointers. Triangles have their points defined counterclockwise and only the front side renders. Triangles behind other triangles still render at the moment, though. There is no shading. It also does not use the GPU for matrix/vector calculations, and uses quaternions for rotations and vector addition for translations, instead of matrix multiplication (because what's the point without a GPU?). I'll work on these things, but I think it's pretty cool for 70 lines of code.

  • Free the Clones

    Based on the Numberphile video at http://youtu.be/lFQGSGsXbXE. The goal is to get all of the clones (black circles) onto the other side of the line. The only move allowed is to split a clone into one below it and one to its right, permitted those spaces are free. --------------SOLUTION---------------- It's impossible.

  • Random Map Generator

    Creates a random city with a certain number of tiles from a starting city. Picks random tiles that border city tiles and adds them to the city until the desired size is reached.