# Processing

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

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

**Page:** 322

---

## [PShape.resetMatrix() not resetting rotation in P2D](https://discourse.processing.org/t/pshape-resetmatrix-not-resetting-rotation-in-p2d/8508)

<div class="topic-metadata">

**Author:** [@wqt](https://discourse.processing.org/u/wqt)\
**Replies:** 11\
**Last updated:** [February 19, 2019, 9:18am UTC](https://discourse.processing.org/t/pshape-resetmatrix-not-resetting-rotation-in-p2d/8508 "2019-02-19T09:18:57Z")

</div>

Hello everyone! I have a quite weird resetMatrix bug on PShape. It works fine in the default renderer, but in P2D it seems to reset only the translation and not the rotation. So what I am seeing is a spinning quad, inst…

---

## [Processing error: Problem while trying to get the sketchbook](https://discourse.processing.org/t/processing-error-problem-while-trying-to-get-the-sketchbook/8520)

<div class="topic-metadata">

**Author:** [@Kydia](https://discourse.processing.org/u/Kydia)\
**Replies:** 2\
**Last updated:** [February 19, 2019, 12:59am UTC](https://discourse.processing.org/t/processing-error-problem-while-trying-to-get-the-sketchbook/8520 "2019-02-19T00:59:46Z")

</div>

I’ve been trying to install Processing recently and I’ve been having some trouble. Every time I extract Processing and run “processing.exe”. I get an error saying " Problem while trying to get the sketchbook". I looked…

---

## [Bug while press update](https://discourse.processing.org/t/bug-while-press-update/8511)

<div class="topic-metadata">

**Author:** [@Grisha](https://discourse.processing.org/u/Grisha)\
**Replies:** 0\
**Last updated:** [February 18, 2019, 5:18pm UTC](https://discourse.processing.org/t/bug-while-press-update/8511 "2019-02-18T17:18:24Z")

</div>

I wanted to update my libraries and install one more , I pressed update and I had this message in console :https://paste.ee/p/LFDzL , and the update windows stays white

---

## [Accessing two subclass within one class](https://discourse.processing.org/t/accessing-two-subclass-within-one-class/8457)

<div class="topic-metadata">

**Author:** [@Feltopi](https://discourse.processing.org/u/Feltopi)\
**Replies:** 4\
**Last updated:** [February 18, 2019, 10:05am UTC](https://discourse.processing.org/t/accessing-two-subclass-within-one-class/8457 "2019-02-18T10:05:49Z")

</div>

Hello, i dont know if its even possible, but here is my problem. My goal is find the best shape for my IRL construction and i would like to use genetic algorithm (yeah… high hopes) and for that so i want to make a rand…

---

## [Combobox with present mode](https://discourse.processing.org/t/combobox-with-present-mode/8276)

<div class="topic-metadata">

**Author:** [@akenaton](https://discourse.processing.org/u/akenaton)\
**Replies:** 17\
**Last updated:** [February 18, 2019, 9:48am UTC](https://discourse.processing.org/t/combobox-with-present-mode/8276 "2019-02-18T09:48:14Z")

</div>

i have an app that is quite ok; it s a very long and complicated thing but it runs, through a server and with multiple clients && rooms. I have tested it in a lot of situations; as everything looks fine now i try to exp…

---

## [Key != the pressed key when control is held](https://discourse.processing.org/t/key-the-pressed-key-when-control-is-held/2779)

<div class="topic-metadata">

**Author:** [@Warlax56](https://discourse.processing.org/u/Warlax56)\
**Replies:** 6\
**Last updated:** [February 18, 2019, 4:34am UTC](https://discourse.processing.org/t/key-the-pressed-key-when-control-is-held/2779 "2019-02-18T04:34:23Z")

</div>

I’m trying to implement copy and pasting into a node based programming language I’m making. An abreviated version of my code is something like this: void keyPressed() { if(key == 'c' || key == 'C'){ print("\\nC press…

---

## [I am trying to do intersections but nothing i do will allow it to work](https://discourse.processing.org/t/i-am-trying-to-do-intersections-but-nothing-i-do-will-allow-it-to-work/8452)

<div class="topic-metadata">

**Author:** [@Supergreek72](https://discourse.processing.org/u/Supergreek72)\
**Replies:** 4\
**Last updated:** [February 18, 2019, 2:00am UTC](https://discourse.processing.org/t/i-am-trying-to-do-intersections-but-nothing-i-do-will-allow-it-to-work/8452 "2019-02-18T02:00:04Z")

</div>

I have 2 cars and if they touch I want it to pick a new spot, the intersection command says it only uses integers but the random command i have says it only uses floats. i fixed this by adding a rounding command but i ca…

---

## [Tips for speeding up this sketch](https://discourse.processing.org/t/tips-for-speeding-up-this-sketch/8468)

<div class="topic-metadata">

**Author:** [@scottmetoyer](https://discourse.processing.org/u/scottmetoyer)\
**Replies:** 4\
**Last updated:** [February 17, 2019, 11:12pm UTC](https://discourse.processing.org/t/tips-for-speeding-up-this-sketch/8468 "2019-02-17T23:12:44Z")

</div>

I’m new to Processing, and have my project working but with some performance issues. Basically I have 10 images that I’m scaling and moving (with lerp) when a key is pressed. Eventually I’d like to get this up to 100 im…

---

## [Suggestion for ide](https://discourse.processing.org/t/suggestion-for-ide/8359)

<div class="topic-metadata">

**Author:** [@Grisha](https://discourse.processing.org/u/Grisha)\
**Replies:** 1\
**Last updated:** [February 17, 2019, 11:01pm UTC](https://discourse.processing.org/t/suggestion-for-ide/8359 "2019-02-17T23:01:47Z")

</div>

Is it planning to add more functional to the Precessing ide ? Fore example auto variants ( when you are typing fore example name of some function and ide shows you variants ) they are very useful ! And it would be great…

---

## [Webcam Bar code/ QR code Read](https://discourse.processing.org/t/webcam-bar-code-qr-code-read/2911)

<div class="topic-metadata">

**Author:** [@YTC](https://discourse.processing.org/u/YTC)\
**Replies:** 7\
**Last updated:** [February 17, 2019, 6:46pm UTC](https://discourse.processing.org/t/webcam-bar-code-qr-code-read/2911 "2019-02-17T18:46:40Z")

</div>

Hi, I am doing a project on reading qr code using processing. I have tried using logitech web camera C310 (windows 7) and the laptop webcam for example qrcode and bar code but it does not detect the qr code although I al…

---

## [Anyone knows how to use getConvexHull();?](https://discourse.processing.org/t/anyone-knows-how-to-use-getconvexhull/8268)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 10\
**Last updated:** [February 17, 2019, 5:03pm UTC](https://discourse.processing.org/t/anyone-knows-how-to-use-getconvexhull/8268 "2019-02-17T17:03:31Z")

</div>

I am using the OpenCV library, the example called “FindContours”. I tried to obtain a new contour based on the ConvexHull function, but I get the same thing. So I tried: for (Contour contour : contours) { stroke(0…

---

## [Capture frame rate maxed out at 20fps at 1080](https://discourse.processing.org/t/capture-frame-rate-maxed-out-at-20fps-at-1080/8461)

<div class="topic-metadata">

**Author:** [@EliTheIceMan](https://discourse.processing.org/u/EliTheIceMan)\
**Replies:** 2\
**Last updated:** [February 17, 2019, 4:51am UTC](https://discourse.processing.org/t/capture-frame-rate-maxed-out-at-20fps-at-1080/8461 "2019-02-17T04:51:30Z")

</div>

I am trying to capture 60fps video from a CamLink capture device (connected to a gopro) but processing is maxing out at 20fps capture rate. The sketch will run at whatever speed I want but the cam.available() flag is on…

---

## [Planar equation from camera image](https://discourse.processing.org/t/planar-equation-from-camera-image/8164)

<div class="topic-metadata">

**Author:** [@iffybox](https://discourse.processing.org/u/iffybox)\
**Replies:** 11\
**Last updated:** [February 17, 2019, 1:59am UTC](https://discourse.processing.org/t/planar-equation-from-camera-image/8164 "2019-02-17T01:59:47Z")

</div>

Hi, I’m new to the forum. I’ve appended a jpeg to illustrate my question, sorry for its amateurish appearance. My question: in the given setup, how do I calculate the equation of the image plane from 3 points – pp1, pp2,…

---

## [\[SOLVED\] Processing with Arduino \[How to Save Serial output every 'x' hour?\]](https://discourse.processing.org/t/solved-processing-with-arduino-how-to-save-serial-output-every-x-hour/8420)

<div class="topic-metadata">

**Author:** [@musical0714](https://discourse.processing.org/u/musical0714)\
**Replies:** 4\
**Last updated:** [February 16, 2019, 10:22pm UTC](https://discourse.processing.org/t/solved-processing-with-arduino-how-to-save-serial-output-every-x-hour/8420 "2019-02-16T22:22:02Z")

</div>

Hello I’m working on an Arduino project and using Processing to catch serial data from Arduino (data such as timestamp and input/output data). I’m trying to automate the saving process so that I can save the data every …

---

## [Processing Sound, How to release loaded file after playback is stopped?](https://discourse.processing.org/t/processing-sound-how-to-release-loaded-file-after-playback-is-stopped/8361)

<div class="topic-metadata">

**Author:** [@Stan](https://discourse.processing.org/u/Stan)\
**Replies:** 5\
**Last updated:** [February 16, 2019, 4:29pm UTC](https://discourse.processing.org/t/processing-sound-how-to-release-loaded-file-after-playback-is-stopped/8361 "2019-02-16T16:29:05Z")

</div>

Hi there! Thanks a lot to everyone writing/debugging/contributing with amazing code :slight\_smile: I’m making a sound player app to browse some folders using Guido. If the selected file is a .wav it loads it with sou…

---

## [\[SOLVED\] Uneven Data Entry by sketch](https://discourse.processing.org/t/solved-uneven-data-entry-by-sketch/8449)

<div class="topic-metadata">

**Author:** [@harvious](https://discourse.processing.org/u/harvious)\
**Replies:** 2\
**Last updated:** [February 16, 2019, 3:37pm UTC](https://discourse.processing.org/t/solved-uneven-data-entry-by-sketch/8449 "2019-02-16T15:37:32Z")

</div>

Hello all, In my sketch, I have a bunch of balls bouncing around. I am saving the X, Y values of each ball, and the XSpeed, and YSpeed value of each ball every time draw() runs. I use the following code : PrintWriter …

---

## [Moving an image with key presses](https://discourse.processing.org/t/moving-an-image-with-key-presses/8432)

<div class="topic-metadata">

**Author:** [@Supergreek72](https://discourse.processing.org/u/Supergreek72)\
**Replies:** 4\
**Last updated:** [February 16, 2019, 3:26am UTC](https://discourse.processing.org/t/moving-an-image-with-key-presses/8432 "2019-02-16T03:26:24Z")

</div>

so I am trying to do movement of a image with the arrow buttons and it says “the operator == is undefined for the argument type(s) Boolean, int” (i have no clue how to fix this and i don’t understand why it is happeni…

---

## [3D Motion Graphics for MPU9250](https://discourse.processing.org/t/3d-motion-graphics-for-mpu9250/8346)

<div class="topic-metadata">

**Author:** [@Deep](https://discourse.processing.org/u/Deep)\
**Replies:** 4\
**Last updated:** [February 16, 2019, 2:57am UTC](https://discourse.processing.org/t/3d-motion-graphics-for-mpu9250/8346 "2019-02-16T02:57:13Z")

</div>

I am a newbie in this,just wanted to know how to visualize the MPU9250 Roll, Pitch, Yaw data to show in the Processing IDE. I want something like this: 3D Tracking with IMU I am really sorry if I have missed any informat…

---

## [How to slow down drawing points](https://discourse.processing.org/t/how-to-slow-down-drawing-points/8234)

<div class="topic-metadata">

**Author:** [@davef\_dci](https://discourse.processing.org/u/davef_dci)\
**Replies:** 22\
**Last updated:** [February 15, 2019, 9:59pm UTC](https://discourse.processing.org/t/how-to-slow-down-drawing-points/8234 "2019-02-15T21:59:56Z")

</div>

Hey folks, New to processing. I’m reading a large number of X,Y points out of a CSV file and drawing them to the screen using the point command. inside a for loop The points represent GPS locations on a race track. I’d…

---

## [Running a circle pattern inside a given shape](https://discourse.processing.org/t/running-a-circle-pattern-inside-a-given-shape/8108)

<div class="topic-metadata">

**Author:** [@TomMoto](https://discourse.processing.org/u/TomMoto)\
**Replies:** 3\
**Last updated:** [February 15, 2019, 9:54pm UTC](https://discourse.processing.org/t/running-a-circle-pattern-inside-a-given-shape/8108 "2019-02-15T21:54:24Z")

</div>

Hi, I am cosidering myself still a beginner, trying to learn as much as I can. I would like to realize something but I m stuck. maybe someone has a tip or solution… Within my sketch I create little circles row by row.…

---

## [Individual stroke colours for each side of a rect](https://discourse.processing.org/t/individual-stroke-colours-for-each-side-of-a-rect/7937)

<div class="topic-metadata">

**Author:** [@KeirMeDear](https://discourse.processing.org/u/KeirMeDear)\
**Replies:** 3\
**Last updated:** [February 15, 2019, 6:12pm UTC](https://discourse.processing.org/t/individual-stroke-colours-for-each-side-of-a-rect/7937 "2019-02-15T18:12:18Z")

</div>

I was wondering if there was function that allows you to assign a unique colour value to each side of a rect - So for example the top stroke of a rect could be green and the bottom stroke of the rect could be red - I don…

---

## [Get counts from each cell in cavas in Processing](https://discourse.processing.org/t/get-counts-from-each-cell-in-cavas-in-processing/8238)

<div class="topic-metadata">

**Author:** [@harvious](https://discourse.processing.org/u/harvious)\
**Replies:** 6\
**Last updated:** [February 15, 2019, 6:10pm UTC](https://discourse.processing.org/t/get-counts-from-each-cell-in-cavas-in-processing/8238 "2019-02-15T18:10:52Z")

</div>

Hello all, I have been working on a simulation project for a while which involves N colliding balls in a 2D space. What I want to get is the count of the number of balls in each cell every frame and save it to a text fi…

---

## [Minim Loop Synchronization](https://discourse.processing.org/t/minim-loop-synchronization/8261)

<div class="topic-metadata">

**Author:** [@spaceHolder](https://discourse.processing.org/u/spaceHolder)\
**Replies:** 2\
**Last updated:** [February 15, 2019, 6:07pm UTC](https://discourse.processing.org/t/minim-loop-synchronization/8261 "2019-02-15T18:07:23Z")

</div>

Hey there! This is my first post here so please excuse me if it’s in the wrong place. I’m thinking of putting together a really simple little 4 track looping pedal type program using minim but I’m not quite sure if ther…

---

## [Creating the brick breaker Game](https://discourse.processing.org/t/creating-the-brick-breaker-game/8251)

<div class="topic-metadata">

**Author:** [@jadenfigger](https://discourse.processing.org/u/jadenfigger)\
**Replies:** 1\
**Last updated:** [February 15, 2019, 6:06pm UTC](https://discourse.processing.org/t/creating-the-brick-breaker-game/8251 "2019-02-15T18:06:31Z")

</div>

I am trying to create brick breaker but when my ball moves it is really glitchy. The ball position keeps jumping to where it previously was. If anyone knows how to fix this issue could you please let me know. Here is my…

---

## [How do I get pixels to display ONE by ONE after a key is pressed?](https://discourse.processing.org/t/how-do-i-get-pixels-to-display-one-by-one-after-a-key-is-pressed/8242)

<div class="topic-metadata">

**Author:** [@bjente](https://discourse.processing.org/u/bjente)\
**Replies:** 1\
**Last updated:** [February 15, 2019, 5:44pm UTC](https://discourse.processing.org/t/how-do-i-get-pixels-to-display-one-by-one-after-a-key-is-pressed/8242 "2019-02-15T17:44:48Z")

</div>

Hello all, I’m new to processing and I’ve got a question about pixels. I want to write a program in which the user can press a key and if a key is pressed, ONE pixel of an image appears. Right now, if I press a key, the…

---

## [How to make processing press a key](https://discourse.processing.org/t/how-to-make-processing-press-a-key/8422)

<div class="topic-metadata">

**Author:** [@Supercube9307](https://discourse.processing.org/u/Supercube9307)\
**Replies:** 1\
**Last updated:** [February 15, 2019, 4:34pm UTC](https://discourse.processing.org/t/how-to-make-processing-press-a-key/8422 "2019-02-15T16:34:36Z")

</div>

Hi all, I have had this question for a long time: Is there any way to make processing act as if the user pressed a key? Ex: When a condition is true, the script would send a signal to the computer that the “P” key had j…

---

## [Making a large image move without lag?](https://discourse.processing.org/t/making-a-large-image-move-without-lag/8406)

<div class="topic-metadata">

**Author:** [@Schred](https://discourse.processing.org/u/Schred)\
**Replies:** 8\
**Last updated:** [February 15, 2019, 3:05pm UTC](https://discourse.processing.org/t/making-a-large-image-move-without-lag/8406 "2019-02-15T15:05:14Z")

</div>

Hey! So I’m trying to implement a background to my 2d platformer. The image moves with the player, just a lot slower. However, moving the image causes a lot of lag. This is my code(simplified): void draw(){ playerCla…

---

## [Only starting the main program when necessary?](https://discourse.processing.org/t/only-starting-the-main-program-when-necessary/8397)

<div class="topic-metadata">

**Author:** [@Papergami45](https://discourse.processing.org/u/Papergami45)\
**Replies:** 4\
**Last updated:** [February 15, 2019, 1:17pm UTC](https://discourse.processing.org/t/only-starting-the-main-program-when-necessary/8397 "2019-02-15T13:17:49Z")

</div>

I’m working on a fairly complicated project involving multiple windows using G4P - the first window is the standard processing one, and the other two are a user interface window and a real time graph. In order for the p…

---

## [Objects affecting other objects transparency](https://discourse.processing.org/t/objects-affecting-other-objects-transparency/8417)

<div class="topic-metadata">

**Author:** [@ZAF](https://discourse.processing.org/u/ZAF)\
**Replies:** 2\
**Last updated:** [February 15, 2019, 10:15am UTC](https://discourse.processing.org/t/objects-affecting-other-objects-transparency/8417 "2019-02-15T10:15:30Z")

</div>

Hello there, this might be a little ambitious for my begginer/intermediate self, but i will give it a try. I am working on a Project for a brand logo, wich is just a single word. I am using it as a string array so i can…

---

## [How to make a 2d Zoom and Pan](https://discourse.processing.org/t/how-to-make-a-2d-zoom-and-pan/1179)

<div class="topic-metadata">

**Author:** [@imaginativeCODE](https://discourse.processing.org/u/imaginativeCODE)\
**Replies:** 9\
**Last updated:** [February 15, 2019, 5:02am UTC](https://discourse.processing.org/t/how-to-make-a-2d-zoom-and-pan/1179 "2019-02-15T05:02:40Z")

</div>

I am trying to make a zoom in and out that the circle stays in the same place but more or less squares are shown. My first assumption is to scale the rects by zoom and then translate(MX + (Zoom / 2), MY + (Zoom / 2));. …

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

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