# The sketch continually fills rectangles on the window:

**URL:** <https://discourse.processing.org/t/the-sketch-continually-fills-rectangles-on-the-window/39511>\
**Category:** Coding Questions\
**Tags:** homework\
**Created:** [October 30, 2022, 4:58pm UTC](https://discourse.processing.org/t/the-sketch-continually-fills-rectangles-on-the-window/39511 "2022-10-30T16:58:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [October 30, 2022, 5:58pm UTC](https://discourse.processing.org/t/the-sketch-continually-fills-rectangles-on-the-window/39511/2 "2022-10-30T17:58:46Z")

</div>

Hi @add,

> [@add](#):
>
> hello everyone! how I can do this exercise?

Programming is about solving problems but we are not going to give you the full solution yet! 😉

You can read this previous thread which may help you achieve what you want to do:

> [@Why my draw() don't drawing continuously?](https://discourse.processing.org/t/why-my-draw-dont-drawing-continuously/39078):
>
> void setup () { size (842,480);frameRate(20);} float x = random (842); float y = random (480); float r = random (256); float g = random (256); float b = random (256); void draw () {loop ();fill (r,g,b);rect (x,y,x,y);} Can someone explain me pls why ? :3

---

_[View the full topic](https://discourse.processing.org/t/the-sketch-continually-fills-rectangles-on-the-window/39511)._
