# The Nature Of Code Chapter 1 Solutions

**URL:** <https://discourse.processing.org/t/the-nature-of-code-chapter-1-solutions/39288>\
**Category:** Beginners\
**Created:** [October 15, 2022, 8:44pm UTC](https://discourse.processing.org/t/the-nature-of-code-chapter-1-solutions/39288 "2022-10-15T20:44:12Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [October 15, 2022, 9:49pm UTC](https://discourse.processing.org/t/the-nature-of-code-chapter-1-solutions/39288/3 "2022-10-15T21:49:16Z")

</div>

> [@Why Always report errors](https://discourse.processing.org/t/why-always-report-errors/36342):
>
> please format code with \</\> button \* [homework policy](https://discourse.processing.org/faq/#homework) \* [asking questions](https://discourse.processing.org/t/2147) \</\>Mover[] movers = new Mover[100]; 液体; void setup（）{ size（640，320）; smooth（）; for（int i =0;i\<movers.length;i++）{ movers[i] = new Mover（random（0.1，5），0，0）; } 液体 = 新液体（0，高度，2，高度/2，0.1）; } void draw（）{ background（255）; liquid.display（）; PVector wind=new PVector（0.01，0）; PVector gravity=new PVector（0，0.1）; for（int i =0;i\<movers.length;i++）{ if（movers[i].isInside（liquid））{ movers[i].drag（liquid）; } 浮点数 m =…

---

_[View the full topic](https://discourse.processing.org/t/the-nature-of-code-chapter-1-solutions/39288)._
