🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

github.com/tagaism/golang_animation

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/tagaism/golang_animation

v0.0.0-20200716175052-bb8cd08fa724
Source
Go
Version published
Created
Source

Animation with Go

Inspired by Daniel Shiffman and his book Nature of code

Bouncing balls

Created bunch of random balls by vectorizing location and velocity

Balls acceleration towards mouse

Mutual attraction of balls

Each ball attracts others and is attracted by others. Attraction force is calculated based on the mass of balls and the distance between them (F_{g} = G \frac{m_{1} * m_{2} }{R^{2} }   ). God bless Newton and his Law of universal gravitation

Oscillating around attractor

Oscillatings swings around attractor. Oscilating faster when getting closer.

FAQs

Package last updated on 16 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts