# How can I make a star?

**URL:** <https://discourse.processing.org/t/how-can-i-make-a-star/42100>\
**Category:** Beginners\
**Created:** [May 29, 2023, 9:51pm UTC](https://discourse.processing.org/t/how-can-i-make-a-star/42100 "2023-05-29T21:51:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![minsu1995](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/minsu1995/32/18429_2.png) [@minsu1995](https://discourse.processing.org/u/minsu1995)\
**Post date:** [May 29, 2023, 9:51pm UTC](https://discourse.processing.org/t/how-can-i-make-a-star/42100/1 "2023-05-29T21:51:59Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [May 29, 2023, 9:53pm UTC](https://discourse.processing.org/t/how-can-i-make-a-star/42100/2 "2023-05-29T21:53:41Z")

</div>

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

Just use line() command

---

<div class="post-metadata">

**Author:** ![minsu1995](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/minsu1995/32/18429_2.png) [@minsu1995](https://discourse.processing.org/u/minsu1995)\
**Post date:** [May 29, 2023, 9:54pm UTC](https://discourse.processing.org/t/how-can-i-make-a-star/42100/3 "2023-05-29T21:54:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [May 29, 2023, 9:57pm UTC](https://discourse.processing.org/t/how-can-i-make-a-star/42100/4 "2023-05-29T21:57:01Z")

</div>

You can also group several corners to a shape  
See [beginShape() / Reference / Processing.org](https://processing.org/reference/beginShape_.html)

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [May 29, 2023, 10:08pm UTC](https://discourse.processing.org/t/how-can-i-make-a-star/42100/5 "2023-05-29T22:08:50Z")

</div>

Hello @minsu1995,

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

> **[Welcome to Processing!](https://processing.org/)**
>
> Processing is a flexible software sketchbook and a language for learning how to code. Since 2001, Processing has promoted software literacy within the visual arts and visual literacy within technology…

How to make a star:

[https://lasers.llnl.gov/education/how-to-make-a-star](https://lasers.llnl.gov/education/how-to-make-a-star) \< I was curious!

`:)`

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [May 30, 2023, 12:26am UTC](https://discourse.processing.org/t/how-can-i-make-a-star/42100/6 "2023-05-30T00:26:14Z")

</div>

Another technique for your collection: [Star / Examples / Processing.org](https://processing.org/examples/star.html)
