# Latest

**URL:** https://discourse.processing.org/latest.md?page=579

[Latest](https://discourse.processing.org/latest.md) · [Categories](https://discourse.processing.org/categories.md) · [Tags](https://discourse.processing.org/tags.md)

**Page:** 580

---

## [Switching from a circle to a square](https://discourse.processing.org/t/switching-from-a-circle-to-a-square/4038)

<div class="topic-metadata">

**Author:** [@Lore](https://discourse.processing.org/u/Lore)\
**Replies:** 1\
**Last updated:** [October 2, 2018, 11:12am UTC](https://discourse.processing.org/t/switching-from-a-circle-to-a-square/4038 "2018-10-02T11:12:34Z")

</div>

Hello, I cannot seem to figure out how to switch from a circle to a square by pressing a key. I have been able to do it, but when trying to switch the color or size it resets back (either to a circle or just disappears)…

---

## [Drawing a triangle and arc](https://discourse.processing.org/t/drawing-a-triangle-and-arc/3929)

<div class="topic-metadata">

**Author:** [@Lore](https://discourse.processing.org/u/Lore)\
**Replies:** 6\
**Last updated:** [October 2, 2018, 7:30am UTC](https://discourse.processing.org/t/drawing-a-triangle-and-arc/3929 "2018-10-02T07:30:11Z")

</div>

How would you draw a triangle and arc so that the center of the shape is where your mouse is? (using mouseX and mouseY) and how would you change the size of the triangle and arc?

---

## [Add another shape with each mouse click! Help!](https://discourse.processing.org/t/add-another-shape-with-each-mouse-click-help/4033)

<div class="topic-metadata">

**Author:** [@madiMcD](https://discourse.processing.org/u/madiMcD)\
**Replies:** 1\
**Last updated:** [October 2, 2018, 5:57am UTC](https://discourse.processing.org/t/add-another-shape-with-each-mouse-click-help/4033 "2018-10-02T05:57:21Z")

</div>

Hi! I am just starting out with coding and I have to create a simple program in code that accomplishes the following guidelines: “Count the number of mouse presses in the canvas and use that to change the number of sh…

---

## [Vector moves along the path](https://discourse.processing.org/t/vector-moves-along-the-path/3985)

<div class="topic-metadata">

**Author:** [@kokoo](https://discourse.processing.org/u/kokoo)\
**Replies:** 3\
**Last updated:** [October 1, 2018, 8:17pm UTC](https://discourse.processing.org/t/vector-moves-along-the-path/3985 "2018-10-01T20:17:56Z")

</div>

Can you suggest how to make PVector move along a continuous path (for example tracing number ‘8’). Do i need 2 vectors to do it?

---

## [Calling all creative technologists! ](https://discourse.processing.org/t/calling-all-creative-technologists/4023)

<div class="topic-metadata">

**Author:** [@paulcheng](https://discourse.processing.org/u/paulcheng)\
**Replies:** 0\
**Last updated:** [October 1, 2018, 7:25pm UTC](https://discourse.processing.org/t/calling-all-creative-technologists/4023 "2018-10-01T19:25:03Z")

</div>

Do you have an interest in combining travel with freelance teaching and academic opportunities? OF Course Shanghai is collaborating with the Chinese Academy of Art and Hamburg University of Fine Arts to host a series of …

---

## [Running processing function and code from python ide](https://discourse.processing.org/t/running-processing-function-and-code-from-python-ide/3969)

<div class="topic-metadata">

**Author:** [@pradeep6081](https://discourse.processing.org/u/pradeep6081)\
**Replies:** 3\
**Last updated:** [October 1, 2018, 7:23pm UTC](https://discourse.processing.org/t/running-processing-function-and-code-from-python-ide/3969 "2018-10-01T19:23:03Z")

</div>

I found various documentation and example on running python script in processing. Is it possible to execute processing function and code from python ide. Thank You

---

## [createCapture() constraints and facingMode](https://discourse.processing.org/t/createcapture-constraints-and-facingmode/3960)

<div class="topic-metadata">

**Author:** [@tony](https://discourse.processing.org/u/tony)\
**Replies:** 2\
**Last updated:** [October 1, 2018, 7:17pm UTC](https://discourse.processing.org/t/createcapture-constraints-and-facingmode/3960 "2018-10-01T19:17:20Z")

</div>

Are there any resources out there that clearly list all the possible constraints you can apply to createCapture()? All they do is redirect you to this page: https://w3c.github.io/mediacapture-main/getusermedia.html#med…

---

## [Pixel pattern generator](https://discourse.processing.org/t/pixel-pattern-generator/3704)

<div class="topic-metadata">

**Author:** [@kulu](https://discourse.processing.org/u/kulu)\
**Replies:** 10\
**Last updated:** [October 1, 2018, 1:15pm UTC](https://discourse.processing.org/t/pixel-pattern-generator/3704 "2018-10-01T13:15:06Z")

</div>

I was wondering what could be a good approach to generate geometric random pixel patterns as the ones in the image below… Thanks :slight\_smile:

---

## [Colors from webcam problem](https://discourse.processing.org/t/colors-from-webcam-problem/3925)

<div class="topic-metadata">

**Author:** [@RC75018](https://discourse.processing.org/u/RC75018)\
**Replies:** 6\
**Last updated:** [October 1, 2018, 8:40am UTC](https://discourse.processing.org/t/colors-from-webcam-problem/3925 "2018-10-01T08:40:36Z")

</div>

Hi Everyone, I am trying to create a algorithm that create rising bubbles colored by pixels from video capture via webcam (on Mac). I have succeeded in create floating bubbles and then when i try to add the colorization…

---

## [PDF Export with BLUR](https://discourse.processing.org/t/pdf-export-with-blur/3974)

<div class="topic-metadata">

**Author:** [@KeremTurkyilmaz](https://discourse.processing.org/u/KeremTurkyilmaz)\
**Replies:** 1\
**Last updated:** [October 1, 2018, 6:29am UTC](https://discourse.processing.org/t/pdf-export-with-blur/3974 "2018-10-01T06:29:57Z")

</div>

Hi, I made a simple sketch and I want to export PDF File, but when the pdf is out is blurred.If I open the file in illustrator there is un full resolution, but if I use the pdf for a print is already blurred. import …

---

## [If Else Not Working Properly - Doesn't Work](https://discourse.processing.org/t/if-else-not-working-properly-doesnt-work/3995)

<div class="topic-metadata">

**Author:** [@clevelandbrowns](https://discourse.processing.org/u/clevelandbrowns)\
**Replies:** 6\
**Last updated:** [October 1, 2018, 6:01am UTC](https://discourse.processing.org/t/if-else-not-working-properly-doesnt-work/3995 "2018-10-01T06:01:28Z")

</div>

I’m a complete novice with Processing. I took lessons in Java and C++ years ago and am just now getting back into things so I figured I’d check this out. I have this code and it seems defective. When I press B, it works…

---

## [How can you load a PNG texture to an OBJ?](https://discourse.processing.org/t/how-can-you-load-a-png-texture-to-an-obj/3964)

<div class="topic-metadata">

**Author:** [@Mandelbrot](https://discourse.processing.org/u/Mandelbrot)\
**Replies:** 1\
**Last updated:** [October 1, 2018, 6:17am UTC](https://discourse.processing.org/t/how-can-you-load-a-png-texture-to-an-obj/3964 "2018-10-01T06:17:49Z")

</div>

My program is so far very simple. It loads an OBJ with phaser = loadShape(“PhaserTypeII.obj”);, then it displays it: shape(phaser, 0, 0) in setup and draw functions respectively. That worked, and the model shows up. I ha…

---

## [Trying to Draw on Sphere](https://discourse.processing.org/t/trying-to-draw-on-sphere/4000)

<div class="topic-metadata">

**Author:** [@CAUP](https://discourse.processing.org/u/CAUP)\
**Replies:** 9\
**Last updated:** [October 1, 2018, 5:30am UTC](https://discourse.processing.org/t/trying-to-draw-on-sphere/4000 "2018-10-01T05:30:23Z")

</div>

Hey! I’m new here. I’m trying to draw on a sphere. I have basically no idea how. The sphere rotates when you move the mouse. I want you to be able to draw on the sphere when you hold down the mouse. The sphere stops mov…

---

## [Local wifi Network on Android](https://discourse.processing.org/t/local-wifi-network-on-android/3861)

<div class="topic-metadata">

**Author:** [@Aaron](https://discourse.processing.org/u/Aaron)\
**Replies:** 1\
**Last updated:** [October 1, 2018, 5:28am UTC](https://discourse.processing.org/t/local-wifi-network-on-android/3861 "2018-10-01T05:28:21Z")

</div>

Hi, im new to processing but i already made a little offline game. I want to make a server within a Mobilephone and make it possible to play together with other users of the app locally via a wifi hotspot of the hosting…

---

## [Help getting all videos in random sequence to fully play](https://discourse.processing.org/t/help-getting-all-videos-in-random-sequence-to-fully-play/3991)

<div class="topic-metadata">

**Author:** [@llsavage320](https://discourse.processing.org/u/llsavage320)\
**Replies:** 2\
**Last updated:** [October 1, 2018, 5:14am UTC](https://discourse.processing.org/t/help-getting-all-videos-in-random-sequence-to-fully-play/3991 "2018-10-01T05:14:00Z")

</div>

Hi! I am trying to use Processing to make a random video generator, so that every time the program runs, a random video is picked from three different arrays (sort of like a random Choose Your Own Adventure). I have succ…

---

## [Fisica, world.step](https://discourse.processing.org/t/fisica-world-step/3998)

<div class="topic-metadata">

**Author:** [@tinchoedelp](https://discourse.processing.org/u/tinchoedelp)\
**Replies:** 2\
**Last updated:** [October 1, 2018, 3:15am UTC](https://discourse.processing.org/t/fisica-world-step/3998 "2018-10-01T03:15:20Z")

</div>

Hello, i’m working with the Fisica library by Ricard Marxer. There were no problems until we started using classes and objects to make the code look more understandable. The problem seems to be in the world.step function…

---

## [Need Help Understanding this code](https://discourse.processing.org/t/need-help-understanding-this-code/3992)

<div class="topic-metadata">

**Author:** [@ant](https://discourse.processing.org/u/ant)\
**Replies:** 1\
**Last updated:** [October 1, 2018, 2:16am UTC](https://discourse.processing.org/t/need-help-understanding-this-code/3992 "2018-10-01T02:16:40Z")

</div>

Need help understanding how these lines of codes work. I know they are variables and methods, but beyond that I’m confused. // int x=50; Circles\[\]circle=new Circles \[x\]; // void setup(){ size(800,600); frameRate(120…

---

## [Can use external camera on processing with raspberry](https://discourse.processing.org/t/can-use-external-camera-on-processing-with-raspberry/3935)

<div class="topic-metadata">

**Author:** [@ruicarreira](https://discourse.processing.org/u/ruicarreira)\
**Replies:** 3\
**Last updated:** [September 30, 2018, 9:30pm UTC](https://discourse.processing.org/t/can-use-external-camera-on-processing-with-raspberry/3935 "2018-09-30T21:30:20Z")

</div>

Hi! I installed Processing on my raspberry Pi 3 ModelB and I can’t use the external camera. “No such Streamer factory: v4l2src” is error when I try to execute my code. I really need fast help because I am doing a proj…

---

## [Subpixel rendering in Processing](https://discourse.processing.org/t/subpixel-rendering-in-processing/3958)

<div class="topic-metadata">

**Author:** [@lqdev](https://discourse.processing.org/u/lqdev)\
**Replies:** 4\
**Last updated:** [September 30, 2018, 6:24pm UTC](https://discourse.processing.org/t/subpixel-rendering-in-processing/3958 "2018-09-30T18:24:34Z")

</div>

Hello, Lately I had been working on a rewrite of my Processing application in JavaFX, and I had been wondering how to create subpixel rendered shapes. I know it’s possible to use Java’s font smoothing for text (which - …

---

## [ArrayList stuff for Snake game](https://discourse.processing.org/t/arraylist-stuff-for-snake-game/3780)

<div class="topic-metadata">

**Author:** [@Dinator14](https://discourse.processing.org/u/Dinator14)\
**Replies:** 24\
**Last updated:** [September 30, 2018, 4:33pm UTC](https://discourse.processing.org/t/arraylist-stuff-for-snake-game/3780 "2018-09-30T16:33:19Z")

</div>

I’m pretty new to coding with Processing (I know some basics) so I wanted to make the game Snake. I’ve been able to make the square move in a grid and eat food then spawn new food, but adding a new square is giving me tr…

---

## [How do I spawn ellipses at a given time interval and is it possible to create objects infinitely until a condition has been met?](https://discourse.processing.org/t/how-do-i-spawn-ellipses-at-a-given-time-interval-and-is-it-possible-to-create-objects-infinitely-until-a-condition-has-been-met/3976)

<div class="topic-metadata">

**Author:** [@K-ran123](https://discourse.processing.org/u/K-ran123)\
**Replies:** 7\
**Last updated:** [September 30, 2018, 1:38pm UTC](https://discourse.processing.org/t/how-do-i-spawn-ellipses-at-a-given-time-interval-and-is-it-possible-to-create-objects-infinitely-until-a-condition-has-been-met/3976 "2018-09-30T13:38:00Z")

</div>

Hello, I am making a program similar to Aimbooster where the player has to click on the target (ellipse) before it disappears. At the moment, i got the targets (ellipses) to spawn at random locations using random() on t…

---

## [SVG layers converted to shapes](https://discourse.processing.org/t/svg-layers-converted-to-shapes/3949)

<div class="topic-metadata">

**Author:** [@Geez](https://discourse.processing.org/u/Geez)\
**Replies:** 2\
**Last updated:** [September 29, 2018, 8:38pm UTC](https://discourse.processing.org/t/svg-layers-converted-to-shapes/3949 "2018-09-29T20:38:14Z")

</div>

Hello, Hope y’all doing good! I have an SVG geographic map with various islands on it. When opening the SVG in a vector graphics editor, each island is a layer that you can select. Is there is a way for processing to…

---

## [Curve that passes through three points](https://discourse.processing.org/t/curve-that-passes-through-three-points/3944)

<div class="topic-metadata">

**Author:** [@molo32](https://discourse.processing.org/u/molo32)\
**Replies:** 1\
**Last updated:** [September 29, 2018, 2:44am UTC](https://discourse.processing.org/t/curve-that-passes-through-three-points/3944 "2018-09-29T02:44:35Z")

</div>

how to draw a curve according to three given points? for example curve (10,10, 20,50, 80,75) this function would draw a curve that passes through those 3 coordinates

---

## [Set a item of a JList with path](https://discourse.processing.org/t/set-a-item-of-a-jlist-with-path/3939)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 2\
**Last updated:** [September 29, 2018, 4:55pm UTC](https://discourse.processing.org/t/set-a-item-of-a-jlist-with-path/3939 "2018-09-29T16:55:19Z")

</div>

hello! anybody knows how can i set a JList item (saving previosly in a JSON file) with the PATH and not with INDEX? this is becouse my list are dinamic, and maybe when i save a selection (index 2, e.x), next when i wan…

---

## [Rect corner radius issue. Squircles!?](https://discourse.processing.org/t/rect-corner-radius-issue-squircles/3924)

<div class="topic-metadata">

**Author:** [@EliTheIceMan](https://discourse.processing.org/u/EliTheIceMan)\
**Replies:** 8\
**Last updated:** [September 29, 2018, 4:20am UTC](https://discourse.processing.org/t/rect-corner-radius-issue-squircles/3924 "2018-09-29T04:20:08Z")

</div>

I’m trying to make some buttons based on Tesla’s UI which has round and rounded rectangle buttons and found a weird issue. If you run rect(x, y, n, n, n/2); (in CORNER or CENTER mode) I would think you should get a circ…

---

## [Drawing a flower](https://discourse.processing.org/t/drawing-a-flower/3919)

<div class="topic-metadata">

**Author:** [@James](https://discourse.processing.org/u/James)\
**Replies:** 3\
**Last updated:** [September 29, 2018, 3:55pm UTC](https://discourse.processing.org/t/drawing-a-flower/3919 "2018-09-29T15:55:59Z")

</div>

Hello! I’ve drawn a mathematical rose and I can’t think of a way of animating it so it will slowly draw the line out. It will just print out the whole rose at once. How can I make it so it will draw out the lines like …

---

## [Kinect v2 with processing error -12](https://discourse.processing.org/t/kinect-v2-with-processing-error-12/3732)

<div class="topic-metadata">

**Author:** [@leereset](https://discourse.processing.org/u/leereset)\
**Replies:** 2\
**Last updated:** [September 23, 2018, 6:59am UTC](https://discourse.processing.org/t/kinect-v2-with-processing-error-12/3732 "2018-09-23T06:59:25Z")

</div>

Hi I’m using kinect v2. 64 windows Init Kinect2 \[Freenect2Impl\] enumerating devices… \[Freenect2Impl\] 8 usb devices connected \[Freenect2Impl\] failed to open Kinect v2 @1:19! \[Freenect2Impl\] found valid Kinect v2 @1:…

---

## [Make two objects interacting with each other](https://discourse.processing.org/t/make-two-objects-interacting-with-each-other/3843)

<div class="topic-metadata">

**Author:** [@JimyiHendrix](https://discourse.processing.org/u/JimyiHendrix)\
**Replies:** 3\
**Last updated:** [September 29, 2018, 10:46am UTC](https://discourse.processing.org/t/make-two-objects-interacting-with-each-other/3843 "2018-09-29T10:46:08Z")

</div>

Hello everyone!! i’m new in this of programming but i am trying to learn by making this sort of codes. I would like the ball and the wall1 interact each other making the ball bounce on the brick. May somebody guide me,…

---

## [My first app on Google Play - Reversi](https://discourse.processing.org/t/my-first-app-on-google-play-reversi/3951)

<div class="topic-metadata">

**Author:** [@tapzapapp](https://discourse.processing.org/u/tapzapapp)\
**Replies:** 0\
**Last updated:** [September 29, 2018, 10:16am UTC](https://discourse.processing.org/t/my-first-app-on-google-play-reversi/3951 "2018-09-29T10:16:57Z")

</div>

https://play.google.com/store/apps/details?id=com.tapzapapp.reversi This is the first time I make Android apps and I’m glad that I chose to use Processing. It has made things so much simpler! This app is about a board …

---

## [How do I make it work? logic question](https://discourse.processing.org/t/how-do-i-make-it-work-logic-question/3938)

<div class="topic-metadata">

**Author:** [@leereset](https://discourse.processing.org/u/leereset)\
**Replies:** 3\
**Last updated:** [September 29, 2018, 6:46am UTC](https://discourse.processing.org/t/how-do-i-make-it-work-logic-question/3938 "2018-09-29T06:46:45Z")

</div>

Hi I’m making project that where footprint created when person pass by. check my progress. you can check here: Use your mouse pointer to create footprint. Issue: As you see my project, if I step forward any direc…

[Previous page](https://discourse.processing.org/latest.md?page=578)

[Next page](https://discourse.processing.org/latest.md?page=580)
