Skip to content

Instantly share code, notes, and snippets.

View JamesNorris's full-sized avatar

James JamesNorris

  • Lockheed Martin Space
View GitHub Profile
@JamesNorris
JamesNorris / Spiraling Effect
Last active December 29, 2015 09:39
The solution to chasechocolates' question on spiraling effects.
How do I make an effect that spirals, becoming smaller as time goes on?
So, as we know a circle is defined by the equation:
r^2 = (x - a)^2 + (y - b)^2
So that gets us the general equation with which we will be working. As a result, we should also know that:
as a->∞ = translation in the x, right
as b->∞ = translation in the y, up