# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=68

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

**Page:** 69

---

## [Brick Game Timer Question](https://discourse.processing.org/t/brick-game-timer-question/38605)

<div class="topic-metadata">

**Author:** [@newprogrammer12](https://discourse.processing.org/u/newprogrammer12)\
**Replies:** 9\
**Last updated:** [September 7, 2022, 2:17pm UTC](https://discourse.processing.org/t/brick-game-timer-question/38605 "2022-09-07T14:17:22Z")

</div>

I am trying to make a timer that keeps the “GAME OVER” text on the screen after a few seconds before the game resets. Right now I have a timer more or less copied of the processing forum and I can’t figure out how it wor…

---

## [How to convert a PGraphic into a PImage?](https://discourse.processing.org/t/how-to-convert-a-pgraphic-into-a-pimage/38655)

<div class="topic-metadata">

**Author:** [@michele\_rinaldi](https://discourse.processing.org/u/michele_rinaldi)\
**Replies:** 2\
**Last updated:** [September 7, 2022, 9:37am UTC](https://discourse.processing.org/t/how-to-convert-a-pgraphic-into-a-pimage/38655 "2022-09-07T09:37:07Z")

</div>

Hello, I need to convert a PGraphics into a Pimage in the same script. I tried using the following command, where pg is the elaborate graphics, but it didn’t work: PImage img = pg.get (); Any suggestions? Thanks in …

---

## [Beginner question on drawing mulitple random shapes related to each other?](https://discourse.processing.org/t/beginner-question-on-drawing-mulitple-random-shapes-related-to-each-other/38552)

<div class="topic-metadata">

**Author:** [@i-draw-monkeys](https://discourse.processing.org/u/i-draw-monkeys)\
**Replies:** 12\
**Last updated:** [September 5, 2022, 9:54pm UTC](https://discourse.processing.org/t/beginner-question-on-drawing-mulitple-random-shapes-related-to-each-other/38552 "2022-09-05T21:54:41Z")

</div>

I’ve been learning Processing for about a month and have a new idea and am not quite sure how to approach. What would your approach be? Like what do I need to look up and learn to write something where I draw a shape usi…

---

## [Press a key to play a new video over an existing video](https://discourse.processing.org/t/press-a-key-to-play-a-new-video-over-an-existing-video/38646)

<div class="topic-metadata">

**Author:** [@nitrocaphane](https://discourse.processing.org/u/nitrocaphane)\
**Replies:** 2\
**Last updated:** [September 5, 2022, 6:11pm UTC](https://discourse.processing.org/t/press-a-key-to-play-a-new-video-over-an-existing-video/38646 "2022-09-05T18:11:53Z")

</div>

Hi, total newbie here. I’m creating a \[mouth closed / mouth open\] prototype that eventually would be triggered by an infrared (IR) sensor on a Raspberry Pi. mouth0 = mouth closed mouth1 = mouth open It should play mou…

---

## [How to install library without IDE](https://discourse.processing.org/t/how-to-install-library-without-ide/38638)

<div class="topic-metadata">

**Author:** [@superumam](https://discourse.processing.org/u/superumam)\
**Replies:** 5\
**Last updated:** [September 4, 2022, 10:25pm UTC](https://discourse.processing.org/t/how-to-install-library-without-ide/38638 "2022-09-04T22:25:35Z")

</div>

Hello, everyone. I already tried some processing tests on ubuntu OS on my PC, but I installed processing-sound library with IDE. I need to install and use this library on AWS EC2 without IDE GUI. How can I do this m…

---

## [Problem interpolation from 359 to 1°?](https://discourse.processing.org/t/problem-interpolation-from-359-to-1/38625)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 7\
**Last updated:** [September 4, 2022, 7:47pm UTC](https://discourse.processing.org/t/problem-interpolation-from-359-to-1/38625 "2022-09-04T19:47:17Z")

</div>

Hello, I want to sample a movement. You can sample a circular movement by pressing once the mouse. It works in one way when i go straight forward but not the if i give a modulo. The problem is in void draw here // …

---

## [String Text match and swap to SVG](https://discourse.processing.org/t/string-text-match-and-swap-to-svg/38584)

<div class="topic-metadata">

**Author:** [@brisquez](https://discourse.processing.org/u/brisquez)\
**Replies:** 0\
**Last updated:** [August 31, 2022, 2:33pm UTC](https://discourse.processing.org/t/string-text-match-and-swap-to-svg/38584 "2022-08-31T14:33:44Z")

</div>

Hello there Processing Foundation community. As with all my past (not a lot) programming adventures, firstly you need an idea and afterwards you gradually figure out how to code it. The idea is the following: Canvas …

---

## [Processing 4 + OpenKinect](https://discourse.processing.org/t/processing-4-openkinect/32781)

<div class="topic-metadata">

**Author:** [@dkessner](https://discourse.processing.org/u/dkessner)\
**Replies:** 11\
**Last updated:** [September 3, 2022, 9:50pm UTC](https://discourse.processing.org/t/processing-4-openkinect/32781 "2022-09-03T21:50:39Z")

</div>

Hello Processing folks! I ran into an error running the Open Kinect examples with Processing 4 (on Mac): NoClassDefFoundError: /com/sun/jna/Library. The issue seems to be with jna.jar. The Java/Contents folder has jna…

---

## [P3D rotating sphere to follow mouse](https://discourse.processing.org/t/p3d-rotating-sphere-to-follow-mouse/38425)

<div class="topic-metadata">

**Author:** [@vegas](https://discourse.processing.org/u/vegas)\
**Replies:** 5\
**Last updated:** [September 3, 2022, 6:49pm UTC](https://discourse.processing.org/t/p3d-rotating-sphere-to-follow-mouse/38425 "2022-09-03T18:49:34Z")

</div>

Hi, Im using P3D and I’m trying to make a sphere rotate in the direction towards the mouses location. To clarify, the sphere should remain stationary at its x,y coordinates but rotate in relation to the mouses position…

---

## [Using Leap Motion with Processing 4](https://discourse.processing.org/t/using-leap-motion-with-processing-4/38634)

<div class="topic-metadata">

**Author:** [@acesteef](https://discourse.processing.org/u/acesteef)\
**Replies:** 0\
**Last updated:** [September 3, 2022, 5:24pm UTC](https://discourse.processing.org/t/using-leap-motion-with-processing-4/38634 "2022-09-03T17:24:25Z")

</div>

Hey, I am currently working on a school project where i will use a Leap Motion device. I started on a macbook but apparently Leap Motion does not work on Monterey. So now i am working on my Windows PC at home and tried …

---

## [JavaFX in version 4](https://discourse.processing.org/t/javafx-in-version-4/38632)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 0\
**Last updated:** [September 3, 2022, 3:41pm UTC](https://discourse.processing.org/t/javafx-in-version-4/38632 "2022-09-03T15:41:09Z")

</div>

I am able to add Text, Rectangle, Circle to a JavaFX window in version 4.0.1, but fail when it comes to adding a Button control. Error msg is shown below. Does anyone know how to fix this? import processing.javafx.\*; …

---

## [Sending Strings from Arduino to Processing](https://discourse.processing.org/t/sending-strings-from-arduino-to-processing/38615)

<div class="topic-metadata">

**Author:** [@maro](https://discourse.processing.org/u/maro)\
**Replies:** 7\
**Last updated:** [September 3, 2022, 11:01am UTC](https://discourse.processing.org/t/sending-strings-from-arduino-to-processing/38615 "2022-09-03T11:01:13Z")

</div>

I want to get Processing to read Strings from Arduino. I send two Strings massages from the arduino and I want to store them in two different variables on Processing. I tried to do it, but the two Strings are passed to…

---

## [Moving text around a circular path](https://discourse.processing.org/t/moving-text-around-a-circular-path/38622)

<div class="topic-metadata">

**Author:** [@scottmclaughlin](https://discourse.processing.org/u/scottmclaughlin)\
**Replies:** 2\
**Last updated:** [September 2, 2022, 9:50pm UTC](https://discourse.processing.org/t/moving-text-around-a-circular-path/38622 "2022-09-02T21:50:09Z")

</div>

Hi, Relative Processing noob here. I’m stuck trying to figure out how to make text move around a circle. I took Shiffman’s tutorial on Displaying text character by character and tried to add a fixed distance to push the…

---

## [Sampling a movement. Synchronize it on a tempo](https://discourse.processing.org/t/sampling-a-movement-synchronize-it-on-a-tempo/38396)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 14\
**Last updated:** [September 1, 2022, 4:03pm UTC](https://discourse.processing.org/t/sampling-a-movement-synchronize-it-on-a-tempo/38396 "2022-09-01T16:03:19Z")

</div>

Hello, For my artistic machine project, I need to sample a movement and play it on a loop. This sample must be set on the tempo! But, there is a small problem, let me explain: I draw a movement with the mouse for two …

---

## [Multitouch screen handling in Processing 4](https://discourse.processing.org/t/multitouch-screen-handling-in-processing-4/38331)

<div class="topic-metadata">

**Author:** [@KickMe](https://discourse.processing.org/u/KickMe)\
**Replies:** 5\
**Last updated:** [September 2, 2022, 5:27pm UTC](https://discourse.processing.org/t/multitouch-screen-handling-in-processing-4/38331 "2022-09-02T17:27:48Z")

</div>

Hi, I’m trying to make multitouch work in Processing 4. Onece upon a time in Processing 2, there was a library which seemed to to just that : SMT for Simple Multi Touch. Unfortunately, Processing 3 dropped the support …

---

## [How can I make lines disappear?](https://discourse.processing.org/t/how-can-i-make-lines-disappear/38607)

<div class="topic-metadata">

**Author:** [@TLM](https://discourse.processing.org/u/TLM)\
**Replies:** 11\
**Last updated:** [September 2, 2022, 2:55pm UTC](https://discourse.processing.org/t/how-can-i-make-lines-disappear/38607 "2022-09-02T14:55:13Z")

</div>

Hello, I am really really new to Processing and working on this exercise I just wanted to make the lines disappear (from left to right) when the last lines reaches the right-end of the screen (endX \> width). The final re…

---

## [Game Timer Question](https://discourse.processing.org/t/game-timer-question/38602)

<div class="topic-metadata">

**Author:** [@newprogrammer12](https://discourse.processing.org/u/newprogrammer12)\
**Replies:** 7\
**Last updated:** [September 2, 2022, 1:31pm UTC](https://discourse.processing.org/t/game-timer-question/38602 "2022-09-02T13:31:36Z")

</div>

I have created a game similar to pong and at the end I have made a “Game Over” text appear for 5 seconds before the game resets. The problem is, when the game resets, the timer seems to not work anymore. Any ideas on how…

---

## [How to run processing-java command on ubuntu](https://discourse.processing.org/t/how-to-run-processing-java-command-on-ubuntu/38609)

<div class="topic-metadata">

**Author:** [@superumam](https://discourse.processing.org/u/superumam)\
**Replies:** 1\
**Last updated:** [September 2, 2022, 10:06am UTC](https://discourse.processing.org/t/how-to-run-processing-java-command-on-ubuntu/38609 "2022-09-02T10:06:08Z")

</div>

I downloaded and installed processing4 on ubuntu successfully, but failed to run processing-java command. I developed and run a python script and finally got this issue. Thanks.

---

## [City growth example](https://discourse.processing.org/t/city-growth-example/38562)

<div class="topic-metadata">

**Author:** [@TimoL](https://discourse.processing.org/u/TimoL)\
**Replies:** 3\
**Last updated:** [September 2, 2022, 12:25am UTC](https://discourse.processing.org/t/city-growth-example/38562 "2022-09-02T00:25:21Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Im trying to find a processing example I remember seeing years ago. It was a a bunch of random points that start moving in random directions cr…

---

## [Errors of type "this.g" is null when accessing pure java sketch that extends PApplet as a BufferedImage, output only on 100x100 pixels, other PGraphics objects like size() cannot be used](https://discourse.processing.org/t/errors-of-type-this-g-is-null-when-accessing-pure-java-sketch-that-extends-papplet-as-a-bufferedimage-output-only-on-100x100-pixels-other-pgraphics-objects-like-size-cannot-be-used/37260)

<div class="topic-metadata">

**Author:** [@istinn](https://discourse.processing.org/u/istinn)\
**Replies:** 10\
**Last updated:** [September 1, 2022, 1:20am UTC](https://discourse.processing.org/t/errors-of-type-this-g-is-null-when-accessing-pure-java-sketch-that-extends-papplet-as-a-bufferedimage-output-only-on-100x100-pixels-other-pgraphics-objects-like-size-cannot-be-used/37260 "2022-09-01T01:20:08Z")

</div>

I am trying to get the image output of processing sketches as a bufferedimage using pure java. The goal is to use the code output as a complex “texture” for shapes and paths outside processing. So far I have quite prom…

---

## [Don't understand what this code means (easing)](https://discourse.processing.org/t/dont-understand-what-this-code-means-easing/38588)

<div class="topic-metadata">

**Author:** [@EKEN](https://discourse.processing.org/u/EKEN)\
**Replies:** 4\
**Last updated:** [September 1, 2022, 11:08am UTC](https://discourse.processing.org/t/dont-understand-what-this-code-means-easing/38588 "2022-09-01T11:08:12Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hello I am really new to processing and programing in general and I wanted this smiley to follow my mouse, and then i googled how to do it and j…

---

## [Mouse and keyboard functions](https://discourse.processing.org/t/mouse-and-keyboard-functions/38594)

<div class="topic-metadata">

**Author:** [@reacttoimpact](https://discourse.processing.org/u/reacttoimpact)\
**Replies:** 1\
**Last updated:** [September 1, 2022, 6:27am UTC](https://discourse.processing.org/t/mouse-and-keyboard-functions/38594 "2022-09-01T06:27:00Z")

</div>

Hi, i don’t know if this is possible, but can you simulate mouse clicks, moves and keyboard types with processing? eg. a virtual keyboard/mouse controlled by the code? say the mouse pointer was on the screen(win 10 de…

---

## [Screen density for retina displays](https://discourse.processing.org/t/screen-density-for-retina-displays/38581)

<div class="topic-metadata">

**Author:** [@giulioprisco](https://discourse.processing.org/u/giulioprisco)\
**Replies:** 0\
**Last updated:** [August 31, 2022, 8:15am UTC](https://discourse.processing.org/t/screen-density-for-retina-displays/38581 "2022-08-31T08:15:07Z")

</div>

Hi, newcomer here. I used to be an expert programmer, now I do little things for fun. Love Processing so far. I use a MacBook Pro with 2880X1800 px retina display. Processing doesn’t let me use a window wider than 1440p…

---

## [Question About Game Idea (Breakout / Arkanoid)](https://discourse.processing.org/t/question-about-game-idea-breakout-arkanoid/38565)

<div class="topic-metadata">

**Author:** [@newprogrammer12](https://discourse.processing.org/u/newprogrammer12)\
**Replies:** 23\
**Last updated:** [August 31, 2022, 11:05pm UTC](https://discourse.processing.org/t/question-about-game-idea-breakout-arkanoid/38565 "2022-08-31T23:05:54Z")

</div>

How could you make a ball bounce on a rectangle on the bottom of the screen that is controlled by mouseX? I have only been programming a couple days and haven’t been able to find any help online. I’m trying to code a bri…

---

## [How to get array from append array](https://discourse.processing.org/t/how-to-get-array-from-append-array/38580)

<div class="topic-metadata">

**Author:** [@RNWA](https://discourse.processing.org/u/RNWA)\
**Replies:** 0\
**Last updated:** [August 31, 2022, 8:14am UTC](https://discourse.processing.org/t/how-to-get-array-from-append-array/38580 "2022-08-31T08:14:07Z")

</div>

import de.bezier.data.sql.\*; String dbHost = "localhost"; // if you are using a using a local database, this should be fine String dbPort = "3306"; // replace with database port, MAMP standard is 8889 String dbUser = "r…

---

## [P3D bug on MacOS Ventura](https://discourse.processing.org/t/p3d-bug-on-macos-ventura/38288)

<div class="topic-metadata">

**Author:** [@chrish](https://discourse.processing.org/u/chrish)\
**Replies:** 1\
**Last updated:** [August 31, 2022, 1:46am UTC](https://discourse.processing.org/t/p3d-bug-on-macos-ventura/38288 "2022-08-31T01:46:52Z")

</div>

Hi, I want to ask if anybody else are facing issues and possibly have a solution for running P3D on MacOS Ventura. I am using Processing IDE. I tried built-in examples. The normal size(100, 100) works as expected, but …

---

## [Among the uibooster library examples, it is related to 'table'. Is it possible to change?](https://discourse.processing.org/t/among-the-uibooster-library-examples-it-is-related-to-table-is-it-possible-to-change/38553)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 4\
**Last updated:** [August 30, 2022, 11:02pm UTC](https://discourse.processing.org/t/among-the-uibooster-library-examples-it-is-related-to-table-is-it-possible-to-change/38553 "2022-08-30T23:02:58Z")

</div>

Among the uibooster library examples, it is related to ‘table’. Is it possible to change? Please refer to the image. source code import uibooster.\*; UiBooster booster; void setup() { size(800, 400); booster =…

---

## [Run a processing sketch on a rpi as webserver](https://discourse.processing.org/t/run-a-processing-sketch-on-a-rpi-as-webserver/38559)

<div class="topic-metadata">

**Author:** [@bask185](https://discourse.processing.org/u/bask185)\
**Replies:** 1\
**Last updated:** [August 30, 2022, 8:03pm UTC](https://discourse.processing.org/t/run-a-processing-sketch-on-a-rpi-as-webserver/38559 "2022-08-30T20:03:13Z")

</div>

Hello, I made a GUI in processing some time ago. The application itself can be used to draw a schematic for a modelrailway. This schematic is stored and loaded to and from CSV files. I know very little about modern …

---

## [Generate info window](https://discourse.processing.org/t/generate-info-window/38544)

<div class="topic-metadata">

**Author:** [@TimeLex](https://discourse.processing.org/u/TimeLex)\
**Replies:** 2\
**Last updated:** [August 30, 2022, 5:56pm UTC](https://discourse.processing.org/t/generate-info-window/38544 "2022-08-30T17:56:46Z")

</div>

Hi, does anyone know how to generate such a window or whether there is any library for processing, that does that? Thanks, TimeLex

---

## [\[UDP Library\] Can you tell if 'udp.send' is successful?](https://discourse.processing.org/t/udp-library-can-you-tell-if-udp-send-is-successful/38554)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 1\
**Last updated:** [August 30, 2022, 5:27am UTC](https://discourse.processing.org/t/udp-library-can-you-tell-if-udp-send-is-successful/38554 "2022-08-30T05:27:30Z")

</div>

'import hypermedia.net.\*; ’ library import hypermedia.net.\*; UDP udp; void setup() { size(300,300); udp = new UDP( this, 12001 ); udp.listen( true ); String message = "test"; String ip = "92.168…

[Previous page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=67)

[Next page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=69)
