SECTION 4
CHALLENGES
Try these challenge prompts to modify the code we've written:
- Can you add to our algorithm to highlight the polygon edge that is hit?
- Can you make polygons whose vertices change position over time? Hint: you can use
random()
, but for more natural motion, look at the Perlin noise example inBasics > Math > Noise2D
in the Processing IDE. - Randomized polygons make great abstract monsters! Can you build a simple game with randomized polygons chasing each other?