# Processing

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

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

**Page:** 75

---

## [Default Font for ControlP5 lib](https://discourse.processing.org/t/default-font-for-controlp5-lib/37819)

<div class="topic-metadata">

**Author:** [@Ghostsss](https://discourse.processing.org/u/Ghostsss)\
**Replies:** 3\
**Last updated:** [July 5, 2022, 2:12am UTC](https://discourse.processing.org/t/default-font-for-controlp5-lib/37819 "2022-07-05T02:12:43Z")

</div>

Is there a way to change default font of ControlP5 library ?

---

## [How to find more description of ControlP5 lib functions](https://discourse.processing.org/t/how-to-find-more-description-of-controlp5-lib-functions/37766)

<div class="topic-metadata">

**Author:** [@Ghostsss](https://discourse.processing.org/u/Ghostsss)\
**Replies:** 6\
**Last updated:** [July 5, 2022, 12:49am UTC](https://discourse.processing.org/t/how-to-find-more-description-of-controlp5-lib-functions/37766 "2022-07-05T00:49:52Z")

</div>

Hello everyone, I am new to processing. I am using ControlP5 to create GUI. I am looking at examples of ControlP5 lib (which are great) and its website. However I am not able to figure out how to find the description …

---

## [Defining JSONArray with name but without array](https://discourse.processing.org/t/defining-jsonarray-with-name-but-without-array/37822)

<div class="topic-metadata">

**Author:** [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Replies:** 1\
**Last updated:** [July 4, 2022, 8:47am UTC](https://discourse.processing.org/t/defining-jsonarray-with-name-but-without-array/37822 "2022-07-04T08:47:22Z")

</div>

I am trying to define a JSONArray within a JSON object but I will be adding objects in array later. So when declaring it , I cannot use setJSONArray function. How can I retrieve it by getJSONArray function if I have no…

---

## [How do I capture the same webcam source on two machines](https://discourse.processing.org/t/how-do-i-capture-the-same-webcam-source-on-two-machines/37265)

<div class="topic-metadata">

**Author:** [@mario60](https://discourse.processing.org/u/mario60)\
**Replies:** 8\
**Last updated:** [July 3, 2022, 9:24pm UTC](https://discourse.processing.org/t/how-do-i-capture-the-same-webcam-source-on-two-machines/37265 "2022-07-03T21:24:34Z")

</div>

Hi I need some good hint on the following. It is not really a Processing question, but I need it for a Processing project. Say I have installed a Processing executable on two machines (say same OS). The script is such…

---

## [Two problems of using video capture](https://discourse.processing.org/t/two-problems-of-using-video-capture/37801)

<div class="topic-metadata">

**Author:** [@Yifan](https://discourse.processing.org/u/Yifan)\
**Replies:** 0\
**Last updated:** [July 3, 2022, 2:10am UTC](https://discourse.processing.org/t/two-problems-of-using-video-capture/37801 "2022-07-03T02:10:18Z")

</div>

Hello guys, yesterday I first tried to use video capture. I ran the example code in Daniel Shiffman’s book, learning processing, to display live video. But, the live video displayed is very choppy and laggy, meanwhile, t…

---

## [Cellular Automata without Animation](https://discourse.processing.org/t/cellular-automata-without-animation/37789)

<div class="topic-metadata">

**Author:** [@bcabc](https://discourse.processing.org/u/bcabc)\
**Replies:** 6\
**Last updated:** [July 2, 2022, 8:23pm UTC](https://discourse.processing.org/t/cellular-automata-without-animation/37789 "2022-07-02T20:23:32Z")

</div>

I’ve been following along with Daniel Shiffman’s Cellular Automata tutorials (the code is here: noc-examples-processing/chp07\_CA at master · arianatri/noc-examples-processing · GitHub). And I’ve noticed that most CA see…

---

## [G4P java.lang.IllegalArgumentException: Width (-2) and height (10) cannot be \<= 0](https://discourse.processing.org/t/g4p-java-lang-illegalargumentexception-width-2-and-height-10-cannot-be-0/28841)

<div class="topic-metadata">

**Author:** [@C-Level-Increment](https://discourse.processing.org/u/C-Level-Increment)\
**Replies:** 2\
**Last updated:** [March 26, 2021, 7:54pm UTC](https://discourse.processing.org/t/g4p-java-lang-illegalargumentexception-width-2-and-height-10-cannot-be-0/28841 "2021-03-26T19:54:51Z")

</div>

Hi there, sadly, i already need your help again. Yesterday the last thing i did was to export my grapher-sketch to an executable and after that closed processing. When i tried to open gui builder today to continue worki…

---

## [Problem with acceptance of displayWidth/displayHeight in iPhone app](https://discourse.processing.org/t/problem-with-acceptance-of-displaywidth-displayheight-in-iphone-app/37765)

<div class="topic-metadata">

**Author:** [@anrui71](https://discourse.processing.org/u/anrui71)\
**Replies:** 2\
**Last updated:** [July 1, 2022, 10:24am UTC](https://discourse.processing.org/t/problem-with-acceptance-of-displaywidth-displayheight-in-iphone-app/37765 "2022-07-01T10:24:36Z")

</div>

Hello everyone, I hope I did not miss an earlier post with the same question: I ran into a problem trying to use displayWidth/displayHeight within the iPhone app. The code is: void settings() { fullScreen(); cwh = mi…

---

## [Serial.list() on Linux doesn't seem to work](https://discourse.processing.org/t/serial-list-on-linux-doesnt-seem-to-work/37075)

<div class="topic-metadata">

**Author:** [@dattasaurabh82](https://discourse.processing.org/u/dattasaurabh82)\
**Replies:** 2\
**Last updated:** [June 30, 2022, 10:01pm UTC](https://discourse.processing.org/t/serial-list-on-linux-doesnt-seem-to-work/37075 "2022-06-30T22:01:52Z")

</div>

OS: Ubuntu 22.04 LTS x86\_64 Kernel: 5.17.8-051708-generic Processing IDE version: 4.0b8 Issue: Serial.list() doesn’t list all the serial ports, just one. Sketch to try for checking: import processing.serial.\*; impor…

---

## [Very basic file reading question - where is the data directory?](https://discourse.processing.org/t/very-basic-file-reading-question-where-is-the-data-directory/25119)

<div class="topic-metadata">

**Author:** [@MuddyGardener](https://discourse.processing.org/u/MuddyGardener)\
**Replies:** 11\
**Last updated:** [June 30, 2022, 11:12pm UTC](https://discourse.processing.org/t/very-basic-file-reading-question-where-is-the-data-directory/25119 "2022-06-30T23:12:22Z")

</div>

I am trying to figure out how to access files. All the documentation I’ve seen says that loadImage() etc will only work on files in the data directory. (It seems very strange, that I can’t give an absolute pathname… …

---

## [Rotating text "|" vs rotating line](https://discourse.processing.org/t/rotating-text-vs-rotating-line/37762)

<div class="topic-metadata">

**Author:** [@Erif](https://discourse.processing.org/u/Erif)\
**Replies:** 10\
**Last updated:** [June 30, 2022, 9:02pm UTC](https://discourse.processing.org/t/rotating-text-vs-rotating-line/37762 "2022-06-30T21:02:40Z")

</div>

Hi all, I’ve been playing with rotating and looping the keyboard vertical bar, however when trying to replicate that by using a regular line I’m struggling with what it would be the equivalent to the textSize() function…

---

## [MPU teapot not showing 3d model](https://discourse.processing.org/t/mpu-teapot-not-showing-3d-model/28632)

<div class="topic-metadata">

**Author:** [@ethankong](https://discourse.processing.org/u/ethankong)\
**Replies:** 15\
**Last updated:** [June 30, 2022, 5:52pm UTC](https://discourse.processing.org/t/mpu-teapot-not-showing-3d-model/28632 "2022-06-30T17:52:29Z")

</div>

Hi, I have a teapot code that is able to receive and write out the ypr of the mpu 6050, but it is unable to make the 3d rendered modeled in processing, it just shows a new window with a white background. What am I missin…

---

## [Why this Graham Scan algorithm of convex hull works wrong when number of points more than 10k](https://discourse.processing.org/t/why-this-graham-scan-algorithm-of-convex-hull-works-wrong-when-number-of-points-more-than-10k/37749)

<div class="topic-metadata">

**Author:** [@obry](https://discourse.processing.org/u/obry)\
**Replies:** 6\
**Last updated:** [June 30, 2022, 9:38am UTC](https://discourse.processing.org/t/why-this-graham-scan-algorithm-of-convex-hull-works-wrong-when-number-of-points-more-than-10k/37749 "2022-06-30T09:38:33Z")

</div>

Here is the code. It works fine with 10k and less. NUM variable it is number of points import java.util.Arrays; import java.util.Comparator; ArrayList\<PVector\> init, sorted; int NUM = 10000; int border = 100; void set…

---

## [Can you break and start an if loop?](https://discourse.processing.org/t/can-you-break-and-start-an-if-loop/37761)

<div class="topic-metadata">

**Author:** [@Kalarila](https://discourse.processing.org/u/Kalarila)\
**Replies:** 7\
**Last updated:** [June 30, 2022, 8:35am UTC](https://discourse.processing.org/t/can-you-break-and-start-an-if-loop/37761 "2022-06-30T08:35:53Z")

</div>

\[details=“Summary”\] This text will be hidden So I want to create a simple program where some shapes slowly change color from red to green, then to blue and then back to red. To do so, I created integers r, g and b and…

---

## [Frogger Code/Break Down](https://discourse.processing.org/t/frogger-code-break-down/36872)

<div class="topic-metadata">

**Author:** [@king\_B99](https://discourse.processing.org/u/king_B99)\
**Replies:** 1\
**Last updated:** [June 30, 2022, 3:34am UTC](https://discourse.processing.org/t/frogger-code-break-down/36872 "2022-06-30T03:34:29Z")

</div>

Anyone Have a simple frogger/frogger style code I can pick apart and learn from (I’m a self learner)

---

## [Rotate problem with PGraphics](https://discourse.processing.org/t/rotate-problem-with-pgraphics/37753)

<div class="topic-metadata">

**Author:** [@druuupppa](https://discourse.processing.org/u/druuupppa)\
**Replies:** 4\
**Last updated:** [June 29, 2022, 11:56pm UTC](https://discourse.processing.org/t/rotate-problem-with-pgraphics/37753 "2022-06-29T23:56:30Z")

</div>

Can someone please help me to get rotate to work with pgraphics in the following code. This code calls a function that draws a ‘petal’ that I would like to rotate and which was working perfectly without PGraphics. \< p.…

---

## [Circles drawing differently in active and static modes](https://discourse.processing.org/t/circles-drawing-differently-in-active-and-static-modes/37735)

<div class="topic-metadata">

**Author:** [@Nicholas](https://discourse.processing.org/u/Nicholas)\
**Replies:** 4\
**Last updated:** [June 29, 2022, 12:42pm UTC](https://discourse.processing.org/t/circles-drawing-differently-in-active-and-static-modes/37735 "2022-06-29T12:42:17Z")

</div>

Hello all I’ve just installed Processing 4, and when I run the following in static mode I get a smooth circle: size(500,500); noStroke(); circle(width/2,height/2,20); But when I run the same code in active mode it …

---

## [HELP! Exception in Event Handler](https://discourse.processing.org/t/help-exception-in-event-handler/37751)

<div class="topic-metadata">

**Author:** [@charlielamus](https://discourse.processing.org/u/charlielamus)\
**Replies:** 2\
**Last updated:** [June 29, 2022, 8:31am UTC](https://discourse.processing.org/t/help-exception-in-event-handler/37751 "2022-06-29T08:31:12Z")

</div>

Hello! I know next to nothing about java, being limited to playing about with the Marlin code for my 3d printer. I am a total beginner, so please be kind… I am also autistic so I might ask questions which sound stupid.…

---

## [Sin()-function and radians()-function implemented in processing.1.4.16.js?](https://discourse.processing.org/t/sin-function-and-radians-function-implemented-in-processing-1-4-16-js/37729)

<div class="topic-metadata">

**Author:** [@anrui71](https://discourse.processing.org/u/anrui71)\
**Replies:** 5\
**Last updated:** [June 29, 2022, 6:12am UTC](https://discourse.processing.org/t/sin-function-and-radians-function-implemented-in-processing-1-4-16-js/37729 "2022-06-29T06:12:58Z")

</div>

Hello to all, I read a bit about the potential difficulties to work with processing.js but so far luckily did not encounter any problem. Only just now it occurs that the sin()-function, probabily also the radians()-func…

---

## [How to capture every frame of a video, manipulate the image using a function, and display the manipulated frames?](https://discourse.processing.org/t/how-to-capture-every-frame-of-a-video-manipulate-the-image-using-a-function-and-display-the-manipulated-frames/37747)

<div class="topic-metadata">

**Author:** [@Alalalala](https://discourse.processing.org/u/Alalalala)\
**Replies:** 2\
**Last updated:** [June 29, 2022, 2:20am UTC](https://discourse.processing.org/t/how-to-capture-every-frame-of-a-video-manipulate-the-image-using-a-function-and-display-the-manipulated-frames/37747 "2022-06-29T02:20:03Z")

</div>

I was looking at the examples in the video library and there is an example that lets you control the video by pressing arrow keys and navigating per frame Is there a way i can store the frame as an image, obtain the col…

---

## [Generate QR code – ZXing library](https://discourse.processing.org/t/generate-qr-code-zxing-library/1250)

<div class="topic-metadata">

**Author:** [@f.m](https://discourse.processing.org/u/f.m)\
**Replies:** 9\
**Last updated:** [June 28, 2022, 4:45pm UTC](https://discourse.processing.org/t/generate-qr-code-zxing-library/1250 "2022-06-28T16:45:39Z")

</div>

Hello, does anyone ever worked with the ZXing library? I am trying to generate QR codes with this library in processing. So when open the example sketch “generateQRCode” there is always the same error: The package “com…

---

## [Sampling a movement by storing Mouse datas and repeat it one second after. The right sampling :)](https://discourse.processing.org/t/sampling-a-movement-by-storing-mouse-datas-and-repeat-it-one-second-after-the-right-sampling/37472)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 10\
**Last updated:** [June 28, 2022, 4:10pm UTC](https://discourse.processing.org/t/sampling-a-movement-by-storing-mouse-datas-and-repeat-it-one-second-after-the-right-sampling/37472 "2022-06-28T16:10:25Z")

</div>

PLEASE GO to SEE my NEXT post! Thank you Hello everybodies, I would like to be able to record the x and y position of the mouse for a second and then automatically redo that recorded movement. It would be nice to succ…

---

## [Copy data to OpenGL buffer](https://discourse.processing.org/t/copy-data-to-opengl-buffer/17709)

<div class="topic-metadata">

**Author:** [@Alex\_Pr](https://discourse.processing.org/u/Alex_Pr)\
**Replies:** 6\
**Last updated:** [June 28, 2022, 6:32am UTC](https://discourse.processing.org/t/copy-data-to-opengl-buffer/17709 "2022-06-28T06:32:30Z")

</div>

I’m trying to implement a parallax mapping shader following this post. In the (C++) code, at the end of the renderQuad function, the the array quadVertices is copied into the GL Buffer. How can I do the same in Processi…

---

## [Fill() can only be called between beginShape() and endShape()](https://discourse.processing.org/t/fill-can-only-be-called-between-beginshape-and-endshape/37738)

<div class="topic-metadata">

**Author:** [@bcabc](https://discourse.processing.org/u/bcabc)\
**Replies:** 1\
**Last updated:** [June 27, 2022, 7:19pm UTC](https://discourse.processing.org/t/fill-can-only-be-called-between-beginshape-and-endshape/37738 "2022-06-27T19:19:42Z")

</div>

Hi - I’m working through the PShape example and running into a bit of a problem with the following code. I can’t seem to color fill the shape. Any suggestions? PShape square; void setup() { size(400, 400); squar…

---

## [rectMode for only 1 rect](https://discourse.processing.org/t/rectmode-for-only-1-rect/37737)

<div class="topic-metadata">

**Author:** [@Sander](https://discourse.processing.org/u/Sander)\
**Replies:** 3\
**Last updated:** [June 27, 2022, 8:53pm UTC](https://discourse.processing.org/t/rectmode-for-only-1-rect/37737 "2022-06-27T20:53:11Z")

</div>

Hey, i am new in Processing and i have a question… i want to center 1 rect but the function rectMode centers all rects how can i change this?

---

## [New computer, sketches don't work? \[Updated and "fix" found\]](https://discourse.processing.org/t/new-computer-sketches-dont-work-updated-and-fix-found/37722)

<div class="topic-metadata">

**Author:** [@darinb](https://discourse.processing.org/u/darinb)\
**Replies:** 0\
**Last updated:** [June 26, 2022, 9:00pm UTC](https://discourse.processing.org/t/new-computer-sketches-dont-work-updated-and-fix-found/37722 "2022-06-26T21:00:15Z")

</div>

I upgraded to an M1 Mac mini and and coming back to Processing after not using it for a while. I’m running into a problem with all of my sketches in that they will run, in a way, but display only a black screen while doi…

---

## [How to record many Audio Recorder?](https://discourse.processing.org/t/how-to-record-many-audio-recorder/4244)

<div class="topic-metadata">

**Author:** [@cocolembo](https://discourse.processing.org/u/cocolembo)\
**Replies:** 3\
**Last updated:** [June 26, 2022, 9:52pm UTC](https://discourse.processing.org/t/how-to-record-many-audio-recorder/4244 "2022-06-26T21:52:53Z")

</div>

Hi, I’m a beginner in Processing, here is a code to record an audio from micro input. (from minim library) The sketch allow to record an audio but just only one recording. I would like to record a new recording at eac…

---

## [Static reference to the non-static method](https://discourse.processing.org/t/static-reference-to-the-non-static-method/37711)

<div class="topic-metadata">

**Author:** [@PixelMx](https://discourse.processing.org/u/PixelMx)\
**Replies:** 2\
**Last updated:** [June 25, 2022, 2:32pm UTC](https://discourse.processing.org/t/static-reference-to-the-non-static-method/37711 "2022-06-25T14:32:49Z")

</div>

Hi, I’ve been reading about The Salesman Problem and I’ve seen TSP art, which I’m interested in creating. I found an existing sketch in gihub and I’m trying to adapt it to randomly read pixels from a black and white ima…

---

## [Minim delay & other effects](https://discourse.processing.org/t/minim-delay-other-effects/34707)

<div class="topic-metadata">

**Author:** [@Froschgelb](https://discourse.processing.org/u/Froschgelb)\
**Replies:** 2\
**Last updated:** [June 25, 2022, 1:32am UTC](https://discourse.processing.org/t/minim-delay-other-effects/34707 "2022-06-25T01:32:53Z")

</div>

Hi there, I am writing a small program to record audio and apply some basic effects from the minim library, delay & flanger etc. I have implimented the record feature and it works fine however trying to patch effects is …

---

## [Processing not compiling my code anymore](https://discourse.processing.org/t/processing-not-compiling-my-code-anymore/37654)

<div class="topic-metadata">

**Author:** [@jhsa](https://discourse.processing.org/u/jhsa)\
**Replies:** 20\
**Last updated:** [June 23, 2022, 2:41pm UTC](https://discourse.processing.org/t/processing-not-compiling-my-code-anymore/37654 "2022-06-23T14:41:58Z")

</div>

Hi guys. I am having a problem. I was running a sketch on processing on my old PC with windows 7 and it worked fine. the IDE compiled it and the compiled .exe file also worked. that computer’s hard drive stopped working …

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

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