Skip to content

🌊Terminal based ASCII fluid simulation controlled by your webcam.

License

Notifications You must be signed in to change notification settings

nevrax/ascii-fluid

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ascii-fluid

ascii-fluid is a webcam (face) controlled ASCII fluid simulation running in your terminal. You can control the fluid dynamics with your computer mouse/touchpad but also with your face trough a webcam.

ascii-fluid

How it is working?

The fluid solver is mainly based on Jos Stam's paper Real-Time Fluid Dynamics for Games. This project is using tcell library for rendering the fluid simulation in terminal.

Usage

 $ go get -u -v github.com/esimov/ascii-fluid
 $ cd wasm & make

This will start three new operation simultaneously: it will open a new terminal window, starts a new web server for listening the websocket connection and will build a webassembly interface for accessing the webcam.

The Pigo face detection library is used to transfer the first detected face coordinates trough the socket to the terminal app. On each refresh rate (defined as a parameter) the terminal will update the fluid particles.

Libraries used

Author

License

Copyright © 2020 Endre Simo

This software is distributed under the MIT license. See the LICENSE file for the full license text.

About

🌊Terminal based ASCII fluid simulation controlled by your webcam.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 70.6%
  • JavaScript 26.5%
  • HTML 1.4%
  • Makefile 1.2%
  • CSS 0.3%