# Latest

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

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

**Page:** 278

---

## [How to split string into words but saving the initial word position](https://discourse.processing.org/t/how-to-split-string-into-words-but-saving-the-initial-word-position/26045)

<div class="topic-metadata">

**Author:** [@jgsantos](https://discourse.processing.org/u/jgsantos)\
**Replies:** 4\
**Last updated:** [December 8, 2020, 7:03pm UTC](https://discourse.processing.org/t/how-to-split-string-into-words-but-saving-the-initial-word-position/26045 "2020-12-08T19:03:11Z")

</div>

Hi! I want to build a sketch where I draw text to the screen as it normally works, as a block of text, but then I want each word to behave separately. At first, I thought it would be easy, just using the spliString funct…

---

## [Place value of textarea from html to processing massage.addUTF("")](https://discourse.processing.org/t/place-value-of-textarea-from-html-to-processing-massage-addutf/26055)

<div class="topic-metadata">

**Author:** [@iosubsys](https://discourse.processing.org/u/iosubsys)\
**Replies:** 0\
**Last updated:** [December 8, 2020, 6:20pm UTC](https://discourse.processing.org/t/place-value-of-textarea-from-html-to-processing-massage-addutf/26055 "2020-12-08T18:20:02Z")

</div>

Hi, We have an issue reading text being submited from html text area by Submit button to specific line in processing code massage.addUTF(" result in here ") any suggestions? Kind regards

---

## [Why is my result stretched?](https://discourse.processing.org/t/why-is-my-result-stretched/26051)

<div class="topic-metadata">

**Author:** [@olaf000olaf](https://discourse.processing.org/u/olaf000olaf)\
**Replies:** 2\
**Last updated:** [December 8, 2020, 5:33pm UTC](https://discourse.processing.org/t/why-is-my-result-stretched/26051 "2020-12-08T17:33:57Z")

</div>

https://www.openprocessing.org/sketch/1037242 here is my code and this is the tutorial I followed https://www.youtube.com/watch?v=rNqaw8LT2ZU and this is the original image

---

## [Beads - Samples all play on AudioContext start](https://discourse.processing.org/t/beads-samples-all-play-on-audiocontext-start/14450)

<div class="topic-metadata">

**Author:** [@immieo](https://discourse.processing.org/u/immieo)\
**Replies:** 3\
**Last updated:** [December 8, 2020, 2:09pm UTC](https://discourse.processing.org/t/beads-samples-all-play-on-audiocontext-start/14450 "2020-12-08T14:09:38Z")

</div>

I’m testing out the Beads library and I’ve got some samples playing via SamplePlayer. The problem is, after loading the samples in and setting up the AudioContext in the setup method, using ac.start() causes all the samp…

---

## [How do I resize a loaded image file like you can with video capture?](https://discourse.processing.org/t/how-do-i-resize-a-loaded-image-file-like-you-can-with-video-capture/26047)

<div class="topic-metadata">

**Author:** [@olaf000olaf](https://discourse.processing.org/u/olaf000olaf)\
**Replies:** 1\
**Last updated:** [December 8, 2020, 1:30pm UTC](https://discourse.processing.org/t/how-do-i-resize-a-loaded-image-file-like-you-can-with-video-capture/26047 "2020-12-08T13:30:31Z")

</div>

How do I change the size of an image like a video capture. I want to do the same as in this video by the coding train but instead, load an image, not a video capture.

---

## [Opening and closing extra window](https://discourse.processing.org/t/opening-and-closing-extra-window/26021)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 7\
**Last updated:** [December 8, 2020, 12:37pm UTC](https://discourse.processing.org/t/opening-and-closing-extra-window/26021 "2020-12-08T12:37:12Z")

</div>

This is my second time asking. The previous time I was unclear about what I wanted, however, it was still useful, so I don’t want to delete it. I want to be able to create an extra window, within the same sketch and mak…

---

## [SVG Export in one file](https://discourse.processing.org/t/svg-export-in-one-file/26022)

<div class="topic-metadata">

**Author:** [@Dimdimtri](https://discourse.processing.org/u/Dimdimtri)\
**Replies:** 2\
**Last updated:** [December 8, 2020, 10:16am UTC](https://discourse.processing.org/t/svg-export-in-one-file/26022 "2020-12-08T10:16:08Z")

</div>

Hello hello everyone, I used to export my svg with processing, but this time I can’t export a single svg with all the designs. Let me explain. Either it exports the first drawing, or it exports a file for each Frame. I w…

---

## [Image() could not open file .mp4](https://discourse.processing.org/t/image-could-not-open-file-mp4/26040)

<div class="topic-metadata">

**Author:** [@sakuraKyrie](https://discourse.processing.org/u/sakuraKyrie)\
**Replies:** 0\
**Last updated:** [December 8, 2020, 6:43am UTC](https://discourse.processing.org/t/image-could-not-open-file-mp4/26040 "2020-12-08T06:43:44Z")

</div>

hi image() method has some problems about open file .mp4 other example can open same video file but in my coding doesn’t work can you help me? this is my coding import processing.video.\*; import com.hamoid.\*; int …

---

## [NullPointerException?](https://discourse.processing.org/t/nullpointerexception/26035)

<div class="topic-metadata">

**Author:** [@angela1811](https://discourse.processing.org/u/angela1811)\
**Replies:** 1\
**Last updated:** [December 8, 2020, 7:20am UTC](https://discourse.processing.org/t/nullpointerexception/26035 "2020-12-08T07:20:33Z")

</div>

Could someone help me? When I import the 31st png file, I have an error :frowning: PImage img; PImage img1; PImage img2; PImage img3; PImage img4; PImage img5; PImage img6; PImage img7; PImage img8; PImage img9; PImag…

---

## [Is it possible to access html elements contained in an iframe?](https://discourse.processing.org/t/is-it-possible-to-access-html-elements-contained-in-an-iframe/26030)

<div class="topic-metadata">

**Author:** [@Bassam](https://discourse.processing.org/u/Bassam)\
**Replies:** 1\
**Last updated:** [December 8, 2020, 3:10am UTC](https://discourse.processing.org/t/is-it-possible-to-access-html-elements-contained-in-an-iframe/26030 "2020-12-08T03:10:04Z")

</div>

I want to access the form data of an html page that is displayed in an iframe from within sketch.js. Is this possible? Fullscreen view https://editor.p5js.org/Bassam/full/mwQs-ReOk Code https://editor.p5js.org/Bassam/…

---

## [Understanding 2D Perlin noise](https://discourse.processing.org/t/understanding-2d-perlin-noise/25847)

<div class="topic-metadata">

**Author:** [@Divitiacus](https://discourse.processing.org/u/Divitiacus)\
**Replies:** 5\
**Last updated:** [December 7, 2020, 11:24pm UTC](https://discourse.processing.org/t/understanding-2d-perlin-noise/25847 "2020-12-07T23:24:18Z")

</div>

Hello, I know this topic was discussed before here, but I would like to understand, how Perlin Noise in 2D is implemented in Processing, so that I can use it consciously. In other topics it was mentioned before, that P…

---

## [Want to make a little debug mode in my program, need help](https://discourse.processing.org/t/want-to-make-a-little-debug-mode-in-my-program-need-help/26015)

<div class="topic-metadata">

**Author:** [@Braunstein](https://discourse.processing.org/u/Braunstein)\
**Replies:** 9\
**Last updated:** [December 7, 2020, 7:55pm UTC](https://discourse.processing.org/t/want-to-make-a-little-debug-mode-in-my-program-need-help/26015 "2020-12-07T19:55:28Z")

</div>

Hi, im a beginner (like, REALLY beginner) and i want to make a Debug Mode for my program. It shold be activated by pressing “o”, and deactivated with “p” (yes, it is intentional that it is (de-)activated with two differe…

---

## [We need to make a pure function where the pinde need to get sorted with highest to the left](https://discourse.processing.org/t/we-need-to-make-a-pure-function-where-the-pinde-need-to-get-sorted-with-highest-to-the-left/26011)

<div class="topic-metadata">

**Author:** [@ctc2502](https://discourse.processing.org/u/ctc2502)\
**Replies:** 2\
**Last updated:** [December 7, 2020, 7:15pm UTC](https://discourse.processing.org/t/we-need-to-make-a-pure-function-where-the-pinde-need-to-get-sorted-with-highest-to-the-left/26011 "2020-12-07T19:15:52Z")

</div>

please format code with \</\> button \* homework policy \* asking questions int liste = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; int index = 0; void setup() { size(400, 400); frameRate(10); blanding(0, liste); } void draw…

---

## [Creating an additional input window](https://discourse.processing.org/t/creating-an-additional-input-window/25982)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 7\
**Last updated:** [December 7, 2020, 6:57pm UTC](https://discourse.processing.org/t/creating-an-additional-input-window/25982 "2020-12-07T18:57:48Z")

</div>

Hi, I’ve gone insane trying to create constant input windows. I’ve been trying to create ways to enter inputs into the program. My question is, how to create a program, which can open a new window whenever a specific f…

---

## [The homework I failed](https://discourse.processing.org/t/the-homework-i-failed/26006)

<div class="topic-metadata">

**Author:** [@duruko](https://discourse.processing.org/u/duruko)\
**Replies:** 4\
**Last updated:** [December 7, 2020, 5:50pm UTC](https://discourse.processing.org/t/the-homework-i-failed/26006 "2020-12-07T17:50:55Z")

</div>

Hello, my Processing skills are as bad as my English. I consult you here with my teacher’s suggestion. I showed the work I tried to do from Processing with sample pictures. I want a spring to multiply by moving to th…

---

## [Issues finding strings](https://discourse.processing.org/t/issues-finding-strings/26017)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 2\
**Last updated:** [December 7, 2020, 4:16pm UTC](https://discourse.processing.org/t/issues-finding-strings/26017 "2020-12-07T16:16:35Z")

</div>

Hi! I have some issues with the split() command and == “xyz”. I am currently creating a console like program, in which you can type “draw ellipse x y r1 r2”. However whenever I use String segments\[\] = split(command,' ')…

---

## [openJDK 10 deprecated, how to switch to version 11?](https://discourse.processing.org/t/openjdk-10-deprecated-how-to-switch-to-version-11/15107)

<div class="topic-metadata">

**Author:** [@hamoid](https://discourse.processing.org/u/hamoid)\
**Replies:** 8\
**Last updated:** [December 7, 2020, 3:17pm UTC](https://discourse.processing.org/t/openjdk-10-deprecated-how-to-switch-to-version-11/15107 "2020-12-07T15:17:46Z")

</div>

Hi, All my recent Processing projects were written with openJDK 10 in IntelliJ Idea, using the Processing jar files as a library. Everything was good :slight\_smile: After I upgraded Ubuntu, openJDK 10 is gone, and I ca…

---

## [Problem installing on Windows 10, missing jnidispatch.dll](https://discourse.processing.org/t/problem-installing-on-windows-10-missing-jnidispatch-dll/26004)

<div class="topic-metadata">

**Author:** [@yukigold](https://discourse.processing.org/u/yukigold)\
**Replies:** 2\
**Last updated:** [December 7, 2020, 1:39pm UTC](https://discourse.processing.org/t/problem-installing-on-windows-10-missing-jnidispatch-dll/26004 "2020-12-07T13:39:39Z")

</div>

Hi! I’ve tried multiple times installing Processing, it always says “jindispatch.dll” is missing but I can see it in the folder… why? What should I do? Thanks in advance if anyone knows!

---

## [Newbie Question: Use Json file to show a list of names one by one](https://discourse.processing.org/t/newbie-question-use-json-file-to-show-a-list-of-names-one-by-one/25837)

<div class="topic-metadata">

**Author:** [@denis](https://discourse.processing.org/u/denis)\
**Replies:** 10\
**Last updated:** [December 7, 2020, 12:03pm UTC](https://discourse.processing.org/t/newbie-question-use-json-file-to-show-a-list-of-names-one-by-one/25837 "2020-12-07T12:03:20Z")

</div>

Hi, I am trying to automate a list of names so that they appear to me one by one when I move my mouse. At first I did it with an array of images with the names inside and it worked. Now I am trying to convert it to a Jso…

---

## [Best practice regarding registerMethod()](https://discourse.processing.org/t/best-practice-regarding-registermethod/26008)

<div class="topic-metadata">

**Author:** [@delsey](https://discourse.processing.org/u/delsey)\
**Replies:** 1\
**Last updated:** [December 7, 2020, 11:52am UTC](https://discourse.processing.org/t/best-practice-regarding-registermethod/26008 "2020-12-07T11:52:14Z")

</div>

I’m writing a library, mostly for my own purposes but also because I wanted to learn how to do it. It consists of gui-elements such as buttons, switches, dropdowns, etc, structurally close to cp5, but I decided to start …

---

## [I want to modify my resistor code to do something cool](https://discourse.processing.org/t/i-want-to-modify-my-resistor-code-to-do-something-cool/25904)

<div class="topic-metadata">

**Author:** [@DijaAngel](https://discourse.processing.org/u/DijaAngel)\
**Replies:** 6\
**Last updated:** [December 7, 2020, 11:28am UTC](https://discourse.processing.org/t/i-want-to-modify-my-resistor-code-to-do-something-cool/25904 "2020-12-07T11:28:30Z")

</div>

int bandValue=0;//defines bandvalue int countClicks=0;//defines countclicks int firstBand=0;//defines firstband int secondBand=0;//defines secondband int thirdBand=0;//defines thirdband int resistor\_value=0;//define…

---

## [Make rect when clicked](https://discourse.processing.org/t/make-rect-when-clicked/25987)

<div class="topic-metadata">

**Author:** [@Tyler](https://discourse.processing.org/u/Tyler)\
**Replies:** 3\
**Last updated:** [December 7, 2020, 3:21am UTC](https://discourse.processing.org/t/make-rect-when-clicked/25987 "2020-12-07T03:21:04Z")

</div>

I’ve been making a drawing project and I wanted the boxes on the left to change the colour of the ellipse and for the boxes on the right to change the colour of the background. It doesn’t matter if the background removes…

---

## [Agregar musica a un codigo](https://discourse.processing.org/t/agregar-musica-a-un-codigo/25990)

<div class="topic-metadata">

**Author:** [@Ghost](https://discourse.processing.org/u/Ghost)\
**Replies:** 1\
**Last updated:** [December 6, 2020, 8:34am UTC](https://discourse.processing.org/t/agregar-musica-a-un-codigo/25990 "2020-12-06T08:34:57Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Quiero agregar una librería de sonido al código de un juego pero me marca error ¿Que puedo hacer?

---

## [Optimizing for memory with images](https://discourse.processing.org/t/optimizing-for-memory-with-images/25772)

<div class="topic-metadata">

**Author:** [@SheCurvesMobius](https://discourse.processing.org/u/SheCurvesMobius)\
**Replies:** 11\
**Last updated:** [December 6, 2020, 9:23pm UTC](https://discourse.processing.org/t/optimizing-for-memory-with-images/25772 "2020-12-06T21:23:21Z")

</div>

Hi all, I’m working on a sketch that will require hundreds of thousands of large (3200 x 5000px) images to be drawn. However, I am just beginning to build the code and I am referencing only 15 images (not thousands), an…

---

## [Image to sine waves](https://discourse.processing.org/t/image-to-sine-waves/25938)

<div class="topic-metadata">

**Author:** [@blaueblume](https://discourse.processing.org/u/blaueblume)\
**Replies:** 6\
**Last updated:** [December 6, 2020, 8:24pm UTC](https://discourse.processing.org/t/image-to-sine-waves/25938 "2020-12-06T20:24:33Z")

</div>

Hello lovely community! I’m working on an p5.js algorithm to transform an image to sine waves, where the amplitude should visualize the grey level of the respective pixel. In my current solution I’m iterating over ever…

---

## [How to use Sound in P5.js Instance Mode](https://discourse.processing.org/t/how-to-use-sound-in-p5-js-instance-mode/25999)

<div class="topic-metadata">

**Author:** [@jgsantos](https://discourse.processing.org/u/jgsantos)\
**Replies:** 3\
**Last updated:** [December 6, 2020, 7:54pm UTC](https://discourse.processing.org/t/how-to-use-sound-in-p5-js-instance-mode/25999 "2020-12-06T19:54:05Z")

</div>

Hi! I’m trying to make a website with multiple p5 canvases on the same page, so, after a lot of research, I came to the conclusion that the most adequate way to do that is by using instance mode. I spent the whole day tr…

---

## [Create pencil sketch from photo](https://discourse.processing.org/t/create-pencil-sketch-from-photo/25997)

<div class="topic-metadata">

**Author:** [@mikemcsharry](https://discourse.processing.org/u/mikemcsharry)\
**Replies:** 1\
**Last updated:** [December 6, 2020, 6:03pm UTC](https://discourse.processing.org/t/create-pencil-sketch-from-photo/25997 "2020-12-06T18:03:58Z")

</div>

Hello, I’m trying to make a pencil sketch from a jpeg image, I found this code using python libraries, but know nothing about Python. Is there a way to do this in processing, also is there a way to do it without alway…

---

## [Tiling a triangle with buttons/clickable areas](https://discourse.processing.org/t/tiling-a-triangle-with-buttons-clickable-areas/25986)

<div class="topic-metadata">

**Author:** [@ferval77](https://discourse.processing.org/u/ferval77)\
**Replies:** 4\
**Last updated:** [December 6, 2020, 4:48pm UTC](https://discourse.processing.org/t/tiling-a-triangle-with-buttons-clickable-areas/25986 "2020-12-06T16:48:15Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi I’m trying to create Tiling a triangle with buttons/clickable areas like this picture, but i cannot figure it out in a simple loop an al…

---

## [My first Apps that interact](https://discourse.processing.org/t/my-first-apps-that-interact/25784)

<div class="topic-metadata">

**Author:** [@Skys](https://discourse.processing.org/u/Skys)\
**Replies:** 2\
**Last updated:** [December 6, 2020, 1:33pm UTC](https://discourse.processing.org/t/my-first-apps-that-interact/25784 "2020-12-06T13:33:35Z")

</div>

I Often missed that games do not interact together. A farmer game gives money for my Space game. Now my first games a have some interactions. however they do not allway got sense but im happy that it already work basic…

---

## [Labelling a Real Time Graph in Processing](https://discourse.processing.org/t/labelling-a-real-time-graph-in-processing/25966)

<div class="topic-metadata">

**Author:** [@saaqib.m](https://discourse.processing.org/u/saaqib.m)\
**Replies:** 3\
**Last updated:** [December 5, 2020, 10:52pm UTC](https://discourse.processing.org/t/labelling-a-real-time-graph-in-processing/25966 "2020-12-05T22:52:44Z")

</div>

Hi, I wanted to know how I could create a real time moving graph (or a graph that resets to 0 after reaching the end) AND be able to label the axes as well. I cannot seem to do this. I have the following code which prov…

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

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