# Small help with a small draw

**URL:** <https://discourse.processing.org/t/small-help-with-a-small-draw/14300>\
**Category:** Coding Questions\
**Created:** [September 30, 2019, 3:28am UTC](https://discourse.processing.org/t/small-help-with-a-small-draw/14300 "2019-09-30T03:28:19Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [September 30, 2019, 3:41am UTC](https://discourse.processing.org/t/small-help-with-a-small-draw/14300/2 "2019-09-30T03:41:10Z")

</div>

Use background at start of draw ()

Then

> [@Help creating simple animation](https://discourse.processing.org/t/help-creating-simple-animation/14089/14):
>
> here is another way of achieving this using an explicit timer and a boolean variable isSmallRect that is set by the timer. isSmallRect gets then evaluated to decide which rectangle to draw int timer; boolean isSmallRect = true; void setup() { size(640, 360); // start timer timer = millis(); } void draw() { background(0); // create black background fill(102); //set color to gray // timer to control isSmallRect if ( millis() - timer \> 3000 ) { // start timer timer …

---

_[View the full topic](https://discourse.processing.org/t/small-help-with-a-small-draw/14300)._
