# Processing

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

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

**Page:** 106

---

## [setResizable(TRUE)](https://discourse.processing.org/t/setresizable-true/33202)

<div class="topic-metadata">

**Author:** [@markcosmic](https://discourse.processing.org/u/markcosmic)\
**Replies:** 3\
**Last updated:** [November 5, 2021, 6:04pm UTC](https://discourse.processing.org/t/setresizable-true/33202 "2021-11-05T18:04:24Z")

</div>

After looking online for an answer, I am stumped. In setup() I use setResizable(TRUE). That allows me to resize my display window, and works, but the content within the display window does not resize. I have found no re…

---

## [How to declare an instance when no face is detected in \[deep-vision-processing library\]?](https://discourse.processing.org/t/how-to-declare-an-instance-when-no-face-is-detected-in-deep-vision-processing-library/33336)

<div class="topic-metadata">

**Author:** [@Yatish001](https://discourse.processing.org/u/Yatish001)\
**Replies:** 0\
**Last updated:** [November 5, 2021, 2:29pm UTC](https://discourse.processing.org/t/how-to-declare-an-instance-when-no-face-is-detected-in-deep-vision-processing-library/33336 "2021-11-05T14:29:49Z")

</div>

I want to play one video when no face is detected and play another video when a face is detected using Deep Vision Library for processing. I am using the FaceDetectorHaarWebcam code from the examples. However, I am not a…

---

## [Using \[deep-vision-processing library\] framework](https://discourse.processing.org/t/using-deep-vision-processing-library-framework/33328)

<div class="topic-metadata">

**Author:** [@Yatish001](https://discourse.processing.org/u/Yatish001)\
**Replies:** 0\
**Last updated:** [November 5, 2021, 11:30am UTC](https://discourse.processing.org/t/using-deep-vision-processing-library-framework/33328 "2021-11-05T11:30:08Z")

</div>

I want to play a video only when a face is detected on live webcam and play another video if no face is detected. I want to use this code from the Examples, but I am unable to understand the syntax. \<\>import processing…

---

## [Rendering many objects with a shader](https://discourse.processing.org/t/rendering-many-objects-with-a-shader/33286)

<div class="topic-metadata">

**Author:** [@Brahvim](https://discourse.processing.org/u/Brahvim)\
**Replies:** 2\
**Last updated:** [November 5, 2021, 10:39am UTC](https://discourse.processing.org/t/rendering-many-objects-with-a-shader/33286 "2021-11-05T10:39:28Z")

</div>

Hello there! I made a fragment shader that can render circles, and would like to use it inside Processing as a replacement for Processing’s own functions. An extra question, if it is appropriate to ask this much in one …

---

## [Character Dashing Movement](https://discourse.processing.org/t/character-dashing-movement/33321)

<div class="topic-metadata">

**Author:** [@wending10](https://discourse.processing.org/u/wending10)\
**Replies:** 2\
**Last updated:** [November 5, 2021, 9:19am UTC](https://discourse.processing.org/t/character-dashing-movement/33321 "2021-11-05T09:19:10Z")

</div>

Hi, I would like to ask on how to code on the movement of character. Basically, when I press my right arrow key, it will move right, and when I press my left shift, it will dash for a certain time(using int dashcounter) …

---

## [Use Processing to make continuous graph using CSV](https://discourse.processing.org/t/use-processing-to-make-continuous-graph-using-csv/16898)

<div class="topic-metadata">

**Author:** [@lopklopk](https://discourse.processing.org/u/lopklopk)\
**Replies:** 12\
**Last updated:** [November 4, 2021, 12:49am UTC](https://discourse.processing.org/t/use-processing-to-make-continuous-graph-using-csv/16898 "2021-11-04T00:49:30Z")

</div>

using CSV… In processing to make continuous graph Or Dynamic or animated graph of ECG data :slightly\_smiling\_face: : I’ve using CSV contain one colum for seconds & other for mVolt ECG data AD8232… something like bel…

---

## [Keep background image in P3D](https://discourse.processing.org/t/keep-background-image-in-p3d/33224)

<div class="topic-metadata">

**Author:** [@Kylle](https://discourse.processing.org/u/Kylle)\
**Replies:** 6\
**Last updated:** [November 4, 2021, 8:48am UTC](https://discourse.processing.org/t/keep-background-image-in-p3d/33224 "2021-11-04T08:48:21Z")

</div>

When using the P3D render the loaded 2D image disappears but I will just want to overwrite parts of it with spheres. How to fix this? PImage img; void setup() { size(1500, 800,P3D); img = loadImage("String4.png"); …

---

## [Make 2 needle rotate on its center point](https://discourse.processing.org/t/make-2-needle-rotate-on-its-center-point/33265)

<div class="topic-metadata">

**Author:** [@anwar05](https://discourse.processing.org/u/anwar05)\
**Replies:** 13\
**Last updated:** [November 3, 2021, 10:42pm UTC](https://discourse.processing.org/t/make-2-needle-rotate-on-its-center-point/33265 "2021-11-03T22:42:30Z")

</div>

Hi everyone, I am a mechanical engineering student who is making a dynotest project where I will visualize the serial monitor value from Arduino using processing. I’m making two gauges. However, one of the needles of…

---

## [Link or call image when answere correct (Quiz with keyboard input)](https://discourse.processing.org/t/link-or-call-image-when-answere-correct-quiz-with-keyboard-input/33222)

<div class="topic-metadata">

**Author:** [@jelledgwn](https://discourse.processing.org/u/jelledgwn)\
**Replies:** 4\
**Last updated:** [November 3, 2021, 7:53pm UTC](https://discourse.processing.org/t/link-or-call-image-when-answere-correct-quiz-with-keyboard-input/33222 "2021-11-03T19:53:51Z")

</div>

Hello everyone, Im coding a quiz but Im just a beginner. So there is one thing I need help with: What I want: When the answer is correct it needs to go to the next picture. How do I draw the next image when the answ…

---

## [3D image transform question](https://discourse.processing.org/t/3d-image-transform-question/33252)

<div class="topic-metadata">

**Author:** [@zlaccu](https://discourse.processing.org/u/zlaccu)\
**Replies:** 4\
**Last updated:** [November 3, 2021, 2:12pm UTC](https://discourse.processing.org/t/3d-image-transform-question/33252 "2021-11-03T14:12:39Z")

</div>

hi there! im recreating this effect : Login • Instagram but my looks not very good. this is my looks like: I think that in the original video, where the gray value is high, It’s not that the height of boxes change, …

---

## [Identifying OpenGL/GLSL Version, Targeting a Dedicated GPU](https://discourse.processing.org/t/identifying-opengl-glsl-version-targeting-a-dedicated-gpu/33273)

<div class="topic-metadata">

**Author:** [@jdotson8](https://discourse.processing.org/u/jdotson8)\
**Replies:** 2\
**Last updated:** [November 3, 2021, 1:30pm UTC](https://discourse.processing.org/t/identifying-opengl-glsl-version-targeting-a-dedicated-gpu/33273 "2021-11-03T13:30:32Z")

</div>

OpenGL Version I have been working on a volume rendering project in Processing 3.3.7 that makes extensive use of custom shaders. Everything seems to be working fine on my laptop, but there are certain features that I di…

---

## [How to Position Shape based on display size](https://discourse.processing.org/t/how-to-position-shape-based-on-display-size/33238)

<div class="topic-metadata">

**Author:** [@avong](https://discourse.processing.org/u/avong)\
**Replies:** 5\
**Last updated:** [November 3, 2021, 11:12am UTC](https://discourse.processing.org/t/how-to-position-shape-based-on-display-size/33238 "2021-11-03T11:12:59Z")

</div>

I wish to position buttons by calculating the x and y coordinates based on the display size. I did something like this: My laptop screen pixel is 1600x900. \< float x\_button1 =displayWidth-displayWidth/6; float y\_but…

---

## [ERROR: The sketch path is not set](https://discourse.processing.org/t/error-the-sketch-path-is-not-set/33248)

<div class="topic-metadata">

**Author:** [@lee](https://discourse.processing.org/u/lee)\
**Replies:** 1\
**Last updated:** [November 3, 2021, 12:45am UTC](https://discourse.processing.org/t/error-the-sketch-path-is-not-set/33248 "2021-11-03T00:45:16Z")

</div>

This feels like an amateur question but I can’t seem to solve. I’m on Ubuntu 18.04 and have this issue with both Processing 3.5.4 as well as 4.0 When I try to run a sketch I get the following error: The sketch path is …

---

## [Merging two sketches (pt.2)](https://discourse.processing.org/t/merging-two-sketches-pt-2/33259)

<div class="topic-metadata">

**Author:** [@acb](https://discourse.processing.org/u/acb)\
**Replies:** 5\
**Last updated:** [November 2, 2021, 9:13pm UTC](https://discourse.processing.org/t/merging-two-sketches-pt-2/33259 "2021-11-02T21:13:35Z")

</div>

As mentioned in my last post, I am trying to merge these codes but I keep getting the error; “java.lang.reflect.InvocationTargetException” . From my research I was not able to understand (I am new to coding), could anyon…

---

## [How to check if "marco" is typed in textbox?](https://discourse.processing.org/t/how-to-check-if-marco-is-typed-in-textbox/33255)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 1\
**Last updated:** [November 2, 2021, 6:16pm UTC](https://discourse.processing.org/t/how-to-check-if-marco-is-typed-in-textbox/33255 "2021-11-02T18:16:08Z")

</div>

how to check if marco is entered in the textbox and increase balance\[0\] by 75 when this happens for the first time static final int NUM = 2; final TextBox\[\] tboxes = new TextBox\[NUM\]; int idx; PImage shop; PImage …

---

## [I want to create a pattern where i have 4 different squares in different colours that directly change color as a code. This is what i have, but i dont know how to change the color of the sqaures and then turn them back to normal in one time. Please help](https://discourse.processing.org/t/i-want-to-create-a-pattern-where-i-have-4-different-squares-in-different-colours-that-directly-change-color-as-a-code-this-is-what-i-have-but-i-dont-know-how-to-change-the-color-of-the-sqaures-and-then-turn-them-back-to-normal-in-one-time-please-help/33254)

<div class="topic-metadata">

**Author:** [@LeRonald](https://discourse.processing.org/u/LeRonald)\
**Replies:** 1\
**Last updated:** [November 2, 2021, 12:25pm UTC](https://discourse.processing.org/t/i-want-to-create-a-pattern-where-i-have-4-different-squares-in-different-colours-that-directly-change-color-as-a-code-this-is-what-i-have-but-i-dont-know-how-to-change-the-color-of-the-sqaures-and-then-turn-them-back-to-normal-in-one-time-please-help/33254 "2021-11-02T12:25:27Z")

</div>

please format code with \</\> button \* homework policy \* asking questions int lastTimeCheck; int timeIntervalFlag = 3000; // 3 seconds because we are working with millis void setup() { size(500,500); background(0); …

---

## [Merging two sketches (for a school project)](https://discourse.processing.org/t/merging-two-sketches-for-a-school-project/33231)

<div class="topic-metadata">

**Author:** [@acb](https://discourse.processing.org/u/acb)\
**Replies:** 3\
**Last updated:** [November 2, 2021, 12:44pm UTC](https://discourse.processing.org/t/merging-two-sketches-for-a-school-project/33231 "2021-11-02T12:44:23Z")

</div>

I have been working on two codes that I would now like to have in the same frame, one over the other. I am asking for advice or just straight up the full solutions to merging these two codes. I have tried everything that…

---

## [How draw shapes in accordion?](https://discourse.processing.org/t/how-draw-shapes-in-accordion/33249)

<div class="topic-metadata">

**Author:** [@yujunah](https://discourse.processing.org/u/yujunah)\
**Replies:** 0\
**Last updated:** [November 2, 2021, 7:05am UTC](https://discourse.processing.org/t/how-draw-shapes-in-accordion/33249 "2021-11-02T07:05:35Z")

</div>

import controlP5.\*; ControlP5 cp5; Accordion accordion; color c = color(0, 160, 100); void setup() { size(400, 600); noStroke(); smooth(); gui(); } void gui() { cp5 = new ControlP5(this); // group number 1, c…

---

## [Text position on screen](https://discourse.processing.org/t/text-position-on-screen/33234)

<div class="topic-metadata">

**Author:** [@hacketet](https://discourse.processing.org/u/hacketet)\
**Replies:** 4\
**Last updated:** [November 2, 2021, 1:54am UTC](https://discourse.processing.org/t/text-position-on-screen/33234 "2021-11-02T01:54:54Z")

</div>

Here’s the code I had to use to get text placed in a 30 x 22 rectangle. From the documentation I expected th using the diagonal coordinates of the rectangle to properly place the text, but it was WAY off. I had to mult…

---

## [Strategy for drawing tree contour](https://discourse.processing.org/t/strategy-for-drawing-tree-contour/33127)

<div class="topic-metadata">

**Author:** [@ishback](https://discourse.processing.org/u/ishback)\
**Replies:** 7\
**Last updated:** [November 2, 2021, 12:53am UTC](https://discourse.processing.org/t/strategy-for-drawing-tree-contour/33127 "2021-11-02T00:53:59Z")

</div>

Hello, I’m trying to draw the contour of a tree. This is how I’m doing it so far: Create the branches (center line, in green) Create segments for each branch. Each segment stores a length, an angle, and a thickness. C…

---

## [How to have textbox only appear when boolean is true?](https://discourse.processing.org/t/how-to-have-textbox-only-appear-when-boolean-is-true/33235)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 0\
**Last updated:** [November 1, 2021, 9:10pm UTC](https://discourse.processing.org/t/how-to-have-textbox-only-appear-when-boolean-is-true/33235 "2021-11-01T21:10:21Z")

</div>

I want to make the textbox only appear when killb=true, how do i do this? static final int NUM = 2; final TextBox\[\] tboxes = new TextBox\[NUM\]; int idx; PImage shop; PImage settings; PImage teams; PImage kill; PImage…

---

## [Nf() number format decimal places to array using for loop](https://discourse.processing.org/t/nf-number-format-decimal-places-to-array-using-for-loop/33182)

<div class="topic-metadata">

**Author:** [@louise00](https://discourse.processing.org/u/louise00)\
**Replies:** 4\
**Last updated:** [November 1, 2021, 6:36pm UTC](https://discourse.processing.org/t/nf-number-format-decimal-places-to-array-using-for-loop/33182 "2021-11-01T18:36:05Z")

</div>

I’m migrating from p5js to processing and something from p5js that works really well its just getting stuck in processing. I’m trying to: • Define a PImage array • Load a set of images that are named 0.jpg ~ 11.jpg • …

---

## [Why is it not displaying my typed keys?](https://discourse.processing.org/t/why-is-it-not-displaying-my-typed-keys/33230)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 0\
**Last updated:** [November 1, 2021, 6:24pm UTC](https://discourse.processing.org/t/why-is-it-not-displaying-my-typed-keys/33230 "2021-11-01T18:24:39Z")

</div>

i would like text to show up in the rectangle that appears when kill is true, but it’s not working. why? PImage shop; PImage settings; PImage teams; PImage kill; PImage phone; PImage coin; PImage bounty; boolean invert…

---

## [Calling a PShape too many times](https://discourse.processing.org/t/calling-a-pshape-too-many-times/33209)

<div class="topic-metadata">

**Author:** [@bcabc](https://discourse.processing.org/u/bcabc)\
**Replies:** 1\
**Last updated:** [November 1, 2021, 5:58pm UTC](https://discourse.processing.org/t/calling-a-pshape-too-many-times/33209 "2021-11-01T17:58:57Z")

</div>

Hi there - I am calling PShape Shape1 within a for loop. for (Shape1 mod : mods) { mod.display(); I have set a value for an array of mods elsewhere in the code. mods = new Shape1\[count\*someother\]; My issue …

---

## [Movement to where I touch on the screen](https://discourse.processing.org/t/movement-to-where-i-touch-on-the-screen/33193)

<div class="topic-metadata">

**Author:** [@tati1202](https://discourse.processing.org/u/tati1202)\
**Replies:** 3\
**Last updated:** [November 1, 2021, 3:50pm UTC](https://discourse.processing.org/t/movement-to-where-i-touch-on-the-screen/33193 "2021-11-01T15:50:36Z")

</div>

Hey, I’m working in this videogame where you have to shoot the ball pressing in x place in the net/goal. Does anyone knows how to incorporate this with easy coding? Thanks

---

## [Array sorting of file paths](https://discourse.processing.org/t/array-sorting-of-file-paths/33096)

<div class="topic-metadata">

**Author:** [@garrettlynch](https://discourse.processing.org/u/garrettlynch)\
**Replies:** 8\
**Last updated:** [November 1, 2021, 10:17am UTC](https://discourse.processing.org/t/array-sorting-of-file-paths/33096 "2021-11-01T10:17:33Z")

</div>

I am creating an array from a directory of images using listFiles() and then sorting them like so. images = dir.listFiles(new FileFilter() { @Override public boolean accept(File pathname) { …

---

## [How to create a good fractal zoom?](https://discourse.processing.org/t/how-to-create-a-good-fractal-zoom/33217)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 0\
**Last updated:** [November 1, 2021, 9:29am UTC](https://discourse.processing.org/t/how-to-create-a-good-fractal-zoom/33217 "2021-11-01T09:29:30Z")

</div>

Hi! I created a mandelbrot set explorer, with which, you can zoom into the fractal if you use the mouse wheel. But I can’t seem to get the mouse wheel zoom working correctly. What can I do to fix it? Right now, both zo…

---

## [Cross-language random numbers](https://discourse.processing.org/t/cross-language-random-numbers/3474)

<div class="topic-metadata">

**Author:** [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Replies:** 21\
**Last updated:** [October 31, 2021, 9:23pm UTC](https://discourse.processing.org/t/cross-language-random-numbers/3474 "2021-10-31T21:23:35Z")

</div>

I have developed a set of demo sketches that implement simple cross-language random numbers. The goal is to make it easy to adapt a sketch between Processing (Java), p5.js (JavaScript), or Processing.py (Python) such th…

---

## [How to make more images appear over time?](https://discourse.processing.org/t/how-to-make-more-images-appear-over-time/33194)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 1\
**Last updated:** [October 31, 2021, 6:50pm UTC](https://discourse.processing.org/t/how-to-make-more-images-appear-over-time/33194 "2021-10-31T18:50:40Z")

</div>

hey right now there is only one “trash” image but i’m trying to make it so the amount of “trash” images is equal to score+1 here’s my code: float trashX; float trashY; float boatX; float boatY; float ropelenght = 0; …

---

## [Web Server. Load image?](https://discourse.processing.org/t/web-server-load-image/20356)

<div class="topic-metadata">

**Author:** [@Omnimusha](https://discourse.processing.org/u/Omnimusha)\
**Replies:** 2\
**Last updated:** [October 31, 2021, 9:40am UTC](https://discourse.processing.org/t/web-server-load-image/20356 "2021-10-31T09:40:35Z")

</div>

Hi. how to upload an image from my pc? c.write("\<img src=1.jpg\>"); import processing.net.\*; String HTTP\_GET\_REQUEST = "GET /"; String HTTP\_HEADER = "HTTP/1.0 200 OK\\r\\nContent-Type: text/html\\r\\n\\r\\n"; Server s; Clie…

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

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