# Help writing a visual code for deforming circle

**URL:** <https://discourse.processing.org/t/help-writing-a-visual-code-for-deforming-circle/12648>\
**Category:** Libraries\
**Created:** [July 10, 2019, 6:47pm UTC](https://discourse.processing.org/t/help-writing-a-visual-code-for-deforming-circle/12648 "2019-07-10T18:47:08Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [July 10, 2019, 8:08pm UTC](https://discourse.processing.org/t/help-writing-a-visual-code-for-deforming-circle/12648/6 "2019-07-10T20:08:51Z")

</div>

This is not the best demo but I took a lot of existing code and mashed it all together at the time:

[![](https://i.ytimg.com/vi/AaA9iu0qKWM/hqdefault.jpg "Processing Project") ](https://www.youtube.com/watch?v=AaA9iu0qKWM)

It got one dislike. Maybe not a Stones fan. 🙂

I may want to revisit this again…

Also check out the libraries in Processing:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/9/92a4d92f0d8cdc69fe22c326f2e5f8d6ee9ac75c.png)

Future:

> **[PShape](https://processing.org/tutorials/pshape/)**
>
> How to use the PShape class in Processing.

[https://processing.org/examples/rgbcube.html](https://processing.org/examples/rgbcube.html)

There was some discussion of this here recently:

> [@Using PShapes as a canvas for images](https://discourse.processing.org/t/using-pshapes-as-a-canvas-for-images/12529/8):
>
> PImage tex; PImage tex2; PGraphics pg; PImage img = createImage(50, 50, RGB); PImage img2 = createImage(50, 50, RGB); int psX, psY = 200; float rotx, roty, rotz; float size; void setup() { size(600, 600, P3D); textureMode(NORMAL); pg = createGraphics(200, 200); } void draw() { background(128); noStroke(); //rotx += TAU/500; //roty += TAU/500; pg.beginDraw(); pg.pushMatrix(); pg.translate(100, 100); pg.pushMatrix(); pg.rotate(radians(mouseX)); pg.translate(-10…

I am having some fun with these and may post something in gallery in future.

Look forward to seeing your creative work.

🙂

---

_[View the full topic](https://discourse.processing.org/t/help-writing-a-visual-code-for-deforming-circle/12648)._
