# Processing

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

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

**Page:** 165

---

## [Weird tearing in animations in renderers other than P2D](https://discourse.processing.org/t/weird-tearing-in-animations-in-renderers-other-than-p2d/26061)

<div class="topic-metadata">

**Author:** [@papaboo](https://discourse.processing.org/u/papaboo)\
**Replies:** 0\
**Last updated:** [December 8, 2020, 8:30pm UTC](https://discourse.processing.org/t/weird-tearing-in-animations-in-renderers-other-than-p2d/26061 "2020-12-08T20:30:29Z")

</div>

If I ever try an animation in default renderer or FX2D, I get weird animation tearing like it tries to restrict the motion to the pixel grid, even in 60fps.When I use OpenGL, that’s not happening. I’m not sharing a code…

---

## [Help please! - Ball screensaver](https://discourse.processing.org/t/help-please-ball-screensaver/26042)

<div class="topic-metadata">

**Author:** [@NathanGulrajani](https://discourse.processing.org/u/NathanGulrajani)\
**Replies:** 3\
**Last updated:** [December 8, 2020, 6:53pm UTC](https://discourse.processing.org/t/help-please-ball-screensaver/26042 "2020-12-08T18:53:06Z")

</div>

I want the ball to bounce of all edges of the screen as well as the center spinning rectangle, but the ball just ejects out of the rectangle and falls down. float r = 0; float ballx; float bally; float IIballx; floa…

---

## [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

---

## [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…

---

## [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…

---

## [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…

---

## [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…

---

## [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…

---

## [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…

---

## [System for saving objects](https://discourse.processing.org/t/system-for-saving-objects/25935)

<div class="topic-metadata">

**Author:** [@Rafsing](https://discourse.processing.org/u/Rafsing)\
**Replies:** 9\
**Last updated:** [December 5, 2020, 1:26am UTC](https://discourse.processing.org/t/system-for-saving-objects/25935 "2020-12-05T01:26:40Z")

</div>

I want to create a system for saving objects. I have three classes, that I want to save, to json format, but I don’t want to write by hand every variables. Is there any way that I can move the entire object to json form…

---

## [ControlP5 in Proclipsing](https://discourse.processing.org/t/controlp5-in-proclipsing/25901)

<div class="topic-metadata">

**Author:** [@MouseEars](https://discourse.processing.org/u/MouseEars)\
**Replies:** 3\
**Last updated:** [December 4, 2020, 11:18pm UTC](https://discourse.processing.org/t/controlp5-in-proclipsing/25901 "2020-12-04T23:18:38Z")

</div>

Hi! I’ve been using the Proclipsing plugin to Eclipse to import some code that was originally written in the Processing IDE so that I can work with it more like regular Java. The code works fine in the Processing IDE, b…

---

## [G4P library with GUI builder - Can I make Sliders in an Child applet?](https://discourse.processing.org/t/g4p-library-with-gui-builder-can-i-make-sliders-in-an-child-applet/25646)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 13\
**Last updated:** [December 4, 2020, 10:41pm UTC](https://discourse.processing.org/t/g4p-library-with-gui-builder-can-i-make-sliders-in-an-child-applet/25646 "2020-12-04T22:41:50Z")

</div>

please format code with \</\> button \* homework policy \* asking questions First of all , I love the GUI builder. Saved me lots of trouble… Thank you authors. I am using the Demos/Tests/MultipleWindows sketch and I go…

---

## [Passing (boolean) values from cell to cell in a grid](https://discourse.processing.org/t/passing-boolean-values-from-cell-to-cell-in-a-grid/25967)

<div class="topic-metadata">

**Author:** [@Namrad](https://discourse.processing.org/u/Namrad)\
**Replies:** 1\
**Last updated:** [December 4, 2020, 10:38pm UTC](https://discourse.processing.org/t/passing-boolean-values-from-cell-to-cell-in-a-grid/25967 "2020-12-04T22:38:56Z")

</div>

Hello, I’m having trouble solving a problem which I don’t think should be very difficult, yet I haven’t been able to come close to how to figure it out. The simplified version of my idea starts with a grid of objects, …

---

## [Collision detection with walls and objects](https://discourse.processing.org/t/collision-detection-with-walls-and-objects/25856)

<div class="topic-metadata">

**Author:** [@millionish](https://discourse.processing.org/u/millionish)\
**Replies:** 8\
**Last updated:** [December 4, 2020, 9:44pm UTC](https://discourse.processing.org/t/collision-detection-with-walls-and-objects/25856 "2020-12-04T21:44:38Z")

</div>

I’m making a 2D shooter game where a player navigates through the house (as shown in image). I want to add collision detection with walls and objects so that the player doesn’t go over it. Any simple ways to accompli…

---

## [I need help with a project](https://discourse.processing.org/t/i-need-help-with-a-project/25952)

<div class="topic-metadata">

**Author:** [@psn](https://discourse.processing.org/u/psn)\
**Replies:** 2\
**Last updated:** [December 4, 2020, 8:00pm UTC](https://discourse.processing.org/t/i-need-help-with-a-project/25952 "2020-12-04T20:00:28Z")

</div>

Hello! I have made a sketch with bouncing balls, where every time i click, a new ball appears. I want every new ball to have a random colour. Thank you! //GLOBAL VARIABLES Ball myBall; Text myText; Cursor myCursor; fina…

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

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