# Libraries

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

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

**Page:** 32

---

## [SVG (not always vector format?)](https://discourse.processing.org/t/svg-not-always-vector-format/25885)

<div class="topic-metadata">

**Author:** [@bdon](https://discourse.processing.org/u/bdon)\
**Replies:** 3\
**Last updated:** [December 3, 2020, 2:21am UTC](https://discourse.processing.org/t/svg-not-always-vector-format/25885 "2020-12-03T02:21:35Z")

</div>

hi there - i’m using processing’s SVG library to export SVG files from still images. i’ve noticed that this output is somewhat erratic, though. while it more-or-less always exports the image as i expect, different draw…

---

## [The constructor Gif(bodycreate.Particle, String) is undefined](https://discourse.processing.org/t/the-constructor-gif-bodycreate-particle-string-is-undefined/25719)

<div class="topic-metadata">

**Author:** [@AbleYudada](https://discourse.processing.org/u/AbleYudada)\
**Replies:** 4\
**Last updated:** [December 1, 2020, 3:45pm UTC](https://discourse.processing.org/t/the-constructor-gif-bodycreate-particle-string-is-undefined/25719 "2020-12-01T15:45:39Z")

</div>

Hi everyone ，I encountered some difficulties in the code. I want to create a new gif when I click the mouse . But it can’t work 。It said The constructor Gif(bodycreate.Particle, String) is undefined. The following is pa…

---

## [Use Kinect 1 or 2 sensors with Processing 2 or 3](https://discourse.processing.org/t/use-kinect-1-or-2-sensors-with-processing-2-or-3/86)

<div class="topic-metadata">

**Author:** [@totovr76](https://discourse.processing.org/u/totovr76)\
**Replies:** 28\
**Last updated:** [December 1, 2020, 12:37pm UTC](https://discourse.processing.org/t/use-kinect-1-or-2-sensors-with-processing-2-or-3/86 "2020-12-01T12:37:57Z")

</div>

SimpleOpenNI Repository

---

## [Trying to understand why a boolean is returning true](https://discourse.processing.org/t/trying-to-understand-why-a-boolean-is-returning-true/25779)

<div class="topic-metadata">

**Author:** [@crimpqwe](https://discourse.processing.org/u/crimpqwe)\
**Replies:** 1\
**Last updated:** [November 28, 2020, 4:49am UTC](https://discourse.processing.org/t/trying-to-understand-why-a-boolean-is-returning-true/25779 "2020-11-28T04:49:12Z")

</div>

import controlP5.\*; boolean button1 = false, button2 = false, button3 = false; ControlP5 cp5; float bg = random(255); void setup() { size(1200, 750); cp5 = new ControlP5(this); cp5.addButton("A") .setPosi…

---

## [Sending data from python to processing](https://discourse.processing.org/t/sending-data-from-python-to-processing/25771)

<div class="topic-metadata">

**Author:** [@arcadeperfect](https://discourse.processing.org/u/arcadeperfect)\
**Replies:** 7\
**Last updated:** [November 27, 2020, 8:41pm UTC](https://discourse.processing.org/t/sending-data-from-python-to-processing/25771 "2020-11-27T20:41:35Z")

</div>

Hi I’m trying to transmit sensor data from a python script to a processing sketch via sockets. On the python side I have: import socket import random HOST = '' # Symbolic name meaning all availabl…

---

## [Connecting Supercollider to Processing via QjackCtl](https://discourse.processing.org/t/connecting-supercollider-to-processing-via-qjackctl/25753)

<div class="topic-metadata">

**Author:** [@guillaumeazer](https://discourse.processing.org/u/guillaumeazer)\
**Replies:** 1\
**Last updated:** [November 27, 2020, 12:08pm UTC](https://discourse.processing.org/t/connecting-supercollider-to-processing-via-qjackctl/25753 "2020-11-27T12:08:09Z")

</div>

Hey everyone, I’m new to processing and I have a question for you. I added the processing.sound library because I want to create a real time spectrogram. My plan is to connect supercollider to processing via QjackCtl…

---

## [Lambert conformal conic projection map coordinates](https://discourse.processing.org/t/lambert-conformal-conic-projection-map-coordinates/25665)

<div class="topic-metadata">

**Author:** [@CAVUCO](https://discourse.processing.org/u/CAVUCO)\
**Replies:** 4\
**Last updated:** [November 26, 2020, 12:32am UTC](https://discourse.processing.org/t/lambert-conformal-conic-projection-map-coordinates/25665 "2020-11-26T00:32:36Z")

</div>

I have a database of locations by lat/long. Trying to overlay on a background image that is a map using the Lambert conformal conic projection. I have the following specs on the map Map\_Projection: Map\_Projection\_Nam…

---

## ["For" loop not stopping when I want](https://discourse.processing.org/t/for-loop-not-stopping-when-i-want/25701)

<div class="topic-metadata">

**Author:** [@Spomch](https://discourse.processing.org/u/Spomch)\
**Replies:** 1\
**Last updated:** [November 25, 2020, 4:26pm UTC](https://discourse.processing.org/t/for-loop-not-stopping-when-i-want/25701 "2020-11-25T16:26:13Z")

</div>

Hi everyone, I’m posting here because I’m facing a problem with a “for” loop. Here is the code that I am working on : import processing.sound.\*; SoundFile Son; PImage portrait; PImage portrait\_deux; PImage telephone; …

---

## [Closest point on SVG path](https://discourse.processing.org/t/closest-point-on-svg-path/25592)

<div class="topic-metadata">

**Author:** [@sixfeet](https://discourse.processing.org/u/sixfeet)\
**Replies:** 16\
**Last updated:** [November 25, 2020, 8:36am UTC](https://discourse.processing.org/t/closest-point-on-svg-path/25592 "2020-11-25T08:36:11Z")

</div>

Instead of looking for the closest point to the mouse from all the points of the svg, how do I limit to finding just the closest point on a specific path? For example If I keyPressed 3, it would just look for the closes…

---

## [Turning audio into a pattern](https://discourse.processing.org/t/turning-audio-into-a-pattern/25694)

<div class="topic-metadata">

**Author:** [@scooijmans](https://discourse.processing.org/u/scooijmans)\
**Replies:** 1\
**Last updated:** [November 25, 2020, 11:34am UTC](https://discourse.processing.org/t/turning-audio-into-a-pattern/25694 "2020-11-25T11:34:33Z")

</div>

Hi, I’m a beginner in programming and got this code, it draws a line of the audio input as time goes by. Is it possible that when the line is formed till the end of the screen it stays still and then starts again underne…

---

## [Sound cuts off, then plays again](https://discourse.processing.org/t/sound-cuts-off-then-plays-again/25641)

<div class="topic-metadata">

**Author:** [@AlexW](https://discourse.processing.org/u/AlexW)\
**Replies:** 1\
**Last updated:** [November 23, 2020, 8:59pm UTC](https://discourse.processing.org/t/sound-cuts-off-then-plays-again/25641 "2020-11-23T20:59:34Z")

</div>

Hello, I’ve just about got my project for a class finished. Unfortunately I’ve run into a problem with sound. When I press a button to start the thing, it plays the start of calmsound, then stops completely. When I pre…

---

## [Create automatic pdf at certain point](https://discourse.processing.org/t/create-automatic-pdf-at-certain-point/25602)

<div class="topic-metadata">

**Author:** [@scooijmans](https://discourse.processing.org/u/scooijmans)\
**Replies:** 3\
**Last updated:** [November 24, 2020, 12:13pm UTC](https://discourse.processing.org/t/create-automatic-pdf-at-certain-point/25602 "2020-11-24T12:13:43Z")

</div>

Hi, I’m a beginner in programming and got this code, it draws a line of the audio input as time goes by. What I need is when the line hits the end of the screen it needs to take an automatic screenshot/pdf of this is aro…

---

## [Sounds/Frequencies on Processing](https://discourse.processing.org/t/sounds-frequencies-on-processing/25636)

<div class="topic-metadata">

**Author:** [@Rita\_Mera](https://discourse.processing.org/u/Rita_Mera)\
**Replies:** 2\
**Last updated:** [November 23, 2020, 6:58pm UTC](https://discourse.processing.org/t/sounds-frequencies-on-processing/25636 "2020-11-23T18:58:44Z")

</div>

How do I play frequencies with the movement of the mouse (X, Y)?

---

## [Syncing processing with synths/pocket operators using MIDI CV or a click track?](https://discourse.processing.org/t/syncing-processing-with-synths-pocket-operators-using-midi-cv-or-a-click-track/25632)

<div class="topic-metadata">

**Author:** [@neel](https://discourse.processing.org/u/neel)\
**Replies:** 1\
**Last updated:** [November 23, 2020, 5:14pm UTC](https://discourse.processing.org/t/syncing-processing-with-synths-pocket-operators-using-midi-cv-or-a-click-track/25632 "2020-11-23T17:14:24Z")

</div>

I’ve got some processing code I’ve been working on to make generative visuals that go along with music. I’ve increasingly been creating the music myself using pocket operators. They sync to each other using what they cal…

---

## [Having trouble with a code and its structure](https://discourse.processing.org/t/having-trouble-with-a-code-and-its-structure/25533)

<div class="topic-metadata">

**Author:** [@Spomch](https://discourse.processing.org/u/Spomch)\
**Replies:** 33\
**Last updated:** [November 23, 2020, 3:49pm UTC](https://discourse.processing.org/t/having-trouble-with-a-code-and-its-structure/25533 "2020-11-23T15:49:19Z")

</div>

Hi everyone, I’ve been struggling with my art project due to my lack of experience and knowledge of Processing. My problem concerns coding, which then lead to a project guidance problem. I will try my best to explain cle…

---

## [G4P - Checkbox grid](https://discourse.processing.org/t/g4p-checkbox-grid/25585)

<div class="topic-metadata">

**Author:** [@RenanRabelo](https://discourse.processing.org/u/RenanRabelo)\
**Replies:** 12\
**Last updated:** [November 22, 2020, 5:46pm UTC](https://discourse.processing.org/t/g4p-checkbox-grid/25585 "2020-11-22T17:46:52Z")

</div>

Is possible to easily create a Check box grid? Like 8x8 or bigger. Thanks!

---

## [Drawing atomic orbitals](https://discourse.processing.org/t/drawing-atomic-orbitals/25601)

<div class="topic-metadata">

**Author:** [@Ginopalombi](https://discourse.processing.org/u/Ginopalombi)\
**Replies:** 1\
**Last updated:** [November 22, 2020, 12:01pm UTC](https://discourse.processing.org/t/drawing-atomic-orbitals/25601 "2020-11-22T12:01:03Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi everyone, I would like to code something like in this application, but that react to some external input, like microphone or other, is it pos…

---

## [I want pass to next step when the video stop](https://discourse.processing.org/t/i-want-pass-to-next-step-when-the-video-stop/25570)

<div class="topic-metadata">

**Author:** [@josetai](https://discourse.processing.org/u/josetai)\
**Replies:** 2\
**Last updated:** [November 21, 2020, 5:53pm UTC](https://discourse.processing.org/t/i-want-pass-to-next-step-when-the-video-stop/25570 "2020-11-21T17:53:35Z")

</div>

Hi, i´m beginner writing code, and I can´t resolve somthing. When the video stop, i want it to pass to other step. I know that “if (movie1.stop()){step = 10;}” doesn´t exist, but i don´t know how to write it right. Any…

---

## [Calculate distance from point to (closest point of) shape](https://discourse.processing.org/t/calculate-distance-from-point-to-closest-point-of-shape/7201)

<div class="topic-metadata">

**Author:** [@grshch](https://discourse.processing.org/u/grshch)\
**Replies:** 9\
**Last updated:** [January 5, 2019, 2:22pm UTC](https://discourse.processing.org/t/calculate-distance-from-point-to-closest-point-of-shape/7201 "2019-01-05T14:22:00Z")

</div>

Hi everyone! Please help me to solve this thing. How to calculate distance from point to (closest point of) shape/curve/type?

---

## [Functions outside draw? the midibus](https://discourse.processing.org/t/functions-outside-draw-the-midibus/25464)

<div class="topic-metadata">

**Author:** [@Eyetoof](https://discourse.processing.org/u/Eyetoof)\
**Replies:** 5\
**Last updated:** [November 21, 2020, 12:23am UTC](https://discourse.processing.org/t/functions-outside-draw-the-midibus/25464 "2020-11-21T00:23:43Z")

</div>

Hello I have a very basic question but would love some clarification. I have a project that will utilize Midi, I have installed theMidiBus and it is all working, I found a tutorial that helped me but I am confused about…

---

## [Server that gets image stream from spout and send it to client](https://discourse.processing.org/t/server-that-gets-image-stream-from-spout-and-send-it-to-client/25563)

<div class="topic-metadata">

**Author:** [@phaidon](https://discourse.processing.org/u/phaidon)\
**Replies:** 2\
**Last updated:** [November 20, 2020, 6:05pm UTC](https://discourse.processing.org/t/server-that-gets-image-stream-from-spout-and-send-it-to-client/25563 "2020-11-20T18:05:38Z")

</div>

hello all, i try to get a texture from spout and send it thought server and client, the data flow seems working but i can reconvert the bytes into an image the scripts are here server with spout: import java.nio.Byte…

---

## [Virtual Piano Help ASAP](https://discourse.processing.org/t/virtual-piano-help-asap/25503)

<div class="topic-metadata">

**Author:** [@lil\_doggo](https://discourse.processing.org/u/lil_doggo)\
**Replies:** 3\
**Last updated:** [November 18, 2020, 4:47pm UTC](https://discourse.processing.org/t/virtual-piano-help-asap/25503 "2020-11-18T16:47:52Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi! I’m making a virtual piano for a school assignment and since the black keys and white keys overlap, two notes are played when I tap on blac…

---

## [Firebase and Processing (Java)](https://discourse.processing.org/t/firebase-and-processing-java/12256)

<div class="topic-metadata">

**Author:** [@William3954](https://discourse.processing.org/u/William3954)\
**Replies:** 9\
**Last updated:** [November 18, 2020, 2:39pm UTC](https://discourse.processing.org/t/firebase-and-processing-java/12256 "2020-11-18T14:39:09Z")

</div>

Has anyone had success with integrating Processing and Firebase from google? I have been trying to figure out a way to do it but it so far has been too far beyond my reach. Theoretically, I think it should work since the…

---

## [G4P Gtextbox border issue](https://discourse.processing.org/t/g4p-gtextbox-border-issue/25490)

<div class="topic-metadata">

**Author:** [@Piko](https://discourse.processing.org/u/Piko)\
**Replies:** 2\
**Last updated:** [November 17, 2020, 6:01pm UTC](https://discourse.processing.org/t/g4p-gtextbox-border-issue/25490 "2020-11-17T18:01:23Z")

</div>

Hi, When i use a dark background and custom colorscheme on a GTextfield the bottom line of the textfield disappears. This behaviour is not with scrollbars. Below is a demo, any suggestions? // ------------------------…

---

## [Synesketch help setting it up in P](https://discourse.processing.org/t/synesketch-help-setting-it-up-in-p/25487)

<div class="topic-metadata">

**Author:** [@jestern](https://discourse.processing.org/u/jestern)\
**Replies:** 0\
**Last updated:** [November 17, 2020, 2:10pm UTC](https://discourse.processing.org/t/synesketch-help-setting-it-up-in-p/25487 "2020-11-17T14:10:21Z")

</div>

Hi guys I’m new to Processing, I’m trying to setup this library of Synesketch https://krcadinac.com/work/projects/synesketch/ I think it should be straightforward but it doesn’t work. Anybody can help me with a basic kno…

---

## [G4P Gpanel and Gview](https://discourse.processing.org/t/g4p-gpanel-and-gview/25474)

<div class="topic-metadata">

**Author:** [@Piko](https://discourse.processing.org/u/Piko)\
**Replies:** 2\
**Last updated:** [November 17, 2020, 10:50am UTC](https://discourse.processing.org/t/g4p-gpanel-and-gview/25474 "2020-11-17T10:50:55Z")

</div>

Hi, I want to add a GView area on a Gpanel but when i do this the color of the Gpanelcolors is darker. It looks like a shade on the view area. I would like to have this transparent to match the real backgroundcolor of…

---

## [Sound library error](https://discourse.processing.org/t/sound-library-error/25424)

<div class="topic-metadata">

**Author:** [@joe\_processing](https://discourse.processing.org/u/joe_processing)\
**Replies:** 9\
**Last updated:** [November 14, 2020, 9:57pm UTC](https://discourse.processing.org/t/sound-library-error/25424 "2020-11-14T21:57:41Z")

</div>

Hi there! i have a problem in import sound to a code I wrote. i know there a lot of topics around the network on this issue but non of them helped me. some notes: mac. processing, latest edition. download processing…

---

## [java.lang.RuntimeException Java heap space error](https://discourse.processing.org/t/java-lang-runtimeexception-java-heap-space-error/25351)

<div class="topic-metadata">

**Author:** [@ahmed](https://discourse.processing.org/u/ahmed)\
**Replies:** 1\
**Last updated:** [November 14, 2020, 8:59am UTC](https://discourse.processing.org/t/java-lang-runtimeexception-java-heap-space-error/25351 "2020-11-14T08:59:20Z")

</div>

I am trying to import STL CAD file in processing but getting an error java.lang.outofmemoryerror java heap space. how to solve this issue ? i have increased my memory in Preferences tab to 10GB but issue still persist. …

---

## [.JAVA source file operating in processing](https://discourse.processing.org/t/java-source-file-operating-in-processing/25402)

<div class="topic-metadata">

**Author:** [@Tomabi](https://discourse.processing.org/u/Tomabi)\
**Replies:** 2\
**Last updated:** [November 13, 2020, 11:17pm UTC](https://discourse.processing.org/t/java-source-file-operating-in-processing/25402 "2020-11-13T23:17:40Z")

</div>

Hello everyone, I am a newbie Processing… I wanna open a source file made by processing and that is based on JAVA. Link: https://bitbucket.org/hues/fast-fluid-dynamics/src/master/ I’ve tried to operate this code, but…

---

## [ControlP5 examples for separate control frames not working](https://discourse.processing.org/t/controlp5-examples-for-separate-control-frames-not-working/25404)

<div class="topic-metadata">

**Author:** [@snaders](https://discourse.processing.org/u/snaders)\
**Replies:** 2\
**Last updated:** [November 13, 2020, 7:36pm UTC](https://discourse.processing.org/t/controlp5-examples-for-separate-control-frames-not-working/25404 "2020-11-13T19:36:56Z")

</div>

I’ve seen a lot of posts and links about controlP5, but I can’t seem to find an answer anywhere. Also there are a lot of dead links everywhere, including on the Github page of the controlP5 library itself. I have the la…

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

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