Skip to content

Latest commit

 

History

History
49 lines (41 loc) · 1.28 KB

README.md

File metadata and controls

49 lines (41 loc) · 1.28 KB


banner

💡 Raycast

  • A python raycasting demo using p5py
  • This is a port based off of the javascript implementation shown here: https://www.youtube.com/watch?v=TOEi6T2mtHo&t=1708s
  • This should be (it isn't because unlike p5js, its not built ontop of the skia engine) more performant however than the video, I noticed there were a number of duplicate heavy calculations being made in the video which have been fixed here.

🔧 Demo

demo

📓 Requirements:

system
pip
  • absl-py
  • p5py

📦 Installation:

  • make sure you are using pip for python 3
  • run the following command:
# installs the requirements for the program
pip install -r requirements.txt --user

✨ Examples:

# use the mouse as input
python3 main.py
# automatically move the source particle
python3 main.py --auto
# set number of rays to 36, the smaller the number, the more performant
python3 main.py --rays 36