Skip to content

JS Flow Field coding tutorials rewritten to TypeScript

Notifications You must be signed in to change notification settings

HeatGub/TS-flow-fields

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flow fields experiments - TypeScript

This code is mainly the one you can find under source links (with minor changes), but rewritten from JavaScript to TypeScript. Made for coding practise and enjoyment.

Overwiew

  • Canvas is divided into grid's cells, which make a vector field. The field influences the direction of particle's movement by according vector value. Particle's movement is also influnced by the text/image color, which enables interesting flow directions using text color gradient.
  • Oject oriented code, many drawing parameters
  • Checkout previous commits to review this code, as commits follow video chapters.
  • press D to show (debugging) vector field grid

- Run live server for dist/index.html to start animating

Sources

Thanks

to Frank's laboratory for sharing the knowledge

Screenshots

Screenshot from 2023-08-18 18-32-15 Screenshot from 2023-08-18 18-51-53

About

JS Flow Field coding tutorials rewritten to TypeScript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published