# How to do a stationary scale animation?

**URL:** <https://discourse.processing.org/t/how-to-do-a-stationary-scale-animation/10627>\
**Category:** Coding Questions\
**Created:** [April 25, 2019, 1:55pm UTC](https://discourse.processing.org/t/how-to-do-a-stationary-scale-animation/10627 "2019-04-25T13:55:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [April 25, 2019, 2:11pm UTC](https://discourse.processing.org/t/how-to-do-a-stationary-scale-animation/10627/2 "2019-04-25T14:11:24Z")

</div>

-a- you did not answer to my question  
[Trying to do an animation, how can I make the mushroom go from closed to open?](https://discourse.processing.org/t/trying-to-do-an-animation-how-can-i-make-the-mushroom-go-from-closed-to-open/10614/2) here

-b- you did not work on variable position / form of the bezier curve

-c- now you just post 4 of that “static” curves.

* * *

generally there are two ideas:

-1- use blocks of  
push / translate / scale / drawbezier / pop  
for each  
-2-  
pls go back and work on the first problem  
as that solves also the variable position  
once your whole mushroom ( or the “head” only like here )  
has a posx, posy form/size factors  
you can make a module / function and call

```auto
draw_mushroom( posx, posy, w, h, open );

```

---

_[View the full topic](https://discourse.processing.org/t/how-to-do-a-stationary-scale-animation/10627)._
