This is a simple program that simulates/renders the intersection of light rays with a solid two dimensional obstacle.
Watch the rendering here:
Alternatively, click here to view the rendering.
- Programming language: Python
- Library: pygame
Visit pygame.
2020
The main code is in ray_casting_2D.py.