New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc