Hello everyone! Ive been trying to figure out this since a few days and I dont seem to get the wanted result. I am trying to do a gradient rectangle grid with different attractor lines. So far I only managed to figure out the quadtree solution, but the growth of the rectangles would need o be more smooth, instead of just equally splitting the existing rectangle into smaller ones. Something like this, but with attractor lines.
Thank you for the quick reply! This is actually similar to the code I had. I think I just didn`t explain right. I would need to be able to draw a curve anywere on the surface, and the grid gradient to start from where the line is. Basically an attractor line would make the grid gradient grow from the line towards the rest of the surface.
Do you have any ideea on how I could build that into the code?