Monday, January 8, 2024

Counter to clockwise

7 January 2024- Return to Arxploration!
Go get Chrome!

Picking points within the initial circular div to build out an arc of triangular tiles.
If the order in counter clockwise and the cross product is negative, rearrange the order with the pts.splice. Splice the last point to index one and delete that point, pts[2] becomes p[1] and p[1] becomes p[2]!

World Map is coming... I'm going to work on this tomorrow.
But I'm still using code from this.
Just click in the sinusoidal shape to place landmass...

The page needs a number from which to generate some pseudo-random numbers.

I'm using the cross product to detect winding, clockwise or counter, lime or pink! 8-P


No comments:

Post a Comment