# Examples for how to transform a sketch?

**URL:** <https://cl.desmos.com/t/examples-for-how-to-transform-a-sketch/529>\
**Category:** Questions\
**Tags:** sketch\
**Created:** [July 12, 2019, 1:48am UTC](https://cl.desmos.com/t/examples-for-how-to-transform-a-sketch/529 "2019-07-12T01:48:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bryn](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/bryn/32/40_2.png) [@Bryn](https://cl.desmos.com/u/Bryn)\
**Post date:** [July 12, 2019, 1:48am UTC](https://cl.desmos.com/t/examples-for-how-to-transform-a-sketch/529/1 "2019-07-12T01:48:27Z")

</div>

I noticed that there seems to be a way to apply a transformation to a sketch, [documented here](https://teacher.desmos.com/computation-layer/documentation#types:sketch:transform).

Are there any examples out there of how this has been or could be used?

---

<div class="post-metadata">

**Author:** ![JayChow](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jaychow/32/1674_2.png) [@JayChow](https://cl.desmos.com/u/JayChow)\
**Post date:** [July 14, 2019, 4:08pm UTC](https://cl.desmos.com/t/examples-for-how-to-transform-a-sketch/529/2 "2019-07-14T16:08:59Z")

</div>

Use simpleFunctions for your x and y transformations then apply them using `transform(xfunct,yfunct)`

> **[Transform Sketch • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/5d2b5041cd69ec0a8baf0010)**
>
> by Jay Chow

---

<div class="post-metadata">

**Author:** ![Bryn](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/bryn/32/40_2.png) [@Bryn](https://cl.desmos.com/u/Bryn)\
**Post date:** [July 14, 2019, 8:14pm UTC](https://cl.desmos.com/t/examples-for-how-to-transform-a-sketch/529/3 "2019-07-14T20:14:11Z")

</div>

Thanks for this example; very informative!

(Also I’d never thought to use the timeSincePress argument as a time to make an animation stop, as I had always assumed it was there to reduce the computational load on a browser.)
