Tech > QUAD TREE BALL
Quad Tree Ball
made by potato imaginator
uploaded by PotatoImaginator
language: lua
added:

- CLICK TO PLAY -
On iPhone or iPad: tap Play full screen, then Share > Add to Home Screen to play without the browser bars.
1
Quad Tree Ball
Comments
![]() MOBIUS_LINE
|
Hi Potato! Can you explain the code for this? I'd like to know how this works to see if I can implement it in a project. Thanks! :D
|
![]() PotatoImaginator
|
We're subdividing the screen and checking if for a given square, each pixel of square is inside or outside the ball. If the square doesn't contain the ball, we draw the square. If the square contains ball, we subdivide it into 4 smaller squares and repeat the process. It is recursive function
|

