# Libraries

**URL:** https://discourse.processing.org/c/processing/processing-libraries/19.md?page=70

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

**Page:** 71

---

## [Why do i get NullPointerException and how to fix it](https://discourse.processing.org/t/why-do-i-get-nullpointerexception-and-how-to-fix-it/4456)

<div class="topic-metadata">

**Author:** [@processing\_guy](https://discourse.processing.org/u/processing_guy)\
**Replies:** 4\
**Last updated:** [October 20, 2018, 12:52pm UTC](https://discourse.processing.org/t/why-do-i-get-nullpointerexception-and-how-to-fix-it/4456 "2018-10-20T12:52:38Z")

</div>

import fisica.\*; FBox boxButton; FCircle circleButton; FPoly polyButton; FWorld world; color buttonColor = #155AAD; color hoverColor = #55AA11; color bodyColor = #E6B800; float pos = 0; float angle = 0; float gx = 1…

---

## [\[SOLVED\] PeasyCam raises NoSuchMethodError for PApplet::registerDraw when using Intellij](https://discourse.processing.org/t/solved-peasycam-raises-nosuchmethoderror-for-papplet-registerdraw-when-using-intellij/4535)

<div class="topic-metadata">

**Author:** [@ReflectiveOperation](https://discourse.processing.org/u/ReflectiveOperation)\
**Replies:** 3\
**Last updated:** [October 19, 2018, 3:58pm UTC](https://discourse.processing.org/t/solved-peasycam-raises-nosuchmethoderror-for-papplet-registerdraw-when-using-intellij/4535 "2018-10-19T15:58:34Z")

</div>

Hi, trying to move my project into Intelij\*, but I can’t get PeasyCam to work. I’ve added the library to the project, and it correctly recognizes the PeasyCam type, but when I run the sketch I get the following runtimeE…

---

## [Cropping shape of movie into a circle](https://discourse.processing.org/t/cropping-shape-of-movie-into-a-circle/4586)

<div class="topic-metadata">

**Author:** [@moonspacedancer](https://discourse.processing.org/u/moonspacedancer)\
**Replies:** 2\
**Last updated:** [October 18, 2018, 10:15pm UTC](https://discourse.processing.org/t/cropping-shape-of-movie-into-a-circle/4586 "2018-10-18T22:15:26Z")

</div>

Hi, I am trying to play only a circle shape of my movie and not sure where to start… my overall basic concept right now is that when i zoom into a sphere the movie is inside playing in the center in the shape of a circle…

---

## [Help with void draw](https://discourse.processing.org/t/help-with-void-draw/4592)

<div class="topic-metadata">

**Author:** [@Lore](https://discourse.processing.org/u/Lore)\
**Replies:** 2\
**Last updated:** [October 18, 2018, 4:32pm UTC](https://discourse.processing.org/t/help-with-void-draw/4592 "2018-10-18T16:32:18Z")

</div>

What is a simple way to put something in void draw but only play it once (although it keeps updating?) In my code, I want to play a video but the video can be switched to a different video. The problem with this is that …

---

## [Depth Sorting and PShape](https://discourse.processing.org/t/depth-sorting-and-pshape/1730)

<div class="topic-metadata">

**Author:** [@Stephcraft](https://discourse.processing.org/u/Stephcraft)\
**Replies:** 13\
**Last updated:** [October 17, 2018, 10:18pm UTC](https://discourse.processing.org/t/depth-sorting-and-pshape/1730 "2018-10-17T22:18:47Z")

</div>

Am I doing something wrong or hint(ENABLE\_DEPTH\_SORT); only works with beginShape() and endShape() and not with PShape. If I am not wrong, and this is a issue, how can I do depth sort myself on PShapes ? Screenshot, red…

---

## [\[SOLVED\] G4P options in second window problem](https://discourse.processing.org/t/solved-g4p-options-in-second-window-problem/4552)

<div class="topic-metadata">

**Author:** [@kll](https://discourse.processing.org/u/kll)\
**Replies:** 4\
**Last updated:** [October 17, 2018, 1:54pm UTC](https://discourse.processing.org/t/solved-g4p-options-in-second-window-problem/4552 "2018-10-17T13:54:26Z")

</div>

when i use basic ( reduced from example ) code all works. import g4p\_controls.\*; GOption option0, option1, option2; public void setup() { size(500,500); createGUI(); } public void draw() { background(100, 100, 2…

---

## [Game Control Plus - trouble with config](https://discourse.processing.org/t/game-control-plus-trouble-with-config/2143)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 3\
**Last updated:** [October 16, 2018, 9:52pm UTC](https://discourse.processing.org/t/game-control-plus-trouble-with-config/2143 "2018-10-16T21:52:27Z")

</div>

Hello. I’ve been able to use GCP to connect a Logitech game controller to Processing, mostly. I have been trying to set up the configuration file so that it only recognizes 4 buttons. I started with the “joystick” examp…

---

## [Game Control Plus: using a joystick with switches instead of sliders](https://discourse.processing.org/t/game-control-plus-using-a-joystick-with-switches-instead-of-sliders/4534)

<div class="topic-metadata">

**Author:** [@hamoid](https://discourse.processing.org/u/hamoid)\
**Replies:** 2\
**Last updated:** [October 16, 2018, 3:19pm UTC](https://discourse.processing.org/t/game-control-plus-using-a-joystick-with-switches-instead-of-sliders/4534 "2018-10-16T15:19:35Z")

</div>

Hi! I’m wondering if anyone has suggestions about using an oldschool joystick with Game Control Plus. The difference is that the stick returns only -1.0, 0.0 or 1.0. In this case it would be convenient to have events, bu…

---

## [Record audio and video simultaneously](https://discourse.processing.org/t/record-audio-and-video-simultaneously/4529)

<div class="topic-metadata">

**Author:** [@bitCrasher](https://discourse.processing.org/u/bitCrasher)\
**Replies:** 0\
**Last updated:** [October 16, 2018, 8:10am UTC](https://discourse.processing.org/t/record-audio-and-video-simultaneously/4529 "2018-10-16T08:10:02Z")

</div>

hi guys, is there a way to record audio and video simultaneously? I ask because when I go to recompose a video adding the audio afterwards I always have problems with synchronization. I created a class that performs th…

---

## [controlP5 label](https://discourse.processing.org/t/controlp5-label/4424)

<div class="topic-metadata">

**Author:** [@FerrariLuigi](https://discourse.processing.org/u/FerrariLuigi)\
**Replies:** 2\
**Last updated:** [October 14, 2018, 8:21am UTC](https://discourse.processing.org/t/controlp5-label/4424 "2018-10-14T08:21:48Z")

</div>

Dear all, In my processing sketch I want to add the following label: Wait is the coorct procedure to include it ? Thank you very much for your help and cooperation regards

---

## [Executing Matlab function from Processing](https://discourse.processing.org/t/executing-matlab-function-from-processing/4324)

<div class="topic-metadata">

**Author:** [@rubinj](https://discourse.processing.org/u/rubinj)\
**Replies:** 1\
**Last updated:** [October 14, 2018, 5:50am UTC](https://discourse.processing.org/t/executing-matlab-function-from-processing/4324 "2018-10-14T05:50:00Z")

</div>

I’m trying to find a way to execute a Matlab function from a Processing script. I have a local installation of Matlab, and I know it should be possible to execute a Matlab function from Java, using Matlab’s engine: htt…

---

## [ControlP5 button event](https://discourse.processing.org/t/controlp5-button-event/4420)

<div class="topic-metadata">

**Author:** [@FerrariLuigi](https://discourse.processing.org/u/FerrariLuigi)\
**Replies:** 5\
**Last updated:** [October 13, 2018, 1:58pm UTC](https://discourse.processing.org/t/controlp5-button-event/4420 "2018-10-13T13:58:30Z")

</div>

Dear all, I wrote the following code: // --8\<-------8\<-------8\<-------8\<-------8\<-------8\<-------8\<-------8\<-------8\<----- // \`\`\` ControlP5 cp5; final static String BUTTON\_START="buttonStart"; void initForm() …

---

## [How can i send a file with server.write?](https://discourse.processing.org/t/how-can-i-send-a-file-with-server-write/4360)

<div class="topic-metadata">

**Author:** [@Quix](https://discourse.processing.org/u/Quix)\
**Replies:** 10\
**Last updated:** [October 13, 2018, 2:04am UTC](https://discourse.processing.org/t/how-can-i-send-a-file-with-server-write/4360 "2018-10-13T02:04:06Z")

</div>

hi,i want to try to host a website with processing but i can’t send file import processing.net.\*; Server myServer; PrintWriter test; void setup() { size(200, 200); // Starts a myServer on port 5204 myServer = ne…

---

## [First frame of a video](https://discourse.processing.org/t/first-frame-of-a-video/4384)

<div class="topic-metadata">

**Author:** [@FerrariLuigi](https://discourse.processing.org/u/FerrariLuigi)\
**Replies:** 2\
**Last updated:** [October 12, 2018, 5:33pm UTC](https://discourse.processing.org/t/first-frame-of-a-video/4384 "2018-10-12T17:33:42Z")

</div>

Dear all, Im developing a project using video library. how to show the first frame of a video as an image ? Thank you very much for your help and cooperation regards

---

## [MouseDragged and slowing it down across a network](https://discourse.processing.org/t/mousedragged-and-slowing-it-down-across-a-network/4351)

<div class="topic-metadata">

**Author:** [@bardiel13th](https://discourse.processing.org/u/bardiel13th)\
**Replies:** 2\
**Last updated:** [October 11, 2018, 1:25pm UTC](https://discourse.processing.org/t/mousedragged-and-slowing-it-down-across-a-network/4351 "2018-10-11T13:25:08Z")

</div>

Hi, so I’m working on a semi-emergency project where people can draw on a canvas across the internet and it is converted to Gcode for a drawing robot I built. The problem is, it seems to really get bogged down when I do…

---

## [Trying to Pull Images from Twitter](https://discourse.processing.org/t/trying-to-pull-images-from-twitter/4287)

<div class="topic-metadata">

**Author:** [@AYS](https://discourse.processing.org/u/AYS)\
**Replies:** 0\
**Last updated:** [October 9, 2018, 6:02pm UTC](https://discourse.processing.org/t/trying-to-pull-images-from-twitter/4287 "2018-10-09T18:02:29Z")

</div>

Hello there, I am quite new to this so please bear with me. I am trying to use a keyword search to pull images from twitter using twitter4j. I want it to show the images positioned randomly on the screen in a loop. Thi…

---

## [Video loop question](https://discourse.processing.org/t/video-loop-question/4263)

<div class="topic-metadata">

**Author:** [@FerrariLuigi](https://discourse.processing.org/u/FerrariLuigi)\
**Replies:** 5\
**Last updated:** [October 9, 2018, 7:36pm UTC](https://discourse.processing.org/t/video-loop-question/4263 "2018-10-09T19:36:05Z")

</div>

Dear all, How to count the loop number of a playing video ? I want to repeat the video for 3 times. How to stop it ? thank you very much for your help and cooperation, regards.

---

## [Scrollablelist set Item selected from code](https://discourse.processing.org/t/scrollablelist-set-item-selected-from-code/2617)

<div class="topic-metadata">

**Author:** [@Dennis](https://discourse.processing.org/u/Dennis)\
**Replies:** 9\
**Last updated:** [October 8, 2018, 2:06pm UTC](https://discourse.processing.org/t/scrollablelist-set-item-selected-from-code/2617 "2018-10-08T14:06:54Z")

</div>

Hello everyone! i’m a new on processing forum. I make a Scrolablelist from ControlP5 library and I would like to change via code the selected item: import controlP5.\*; import java.util.\*; ControlP5 cp5; void setup() …

---

## [Update Matrix row and column number in real time (ControlP5)](https://discourse.processing.org/t/update-matrix-row-and-column-number-in-real-time-controlp5/4232)

<div class="topic-metadata">

**Author:** [@anon57009815](https://discourse.processing.org/u/anon57009815)\
**Replies:** 3\
**Last updated:** [October 8, 2018, 8:56am UTC](https://discourse.processing.org/t/update-matrix-row-and-column-number-in-real-time-controlp5/4232 "2018-10-08T08:56:57Z")

</div>

CONTROLP5 Is there a way to update (change) row number and column number of a matrix in real time? Resources -\> ControlP5 -\> Controllers -\> ControlP5Matrix

---

## [\[SOLVED\] Help Updating G4P GUI Mandelbrot Code to Processing 3x](https://discourse.processing.org/t/solved-help-updating-g4p-gui-mandelbrot-code-to-processing-3x/4143)

<div class="topic-metadata">

**Author:** [@ProsExplorer](https://discourse.processing.org/u/ProsExplorer)\
**Replies:** 2\
**Last updated:** [October 5, 2018, 4:27pm UTC](https://discourse.processing.org/t/solved-help-updating-g4p-gui-mandelbrot-code-to-processing-3x/4143 "2018-10-05T16:27:08Z")

</div>

In an attempt to better understand Qscript Math in relation to what I’m already familiar with and help develop the other programs I’m working on I found this legacy source code from quarks openprocessing page. I realize …

---

## [Marching cubes toxiclibs](https://discourse.processing.org/t/marching-cubes-toxiclibs/4120)

<div class="topic-metadata">

**Author:** [@bryan](https://discourse.processing.org/u/bryan)\
**Replies:** 2\
**Last updated:** [October 5, 2018, 12:41am UTC](https://discourse.processing.org/t/marching-cubes-toxiclibs/4120 "2018-10-05T00:41:49Z")

</div>

Hi everyone! I’m struggling trying to figure out how to load a volume dataset (like the example of MRI surface in the toxiclibs volume library). The thing is, that i cannot find other volume to upload successfully. in wh…

---

## [\[RESOLVED\] Constructor Error](https://discourse.processing.org/t/resolved-constructor-error/4098)

<div class="topic-metadata">

**Author:** [@Interalia](https://discourse.processing.org/u/Interalia)\
**Replies:** 2\
**Last updated:** [October 3, 2018, 11:02pm UTC](https://discourse.processing.org/t/resolved-constructor-error/4098 "2018-10-03T23:02:06Z")

</div>

The Constructor Meter(Meter, int,int) is undefined. import meter.\*; Meter m; void setup(){ size(500,400); background(0,0,0); //lets add a default meter m = new Meter(this,25,10);// here 25,10 are x,y coord…

---

## [JPL doesn't work on Processing](https://discourse.processing.org/t/jpl-doesnt-work-on-processing/3973)

<div class="topic-metadata">

**Author:** [@Staraven1](https://discourse.processing.org/u/Staraven1)\
**Replies:** 5\
**Last updated:** [October 3, 2018, 3:15am UTC](https://discourse.processing.org/t/jpl-doesnt-work-on-processing/3973 "2018-10-03T03:15:37Z")

</div>

I can’t figure out why but JPL (library to use Prolog in Java) doesn’t work on Processing. the link I used to download the library : www.java2s.com/Code/Jar/j/Downloadjpljar.htm and my code is : import jpl.fli.\*; imp…

---

## [G4P Update Slider Dynamically?](https://discourse.processing.org/t/g4p-update-slider-dynamically/4049)

<div class="topic-metadata">

**Author:** [@DroneAdventures](https://discourse.processing.org/u/DroneAdventures)\
**Replies:** 5\
**Last updated:** [October 2, 2018, 5:44pm UTC](https://discourse.processing.org/t/g4p-update-slider-dynamically/4049 "2018-10-02T17:44:23Z")

</div>

First, let me say I love G4P. It saves me a lot of work. Using Processing 3 & G4P GUI Builder I have 3 GSliders. Lets call them LEFT Motor, RIGHT Motor and DUAL. All 3 sliders work as expected and no issues. What I …

---

## [Colors from webcam problem](https://discourse.processing.org/t/colors-from-webcam-problem/3925)

<div class="topic-metadata">

**Author:** [@RC75018](https://discourse.processing.org/u/RC75018)\
**Replies:** 6\
**Last updated:** [October 1, 2018, 8:40am UTC](https://discourse.processing.org/t/colors-from-webcam-problem/3925 "2018-10-01T08:40:36Z")

</div>

Hi Everyone, I am trying to create a algorithm that create rising bubbles colored by pixels from video capture via webcam (on Mac). I have succeeded in create floating bubbles and then when i try to add the colorization…

---

## [Help getting all videos in random sequence to fully play](https://discourse.processing.org/t/help-getting-all-videos-in-random-sequence-to-fully-play/3991)

<div class="topic-metadata">

**Author:** [@llsavage320](https://discourse.processing.org/u/llsavage320)\
**Replies:** 2\
**Last updated:** [October 1, 2018, 5:14am UTC](https://discourse.processing.org/t/help-getting-all-videos-in-random-sequence-to-fully-play/3991 "2018-10-01T05:14:00Z")

</div>

Hi! I am trying to use Processing to make a random video generator, so that every time the program runs, a random video is picked from three different arrays (sort of like a random Choose Your Own Adventure). I have succ…

---

## [Fisica, world.step](https://discourse.processing.org/t/fisica-world-step/3998)

<div class="topic-metadata">

**Author:** [@tinchoedelp](https://discourse.processing.org/u/tinchoedelp)\
**Replies:** 2\
**Last updated:** [October 1, 2018, 3:15am UTC](https://discourse.processing.org/t/fisica-world-step/3998 "2018-10-01T03:15:20Z")

</div>

Hello, i’m working with the Fisica library by Ricard Marxer. There were no problems until we started using classes and objects to make the code look more understandable. The problem seems to be in the world.step function…

---

## [How do I make it work? logic question](https://discourse.processing.org/t/how-do-i-make-it-work-logic-question/3938)

<div class="topic-metadata">

**Author:** [@leereset](https://discourse.processing.org/u/leereset)\
**Replies:** 3\
**Last updated:** [September 29, 2018, 6:46am UTC](https://discourse.processing.org/t/how-do-i-make-it-work-logic-question/3938 "2018-09-29T06:46:45Z")

</div>

Hi I’m making project that where footprint created when person pass by. check my progress. you can check here: Use your mouse pointer to create footprint. Issue: As you see my project, if I step forward any direc…

---

## [Use path of selected folder for next selection as default value](https://discourse.processing.org/t/use-path-of-selected-folder-for-next-selection-as-default-value/3914)

<div class="topic-metadata">

**Author:** [@El\_Paco](https://discourse.processing.org/u/El_Paco)\
**Replies:** 4\
**Last updated:** [September 28, 2018, 7:42am UTC](https://discourse.processing.org/t/use-path-of-selected-folder-for-next-selection-as-default-value/3914 "2018-09-28T07:42:48Z")

</div>

Hello , i’m totally new to processing - i had one huge but sure simple topic. I need to modify a processing program with many subfiles. It had a gui - for this is g4p\_controls used. in the gui i can open data files. …

---

## [Weird out of bounds issue with the sound library](https://discourse.processing.org/t/weird-out-of-bounds-issue-with-the-sound-library/2810)

<div class="topic-metadata">

**Author:** [@ducco](https://discourse.processing.org/u/ducco)\
**Replies:** 4\
**Last updated:** [September 29, 2018, 12:10am UTC](https://discourse.processing.org/t/weird-out-of-bounds-issue-with-the-sound-library/2810 "2018-09-29T00:10:25Z")

</div>

i’m working on a game and i want to add sound effects so i installed the sound library but every time i try to load a sound it returns “ArrayIndexOutOfBoundsExeption: -1” and i don’t understand why. the sound file is in …

[Previous page](https://discourse.processing.org/c/processing/processing-libraries/19.md?page=69)

[Next page](https://discourse.processing.org/c/processing/processing-libraries/19.md?page=71)
