create a smooth shape Children's graffiti
Channel:
Subscribers:
831
Published on ● Video Link: https://www.youtube.com/watch?v=adYGzvY6kJc
In this code, points are placed along the circumference of a circle and connected with straight lines to create a smooth shape. The for loop increases a from 0 to TWO_PI, using cos(a) and sin(a) to calculate each point's position. The distance between points, or the length of each line segment, is approximately radius * 0.1, making the short lines appear as curves to the human eye. The vertex(px, py) function connects the points while Perlin Noise varies the radius, adding a hand-drawn waviness. This combination of dense vertex placement and noise creates natural, organic shapes.