# How to make flag?

**URL:** https://discourse.processing.org/t/how-to-make-flag/30055
**Category:** Coding Questions
**Tags:** homework
**Created:** [May 11, 2021, 6:51pm UTC](https://discourse.processing.org/t/how-to-make-flag/30055 "2021-05-11T18:51:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![savaxn](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@savaxn](https://discourse.processing.org/u/savaxn)
#### Post date: [May 11, 2021, 6:51pm UTC](https://discourse.processing.org/t/how-to-make-flag/30055/1 "2021-05-11T18:51:19Z")

</div>

> please format code with \</\> button \* [homework policy](https://discourse.processing.org/faq/#homework) \* [asking questions](https://discourse.processing.org/t/2147)

![Безымянныйsdfsf](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/f/f1b7c01f5a72aa03bd75ab6b02699bf139e8fae0.png)  
 ![Безымянныйsdferj](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/8/8e27a343dd9718414da47263e2600eec8e2aa6b2.png)

The flag should move once every few seconds to the right and then to the left

---

<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 11, 2021, 7:46pm UTC](https://discourse.processing.org/t/how-to-make-flag/30055/2 "2021-05-11T19:46:03Z")

</div>

Hey and welcome to the forum!

Great to have you here!

Is this homework?

Please come up with some code of your own before we help with specific questions - this is forum policy…

Hint: use the reference: [Language Reference (API) \ Processing 3+](https://www.processing.org/reference/), check rect and triangle.

Draw first both triangles that you need.

Then we can discuss the animation.

see also: [Processing Overview \ Processing.org](https://www.processing.org/tutorials/overview/) section Hello Mouse

Warm regards,

Chrisir
