# Additive Wave example

**URL:** <https://discourse.processing.org/t/additive-wave-example/24763>\
**Category:** p5.js\
**Created:** [October 20, 2020, 7:11pm UTC](https://discourse.processing.org/t/additive-wave-example/24763 "2020-10-20T19:11:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DoMi](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@DoMi](https://discourse.processing.org/u/DoMi)\
**Post date:** [October 20, 2020, 7:11pm UTC](https://discourse.processing.org/t/additive-wave-example/24763/1 "2020-10-20T19:11:04Z")

</div>

I find a little mistake in **Additive Wave** exemple, in function _renderWave_:  
ellipse(x \* xspacing, **height** / 2 + yvalues[x], 16, 16);

**height** instead of **width**  
DoMi

---

<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:** [October 22, 2020, 10:55pm UTC](https://discourse.processing.org/t/additive-wave-example/24763/2 "2020-10-22T22:55:43Z")

</div>

Hello,

Good catch!

`:)`
