# Latest

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

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

**Page:** 106

---

## [How to create multiple object](https://discourse.processing.org/t/how-to-create-multiple-object/39504)

<div class="topic-metadata">

**Author:** [@tiredperson](https://discourse.processing.org/u/tiredperson)\
**Replies:** 5\
**Last updated:** [October 30, 2022, 6:01pm UTC](https://discourse.processing.org/t/how-to-create-multiple-object/39504 "2022-10-30T18:01:06Z")

</div>

I am trying to make a program that creates 10 circles and 10 squares that jiggles randomly in the canvas area my code generates 10 squares and 10 circles, however, they are extremely clustered, ( I’m sure that my usage …

---

## [Problem with 'for' loops and geometric shapes](https://discourse.processing.org/t/problem-with-for-loops-and-geometric-shapes/39387)

<div class="topic-metadata">

**Author:** [@lemoney](https://discourse.processing.org/u/lemoney)\
**Replies:** 4\
**Last updated:** [October 30, 2022, 5:53pm UTC](https://discourse.processing.org/t/problem-with-for-loops-and-geometric-shapes/39387 "2022-10-30T17:53:55Z")

</div>

Hi Everyone. I’m stuck with a homework assignment. I need to draw a geometric shape (I’ve chosen the rhodonea curve), show the use of an interative “for” loop and use a mouse command. (we have to show all the math). I c…

---

## [Calling simultaneous functions in draw()](https://discourse.processing.org/t/calling-simultaneous-functions-in-draw/39497)

<div class="topic-metadata">

**Author:** [@bcabc](https://discourse.processing.org/u/bcabc)\
**Replies:** 7\
**Last updated:** [October 30, 2022, 5:30pm UTC](https://discourse.processing.org/t/calling-simultaneous-functions-in-draw/39497 "2022-10-30T17:30:24Z")

</div>

Hi there - I’m struggling with a problem that I was hoping someone here could help with. I wrote some code - provided below - where the “a” key on the keyboard makes some rectangles and the “b” key makes some circles. …

---

## [How to make a game over statement after object is being collided to a player](https://discourse.processing.org/t/how-to-make-a-game-over-statement-after-object-is-being-collided-to-a-player/39499)

<div class="topic-metadata">

**Author:** [@Lyca](https://discourse.processing.org/u/Lyca)\
**Replies:** 5\
**Last updated:** [October 30, 2022, 5:39pm UTC](https://discourse.processing.org/t/how-to-make-a-game-over-statement-after-object-is-being-collided-to-a-player/39499 "2022-10-30T17:39:32Z")

</div>

Hi badly need your help. Im just a beginner and I coundn’t run my application as Im doing a game. where in if falling object from above hits the player game will end with a message “game over”

---

## [Text Prompt and Response](https://discourse.processing.org/t/text-prompt-and-response/39452)

<div class="topic-metadata">

**Author:** [@panko](https://discourse.processing.org/u/panko)\
**Replies:** 10\
**Last updated:** [October 30, 2022, 4:17pm UTC](https://discourse.processing.org/t/text-prompt-and-response/39452 "2022-10-30T16:17:38Z")

</div>

Hi there - I’d like to create a text prompt in Processing, where a user can input a string and get a “response” - similar to how a text-based adventure would work - does anyone have an example of how something like that…

---

## [Adjusting a sample of positions by interpolation. Perfect shape and movement](https://discourse.processing.org/t/adjusting-a-sample-of-positions-by-interpolation-perfect-shape-and-movement/38978)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 10\
**Last updated:** [October 30, 2022, 4:07pm UTC](https://discourse.processing.org/t/adjusting-a-sample-of-positions-by-interpolation-perfect-shape-and-movement/38978 "2022-10-30T16:07:25Z")

</div>

Hi everyone! I’m trying to make a movement repeating himself by adapting the end with the beginning of the movement. For example I try to draw a circle or the shape " 8 " during an elapsed time. I would like to have o…

---

## [Ellipse and trail](https://discourse.processing.org/t/ellipse-and-trail/39508)

<div class="topic-metadata">

**Author:** [@Ero](https://discourse.processing.org/u/Ero)\
**Replies:** 4\
**Last updated:** [October 30, 2022, 3:00pm UTC](https://discourse.processing.org/t/ellipse-and-trail/39508 "2022-10-30T15:00:24Z")

</div>

How can I make an ellipse that leaves behind a “trail”?

---

## [Cube texture image is upside down](https://discourse.processing.org/t/cube-texture-image-is-upside-down/39233)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 7\
**Last updated:** [October 30, 2022, 2:55pm UTC](https://discourse.processing.org/t/cube-texture-image-is-upside-down/39233 "2022-10-30T14:55:21Z")

</div>

I’m trying to place an image with text on the outside of a cube. The code below works well except for the fact that the text is upside down. How would I flip the text (img), either in PGraphics when the image is constr…

---

## [getColor() for Kinect](https://discourse.processing.org/t/getcolor-for-kinect/39463)

<div class="topic-metadata">

**Author:** [@lorenlepton](https://discourse.processing.org/u/lorenlepton)\
**Replies:** 2\
**Last updated:** [October 30, 2022, 12:40pm UTC](https://discourse.processing.org/t/getcolor-for-kinect/39463 "2022-10-30T12:40:15Z")

</div>

howdy folks so ive come back to coding after a long time. I used to do openFrameworks & other things for many moons, & have come to Processing due to wanting to cut out the huge IDE & in some ways, not use C++ :wink: p…

---

## [Tweaks needed to make a custom Java-based mode?](https://discourse.processing.org/t/tweaks-needed-to-make-a-custom-java-based-mode/39491)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 0\
**Last updated:** [October 29, 2022, 5:11pm UTC](https://discourse.processing.org/t/tweaks-needed-to-make-a-custom-java-based-mode/39491 "2022-10-29T17:11:34Z")

</div>

I am currently trying to develop my first Processing mode. This mode will be java-based and the code conversion would look like this: void build(){ //some code } //some other methods,global variables etc. would be con…

---

## [Help with setting window size](https://discourse.processing.org/t/help-with-setting-window-size/39469)

<div class="topic-metadata">

**Author:** [@DeeDee](https://discourse.processing.org/u/DeeDee)\
**Replies:** 1\
**Last updated:** [October 30, 2022, 11:40am UTC](https://discourse.processing.org/t/help-with-setting-window-size/39469 "2022-10-30T11:40:42Z")

</div>

Hello Can anyone help - this code works on a mac but on windows it displays the window as fukkscreen i.e. it does not do the divided by 2. Why? void settings() { // This command sets the size of the sketch window. …

---

## [Can you resize an image and only show the new Image](https://discourse.processing.org/t/can-you-resize-an-image-and-only-show-the-new-image/39472)

<div class="topic-metadata">

**Author:** [@Kalarila](https://discourse.processing.org/u/Kalarila)\
**Replies:** 5\
**Last updated:** [October 30, 2022, 11:30am UTC](https://discourse.processing.org/t/can-you-resize-an-image-and-only-show-the-new-image/39472 "2022-10-30T11:30:36Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi, so I have an easy question (I think). I’m trying to show an image and then resize it. Is there a way to only display the resized image and …

---

## [Nature Live Feed Viewing Roulette Using Open Processing](https://discourse.processing.org/t/nature-live-feed-viewing-roulette-using-open-processing/39490)

<div class="topic-metadata">

**Author:** [@mnoble](https://discourse.processing.org/u/mnoble)\
**Replies:** 1\
**Last updated:** [October 29, 2022, 4:55pm UTC](https://discourse.processing.org/t/nature-live-feed-viewing-roulette-using-open-processing/39490 "2022-10-29T16:55:11Z")

</div>

Hello Forum, It has been a while since I posted but I am really excited about a new project that wouldn’t have been possible without Processing. It is a curated portal using live feeds of natural scenes from around the …

---

## [Processing: 'Under the hood' - Circles and Arcs](https://discourse.processing.org/t/processing-under-the-hood-circles-and-arcs/39473)

<div class="topic-metadata">

**Author:** [@Nevermnd](https://discourse.processing.org/u/Nevermnd)\
**Replies:** 4\
**Last updated:** [October 29, 2022, 2:19pm UTC](https://discourse.processing.org/t/processing-under-the-hood-circles-and-arcs/39473 "2022-10-29T14:19:00Z")

</div>

Hi, So I have been trying to develop a separate application that relies heavy on the generation of pixel-by-pixel generation of circles and ellipses. However, do note 1) I am doing this app in Python, not Processing and…

---

## [Display an Image for 5 Seconds Only Flashing](https://discourse.processing.org/t/display-an-image-for-5-seconds-only-flashing/39480)

<div class="topic-metadata">

**Author:** [@carlymoj](https://discourse.processing.org/u/carlymoj)\
**Replies:** 4\
**Last updated:** [October 29, 2022, 1:15pm UTC](https://discourse.processing.org/t/display-an-image-for-5-seconds-only-flashing/39480 "2022-10-29T13:15:02Z")

</div>

I’m creating a basic catcher-style game that catches balls of varying sizes and colors. I have a “game over” image that I’d like to display for 5 seconds before restarting the game. Right now, the image flashes but the g…

---

## [I have a question regarding OCR](https://discourse.processing.org/t/i-have-a-question-regarding-ocr/39466)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 2\
**Last updated:** [October 29, 2022, 12:08am UTC](https://discourse.processing.org/t/i-have-a-question-regarding-ocr/39466 "2022-10-29T00:08:33Z")

</div>

http://www.magicandlove.com/blog/2015/11/26/processing-with-ocr/ The version I’m using: tess4j-3.4.8.jar import net.sourceforge.tess4j.\*; import java.awt.image.BufferedImage; Tesseract ocr; BufferedImage img; PImage …

---

## [Issue when synchronizing several devices with second()](https://discourse.processing.org/t/issue-when-synchronizing-several-devices-with-second/39470)

<div class="topic-metadata">

**Author:** [@patricio1979](https://discourse.processing.org/u/patricio1979)\
**Replies:** 3\
**Last updated:** [October 28, 2022, 6:32pm UTC](https://discourse.processing.org/t/issue-when-synchronizing-several-devices-with-second/39470 "2022-10-28T18:32:40Z")

</div>

I’m doing a music synchronization code but in my imagination all devices works on the same clock. Is this not true? When I execute this code on three devices (mi laptop, cellphone, and Android Tablet) the all go in diff…

---

## [Arduino and Processing gives NullPointerException](https://discourse.processing.org/t/arduino-and-processing-gives-nullpointerexception/39399)

<div class="topic-metadata">

**Author:** [@Ties2901](https://discourse.processing.org/u/Ties2901)\
**Replies:** 7\
**Last updated:** [October 28, 2022, 3:05pm UTC](https://discourse.processing.org/t/arduino-and-processing-gives-nullpointerexception/39399 "2022-10-28T15:05:40Z")

</div>

Hi all! Just started with making a game in processing, connected to Arduino where I am using a joystick. Super exciting, however I am a bit stuck because I keep getting the following error message: NullPointerException …

---

## [Memory usage increases as images are loaded. Help me](https://discourse.processing.org/t/memory-usage-increases-as-images-are-loaded-help-me/39450)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 6\
**Last updated:** [October 26, 2022, 11:01pm UTC](https://discourse.processing.org/t/memory-usage-increases-as-images-are-loaded-help-me/39450 "2022-10-26T23:01:31Z")

</div>

PImage fig\_image; long TIMER\_RE = 0; void setup(){ size(1000,1000); fig\_image = loadImage("fig\_image.jpg"); } void draw(){ if(TIMER\_RE \< millis()){ TIMER\_RE = millis()+1000; fig\_image = loadImage(…

---

## [Open Kinect for Processing Cannot find Kinect](https://discourse.processing.org/t/open-kinect-for-processing-cannot-find-kinect/1076)

<div class="topic-metadata">

**Author:** [@matteocabe](https://discourse.processing.org/u/matteocabe)\
**Replies:** 4\
**Last updated:** [October 27, 2022, 8:15pm UTC](https://discourse.processing.org/t/open-kinect-for-processing-cannot-find-kinect/1076 "2022-10-27T20:15:50Z")

</div>

Hello there, I’m trying to use kinect in Processing using Shifmann’s libraries, I have installed Kinect SDK and the libusbk with Zadig. When I start a simple program in processing it says “cannot find devices” Can som…

---

## [Where can I download Processing 3? Need to use the Handy library](https://discourse.processing.org/t/where-can-i-download-processing-3-need-to-use-the-handy-library/39461)

<div class="topic-metadata">

**Author:** [@mi23](https://discourse.processing.org/u/mi23)\
**Replies:** 1\
**Last updated:** [October 27, 2022, 7:04pm UTC](https://discourse.processing.org/t/where-can-i-download-processing-3-need-to-use-the-handy-library/39461 "2022-10-27T19:04:43Z")

</div>

Hi. I want to use the Handy library but it is not compatible with Processing 4. Thanks!

---

## [How to erase object's trail without 'background' in function draw](https://discourse.processing.org/t/how-to-erase-objects-trail-without-background-in-function-draw/39458)

<div class="topic-metadata">

**Author:** [@turquoise](https://discourse.processing.org/u/turquoise)\
**Replies:** 1\
**Last updated:** [October 27, 2022, 6:56pm UTC](https://discourse.processing.org/t/how-to-erase-objects-trail-without-background-in-function-draw/39458 "2022-10-27T18:56:21Z")

</div>

Hello! I’ve just started learning p5js coding! Is there any way to erase trail, but without ‘background’? I’m trying to make a scanning line that will make sounds when it collapses with ellipse. If I use the backgrou…

---

## [Looking for a way to display particles as random .png images](https://discourse.processing.org/t/looking-for-a-way-to-display-particles-as-random-png-images/39435)

<div class="topic-metadata">

**Author:** [@chxtaigne](https://discourse.processing.org/u/chxtaigne)\
**Replies:** 14\
**Last updated:** [October 27, 2022, 6:43pm UTC](https://discourse.processing.org/t/looking-for-a-way-to-display-particles-as-random-png-images/39435 "2022-10-27T18:43:56Z")

</div>

Hello, I started a project with an ecosystem type code, now i’m trying to display some particles (Particle1 class) as random .png images, everytime a new particle 1 appear i want that it display as a different .png image…

---

## [Loading a sketch to APDE](https://discourse.processing.org/t/loading-a-sketch-to-apde/38773)

<div class="topic-metadata">

**Author:** [@MPROCD](https://discourse.processing.org/u/MPROCD)\
**Replies:** 9\
**Last updated:** [October 27, 2022, 10:59am UTC](https://discourse.processing.org/t/loading-a-sketch-to-apde/38773 "2022-10-27T10:59:15Z")

</div>

Hello I would like to use mobile APDE to run sketches transferred from my Desktop Processing IDE. Did anybody try this operation? What possibilities exist to transfer a sketch from a desktop PC to a APDE running into …

---

## [drawingContext.drawImage causes offset of element on mobile](https://discourse.processing.org/t/drawingcontext-drawimage-causes-offset-of-element-on-mobile/39455)

<div class="topic-metadata">

**Author:** [@PatrckHutchinson](https://discourse.processing.org/u/PatrckHutchinson)\
**Replies:** 0\
**Last updated:** [October 27, 2022, 8:24am UTC](https://discourse.processing.org/t/drawingcontext-drawimage-causes-offset-of-element-on-mobile/39455 "2022-10-27T08:24:49Z")

</div>

Dear all, I’m working on some of Tim Rodenbrökers code involving a copy() function (Processing-Tutorial: Kinetic Typography 1 • tim rodenbröker creative coding), expanding it and making it ready for web. This involves …

---

## [Can't pass a 3D integer array into a GLSL shader](https://discourse.processing.org/t/cant-pass-a-3d-integer-array-into-a-glsl-shader/39392)

<div class="topic-metadata">

**Author:** [@Java.SourceForger](https://discourse.processing.org/u/Java.SourceForger)\
**Replies:** 9\
**Last updated:** [October 26, 2022, 11:27pm UTC](https://discourse.processing.org/t/cant-pass-a-3d-integer-array-into-a-glsl-shader/39392 "2022-10-26T23:27:27Z")

</div>

I have been working on a shader project using the Processing Java Library. I need to be able to use PShader.set() to pass a 3D array of integers into my GLSL shader. I tried all of the present set() methods that they ha…

---

## [GLV Paint A very simple draw and save program](https://discourse.processing.org/t/glv-paint-a-very-simple-draw-and-save-program/12669)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 7\
**Last updated:** [October 26, 2022, 6:29pm UTC](https://discourse.processing.org/t/glv-paint-a-very-simple-draw-and-save-program/12669 "2022-10-26T18:29:25Z")

</div>

A very simple draw and save program that I am sharing as an example. // https://processing.org/tutorials/ // https://processing.org/reference/ // https://processing.org/reference/saveFrame\_.html // https://processing.o…

---

## [Apps using G4P on macOS sometimes miss mouse clicks](https://discourse.processing.org/t/apps-using-g4p-on-macos-sometimes-miss-mouse-clicks/38327)

<div class="topic-metadata">

**Author:** [@PhilHaw](https://discourse.processing.org/u/PhilHaw)\
**Replies:** 13\
**Last updated:** [October 26, 2022, 6:27pm UTC](https://discourse.processing.org/t/apps-using-g4p-on-macos-sometimes-miss-mouse-clicks/38327 "2022-10-26T18:27:01Z")

</div>

I have a built couple of apps using G4P to create a GUI that run on Windows and also on macOS. When on the macOS I sometimes have to click a button several times before the app responds. It might be trying to choose an o…

---

## [Different results with the same code on a computer and a smartphone (with used loadPixels())](https://discourse.processing.org/t/different-results-with-the-same-code-on-a-computer-and-a-smartphone-with-used-loadpixels/39346)

<div class="topic-metadata">

**Author:** [@Nik](https://discourse.processing.org/u/Nik)\
**Replies:** 4\
**Last updated:** [October 26, 2022, 6:15pm UTC](https://discourse.processing.org/t/different-results-with-the-same-code-on-a-computer-and-a-smartphone-with-used-loadpixels/39346 "2022-10-26T18:15:12Z")

</div>

Hello. Different results are obtained with the same code on a computer(windows 10) and a smartphone(android) with used loadPixels(). Below is an example code and screenshots. /////////////////////////////////// function…

---

## [P5js handsfree Recognition is not well](https://discourse.processing.org/t/p5js-handsfree-recognition-is-not-well/39444)

<div class="topic-metadata">

**Author:** [@lili2](https://discourse.processing.org/u/lili2)\
**Replies:** 0\
**Last updated:** [October 26, 2022, 12:56pm UTC](https://discourse.processing.org/t/p5js-handsfree-recognition-is-not-well/39444 "2022-10-26T12:56:43Z")

</div>

Hello, I am working with handsfree. I want to make a sound when a point touches the key, but even if I set the coordinates, the key is recognized all at once. What should I do? Sorry for the poor translation.

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

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