Light and Shadow in 2D
In the future:
On a 2D space, drop some light and check its shadow.
Setup
A rectangle 125x32.
Beam Sources shooting red light with various angles.
Helper info about canvas, positioning and color pallette in this doc.
Reasoning
TBD
run
# dependencies
go get -u github.com/llgcode/draw2d
# run
go run ./...
open canvas.png
# test
go test ./...
next steps
- Light the wall based on light hitting in
- Render obstacles that will prevent the wall from lighting
Much later...
- Monte Carlo to make it faster!