I am making a game project in JavaScript using p5.js. I made a star shape using the beginShape() function, where vertexes are singular point on the screen that are connected using lines. Currently, I am trying to figure out a way to change the size of my star by manipulating the x and y coordinates of the vertex points without changing the location of my star. Could you please help me figure out how to do this? Thank you in advance:))
I created a ‘size’ variable set to 1.0, but when I change the size variable, the location of my star changes as well.
1