# Latest

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

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

**Page:** 211

---

## [Sound and 3D surfaces](https://discourse.processing.org/t/sound-and-3d-surfaces/30949)

<div class="topic-metadata">

**Author:** [@orbicularis](https://discourse.processing.org/u/orbicularis)\
**Replies:** 1\
**Last updated:** [July 3, 2021, 11:05am UTC](https://discourse.processing.org/t/sound-and-3d-surfaces/30949 "2021-07-03T11:05:37Z")

</div>

Hi, I have a problem with these codes on Processing. I want to shape a 3d object with sound. There is no problem for shaping surfaces but it goes in loop. Do you know how to stop this? I need only one movement from bot…

---

## [403 error and sound files](https://discourse.processing.org/t/403-error-and-sound-files/31007)

<div class="topic-metadata">

**Author:** [@quargsgreene](https://discourse.processing.org/u/quargsgreene)\
**Replies:** 3\
**Last updated:** [July 3, 2021, 2:33am UTC](https://discourse.processing.org/t/403-error-and-sound-files/31007 "2021-07-03T02:33:37Z")

</div>

I was trying to add a sound file to a sketch on Open Processing and it started throwing a 403 error when I tried to trigger the sound. The files are all uploaded to the site and do not have to be accessed locally, so I w…

---

## [Splitting a text into separate words while maintaining linebreaks](https://discourse.processing.org/t/splitting-a-text-into-separate-words-while-maintaining-linebreaks/31019)

<div class="topic-metadata">

**Author:** [@AndreasRef](https://discourse.processing.org/u/AndreasRef)\
**Replies:** 2\
**Last updated:** [July 3, 2021, 1:00am UTC](https://discourse.processing.org/t/splitting-a-text-into-separate-words-while-maintaining-linebreaks/31019 "2021-07-03T01:00:02Z")

</div>

Hi I have a string of text that contains linebreaks (\\n). I want to make one word at a time appear every time I press the mouse. I can do that, however, I have an issue maintaining the linebreaks as they seem to get los…

---

## [Ketai camnera class: use of setZoom(), getZoom() and flashenabled() nethods](https://discourse.processing.org/t/ketai-camnera-class-use-of-setzoom-getzoom-and-flashenabled-nethods/31012)

<div class="topic-metadata">

**Author:** [@katesfb](https://discourse.processing.org/u/katesfb)\
**Replies:** 1\
**Last updated:** [July 2, 2021, 1:44pm UTC](https://discourse.processing.org/t/ketai-camnera-class-use-of-setzoom-getzoom-and-flashenabled-nethods/31012 "2021-07-02T13:44:36Z")

</div>

Hi i am trying to find some information on the use of the getZoom() and setZoom() methods of the ketai camera class. I couldn’t find much info on the katai.org website. For example some usage code. Also with reference …

---

## [Why the rectMode(CENTER) doesn't work for me?](https://discourse.processing.org/t/why-the-rectmode-center-doesnt-work-for-me/31009)

<div class="topic-metadata">

**Author:** [@jexilo](https://discourse.processing.org/u/jexilo)\
**Replies:** 6\
**Last updated:** [July 2, 2021, 10:50am UTC](https://discourse.processing.org/t/why-the-rectmode-center-doesnt-work-for-me/31009 "2021-07-02T10:50:40Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I followed the tutorial and try to have my rectangle in the center but why it’s still not in the center?

---

## [musicXML importing](https://discourse.processing.org/t/musicxml-importing/30742)

<div class="topic-metadata">

**Author:** [@patricio1979](https://discourse.processing.org/u/patricio1979)\
**Replies:** 3\
**Last updated:** [July 1, 2021, 1:44pm UTC](https://discourse.processing.org/t/musicxml-importing/30742 "2021-07-01T13:44:49Z")

</div>

Hello, I need to import a musicXML file into p5js por parsing I found this post https://forum.processing.org/two/discussion/22417/a-couple-of-processing-powered-music-vids Do you have any hints for doing this?

---

## [How to set canvas size to 100% of a container div?](https://discourse.processing.org/t/how-to-set-canvas-size-to-100-of-a-container-div/18734)

<div class="topic-metadata">

**Author:** [@spoke123](https://discourse.processing.org/u/spoke123)\
**Replies:** 5\
**Last updated:** [July 1, 2021, 1:42pm UTC](https://discourse.processing.org/t/how-to-set-canvas-size-to-100-of-a-container-div/18734 "2021-07-01T13:42:51Z")

</div>

Hi everyone! How could I go about setting my canvas size to be 100% width and height of its container div, so that I could position and scale the sketch via the div with CSS and have it react to window size adjustment? …

---

## [Add ball and move it with cursor until a line](https://discourse.processing.org/t/add-ball-and-move-it-with-cursor-until-a-line/30975)

<div class="topic-metadata">

**Author:** [@kevin20](https://discourse.processing.org/u/kevin20)\
**Replies:** 2\
**Last updated:** [July 1, 2021, 1:37am UTC](https://discourse.processing.org/t/add-ball-and-move-it-with-cursor-until-a-line/30975 "2021-07-01T01:37:38Z")

</div>

hey guys! first of all i want to create the game skee ball in processing. i already have a ball as cursor but i want that the ball is fly after throwing line and not be fixed on the cursor. my code atm: int wurfstaer…

---

## [Adding images to android sketch](https://discourse.processing.org/t/adding-images-to-android-sketch/13144)

<div class="topic-metadata">

**Author:** [@Asra](https://discourse.processing.org/u/Asra)\
**Replies:** 5\
**Last updated:** [June 30, 2021, 7:36pm UTC](https://discourse.processing.org/t/adding-images-to-android-sketch/13144 "2021-06-30T19:36:20Z")

</div>

Recently I have started to work on a processing game that I want to try on android, the only problem is that I started in java mode and switched to android later, so now whenever I call an image it would give me an error…

---

## [Send data between WebView & Android app](https://discourse.processing.org/t/send-data-between-webview-android-app/30946)

<div class="topic-metadata">

**Author:** [@Syed\_Daanish](https://discourse.processing.org/u/Syed_Daanish)\
**Replies:** 6\
**Last updated:** [June 30, 2021, 7:23pm UTC](https://discourse.processing.org/t/send-data-between-webview-android-app/30946 "2021-06-30T19:23:03Z")

</div>

import android.content.res.AssetManager; import android.webkit.WebViewClient; import android.os.Looper; import android.content.Context; import android.view.ViewGroup.LayoutParams; import android.webkit.WebView; import an…

---

## [Can't select \<span\> element in DOM bug](https://discourse.processing.org/t/cant-select-span-element-in-dom-bug/30980)

<div class="topic-metadata">

**Author:** [@griff](https://discourse.processing.org/u/griff)\
**Replies:** 2\
**Last updated:** [June 30, 2021, 4:41pm UTC](https://discourse.processing.org/t/cant-select-span-element-in-dom-bug/30980 "2021-06-30T16:41:34Z")

</div>

I am having trouble using select() to get a span element in the DOM. It looks like it is a bug or I’m doing something wrong. Here is the link: https://editor.p5js.org/im-griff/sketches/D7tf9TAC0 Or below here is the cod…

---

## [I have a problem with coding Java](https://discourse.processing.org/t/i-have-a-problem-with-coding-java/30968)

<div class="topic-metadata">

**Author:** [@christiank79](https://discourse.processing.org/u/christiank79)\
**Replies:** 4\
**Last updated:** [June 30, 2021, 4:15pm UTC](https://discourse.processing.org/t/i-have-a-problem-with-coding-java/30968 "2021-06-30T16:15:30Z")

</div>

Hello, I have a problem with coding I want to save a picture with SVG. This is the code: import processing.serial.\*; String serialPort = "COM4"; // the name of the USB port int imageType = 1; // 0=svg, 1=png, 2=both S…

---

## [Read window.status WebView android](https://discourse.processing.org/t/read-window-status-webview-android/30978)

<div class="topic-metadata">

**Author:** [@Syed\_Daanish](https://discourse.processing.org/u/Syed_Daanish)\
**Replies:** 0\
**Last updated:** [June 30, 2021, 3:36pm UTC](https://discourse.processing.org/t/read-window-status-webview-android/30978 "2021-06-30T15:36:57Z")

</div>

How to read and get window status in Android mode processing I mean this in js of index.html:- window.status = "Hello User!"; If this was loaded in the application as html then I want to read it and process it in my ap…

---

## [Error ProcessingAPP](https://discourse.processing.org/t/error-processingapp/30965)

<div class="topic-metadata">

**Author:** [@salam\_ub](https://discourse.processing.org/u/salam_ub)\
**Replies:** 2\
**Last updated:** [June 30, 2021, 3:16pm UTC](https://discourse.processing.org/t/error-processingapp/30965 "2021-06-30T15:16:08Z")

</div>

Dear all, Once I try Pick Serial and click Connect, I got the error message below : 19:24:16 Serial connection start: detecte serial… 19:24:16 Serial detected: COM3 19:24:16 Serial connection attempt: COM3… java.lan…

---

## [Using texture in PGraphic](https://discourse.processing.org/t/using-texture-in-pgraphic/30967)

<div class="topic-metadata">

**Author:** [@heXYdi](https://discourse.processing.org/u/heXYdi)\
**Replies:** 7\
**Last updated:** [June 30, 2021, 2:04pm UTC](https://discourse.processing.org/t/using-texture-in-pgraphic/30967 "2021-06-30T14:04:43Z")

</div>

Dear people, probably the question is pretty simple and maybe I am just blind. Unfortunately I don’t manage to apply an Image as texture for a PGraphic. In my original code the PGraphic is used in several functions, whi…

---

## [Adding color to a spectrogram and making it round](https://discourse.processing.org/t/adding-color-to-a-spectrogram-and-making-it-round/26138)

<div class="topic-metadata">

**Author:** [@mkok](https://discourse.processing.org/u/mkok)\
**Replies:** 11\
**Last updated:** [June 28, 2021, 12:59pm UTC](https://discourse.processing.org/t/adding-color-to-a-spectrogram-and-making-it-round/26138 "2021-06-28T12:59:40Z")

</div>

Hai, for a schoolproject i want to create a round spectrogram, but I am still kinda new to processing. I created with my teacher this code and I actually want to add a color (or even more) to the spectrogram. It does no…

---

## [ScreenCapture with Robot Class (code not working)](https://discourse.processing.org/t/screencapture-with-robot-class-code-not-working/30551)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 10\
**Last updated:** [June 30, 2021, 10:43am UTC](https://discourse.processing.org/t/screencapture-with-robot-class-code-not-working/30551 "2021-06-30T10:43:35Z")

</div>

i have an irl card that has the rgb value:11, 96, 133. i made a code that, scans the screen for that color so when you have the app camera open it says kaart gevonden (found card in dutch) on the screen. but it is not w…

---

## [How to find a colour on the screen?](https://discourse.processing.org/t/how-to-find-a-colour-on-the-screen/30405)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 7\
**Last updated:** [June 30, 2021, 10:06am UTC](https://discourse.processing.org/t/how-to-find-a-colour-on-the-screen/30405 "2021-06-30T10:06:39Z")

</div>

i have a colour value (11, 96, 133) and i want the program to tell me if there is any colour that is really similar or exactly the same. here is the rest of my code if its useful: PImage screenshot; import java.awt.Robo…

---

## [G4P NullPointerexception (Unknown Source)](https://discourse.processing.org/t/g4p-nullpointerexception-unknown-source/30961)

<div class="topic-metadata">

**Author:** [@TPMoyer](https://discourse.processing.org/u/TPMoyer)\
**Replies:** 3\
**Last updated:** [June 30, 2021, 6:53am UTC](https://discourse.processing.org/t/g4p-nullpointerexception-unknown-source/30961 "2021-06-30T06:53:47Z")

</div>

Have been getting an the worst of all possible worlds, an intermittent error, see image Application is an interface to, and will not run without being connected to, an arduino which has Grbl1.1 loaded. Full code is…

---

## [Alinear textfield en controlP5](https://discourse.processing.org/t/alinear-textfield-en-controlp5/30969)

<div class="topic-metadata">

**Author:** [@TiagoNess](https://discourse.processing.org/u/TiagoNess)\
**Replies:** 0\
**Last updated:** [June 30, 2021, 2:39am UTC](https://discourse.processing.org/t/alinear-textfield-en-controlp5/30969 "2021-06-30T02:39:49Z")

</div>

Hola! quisiera alinear la entrada en texfield de controlP5 de: derecha a izquierda en java el método de jtexfield es: JTextField t = new JTextField(); t.setHorizontalAlignment(JTextField.RIGHT) si alguien me puede a…

---

## [Printing a image with real inkjet printer](https://discourse.processing.org/t/printing-a-image-with-real-inkjet-printer/29845)

<div class="topic-metadata">

**Author:** [@datacolor](https://discourse.processing.org/u/datacolor)\
**Replies:** 3\
**Last updated:** [June 29, 2021, 10:01pm UTC](https://discourse.processing.org/t/printing-a-image-with-real-inkjet-printer/29845 "2021-06-29T22:01:14Z")

</div>

please format code with \</\> button \* homework policy \* asking questions How print a image with processing??

---

## [Force screen to update](https://discourse.processing.org/t/force-screen-to-update/30954)

<div class="topic-metadata">

**Author:** [@pack.mcmeta](https://discourse.processing.org/u/pack.mcmeta)\
**Replies:** 7\
**Last updated:** [June 29, 2021, 8:30pm UTC](https://discourse.processing.org/t/force-screen-to-update/30954 "2021-06-29T20:30:50Z")

</div>

My question is if I can force processing to update the display window after I call functions like rect() or arc(). So those functions would be called, then I could do something to have them display on screen before draw(…

---

## [Problems with converting a P5.js sketch to Processing](https://discourse.processing.org/t/problems-with-converting-a-p5-js-sketch-to-processing/30963)

<div class="topic-metadata">

**Author:** [@lmato](https://discourse.processing.org/u/lmato)\
**Replies:** 4\
**Last updated:** [June 29, 2021, 5:01pm UTC](https://discourse.processing.org/t/problems-with-converting-a-p5-js-sketch-to-processing/30963 "2021-06-29T17:01:47Z")

</div>

Hi, we have to research about particles and I found one sketch that I liked, but noticed its on P5.js. I’ve trying to open remake this sketch in processing but i’m having a really hard time doing it (3 and half hours unt…

---

## [How to set default value of a 2D array?](https://discourse.processing.org/t/how-to-set-default-value-of-a-2d-array/27948)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 8\
**Last updated:** [June 29, 2021, 1:18pm UTC](https://discourse.processing.org/t/how-to-set-default-value-of-a-2d-array/27948 "2021-06-29T13:18:15Z")

</div>

Hi! When I used to use 2D fixed arrays (int\[\]\[\], or int\[\] for that matter) it was always a bit annoying setting the values. Like default boolean state in an array is false. Is it possible to set it to something else wit…

---

## [Round() produces NaN](https://discourse.processing.org/t/round-produces-nan/30943)

<div class="topic-metadata">

**Author:** [@maze](https://discourse.processing.org/u/maze)\
**Replies:** 3\
**Last updated:** [June 29, 2021, 9:36am UTC](https://discourse.processing.org/t/round-produces-nan/30943 "2021-06-29T09:36:13Z")

</div>

When rounding very small numbers to some decimal places, e.g round(1.234567e-14, 2) , the result is NaN. Not specifying decimals - round(1.234567e-14) - gives a correct result of 0. Does someone know if that is a …

---

## [P5.js editor on iPad](https://discourse.processing.org/t/p5-js-editor-on-ipad/30867)

<div class="topic-metadata">

**Author:** [@Lillbre](https://discourse.processing.org/u/Lillbre)\
**Replies:** 1\
**Last updated:** [June 29, 2021, 9:29am UTC](https://discourse.processing.org/t/p5-js-editor-on-ipad/30867 "2021-06-29T09:29:34Z")

</div>

When I try to use the p5.js editor on iPad the preview just show “Loading” both in Chrome and Safari. Is there a temporary error or has something changed with the editor so it doesn’t work on iPads any more?

---

## [The import javax.crypto cannot be resolved](https://discourse.processing.org/t/the-import-javax-crypto-cannot-be-resolved/30950)

<div class="topic-metadata">

**Author:** [@shuptuu](https://discourse.processing.org/u/shuptuu)\
**Replies:** 2\
**Last updated:** [June 29, 2021, 8:26am UTC](https://discourse.processing.org/t/the-import-javax-crypto-cannot-be-resolved/30950 "2021-06-29T08:26:58Z")

</div>

Hi, I’d like to use the javax.crypto library in Processing, but I have the message “The import javax.crypto cannot be resolved” Is there anybody who already 've been able to use it with Processing? Is there anything sp…

---

## [Background images in draw slows operation, in setup leaves trail, also z-index question](https://discourse.processing.org/t/background-images-in-draw-slows-operation-in-setup-leaves-trail-also-z-index-question/30955)

<div class="topic-metadata">

**Author:** [@silphonix](https://discourse.processing.org/u/silphonix)\
**Replies:** 4\
**Last updated:** [June 29, 2021, 8:10am UTC](https://discourse.processing.org/t/background-images-in-draw-slows-operation-in-setup-leaves-trail-also-z-index-question/30955 "2021-06-29T08:10:34Z")

</div>

Hi, I’m trying to make a representation of frogs jumping out of water. This is my code: ArrayList\<Frogs\> frog = new ArrayList(); PImage pataIzq, pataDer,cuerpo; PImage bgBackline, bgBluerose, bgFloaters, bgGrassnotop, …

---

## [Stuck with trying to remove points close to the edge, how can I do this?](https://discourse.processing.org/t/stuck-with-trying-to-remove-points-close-to-the-edge-how-can-i-do-this/30939)

<div class="topic-metadata">

**Author:** [@alt](https://discourse.processing.org/u/alt)\
**Replies:** 1\
**Last updated:** [June 28, 2021, 8:03pm UTC](https://discourse.processing.org/t/stuck-with-trying-to-remove-points-close-to-the-edge-how-can-i-do-this/30939 "2021-06-28T20:03:44Z")

</div>

I have a problem, I’m trying to remove “stations” or points less than a certain length from the edge, let’s say, 120px from the edge. Now, I tried using a function that removes the stations if they get too close, but tha…

---

## [Please help! Processing is showing loadTable is not defined?](https://discourse.processing.org/t/please-help-processing-is-showing-loadtable-is-not-defined/30816)

<div class="topic-metadata">

**Author:** [@ShenpaiSharma](https://discourse.processing.org/u/ShenpaiSharma)\
**Replies:** 11\
**Last updated:** [June 28, 2021, 3:34pm UTC](https://discourse.processing.org/t/please-help-processing-is-showing-loadtable-is-not-defined/30816 "2021-06-28T15:34:14Z")

</div>

Want to import csv data in Processing but it is showing loadTable is not defined… Error: jQuery.Deferred exception: loadTable is not defined ReferenceError: loadTable is not defined at Processing.Processing.setup (eva…

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

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