You can support the development on the Github Sponsors page.


Tech > POINTS WITHIN A RECTANGULAR DOMAIN


Determines if a point lies within a rectngular domain
made by Creatorbyte (ChncClark)
uploaded by ChncClark
added:
download cartridge
- CLICK TO PLAY -

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 :)

Comments


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.


Post comment