# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=172

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

**Page:** 173

---

## [Displaying for a certain amount of time](https://discourse.processing.org/t/displaying-for-a-certain-amount-of-time/33926)

<div class="topic-metadata">

**Author:** [@k5221](https://discourse.processing.org/u/k5221)\
**Replies:** 1\
**Last updated:** [December 4, 2021, 9:40pm UTC](https://discourse.processing.org/t/displaying-for-a-certain-amount-of-time/33926 "2021-12-04T21:40:58Z")

</div>

I’m trying to switch between two visuals on the screen (orbitpic(), meltingGlobal() ) every 5 seconds. If I call either of them, it works. After switching inside the if statement, if(millis() - ptime \> 5000), I want to k…

---

## [Scrambling an Image](https://discourse.processing.org/t/scrambling-an-image/33879)

<div class="topic-metadata">

**Author:** [@bcabc](https://discourse.processing.org/u/bcabc)\
**Replies:** 4\
**Last updated:** [December 2, 2021, 9:28pm UTC](https://discourse.processing.org/t/scrambling-an-image/33879 "2021-12-02T21:28:25Z")

</div>

Hi- I’d like to rearrange a JPG’s pixels so that they were in random order - preferably in 4x4 blocks. I’m having a little trouble figuring this out. I was hoping something like the following would work - but it doesn’…

---

## [\[p5.js\] How do you know it's a device? / how to make menubar?](https://discourse.processing.org/t/p5-js-how-do-you-know-its-a-device-how-to-make-menubar/33918)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 1\
**Last updated:** [December 4, 2021, 2:32pm UTC](https://discourse.processing.org/t/p5-js-how-do-you-know-its-a-device-how-to-make-menubar/33918 "2021-12-04T14:32:16Z")

</div>

Hello. We would appreciate it if you could let us know if you have any questions. In p5 coding, ‘desktop’, ‘mobile’ How do you know it’s a device? Usually I want to implement a menu bar on the homepage. 2-1) Are…

---

## [P5js to Processing](https://discourse.processing.org/t/p5js-to-processing/33900)

<div class="topic-metadata">

**Author:** [@Kristina](https://discourse.processing.org/u/Kristina)\
**Replies:** 1\
**Last updated:** [December 4, 2021, 1:23pm UTC](https://discourse.processing.org/t/p5js-to-processing/33900 "2021-12-04T13:23:09Z")

</div>

Hello! I have created this game in p5js but now i have to convert it to processing and i have no idea how to do it. Can anyone help me? var enemy, enemyList,enemyIMG; //Obstacle Variables var player, playerIMG, bullet…

---

## [Is possible use Processing library (ex. Network Library) on p5.js?](https://discourse.processing.org/t/is-possible-use-processing-library-ex-network-library-on-p5-js/33919)

<div class="topic-metadata">

**Author:** [@Stefano](https://discourse.processing.org/u/Stefano)\
**Replies:** 1\
**Last updated:** [December 4, 2021, 1:36pm UTC](https://discourse.processing.org/t/is-possible-use-processing-library-ex-network-library-on-p5-js/33919 "2021-12-04T13:36:50Z")

</div>

Hello everybody, I want do the example of the Network Library of Processing “Shared drawing canvas” using my MAC with the Processing code as a server and my IPad with Processing.app (p5.js) as a client, how can this be …

---

## [Is possible use Shared drawing canvas (example code) on P5.js (IPad)?](https://discourse.processing.org/t/is-possible-use-shared-drawing-canvas-example-code-on-p5-js-ipad/33917)

<div class="topic-metadata">

**Author:** [@Stefano](https://discourse.processing.org/u/Stefano)\
**Replies:** 0\
**Last updated:** [December 4, 2021, 12:34pm UTC](https://discourse.processing.org/t/is-possible-use-shared-drawing-canvas-example-code-on-p5-js-ipad/33917 "2021-12-04T12:34:51Z")

</div>

Hello everybody, I want do the example of the Network Library of Processing “Shared drawing canvas” using my MAC with the processing code as a server and my IPad with Processing.app (p5.js) as a client, how can this be …

---

## [X=y=z doesn't return error](https://discourse.processing.org/t/x-y-z-doesnt-return-error/33912)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 3\
**Last updated:** [December 4, 2021, 9:31am UTC](https://discourse.processing.org/t/x-y-z-doesnt-return-error/33912 "2021-12-04T09:31:05Z")

</div>

I was making a simple project, when I mistyped the code and ended with this. What does it do? Why doesn’t it return an error? Why is ON underlined in yellow? Doesn’t it change? Or is it because it is not used later in …

---

## [How do I get the line to stop at the edge?](https://discourse.processing.org/t/how-do-i-get-the-line-to-stop-at-the-edge/33894)

<div class="topic-metadata">

**Author:** [@chaotic.rabbit](https://discourse.processing.org/u/chaotic.rabbit)\
**Replies:** 1\
**Last updated:** [December 4, 2021, 12:24am UTC](https://discourse.processing.org/t/how-do-i-get-the-line-to-stop-at-the-edge/33894 "2021-12-04T00:24:22Z")

</div>

Hi, I’ve been trying to draw a blue line like the one shown in the image that passes through 2 given points (red points) and ends as soon as it touches the black line (which i know the x position of but I dont know the y…

---

## [Is possible Shared drawing canvas between Processing (on MAC) and P5.js?](https://discourse.processing.org/t/is-possible-shared-drawing-canvas-between-processing-on-mac-and-p5-js/33909)

<div class="topic-metadata">

**Author:** [@Stefano](https://discourse.processing.org/u/Stefano)\
**Replies:** 0\
**Last updated:** [December 3, 2021, 10:16pm UTC](https://discourse.processing.org/t/is-possible-shared-drawing-canvas-between-processing-on-mac-and-p5-js/33909 "2021-12-03T22:16:10Z")

</div>

Hello everybody, I want do the example of the Network Library of Processing “Shared drawing canvas” using my MAC with the processing code as a server and my IPad with Processing.app (p5.js) as a client, how can this be…

---

## [2d camera in Processing follow up](https://discourse.processing.org/t/2d-camera-in-processing-follow-up/33890)

<div class="topic-metadata">

**Author:** [@SNICKRS](https://discourse.processing.org/u/SNICKRS)\
**Replies:** 4\
**Last updated:** [December 3, 2021, 9:47pm UTC](https://discourse.processing.org/t/2d-camera-in-processing-follow-up/33890 "2021-12-03T21:47:00Z")

</div>

Similarly to my last post, I am trying to make a 2d camera in processing. So far, I have the camera “look” where the character points towards the mouse, but I can’t find anything to help me with camera movement in 2d. Ar…

---

## [Como introducir gradiente en bolitas](https://discourse.processing.org/t/como-introducir-gradiente-en-bolitas/33866)

<div class="topic-metadata">

**Author:** [@srb777](https://discourse.processing.org/u/srb777)\
**Replies:** 4\
**Last updated:** [December 3, 2021, 9:33pm UTC](https://discourse.processing.org/t/como-introducir-gradiente-en-bolitas/33866 "2021-12-03T21:33:30Z")

</div>

Hola, estoy aprendiendo a programar con processing y necesito ayuda. Necesitaria pintar estas bolitas con gradiente, como en esta foto: Mi codigo es el siguiente: int columns = 20; // Número de columnes int rows = …

---

## [Export PDF on child PApplet](https://discourse.processing.org/t/export-pdf-on-child-papplet/33903)

<div class="topic-metadata">

**Author:** [@MonoRail](https://discourse.processing.org/u/MonoRail)\
**Replies:** 0\
**Last updated:** [December 3, 2021, 8:11pm UTC](https://discourse.processing.org/t/export-pdf-on-child-papplet/33903 "2021-12-03T20:11:32Z")

</div>

I’m writing a program with a GUI (ControlP5) in which the parent PApplet contains the textfields with parameters and a button to export to PDF. I want the child PApplet to contain all of the drawn information and export …

---

## [How to send data like singal in pde to apk? - esp32 radar](https://discourse.processing.org/t/how-to-send-data-like-singal-in-pde-to-apk-esp32-radar/33897)

<div class="topic-metadata">

**Author:** [@abuk](https://discourse.processing.org/u/abuk)\
**Replies:** 0\
**Last updated:** [December 3, 2021, 6:29pm UTC](https://discourse.processing.org/t/how-to-send-data-like-singal-in-pde-to-apk-esp32-radar/33897 "2021-12-03T18:29:44Z")

</div>

Hello, I need some idea how to send data to processing apk. I have a radar project it shows data on processing.pde via signal, how to send the same data to apk?

---

## [Extending a line](https://discourse.processing.org/t/extending-a-line/9880)

<div class="topic-metadata">

**Author:** [@kristofbolyai](https://discourse.processing.org/u/kristofbolyai)\
**Replies:** 9\
**Last updated:** [December 3, 2021, 12:15pm UTC](https://discourse.processing.org/t/extending-a-line/9880 "2021-12-03T12:15:25Z")

</div>

I have a line between two circles and I want to go them to go across the whole screen, but I only have the circle center position This is what I have: https://imgur.com/a/hJQ4mAv I want it to look like this: . PS: …

---

## [Processing javadoc](https://discourse.processing.org/t/processing-javadoc/33893)

<div class="topic-metadata">

**Author:** [@WhiteSte](https://discourse.processing.org/u/WhiteSte)\
**Replies:** 0\
**Last updated:** [December 3, 2021, 11:50am UTC](https://discourse.processing.org/t/processing-javadoc/33893 "2021-12-03T11:50:57Z")

</div>

Dear guys, I’m using processing 4 inside the visual studio editor. For doing so, I imported the processing jars inside my project. Here the screenshots : My question: how can i import processing javadoc inside my e…

---

## [How to introduce gradient into ellipse](https://discourse.processing.org/t/how-to-introduce-gradient-into-ellipse/33863)

<div class="topic-metadata">

**Author:** [@srb777](https://discourse.processing.org/u/srb777)\
**Replies:** 1\
**Last updated:** [December 1, 2021, 9:41pm UTC](https://discourse.processing.org/t/how-to-introduce-gradient-into-ellipse/33863 "2021-12-01T21:41:39Z")

</div>

Hi, I am learning to program with processing and I need help.I need to paint the balls with gradient, It has to look like this: My code: int columns = 20; // Número de columnes int rows = 10; // Número de files floa…

---

## [How to randomly change the background color between 'X' amount of static colors with each output](https://discourse.processing.org/t/how-to-randomly-change-the-background-color-between-x-amount-of-static-colors-with-each-output/33880)

<div class="topic-metadata">

**Author:** [@sloppy](https://discourse.processing.org/u/sloppy)\
**Replies:** 2\
**Last updated:** [December 2, 2021, 4:16pm UTC](https://discourse.processing.org/t/how-to-randomly-change-the-background-color-between-x-amount-of-static-colors-with-each-output/33880 "2021-12-02T16:16:21Z")

</div>

I’ve been trying this for a couple of days and can never seem to get it right with what I imagine would be a simple piece of syntax/code. Each generated image’s background I want to either be between -1 to 256, and also…

---

## [Daft question about variable using mouseX and mouseY](https://discourse.processing.org/t/daft-question-about-variable-using-mousex-and-mousey/33875)

<div class="topic-metadata">

**Author:** [@AudioBabble](https://discourse.processing.org/u/AudioBabble)\
**Replies:** 5\
**Last updated:** [December 2, 2021, 1:15pm UTC](https://discourse.processing.org/t/daft-question-about-variable-using-mousex-and-mousey/33875 "2021-12-02T13:15:32Z")

</div>

I have a daft question… why do get no output when I define a variable using mouseX & mouseY? int XY = mouseX+mouseY; void draw() { println(XY,mouseX+mouseY); } left-hand number stays at zero, right hand number cha…

---

## [Is Processing a pure Java platform IDE?](https://discourse.processing.org/t/is-processing-a-pure-java-platform-ide/33821)

<div class="topic-metadata">

**Author:** [@R1S8K](https://discourse.processing.org/u/R1S8K)\
**Replies:** 2\
**Last updated:** [December 2, 2021, 7:13am UTC](https://discourse.processing.org/t/is-processing-a-pure-java-platform-ide/33821 "2021-12-02T07:13:19Z")

</div>

Hi, I downloaded eclipse to test some java snippets and examples. My question now, is the coding system in Processing is exactly the same as in other IDE like eclipse ?

---

## [Two objects in one](https://discourse.processing.org/t/two-objects-in-one/33871)

<div class="topic-metadata">

**Author:** [@tati1202](https://discourse.processing.org/u/tati1202)\
**Replies:** 0\
**Last updated:** [December 1, 2021, 10:32pm UTC](https://discourse.processing.org/t/two-objects-in-one/33871 "2021-12-01T22:32:12Z")

</div>

Hi, I want to unite the class Juego with the Class Pantallas to replace the golBayernD screen. How can I do this? Here’s the code: GitHub - BautiFelli/tecnomultimedia at tp6

---

## [Robot down key not working](https://discourse.processing.org/t/robot-down-key-not-working/33838)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 2\
**Last updated:** [November 30, 2021, 7:29pm UTC](https://discourse.processing.org/t/robot-down-key-not-working/33838 "2021-11-30T19:29:21Z")

</div>

why does this robot not pres the down key? import java.awt.AWTException; import java.awt.Robot; import java.awt.event.KeyEvent; Robot robot; void setup() { size(400, 400); //Let's get a Robot... try { robo…

---

## [Processing.net questions using Client / Server](https://discourse.processing.org/t/processing-net-questions-using-client-server/33860)

<div class="topic-metadata">

**Author:** [@yodan](https://discourse.processing.org/u/yodan)\
**Replies:** 1\
**Last updated:** [December 1, 2021, 2:57pm UTC](https://discourse.processing.org/t/processing-net-questions-using-client-server/33860 "2021-12-01T14:57:56Z")

</div>

Two clarifying questions regarding the processing.net library: When I use the Client constructor is there a way to control the timeout variable? The default is about 10-15s before it throws a timed out exception which …

---

## [Webcam capture fails for .exe on win10](https://discourse.processing.org/t/webcam-capture-fails-for-exe-on-win10/33834)

<div class="topic-metadata">

**Author:** [@mario60](https://discourse.processing.org/u/mario60)\
**Replies:** 2\
**Last updated:** [December 1, 2021, 1:44pm UTC](https://discourse.processing.org/t/webcam-capture-fails-for-exe-on-win10/33834 "2021-12-01T13:44:30Z")

</div>

Hi I am trying a simple webcam script on a Win10 machine, which runs fine. Still, the exported .exe fails, I do believe because it fails to upload GStreamer. Note folder structure is created as: script\_win64 – java …

---

## [Trying to draw a shape based on two circles](https://discourse.processing.org/t/trying-to-draw-a-shape-based-on-two-circles/33841)

<div class="topic-metadata">

**Author:** [@LucaP](https://discourse.processing.org/u/LucaP)\
**Replies:** 6\
**Last updated:** [December 1, 2021, 1:13pm UTC](https://discourse.processing.org/t/trying-to-draw-a-shape-based-on-two-circles/33841 "2021-12-01T13:13:55Z")

</div>

Hi, I am trying to draw a shape like this: It is important that the top and bottom of the shape match the radius of a perfect circle. I have tried doing this with shapes and beziérs but I can’t get my head around to…

---

## [drawImage Performance](https://discourse.processing.org/t/drawimage-performance/33854)

<div class="topic-metadata">

**Author:** [@Skranker](https://discourse.processing.org/u/Skranker)\
**Replies:** 0\
**Last updated:** [December 1, 2021, 10:22am UTC](https://discourse.processing.org/t/drawimage-performance/33854 "2021-12-01T10:22:29Z")

</div>

Hey, im having a problem with p5 Performance. Im building a UI tool that uses some p5 Images, the largest ones are around 1000x800px or so. Normally the Performance is good and it looks like this in the profiler: S…

---

## [New Contributor](https://discourse.processing.org/t/new-contributor/33844)

<div class="topic-metadata">

**Author:** [@gautam24](https://discourse.processing.org/u/gautam24)\
**Replies:** 1\
**Last updated:** [December 1, 2021, 10:44am UTC](https://discourse.processing.org/t/new-contributor/33844 "2021-12-01T10:44:19Z")

</div>

Hello Everyone! I am Gautam Arora. I am a third year student pursuing a BTech degree in Information Technology. I am experienced in JavaScript and have contributed to organizations like Zulip, ESLint, and Material UI. Lo…

---

## [Stretch the canvas without changing the resolution](https://discourse.processing.org/t/stretch-the-canvas-without-changing-the-resolution/33836)

<div class="topic-metadata">

**Author:** [@Sayochi](https://discourse.processing.org/u/Sayochi)\
**Replies:** 1\
**Last updated:** [November 30, 2021, 11:45pm UTC](https://discourse.processing.org/t/stretch-the-canvas-without-changing-the-resolution/33836 "2021-11-30T23:45:10Z")

</div>

can I stretch the canvas without changing the resolution (width,height veriables)? I’m using my p5js sketch canvas inside a html div. which I’m allowed to thinker with. what I thought was initial canvas size can not be…

---

## [Help with dragging images!](https://discourse.processing.org/t/help-with-dragging-images/33661)

<div class="topic-metadata">

**Author:** [@quixotic](https://discourse.processing.org/u/quixotic)\
**Replies:** 3\
**Last updated:** [November 30, 2021, 9:13pm UTC](https://discourse.processing.org/t/help-with-dragging-images/33661 "2021-11-30T21:13:39Z")

</div>

Hello all! I am very very new to coding and am attempting to create a code in which I can click on an image, have it change into a different image, then be able to click and drag the new image. I want this to be able to …

---

## [How to know if certain pixel is red, or blue, or green](https://discourse.processing.org/t/how-to-know-if-certain-pixel-is-red-or-blue-or-green/33802)

<div class="topic-metadata">

**Author:** [@yalaniv](https://discourse.processing.org/u/yalaniv)\
**Replies:** 9\
**Last updated:** [November 30, 2021, 8:14pm UTC](https://discourse.processing.org/t/how-to-know-if-certain-pixel-is-red-or-blue-or-green/33802 "2021-11-30T20:14:30Z")

</div>

I want to change colors from of a certain image, so all the reds will be certain blue, and all the blues will be certain blue. in order to do that, I am looking for some logic in the colors numbers, so I can use a simp…

---

## [Difficulty of running code when compacting sketch into a ZIP-file](https://discourse.processing.org/t/difficulty-of-running-code-when-compacting-sketch-into-a-zip-file/33113)

<div class="topic-metadata">

**Author:** [@William](https://discourse.processing.org/u/William)\
**Replies:** 3\
**Last updated:** [November 30, 2021, 7:49pm UTC](https://discourse.processing.org/t/difficulty-of-running-code-when-compacting-sketch-into-a-zip-file/33113 "2021-11-30T19:49:48Z")

</div>

So, I have completed an animation with a custom background picture i.e. a picture of a google search. It runs normal & fine on my laptop but when I compremise it into a ZIP-file to send it to my supervisor, I get constan…

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=171)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=173)
