Git Product home page Git Product logo

proximity-structures's Introduction

Proximity Structures

A procedurally generated and interactive animation created with PixiJS.

Play with it here: http://proximity.hallada.net

GIF of the animation in action

A number of points are placed randomly on a canvas. They move in random directions with their own movement behavior. Each is assigned a random color. If other points travel close enough, a connection is drawn between them and each point's color becomes an average of all of its connected points' colors.

Interaction

Your mouse on the canvas will repel points away, but clicking and holding will attract points towards your mouse until you let go, which will cause the points to explode outwards in all directions.

Scrolling your mouse will speed up or slow down time.

Keybindings

Key Action
left hold to restrict points to the left of the screen
right hold to restrict points to the right of the screen
up hold to restrict points to the top of the screen
down hold to restrict points to the bottom of the screen
1 makes points move linearly
2 makes points meander
3 makes points snappy
4 makes points bouncy
5 makes points elastic
6 makes points overshoot
f toggles FPS counter
d toggles debug mode (including FPS counter)
n toggles display of nodes
l toggles display of lines
? toggles display of help modal

Tweaking

There are many more configurable values that affect the animation which don't have an interaction or keybinding. You can find all of these at the top of proximity.js. If you are feeling experimental, you can clone the repo and edit those yourself.

proximity-structures's People

Contributors

thallada avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.