Javascript

Newton's Cannon

Wed, 10/17/2018 - 18:57

Newton's cannonball was a thought experiment Isaac Newton used to hypothesize that the force of gravity was universal...

https://en.wikipedia.org/wiki/Newton%27s_cannonball

The cannon fires a ball that falls to earth. The cannon adds some power to the next shot and the cannonball goes a bit farther. Eventually the ball flies with enough velocity to break the planets gravity and falls into orbit. The ball literally falls around the planet indefinitely.

SVG Preloader with Javascript

Sun, 03/18/2018 - 13:31

I am currently working on a CRM that will be including a feature to display statistics on a large screen.
A feature I proposed was a nice animated timer to display when each module would update.

This timer should be dynamic and should have the ability to have easy set parameters; update time, color, etc...

So anyways, this is what I came up with: SVG-Preloader GitHub Repo.

Basic usage is quite simple:

Tags

Whoa - Accidental Fractal

Thu, 03/01/2018 - 19:57

I was attempting to add a cracked windshield to the player tank in my Battlezone remake built in Javascript. I wanted to built the crack procedurally and it's "working". But it's not very believable as a cracked windshield just yet. I was able to add a pretty cool effect that shakes the screen but, the cracked windshield currently either resembles fractured rock or in many cases modern art. 

Homepage Animation Block For Drupal 8

Wed, 02/21/2018 - 12:18

Many websites have an animation of some kind running on the homepage. My website is no exception however, I like to experiment with different animations and such and I am sure I will want to regularly swap them out. I could simply dump in a new file whenever I want to make a change but, I like to design things that are a little more elegant. Something that might be used by other people in the real world. So, I built this simple module.

Tags

Find The Length of a Coastline - Programming - Part 3

Sun, 12/17/2017 - 07:56

About a week ago I wrote an article where I hypothesized that I could find the length of a coast-line using an algorithm based on a map or satellite image.

This is part 3 of the programming part of that series.

The task here was to find individual sections of the image that represent islands or land-masses. This way I can target a specific land-mass to be measured and discard the rest. (Ireland, France, The Isle of Mann,...etc). 

Subscribe to Javascript