0.1.4 • Published 2 years ago

shadows-js v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

shadows-js

See the demo page

This library calculates the visible area in a closed room from a central point. The calculations are exact, to the extent that floating point arithmetic allows.

The inspiration comes from the soldiers' view field in the Commandos game series.

Limitations

  • You need to cover the center with walls all-around to get 360 degrees of shadows
  • The wall segments cannot overlap, or touch each other in the middle, only end-to-end overlaps are allowed
0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago