2
This is my first Tic-80 cart! It is just a small demo showing how to determine if a random point lies within a rotated rectangular region. This was a quick solution that I came up with that doesn't involve complex vector math. There are many applications for this code so I decided to share it, just in case someone can find it useful. It also just looks cool! Enjoy :)
ChncClark
|
I guess I should explain a little bit more. This program is plotting hundreds of random points over the display area. If the points fall inside of the rectangular region then they are marked with a colored circle. otherwise, they are drawn as black circles which serve to erase any color outside of the region.
|