How can I make a star?

i’m very new to coding (started 3 days ago) and am wondering what variables i would need to consider when making a star. however, i’m not animating yet, so i’m not very familiar with the void setup things. any help appreciated :slight_smile:

1 Like

For a star like * you don’t need setup and draw

Just use line() command


thank you so much! i was very confused and thought that i had to use the triangle function ^^

You can also group several corners to a shape
See beginShape() / Reference /


Hello @minsu1995,

There are resources (tutorials, references, examples) here to get you started:

How to make a star: < I was curious!


Another technique for your collection: Star / Examples /

1 Like