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

2 Likes

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 / Processing.org

2 Likes

Hello @minsu1995,

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

How to make a star:

https://lasers.llnl.gov/education/how-to-make-a-star < I was curious!

:)

Another technique for your collection: Star / Examples / Processing.org

1 Like