/point-on-circle

Creates a vector on a given circle

Primary LanguageJavaScript

Snippet : point-on-circle

Creates a vector on a given circle.

pX(cX, radius, angle) and pY(cY, radius, angle)

cX and cY define the position of the circle at init. Change radius for point distance and angle for point vector.

Libraries

p5.js library is required. Download latest version at https://p5js.org/download/