# Processing

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

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

**Page:** 189

---

## [Get height of text with wrapping](https://discourse.processing.org/t/get-height-of-text-with-wrapping/16087)

<div class="topic-metadata">

**Author:** [@jeffthompson](https://discourse.processing.org/u/jeffthompson)\
**Replies:** 10\
**Last updated:** [August 14, 2020, 2:23pm UTC](https://discourse.processing.org/t/get-height-of-text-with-wrapping/16087 "2020-08-14T14:23:17Z")

</div>

I love the wrapping function in text(), which does a great job. But I wish I could get the height of the block it creates so I can place further text below it. I’ve got a pretty kludgy version going here, which creates …

---

## [P3D confusion with translate() and collision](https://discourse.processing.org/t/p3d-confusion-with-translate-and-collision/23249)

<div class="topic-metadata">

**Author:** [@qewer3322](https://discourse.processing.org/u/qewer3322)\
**Replies:** 0\
**Last updated:** [August 14, 2020, 11:10am UTC](https://discourse.processing.org/t/p3d-confusion-with-translate-and-collision/23249 "2020-08-14T11:10:03Z")

</div>

So I decided to try and experiment a bit with P3D. I researched about it, borrowed some code, wrote my own and came up with this thing: import java.awt.MouseInfo; import java.awt.Point; import java.awt.Robot; import jav…

---

## [OpenProcessing: Cannot read property 'bind' of null](https://discourse.processing.org/t/openprocessing-cannot-read-property-bind-of-null/23245)

<div class="topic-metadata">

**Author:** [@Devolian](https://discourse.processing.org/u/Devolian)\
**Replies:** 2\
**Last updated:** [August 14, 2020, 6:19am UTC](https://discourse.processing.org/t/openprocessing-cannot-read-property-bind-of-null/23245 "2020-08-14T06:19:19Z")

</div>

I am in the process of putting a project of mine on OpenProcessing, and although it works just fine in both the Eclipse IDE and the Processing IDE, it won’t work on OpenProcessing. I have gotten through most of the erro…

---

## [Using opencv with processing](https://discourse.processing.org/t/using-opencv-with-processing/14148)

<div class="topic-metadata">

**Author:** [@maddyna](https://discourse.processing.org/u/maddyna)\
**Replies:** 7\
**Last updated:** [August 14, 2020, 5:43am UTC](https://discourse.processing.org/t/using-opencv-with-processing/14148 "2020-08-14T05:43:33Z")

</div>

I intend to use opencv with processing for face detection while the examples are explicit in how to do face detection on a static image when i am trying to apply that using video from a webcam the method is not working …

---

## [\[Processing 3\] Mac OS Catalina audio signal](https://discourse.processing.org/t/processing-3-mac-os-catalina-audio-signal/18056)

<div class="topic-metadata">

**Author:** [@felice.c](https://discourse.processing.org/u/felice.c)\
**Replies:** 4\
**Last updated:** [August 14, 2020, 1:42am UTC](https://discourse.processing.org/t/processing-3-mac-os-catalina-audio-signal/18056 "2020-08-14T01:42:17Z")

</div>

Hello to all, I’m trying to get the audio signal from my computer, I’m using the example sketch which is present in the example of the audio library but nothing happens. Digging into Google maybe I found a solution but…

---

## [Toxiclibs particle question](https://discourse.processing.org/t/toxiclibs-particle-question/23242)

<div class="topic-metadata">

**Author:** [@cdaein](https://discourse.processing.org/u/cdaein)\
**Replies:** 0\
**Last updated:** [August 14, 2020, 1:36am UTC](https://discourse.processing.org/t/toxiclibs-particle-question/23242 "2020-08-14T01:36:10Z")

</div>

Hi, I am trying to figure out toxiclibs VerletPhysics2D and AttractionBehavior2D. What I want to achieve is that use the attractor so the small particles will be attracted to the big center circle but do not go inside …

---

## [Converting Processing Sketch found on OpenProcessing](https://discourse.processing.org/t/converting-processing-sketch-found-on-openprocessing/23240)

<div class="topic-metadata">

**Author:** [@CaseyJ](https://discourse.processing.org/u/CaseyJ)\
**Replies:** 6\
**Last updated:** [August 14, 2020, 1:01am UTC](https://discourse.processing.org/t/converting-processing-sketch-found-on-openprocessing/23240 "2020-08-14T01:01:02Z")

</div>

Forgive me as perhaps it’s been a while but I was exploring sketches on OpenProcessing, like this one, and I found that they were written in a slightly different language. https://www.openprocessing.org/sketch/445849/ W…

---

## [How do I correctly loadStrings() from a file path on my local computer?](https://discourse.processing.org/t/how-do-i-correctly-loadstrings-from-a-file-path-on-my-local-computer/23238)

<div class="topic-metadata">

**Author:** [@CaseyJ](https://discourse.processing.org/u/CaseyJ)\
**Replies:** 2\
**Last updated:** [August 13, 2020, 10:52pm UTC](https://discourse.processing.org/t/how-do-i-correctly-loadstrings-from-a-file-path-on-my-local-computer/23238 "2020-08-13T22:52:53Z")

</div>

I have been working on reading a text file. Making progress. However, I have encountered a problem I would like some help on. That being how do I read a text file from a folder on another part of my computer? I am usin…

---

## [How to save posterized pixel color values from webcam](https://discourse.processing.org/t/how-to-save-posterized-pixel-color-values-from-webcam/23236)

<div class="topic-metadata">

**Author:** [@samseurynck](https://discourse.processing.org/u/samseurynck)\
**Replies:** 0\
**Last updated:** [August 13, 2020, 6:47pm UTC](https://discourse.processing.org/t/how-to-save-posterized-pixel-color-values-from-webcam/23236 "2020-08-13T18:47:49Z")

</div>

Hello! I’m looking to make a video ‘mirror’ using the webcam. I’m using the processing example Contributed Libraries \> Video \> Capture \> Mirror by Daniel Shiffman. The effect I’m trying to create requires using a poster…

---

## [Arduino Add Library Error - not valid library reported](https://discourse.processing.org/t/arduino-add-library-error-not-valid-library-reported/22938)

<div class="topic-metadata">

**Author:** [@videodub](https://discourse.processing.org/u/videodub)\
**Replies:** 7\
**Last updated:** [August 13, 2020, 5:12pm UTC](https://discourse.processing.org/t/arduino-add-library-error-not-valid-library-reported/22938 "2020-08-13T17:12:17Z")

</div>

When attempting to add video processing library for Arduino, reports ‘zip does not contain a valid library’ Tried older version, same result. Library will not install in Arduino environment. Running Win7 64bit. Used…

---

## [First little game, feedback welcome](https://discourse.processing.org/t/first-little-game-feedback-welcome/22279)

<div class="topic-metadata">

**Author:** [@klap](https://discourse.processing.org/u/klap)\
**Replies:** 5\
**Last updated:** [August 13, 2020, 4:20pm UTC](https://discourse.processing.org/t/first-little-game-feedback-welcome/22279 "2020-08-13T16:20:48Z")

</div>

Hi, Here is a first small game I coded, just to start learning processing. I’m actually looking for feedback now on the code and on how to improve my coding style. It’s now been done with a ‘let’s-see-if-we-can-get-it-w…

---

## [Using Minim, when getting loudness of the song, how come I sometimes get a negative value?](https://discourse.processing.org/t/using-minim-when-getting-loudness-of-the-song-how-come-i-sometimes-get-a-negative-value/23222)

<div class="topic-metadata">

**Author:** [@anon76195010](https://discourse.processing.org/u/anon76195010)\
**Replies:** 2\
**Last updated:** [August 13, 2020, 4:20pm UTC](https://discourse.processing.org/t/using-minim-when-getting-loudness-of-the-song-how-come-i-sometimes-get-a-negative-value/23222 "2020-08-13T16:20:03Z")

</div>

import ddf.minim.\*; import ddf.minim.analysis.\*; Minim minim; AudioPlayer audio; final int BUFFERSIZE = 2048; void setup() { minim = new Minim(this); audio = minim.loadFile("audio.mp3");//, BUFFERSIZE); audio.…

---

## [Code to change the direction of the ball not working](https://discourse.processing.org/t/code-to-change-the-direction-of-the-ball-not-working/22549)

<div class="topic-metadata">

**Author:** [@BackTo](https://discourse.processing.org/u/BackTo)\
**Replies:** 9\
**Last updated:** [August 13, 2020, 12:51pm UTC](https://discourse.processing.org/t/code-to-change-the-direction-of-the-ball-not-working/22549 "2020-08-13T12:51:13Z")

</div>

Hi, I’ve got a plan for a silly bouncing ball sketch. I worked out the timer, but now my ball will not rebound of the edge off the screen. It either goes clean off, or at best gets stuck i the corner. I have used the sam…

---

## [Need some help with this program idea | i'm a beginner!](https://discourse.processing.org/t/need-some-help-with-this-program-idea-im-a-beginner/22793)

<div class="topic-metadata">

**Author:** [@coding\_beginner](https://discourse.processing.org/u/coding_beginner)\
**Replies:** 10\
**Last updated:** [August 13, 2020, 11:59am UTC](https://discourse.processing.org/t/need-some-help-with-this-program-idea-im-a-beginner/22793 "2020-08-13T11:59:17Z")

</div>

Hello, i’m a new user and a processing beginner, i’m writing a program and i need some help! My program idea is this: I draw a square (for now, more than one can be difficult -for me-), when i click on it i select the …

---

## [(Complex) Mesh gradients](https://discourse.processing.org/t/complex-mesh-gradients/23208)

<div class="topic-metadata">

**Author:** [@okn](https://discourse.processing.org/u/okn)\
**Replies:** 2\
**Last updated:** [August 12, 2020, 9:05pm UTC](https://discourse.processing.org/t/complex-mesh-gradients/23208 "2020-08-12T21:05:45Z")

</div>

Is it possible to create (complex) 2D mesh gradients in Processing? Below a basic example image made in illustrator. If yes, how would I go about doing this? I’m searching in the direction of per vertex coloring (see th…

---

## [Trouble exporting 3D animation to SVG](https://discourse.processing.org/t/trouble-exporting-3d-animation-to-svg/23192)

<div class="topic-metadata">

**Author:** [@Lucianoinfanti](https://discourse.processing.org/u/Lucianoinfanti)\
**Replies:** 4\
**Last updated:** [August 12, 2020, 3:52am UTC](https://discourse.processing.org/t/trouble-exporting-3d-animation-to-svg/23192 "2020-08-12T03:52:19Z")

</div>

Hey, everyone. I’m just starting with coding and Processing, in particular. I’ve watched this great tutorial on how to make this nice 3D animation and I tried it myself. Everything worked great but I wanted to export th…

---

## [Is OCR available in Processing?](https://discourse.processing.org/t/is-ocr-available-in-processing/14505)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 4\
**Last updated:** [August 11, 2020, 11:12pm UTC](https://discourse.processing.org/t/is-ocr-available-in-processing/14505 "2020-08-11T23:12:26Z")

</div>

I searched previous topics but they are quite old. I am hoping there are some good news. The best I found is a guy that managed to import some Java library in a Mac, - but I am on windows and have no idea what to do t…

---

## [I can't made my project, please some help?](https://discourse.processing.org/t/i-cant-made-my-project-please-some-help/23185)

<div class="topic-metadata">

**Author:** [@pyxdesign](https://discourse.processing.org/u/pyxdesign)\
**Replies:** 8\
**Last updated:** [August 11, 2020, 9:27pm UTC](https://discourse.processing.org/t/i-cant-made-my-project-please-some-help/23185 "2020-08-11T21:27:55Z")

</div>

Hello everyone, I’m sorry if i make some errors in my english, i’m french and studying english now, so sorry ! i came here because I have 2 questions. I’m in a computer graphist school, one of my class is “Programmati…

---

## [G4P selectInput filter problem](https://discourse.processing.org/t/g4p-selectinput-filter-problem/23169)

<div class="topic-metadata">

**Author:** [@gyula](https://discourse.processing.org/u/gyula)\
**Replies:** 4\
**Last updated:** [August 11, 2020, 3:14pm UTC](https://discourse.processing.org/t/g4p-selectinput-filter-problem/23169 "2020-08-11T15:14:32Z")

</div>

I cannot get the G4P.selectInput() filter parameters working. Here’s a simple sketch: import g4p\_controls.\*; String fname = G4P.selectInput("Input Dialog", "png,gif,jpg,jpeg", "Image files", sketchPath()); println( fnam…

---

## [Full color spectrum](https://discourse.processing.org/t/full-color-spectrum/23171)

<div class="topic-metadata">

**Author:** [@qewer3322](https://discourse.processing.org/u/qewer3322)\
**Replies:** 2\
**Last updated:** [August 11, 2020, 7:01am UTC](https://discourse.processing.org/t/full-color-spectrum/23171 "2020-08-11T07:01:52Z")

</div>

So I’m experimenting with color pickers for my projects and so far I managed to make RGB sliders and an HSB color picker (pretty happy with this one). Im pleased with both of these but another thing I want to do is a col…

---

## [I keep getting null pointer exception when using classes when playing audio](https://discourse.processing.org/t/i-keep-getting-null-pointer-exception-when-using-classes-when-playing-audio/23179)

<div class="topic-metadata">

**Author:** [@anon76195010](https://discourse.processing.org/u/anon76195010)\
**Replies:** 0\
**Last updated:** [August 11, 2020, 4:38am UTC](https://discourse.processing.org/t/i-keep-getting-null-pointer-exception-when-using-classes-when-playing-audio/23179 "2020-08-11T04:38:41Z")

</div>

So this is my main file (named Testing) Minim minim; Audio audio; void setup() { audio = new Audio(); size(800, 800); } void draw() { audio.drawShape(); background(255); } And this is the Audio class fil…

---

## [Animated grid loop](https://discourse.processing.org/t/animated-grid-loop/23154)

<div class="topic-metadata">

**Author:** [@brunobot](https://discourse.processing.org/u/brunobot)\
**Replies:** 5\
**Last updated:** [August 10, 2020, 4:33pm UTC](https://discourse.processing.org/t/animated-grid-loop/23154 "2020-08-10T16:33:20Z")

</div>

Hello! I’m new to Processing. Love it but some of the thinking is giving me a hard time. I’m trying to recreate this kind of visual effect here: I thought I could recreate this by creating a stripe of different co…

---

## [Basic graphing calculator makes strange lines inconsistently](https://discourse.processing.org/t/basic-graphing-calculator-makes-strange-lines-inconsistently/23123)

<div class="topic-metadata">

**Author:** [@Crysp](https://discourse.processing.org/u/Crysp)\
**Replies:** 7\
**Last updated:** [August 9, 2020, 9:55pm UTC](https://discourse.processing.org/t/basic-graphing-calculator-makes-strange-lines-inconsistently/23123 "2020-08-09T21:55:13Z")

</div>

Hi all, So I made this really basic graphing calculator that draws the form of whatever equation you give it (ex. it can draw a cubic function with axis lines). It almost works perfectly and exactly how I wanted, except…

---

## [Make a class use another class?](https://discourse.processing.org/t/make-a-class-use-another-class/23110)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 3\
**Last updated:** [August 10, 2020, 3:41am UTC](https://discourse.processing.org/t/make-a-class-use-another-class/23110 "2020-08-10T03:41:51Z")

</div>

Hi I’m working on a math library and I got the Idea to make a Matrix where you can put anything in. The class you put in should have certain methods. I thougt about demanding it to extend a abstract Class Number I heard…

---

## [Maven release out of date](https://discourse.processing.org/t/maven-release-out-of-date/14993)

<div class="topic-metadata">

**Author:** [@macbrayne](https://discourse.processing.org/u/macbrayne)\
**Replies:** 7\
**Last updated:** [August 9, 2020, 8:55pm UTC](https://discourse.processing.org/t/maven-release-out-of-date/14993 "2020-08-09T20:55:46Z")

</div>

Hello fellow Processing users, I’ve been developing a game for the last few years and switched to using IntelliJ Idea in May due to my game’s complexity. Since then I’ve been modularizing and refactoring my game to usin…

---

## [Getting live audio input](https://discourse.processing.org/t/getting-live-audio-input/23143)

<div class="topic-metadata">

**Author:** [@Tomfoolery](https://discourse.processing.org/u/Tomfoolery)\
**Replies:** 7\
**Last updated:** [August 9, 2020, 8:23pm UTC](https://discourse.processing.org/t/getting-live-audio-input/23143 "2020-08-09T20:23:16Z")

</div>

So I’m brand new to working with audio in any form, and I’m hoping you folks can point me in the right direction. A DJ friend of mine wants my processing sketch to react to his audio. He said he could plug his output in…

---

## [No display when my processing is enabled for video](https://discourse.processing.org/t/no-display-when-my-processing-is-enabled-for-video/23148)

<div class="topic-metadata">

**Author:** [@LYY](https://discourse.processing.org/u/LYY)\
**Replies:** 1\
**Last updated:** [August 9, 2020, 10:55am UTC](https://discourse.processing.org/t/no-display-when-my-processing-is-enabled-for-video/23148 "2020-08-09T10:55:39Z")

</div>

import processing.video.\*; Movie myMovie; void setup() { size(200, 200); myMovie = new Movie(this, “abc.mp4”); myMovie.play(); } void draw() { image(myMovie, 0, 0); } void movieEvent(Movie m) { m.read(); } N…

---

## [How to coloring controlP5 item with different color?](https://discourse.processing.org/t/how-to-coloring-controlp5-item-with-different-color/23098)

<div class="topic-metadata">

**Author:** [@Rai](https://discourse.processing.org/u/Rai)\
**Replies:** 4\
**Last updated:** [August 8, 2020, 11:55pm UTC](https://discourse.processing.org/t/how-to-coloring-controlp5-item-with-different-color/23098 "2020-08-08T23:55:10Z")

</div>

import controlP5.\*; ControlP5 cp5; CheckBox Checkcomponent; Textlabel labelInfo; void setup() { size(640, 480); cp5 = new ControlP5(this); Checkcomponent = cp5.addCheckBox("checkBox") .setPosition(105, 60) …

---

## [FFT on OSC input](https://discourse.processing.org/t/fft-on-osc-input/23145)

<div class="topic-metadata">

**Author:** [@nimbinensis](https://discourse.processing.org/u/nimbinensis)\
**Replies:** 0\
**Last updated:** [August 8, 2020, 11:39pm UTC](https://discourse.processing.org/t/fft-on-osc-input/23145 "2020-08-08T23:39:48Z")

</div>

Hello all. I need some advice on how to analyse the OSC data I get streamed from a Muse headband with the Processing Audio or Minim libraries.

---

## [Modifying a game: score, random, display](https://discourse.processing.org/t/modifying-a-game-score-random-display/22785)

<div class="topic-metadata">

**Author:** [@greenArtist7](https://discourse.processing.org/u/greenArtist7)\
**Replies:** 23\
**Last updated:** [August 8, 2020, 10:55pm UTC](https://discourse.processing.org/t/modifying-a-game-score-random-display/22785 "2020-08-08T22:55:28Z")

</div>

Hello, I’m currently taking a ‘Learning Processing’ course and I need some help with a game I’m trying to create. It is a 2 person game (Player 1 controls the keyboard, Player 2 controls the mouse). It is a take on the …

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

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