# Processing

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

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

**Page:** 172

---

## [Only redraw when Tweak Mode modifies values?](https://discourse.processing.org/t/only-redraw-when-tweak-mode-modifies-values/24263)

<div class="topic-metadata">

**Author:** [@stixan](https://discourse.processing.org/u/stixan)\
**Replies:** 1\
**Last updated:** [November 11, 2020, 3:54pm UTC](https://discourse.processing.org/t/only-redraw-when-tweak-mode-modifies-values/24263 "2020-11-11T15:54:19Z")

</div>

Just wondering: When using Tweak Mode to modify values, is there any way I can tell my sketch to only redraw when values change? Is there any kind of notification from Tweak Mode I can listen for?

---

## [Box2D collision with mouse position](https://discourse.processing.org/t/box2d-collision-with-mouse-position/25332)

<div class="topic-metadata">

**Author:** [@Chriz96](https://discourse.processing.org/u/Chriz96)\
**Replies:** 3\
**Last updated:** [November 10, 2020, 10:47pm UTC](https://discourse.processing.org/t/box2d-collision-with-mouse-position/25332 "2020-11-10T22:47:50Z")

</div>

Hello, I was trying to modify the Box2D library example called Collisions and Control, in order to remove the spring behavior and manipulate the box position only with the mouseX and mouseY values without having it bounc…

---

## [3D Face in Processing?](https://discourse.processing.org/t/3d-face-in-processing/21596)

<div class="topic-metadata">

**Author:** [@rkk16](https://discourse.processing.org/u/rkk16)\
**Replies:** 8\
**Last updated:** [November 10, 2020, 6:10pm UTC](https://discourse.processing.org/t/3d-face-in-processing/21596 "2020-11-10T18:10:25Z")

</div>

Hi all, I’m quite new to Processing. I’ve got the hang of the 2D quite well and managed to build a complicated social robot’s face with various functions working. I was wondering if anyone had any idea about how I’d be a…

---

## [newInstance() method](https://discourse.processing.org/t/newinstance-method/25324)

<div class="topic-metadata">

**Author:** [@alb85](https://discourse.processing.org/u/alb85)\
**Replies:** 4\
**Last updated:** [November 10, 2020, 5:39pm UTC](https://discourse.processing.org/t/newinstance-method/25324 "2020-11-10T17:39:07Z")

</div>

Hello everybody! I think there is a problem in Processing with the method newInstance(). If I run this simple example: void setup(){ try{ Test t = Test.class.newInstance(); }catch(Exception e){ e.printStackTra…

---

## [Realtime pitch recognition](https://discourse.processing.org/t/realtime-pitch-recognition/25174)

<div class="topic-metadata">

**Author:** [@Ginopalombi](https://discourse.processing.org/u/Ginopalombi)\
**Replies:** 4\
**Last updated:** [November 10, 2020, 5:01pm UTC](https://discourse.processing.org/t/realtime-pitch-recognition/25174 "2020-11-10T17:01:00Z")

</div>

Hi everybody, I want to create a realtime pitch recogniser with Processing. How can I do this? Thanks.

---

## [Ask user for image](https://discourse.processing.org/t/ask-user-for-image/25287)

<div class="topic-metadata">

**Author:** [@x13420x](https://discourse.processing.org/u/x13420x)\
**Replies:** 4\
**Last updated:** [November 10, 2020, 4:46pm UTC](https://discourse.processing.org/t/ask-user-for-image/25287 "2020-11-10T16:46:40Z")

</div>

I want to ask the user for an image and then have the sketch show the image with the window of the same size(Resizing will not work because I want to manipulate it at the pixel level). This is broken in the new processi…

---

## [Ellipse limit of the drawing](https://discourse.processing.org/t/ellipse-limit-of-the-drawing/25319)

<div class="topic-metadata">

**Author:** [@Dimdimtri](https://discourse.processing.org/u/Dimdimtri)\
**Replies:** 4\
**Last updated:** [November 10, 2020, 3:03pm UTC](https://discourse.processing.org/t/ellipse-limit-of-the-drawing/25319 "2020-11-10T15:03:22Z")

</div>

Hello everyone ! after a lot of research, I am asking for your help. I draw a random Bezier inside an ellipse, but I would like this ellipse to be the limit of the drawing as well to avoid continuing the lines outside …

---

## [Camera issue not working](https://discourse.processing.org/t/camera-issue-not-working/25309)

<div class="topic-metadata">

**Author:** [@raghidj1994](https://discourse.processing.org/u/raghidj1994)\
**Replies:** 3\
**Last updated:** [November 10, 2020, 12:41pm UTC](https://discourse.processing.org/t/camera-issue-not-working/25309 "2020-11-10T12:41:42Z")

</div>

Hi guys! I’m new to processing and im having a problem: Processing is not reading my integrated camera with my laptop. I tried everything but can’t get it to work. here is a screen shot of the code im using. I used the s…

---

## [Does anyone know a library to skeleton tracking with the kinect?](https://discourse.processing.org/t/does-anyone-know-a-library-to-skeleton-tracking-with-the-kinect/25310)

<div class="topic-metadata">

**Author:** [@AlonsoMAF](https://discourse.processing.org/u/AlonsoMAF)\
**Replies:** 1\
**Last updated:** [November 10, 2020, 12:34am UTC](https://discourse.processing.org/t/does-anyone-know-a-library-to-skeleton-tracking-with-the-kinect/25310 "2020-11-10T00:34:26Z")

</div>

I’m trying to find a library to do skeleton tracking, I’m using a Kinect v1, Windows 10 and Processing 3.5.4. I have tried the Kinect4WinSDK library but it doesn’t work, this message appears “(init) initialize sensor fa…

---

## [GPU calculations in Processing](https://discourse.processing.org/t/gpu-calculations-in-processing/25307)

<div class="topic-metadata">

**Author:** [@vadsavin](https://discourse.processing.org/u/vadsavin)\
**Replies:** 1\
**Last updated:** [November 10, 2020, 12:26am UTC](https://discourse.processing.org/t/gpu-calculations-in-processing/25307 "2020-11-10T00:26:12Z")

</div>

I have some tasks, that may be optimized using my gpu: calculating average brightness of pixels in some region. Is there convenient way to use my geforce 150m for custom calculations?

---

## [Controlp5 (Numberbox, RadioButton, CheckBox) what to write after case statements](https://discourse.processing.org/t/controlp5-numberbox-radiobutton-checkbox-what-to-write-after-case-statements/25301)

<div class="topic-metadata">

**Author:** [@Vadimkuzmin](https://discourse.processing.org/u/Vadimkuzmin)\
**Replies:** 3\
**Last updated:** [November 9, 2020, 9:18pm UTC](https://discourse.processing.org/t/controlp5-numberbox-radiobutton-checkbox-what-to-write-after-case-statements/25301 "2020-11-09T21:18:51Z")

</div>

I am completely newbie (completely). I asked the question here, I received no answer. Here I did not upload the whole project to the link, I think it is clear what kind of help I am asking. Good afternoon, I’m using the…

---

## [Extrude function](https://discourse.processing.org/t/extrude-function/25290)

<div class="topic-metadata">

**Author:** [@Vako](https://discourse.processing.org/u/Vako)\
**Replies:** 5\
**Last updated:** [November 9, 2020, 7:41pm UTC](https://discourse.processing.org/t/extrude-function/25290 "2020-11-09T19:41:00Z")

</div>

Hello, I’ve been coding for a few years in processing and I’ve been developing some simple simulations, however I wanted to take my work and do it in 3D, my pieces are quite simple (just a rectangle with 2 semi circles i…

---

## [Incremetly speed millis()?](https://discourse.processing.org/t/incremetly-speed-millis/25293)

<div class="topic-metadata">

**Author:** [@claudinho7](https://discourse.processing.org/u/claudinho7)\
**Replies:** 1\
**Last updated:** [November 9, 2020, 1:05pm UTC](https://discourse.processing.org/t/incremetly-speed-millis/25293 "2020-11-09T13:05:16Z")

</div>

hello, im working on a small project thats due in 2 hours and im hard stuck, i need to find a way to speed my clock in the same time as i speed the background to give it a “fast travel trough time” look. Is there a way…

---

## [Mapping time to an array](https://discourse.processing.org/t/mapping-time-to-an-array/25286)

<div class="topic-metadata">

**Author:** [@lkalotihos](https://discourse.processing.org/u/lkalotihos)\
**Replies:** 1\
**Last updated:** [November 8, 2020, 9:28pm UTC](https://discourse.processing.org/t/mapping-time-to-an-array/25286 "2020-11-08T21:28:36Z")

</div>

Hi there, I’m trying to display a new ellipse on the sketch as each second goes by, to eventually get a row of ellipses. I’m running in to trouble displaying a new ellipse though. Thanks for the help! void setup(){ s…

---

## [Drawing on screen after region clicked processing](https://discourse.processing.org/t/drawing-on-screen-after-region-clicked-processing/25280)

<div class="topic-metadata">

**Author:** [@crimpqwe](https://discourse.processing.org/u/crimpqwe)\
**Replies:** 1\
**Last updated:** [November 8, 2020, 4:08pm UTC](https://discourse.processing.org/t/drawing-on-screen-after-region-clicked-processing/25280 "2020-11-08T16:08:08Z")

</div>

I’m trying to make it so that when the user clicks the pencil icon in the program they are allowed to draw until the pencil has been clicked again. ive not added in a toggle yet but my current problem is that i get the d…

---

## [Drawing a line in processing after a region of the screen has been pressed and the mouse is being clicked](https://discourse.processing.org/t/drawing-a-line-in-processing-after-a-region-of-the-screen-has-been-pressed-and-the-mouse-is-being-clicked/25278)

<div class="topic-metadata">

**Author:** [@crimpqwe](https://discourse.processing.org/u/crimpqwe)\
**Replies:** 1\
**Last updated:** [November 8, 2020, 4:06pm UTC](https://discourse.processing.org/t/drawing-a-line-in-processing-after-a-region-of-the-screen-has-been-pressed-and-the-mouse-is-being-clicked/25278 "2020-11-08T16:06:38Z")

</div>

when i click the region it continually draws instead of when im holding the mouse. also ill figure out how to toggle the pencil when clicked later on. i am very new. ive tried some stuff with mouseclicked and mousebutton…

---

## [Parsing a JSON file - NYT API](https://discourse.processing.org/t/parsing-a-json-file-nyt-api/25281)

<div class="topic-metadata">

**Author:** [@okori](https://discourse.processing.org/u/okori)\
**Replies:** 0\
**Last updated:** [November 8, 2020, 3:36pm UTC](https://discourse.processing.org/t/parsing-a-json-file-nyt-api/25281 "2020-11-08T15:36:57Z")

</div>

Hey all, I am trying to use the NYT api following this tutorial http://blog.blprnt.com/blog/blprnt/processing-json-the-new-york-times It seems that when i try to grab the total from the array it says it cannot be found…

---

## [Solve 3 equations with 3 variables](https://discourse.processing.org/t/solve-3-equations-with-3-variables/25252)

<div class="topic-metadata">

**Author:** [@vestergaard12](https://discourse.processing.org/u/vestergaard12)\
**Replies:** 4\
**Last updated:** [November 8, 2020, 2:14pm UTC](https://discourse.processing.org/t/solve-3-equations-with-3-variables/25252 "2020-11-08T14:14:58Z")

</div>

Hello Processing foundation I have these 3 equations with 3 variables (a,b,c) that i want to solve using processing, but unfortunaly I do not have a clue how to do this. Therefore, I really hope that someone could hel…

---

## [I don't know how do that use the loop](https://discourse.processing.org/t/i-dont-know-how-do-that-use-the-loop/25269)

<div class="topic-metadata">

**Author:** [@zoe87](https://discourse.processing.org/u/zoe87)\
**Replies:** 1\
**Last updated:** [November 8, 2020, 8:50am UTC](https://discourse.processing.org/t/i-dont-know-how-do-that-use-the-loop/25269 "2020-11-08T08:50:06Z")

</div>

I need your help I don’t know how to do that use the loop to change the color

---

## [Get() Problems - Pro3 - Fr/Eng](https://discourse.processing.org/t/get-problems-pro3-fr-eng/25245)

<div class="topic-metadata">

**Author:** [@Eli0kYd](https://discourse.processing.org/u/Eli0kYd)\
**Replies:** 4\
**Last updated:** [November 7, 2020, 12:14pm UTC](https://discourse.processing.org/t/get-problems-pro3-fr-eng/25245 "2020-11-07T12:14:10Z")

</div>

Hello ! I’m new to processing and I need your help :slight\_smile: I need to select pixel’s area from my original image and to transpose it in rectangles. I learned that -get()( could help me but I do not know where to …

---

## [Any physics library for force distribution visualization?](https://discourse.processing.org/t/any-physics-library-for-force-distribution-visualization/25236)

<div class="topic-metadata">

**Author:** [@weijie](https://discourse.processing.org/u/weijie)\
**Replies:** 3\
**Last updated:** [November 7, 2020, 7:15am UTC](https://discourse.processing.org/t/any-physics-library-for-force-distribution-visualization/25236 "2020-11-07T07:15:53Z")

</div>

I’m currently finding a library for visualization of force distribution between 2D objects. Example, Below is an image of 3 boxes on a trolley. When the trolley is accelerating to the right, how will the force act fro…

---

## [Want to suggest reflected light using shapes3d](https://discourse.processing.org/t/want-to-suggest-reflected-light-using-shapes3d/25095)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 4\
**Last updated:** [November 7, 2020, 1:28am UTC](https://discourse.processing.org/t/want-to-suggest-reflected-light-using-shapes3d/25095 "2020-11-07T01:28:26Z")

</div>

I’m working on a program that reads data over USB(solved those problems) and displays it as instruments. Specifically, I have a compass and an attitude indicator. I borrowed the compass and it’s really pretty. It uses…

---

## [Crossfade multiple movies](https://discourse.processing.org/t/crossfade-multiple-movies/25160)

<div class="topic-metadata">

**Author:** [@petermakesnoise](https://discourse.processing.org/u/petermakesnoise)\
**Replies:** 1\
**Last updated:** [November 7, 2020, 12:27am UTC](https://discourse.processing.org/t/crossfade-multiple-movies/25160 "2020-11-07T00:27:09Z")

</div>

Hi, Is it possible to crossfade across an array of movies? I’m aware of the code below which crossfades from one movie to a second and remains there, using tint() but if there are multiple movies “stacked” how is is pos…

---

## [How to create a transparent background in Processing 4](https://discourse.processing.org/t/how-to-create-a-transparent-background-in-processing-4/25246)

<div class="topic-metadata">

**Author:** [@Java.SourceForger](https://discourse.processing.org/u/Java.SourceForger)\
**Replies:** 0\
**Last updated:** [November 6, 2020, 10:05pm UTC](https://discourse.processing.org/t/how-to-create-a-transparent-background-in-processing-4/25246 "2020-11-06T22:05:48Z")

</div>

Hi. How do I make a window in processing that you can see the screen on the other side? I have seen code examples and they always use AWTUtilities that apparently does not exist anymore in processing. Any help?

---

## [Write MIDI file](https://discourse.processing.org/t/write-midi-file/25225)

<div class="topic-metadata">

**Author:** [@prokophapala](https://discourse.processing.org/u/prokophapala)\
**Replies:** 2\
**Last updated:** [November 6, 2020, 9:13pm UTC](https://discourse.processing.org/t/write-midi-file/25225 "2020-11-06T21:13:27Z")

</div>

inside Minim library I found nice example of reading and playing MIDI file. I was thinking to make some algoritmic MIDI generator. But I cannot find any functioonality or example how to write MIDI file using Minim or ot…

---

## [Ellipse bounce from window](https://discourse.processing.org/t/ellipse-bounce-from-window/25157)

<div class="topic-metadata">

**Author:** [@Ellie98](https://discourse.processing.org/u/Ellie98)\
**Replies:** 2\
**Last updated:** [November 6, 2020, 8:35pm UTC](https://discourse.processing.org/t/ellipse-bounce-from-window/25157 "2020-11-06T20:35:13Z")

</div>

Hello, I’m trying to get the ellipse bounce from the edge of the window but two sides aren’t working. The right vertical side and the bottom horizontal side. Could someone help me out? float damping = 0.97; float gravi…

---

## [mousePressed() and MouseDragged() pressed key in println](https://discourse.processing.org/t/mousepressed-and-mousedragged-pressed-key-in-println/25241)

<div class="topic-metadata">

**Author:** [@Ellie98](https://discourse.processing.org/u/Ellie98)\
**Replies:** 6\
**Last updated:** [November 6, 2020, 6:29pm UTC](https://discourse.processing.org/t/mousepressed-and-mousedragged-pressed-key-in-println/25241 "2020-11-06T18:29:08Z")

</div>

Hello, I have to show the keys with println that I pressed if I use the functions keyPressed(), mousePressed() and mouseDragged(). I used println and key. It’s showing up the keys I clicked on my keyboard for keyPressed…

---

## [Random Name Generator](https://discourse.processing.org/t/random-name-generator/25008)

<div class="topic-metadata">

**Author:** [@HumanoidX](https://discourse.processing.org/u/HumanoidX)\
**Replies:** 20\
**Last updated:** [October 30, 2020, 1:02pm UTC](https://discourse.processing.org/t/random-name-generator/25008 "2020-10-30T13:02:17Z")

</div>

How should I properly initialize char variables? My code: String randomPlanetName(){ String name = ""; int dimension = int(random(3,12)); int repetitions = 0; boolean lastType; for(int i = 0;i == dimension…

---

## [Set Window's Minimum size when using P2D](https://discourse.processing.org/t/set-windows-minimum-size-when-using-p2d/1192)

<div class="topic-metadata">

**Author:** [@VansiusProductions](https://discourse.processing.org/u/VansiusProductions)\
**Replies:** 9\
**Last updated:** [November 6, 2020, 11:29am UTC](https://discourse.processing.org/t/set-windows-minimum-size-when-using-p2d/1192 "2020-11-06T11:29:29Z")

</div>

Hi, How do i Set Window’s Minimum size when using the P2D renderer? I know for the default Java renderer I would do this: PSurfaceAWT.SmoothCanvas sc = (PSurfaceAWT.SmoothCanvas) getSurface().getNative(); JFrame jf = (…

---

## [Paint program using hands or touch](https://discourse.processing.org/t/paint-program-using-hands-or-touch/25213)

<div class="topic-metadata">

**Author:** [@amsbcn](https://discourse.processing.org/u/amsbcn)\
**Replies:** 2\
**Last updated:** [November 6, 2020, 7:31am UTC](https://discourse.processing.org/t/paint-program-using-hands-or-touch/25213 "2020-11-06T07:31:17Z")

</div>

Hey! I’m fairly new to processing and am trying to workout a project that I have in mind. I created a simple paint program where I can pick a color using the mouse and paint with that color in a rectangle. Now that is wo…

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

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