# Processing

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

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

**Page:** 208

---

## [Help on loops (I'm a beginner)](https://discourse.processing.org/t/help-on-loops-im-a-beginner/21155)

<div class="topic-metadata">

**Author:** [@lexy897](https://discourse.processing.org/u/lexy897)\
**Replies:** 2\
**Last updated:** [May 22, 2020, 4:23am UTC](https://discourse.processing.org/t/help-on-loops-im-a-beginner/21155 "2020-05-22T04:23:03Z")

</div>

Hi there! I’m new to processing and this forum so please be patient haha. I need to make a processing code that moves 4 squares that touch each other down the screen in unison. I’ve figured out the speed and moving one …

---

## [3D Coding on the Z-axis](https://discourse.processing.org/t/3d-coding-on-the-z-axis/20359)

<div class="topic-metadata">

**Author:** [@PhilRandom](https://discourse.processing.org/u/PhilRandom)\
**Replies:** 7\
**Last updated:** [May 21, 2020, 9:45pm UTC](https://discourse.processing.org/t/3d-coding-on-the-z-axis/20359 "2020-05-21T21:45:06Z")

</div>

Hi all! Phil here again, as you know this has been a very stressful year, so I thought coding would be a fantastic way to get back my mojo in self-isolation! For those of you who are unaware, I began to learn coding las…

---

## [Morph from one position to another - animation](https://discourse.processing.org/t/morph-from-one-position-to-another-animation/21112)

<div class="topic-metadata">

**Author:** [@rkk16](https://discourse.processing.org/u/rkk16)\
**Replies:** 8\
**Last updated:** [May 21, 2020, 8:31pm UTC](https://discourse.processing.org/t/morph-from-one-position-to-another-animation/21112 "2020-05-21T20:31:51Z")

</div>

I’m aware of how to make certain features move using integers and increments but is there a tool to animate/morph from one position to the other ie if I draw an object at 30 degrees at position 200,300 - then the same ob…

---

## [Can you help me with optimizing code](https://discourse.processing.org/t/can-you-help-me-with-optimizing-code/21141)

<div class="topic-metadata">

**Author:** [@Arsenii](https://discourse.processing.org/u/Arsenii)\
**Replies:** 4\
**Last updated:** [May 21, 2020, 8:24pm UTC](https://discourse.processing.org/t/can-you-help-me-with-optimizing-code/21141 "2020-05-21T20:24:49Z")

</div>

I have a problem with understanding who to optimize my code. Main idea of program of creating a words with dots. ArrayList\<PVector\> edgeVertices = new ArrayList\<PVector\>(); ArrayList\<PVector\> Adding = new ArrayList\<PVe…

---

## [Storing input for 3d shapes](https://discourse.processing.org/t/storing-input-for-3d-shapes/21024)

<div class="topic-metadata">

**Author:** [@mrbro](https://discourse.processing.org/u/mrbro)\
**Replies:** 3\
**Last updated:** [May 21, 2020, 8:24pm UTC](https://discourse.processing.org/t/storing-input-for-3d-shapes/21024 "2020-05-21T20:24:42Z")

</div>

Hi everyone! I am new to processing. I am trying to draw a shape and store 5 shapes before the current one, so the fade consequently (like in this example: https://processing.org/examples/storinginput.html). (or maybe I…

---

## [Filling complex shape - followup](https://discourse.processing.org/t/filling-complex-shape-followup/21140)

<div class="topic-metadata">

**Author:** [@rkk16](https://discourse.processing.org/u/rkk16)\
**Replies:** 3\
**Last updated:** [May 21, 2020, 7:56pm UTC](https://discourse.processing.org/t/filling-complex-shape-followup/21140 "2020-05-21T19:56:27Z")

</div>

Please find my code below. Trying to create a lip but it cuts halfway for some reason, can someone please explain why? int x = 100; fill(255,0,0); beginShape(); curveVertex(-20+x,80); curveVertex(30+x,90); curveVer…

---

## [Filling complex shapes](https://discourse.processing.org/t/filling-complex-shapes/21139)

<div class="topic-metadata">

**Author:** [@rkk16](https://discourse.processing.org/u/rkk16)\
**Replies:** 3\
**Last updated:** [May 21, 2020, 5:02pm UTC](https://discourse.processing.org/t/filling-complex-shapes/21139 "2020-05-21T17:02:14Z")

</div>

How do we fill in a complex circular shape like a lip? ie I know how to draw the Bezier/curve lines but how do we fill in 2 Bezier curves that join at 2 vertices?

---

## [Question about processing steady video to summarize pixel data](https://discourse.processing.org/t/question-about-processing-steady-video-to-summarize-pixel-data/21063)

<div class="topic-metadata">

**Author:** [@lucgallant](https://discourse.processing.org/u/lucgallant)\
**Replies:** 7\
**Last updated:** [May 21, 2020, 12:48pm UTC](https://discourse.processing.org/t/question-about-processing-steady-video-to-summarize-pixel-data/21063 "2020-05-21T12:48:18Z")

</div>

Hi all, I’ve got a question about processing video in Windows. I’ve got an application that is connected to my motorcycle and shows real-time the throttle position and engine speed. This picture below is a typical view…

---

## [Interpolation - lerp multiple cases](https://discourse.processing.org/t/interpolation-lerp-multiple-cases/21126)

<div class="topic-metadata">

**Author:** [@rkk16](https://discourse.processing.org/u/rkk16)\
**Replies:** 0\
**Last updated:** [May 21, 2020, 10:36am UTC](https://discourse.processing.org/t/interpolation-lerp-multiple-cases/21126 "2020-05-21T10:36:07Z")

</div>

Hey guys, I’m using lerp to interpolate between facial expressions (ie happy to sad would be lerp between an arc (for the lips) with a certain length, width and fill radian to another). I also managed to connect a slider…

---

## [Need help with dist()](https://discourse.processing.org/t/need-help-with-dist/21020)

<div class="topic-metadata">

**Author:** [@SeveriuS96](https://discourse.processing.org/u/SeveriuS96)\
**Replies:** 4\
**Last updated:** [May 21, 2020, 10:04am UTC](https://discourse.processing.org/t/need-help-with-dist/21020 "2020-05-21T10:04:35Z")

</div>

Hello Processing user, in my program I want that the moveable character be stopped by a wall(a rect) if it collide with it. int speed = 5; int xPosChell = width/2; //Chell(movable Character) int yPosChell = heigh…

---

## [Processing + Eclipse + glsl glass effect](https://discourse.processing.org/t/processing-eclipse-glsl-glass-effect/21021)

<div class="topic-metadata">

**Author:** [@subsubsub](https://discourse.processing.org/u/subsubsub)\
**Replies:** 0\
**Last updated:** [May 18, 2020, 3:34pm UTC](https://discourse.processing.org/t/processing-eclipse-glsl-glass-effect/21021 "2020-05-18T15:34:25Z")

</div>

Hi everyone, I’m currently using succesfully java in eclipse, and using glsl shaders. I’m trying to replicate a glass effect, and this post seems interesting. I just don’t understand if (and how) I have to pass a pict…

---

## [Why transformations and shapes can't be used within beginShape()](https://discourse.processing.org/t/why-transformations-and-shapes-cant-be-used-within-beginshape/20997)

<div class="topic-metadata">

**Author:** [@alikaikai](https://discourse.processing.org/u/alikaikai)\
**Replies:** 4\
**Last updated:** [May 21, 2020, 5:49am UTC](https://discourse.processing.org/t/why-transformations-and-shapes-cant-be-used-within-beginshape/20997 "2020-05-21T05:49:07Z")

</div>

Hello everyone! I recently started using Processing and I learned from the reference page that transformations such as translate() rotate() as well as other shapes do not work within beginShape(). So why is that happen…

---

## [Generate random colors from math3 distributions](https://discourse.processing.org/t/generate-random-colors-from-math3-distributions/21027)

<div class="topic-metadata">

**Author:** [@dfamil](https://discourse.processing.org/u/dfamil)\
**Replies:** 3\
**Last updated:** [May 21, 2020, 3:50am UTC](https://discourse.processing.org/t/generate-random-colors-from-math3-distributions/21027 "2020-05-21T03:50:11Z")

</div>

If I use the random function everything works fine. if I try to map a generate a random distribution it only records the last number of the array. but the println is correct. vMin = min(valueYArray); vMax = max(valueY…

---

## [Dropbox API to link files shared between 2 files](https://discourse.processing.org/t/dropbox-api-to-link-files-shared-between-2-files/20994)

<div class="topic-metadata">

**Author:** [@Student2020](https://discourse.processing.org/u/Student2020)\
**Replies:** 2\
**Last updated:** [May 21, 2020, 12:48am UTC](https://discourse.processing.org/t/dropbox-api-to-link-files-shared-between-2-files/20994 "2020-05-21T00:48:16Z")

</div>

Hello, I am trying to access a folder in dropbox for a data file (.csv) and also a folder where an image generated in the code will be saved. I then have a second code which needs to read this csv file and load the cre…

---

## [Large image loading and display consider slow](https://discourse.processing.org/t/large-image-loading-and-display-consider-slow/21016)

<div class="topic-metadata">

**Author:** [@IvanOi](https://discourse.processing.org/u/IvanOi)\
**Replies:** 2\
**Last updated:** [May 20, 2020, 11:57pm UTC](https://discourse.processing.org/t/large-image-loading-and-display-consider-slow/21016 "2020-05-20T23:57:38Z")

</div>

Hi, Currently, I’m using VLCJ for image loading and display process. I found out Processing way slow in this area. Hopefully, Processing can take a lot into VLC how they load the image and display. I would say quite f…

---

## [Using camera in processing for moving in specific area](https://discourse.processing.org/t/using-camera-in-processing-for-moving-in-specific-area/21080)

<div class="topic-metadata">

**Author:** [@alkyonemis](https://discourse.processing.org/u/alkyonemis)\
**Replies:** 5\
**Last updated:** [May 20, 2020, 11:26pm UTC](https://discourse.processing.org/t/using-camera-in-processing-for-moving-in-specific-area/21080 "2020-05-20T23:26:14Z")

</div>

Hi I’m a new coder on processing. I have long and complex code but I prepared a simple code to you for my question. float camX = 0; float camY = 0; float camZ = (height/2)/tan(PI/6) - 260; float x, y, z = 0; float rot…

---

## [Adding an image to shape?](https://discourse.processing.org/t/adding-an-image-to-shape/21105)

<div class="topic-metadata">

**Author:** [@rkk16](https://discourse.processing.org/u/rkk16)\
**Replies:** 2\
**Last updated:** [May 20, 2020, 9:54pm UTC](https://discourse.processing.org/t/adding-an-image-to-shape/21105 "2020-05-20T21:54:02Z")

</div>

How do you add a background for a shape? ie instead of filling a circle with a colour, fill it with an image?

---

## [Morph from one position to the other?](https://discourse.processing.org/t/morph-from-one-position-to-the-other/21111)

<div class="topic-metadata">

**Author:** [@rkk16](https://discourse.processing.org/u/rkk16)\
**Replies:** 1\
**Last updated:** [May 20, 2020, 8:22pm UTC](https://discourse.processing.org/t/morph-from-one-position-to-the-other/21111 "2020-05-20T20:22:14Z")

</div>

I want to create an animation of a face going from happy to sad when a button is pressed - at the moment, this happens instantaneously. I’m aware of how to make certain features move using integers and increments but is …

---

## [Diffusion Limited Aggregation](https://discourse.processing.org/t/diffusion-limited-aggregation/21006)

<div class="topic-metadata">

**Author:** [@MonkeyDLuffy](https://discourse.processing.org/u/MonkeyDLuffy)\
**Replies:** 8\
**Last updated:** [May 20, 2020, 6:18pm UTC](https://discourse.processing.org/t/diffusion-limited-aggregation/21006 "2020-05-20T18:18:10Z")

</div>

Hello, I am trying to visualize Diffusion Limited Aggregation and some of my circles are overlapping. I tried repositioning them but they still overlap. How can I fix this? My code is below: import java.lang.Math; Arra…

---

## [Realistic shapes - lips for a face](https://discourse.processing.org/t/realistic-shapes-lips-for-a-face/21101)

<div class="topic-metadata">

**Author:** [@rkk16](https://discourse.processing.org/u/rkk16)\
**Replies:** 3\
**Last updated:** [May 20, 2020, 6:08pm UTC](https://discourse.processing.org/t/realistic-shapes-lips-for-a-face/21101 "2020-05-20T18:08:15Z")

</div>

Hey guys, I’m new to processing and need help designing more complex shapes. I need curves on my arcs, not quite elipses - but just to create more realistic expressions on this facial expressions project of mine. Pressin…

---

## [Unexpected token color](https://discourse.processing.org/t/unexpected-token-color/21088)

<div class="topic-metadata">

**Author:** [@sept](https://discourse.processing.org/u/sept)\
**Replies:** 3\
**Last updated:** [May 20, 2020, 1:44pm UTC](https://discourse.processing.org/t/unexpected-token-color/21088 "2020-05-20T13:44:18Z")

</div>

First of all, sorry for my bad english. Hello i’m a French student, I’ve got a homework about a class to create balls. I’ve followed the teacher’s classes but I’m stuck with an unexpected token. You should understand my …

---

## [Connecting Rooms in a Dungeon Map Generator](https://discourse.processing.org/t/connecting-rooms-in-a-dungeon-map-generator/20918)

<div class="topic-metadata">

**Author:** [@Trilobyte](https://discourse.processing.org/u/Trilobyte)\
**Replies:** 6\
**Last updated:** [May 20, 2020, 2:55am UTC](https://discourse.processing.org/t/connecting-rooms-in-a-dungeon-map-generator/20918 "2020-05-20T02:55:29Z")

</div>

Hello! I am currently working on a project to generate 2D dungeon maps (like in Binding of Isaac, or similar games) but I am having difficulty finding a way to automatically connect rooms. I currently can generate a ran…

---

## [Number of downloads](https://discourse.processing.org/t/number-of-downloads/21073)

<div class="topic-metadata">

**Author:** [@mike\_z](https://discourse.processing.org/u/mike_z)\
**Replies:** 6\
**Last updated:** [May 19, 2020, 11:33pm UTC](https://discourse.processing.org/t/number-of-downloads/21073 "2020-05-19T23:33:02Z")

</div>

I’ve been experimenting with how to set up Processing on a FreeNAS and multiple computers. I have not had much success. As I tried different configurations, I deleted the old ones, including the download. This probably w…

---

## [Processing3.5.4 starts only once on windows10](https://discourse.processing.org/t/processing3-5-4-starts-only-once-on-windows10/21058)

<div class="topic-metadata">

**Author:** [@remoisonzo](https://discourse.processing.org/u/remoisonzo)\
**Replies:** 0\
**Last updated:** [May 19, 2020, 2:55pm UTC](https://discourse.processing.org/t/processing3-5-4-starts-only-once-on-windows10/21058 "2020-05-19T14:55:31Z")

</div>

Hi, I am new of this community, as I started working with Processing just from few weeks. I hope that this is the right place for the following question. Otherwise please suggest me how to do it. Few months ago I succe…

---

## [Is it possible to activate the windows screen connected to a processing event?](https://discourse.processing.org/t/is-it-possible-to-activate-the-windows-screen-connected-to-a-processing-event/20979)

<div class="topic-metadata">

**Author:** [@Black\_1](https://discourse.processing.org/u/Black_1)\
**Replies:** 4\
**Last updated:** [May 19, 2020, 6:06pm UTC](https://discourse.processing.org/t/is-it-possible-to-activate-the-windows-screen-connected-to-a-processing-event/20979 "2020-05-19T18:06:49Z")

</div>

Hi everyone. I designed a small “scada” with processing that keeps running on windows constantly. Windows is set to turn off the screen after 10 minutes of inactivity. is it possible to activate the screen by linking i…

---

## [Need some guidance in making a CNC plotter with arduino and motor driver](https://discourse.processing.org/t/need-some-guidance-in-making-a-cnc-plotter-with-arduino-and-motor-driver/21059)

<div class="topic-metadata">

**Author:** [@manish\_das](https://discourse.processing.org/u/manish_das)\
**Replies:** 0\
**Last updated:** [May 19, 2020, 3:10pm UTC](https://discourse.processing.org/t/need-some-guidance-in-making-a-cnc-plotter-with-arduino-and-motor-driver/21059 "2020-05-19T15:10:05Z")

</div>

I want to make a voice operated CNC plotter with arduino and L293D motor driver. The main function of the plotter will be to write down words spoken by a speaker in real time. I am just a beginner in processing. Please h…

---

## [Create a 3d box inside a 2d project](https://discourse.processing.org/t/create-a-3d-box-inside-a-2d-project/21051)

<div class="topic-metadata">

**Author:** [@cwr0ng](https://discourse.processing.org/u/cwr0ng)\
**Replies:** 3\
**Last updated:** [May 19, 2020, 2:35pm UTC](https://discourse.processing.org/t/create-a-3d-box-inside-a-2d-project/21051 "2020-05-19T14:35:48Z")

</div>

Hello guys, I’m a processing beginner. I’d like to plot a 3d spectrum inside my 2d application (it will be an equalizer at the end). This is my setup, I’d like to have the second half of the application plotting a spec…

---

## [How to denoise an image, help me with this guys](https://discourse.processing.org/t/how-to-denoise-an-image-help-me-with-this-guys/21033)

<div class="topic-metadata">

**Author:** [@Master](https://discourse.processing.org/u/Master)\
**Replies:** 4\
**Last updated:** [May 19, 2020, 2:28pm UTC](https://discourse.processing.org/t/how-to-denoise-an-image-help-me-with-this-guys/21033 "2020-05-19T14:28:14Z")

</div>

Hello, In most of the cases, researchers bring a free noise image, next they add noise to this image, then they apply denoising approach and finally they compare between the first free noise image and the result image a…

---

## [keyPressed with multiple keys](https://discourse.processing.org/t/keypressed-with-multiple-keys/21040)

<div class="topic-metadata">

**Author:** [@homeCoder](https://discourse.processing.org/u/homeCoder)\
**Replies:** 3\
**Last updated:** [May 19, 2020, 1:54pm UTC](https://discourse.processing.org/t/keypressed-with-multiple-keys/21040 "2020-05-19T13:54:54Z")

</div>

Hello, i am trying to write a program which shows two arrays with numbers and if I press the number of an array element, this element should disappear and the others replace the gap. That’s function, but I wan’t to do s…

---

## [NullPointerException help](https://discourse.processing.org/t/nullpointerexception-help/21044)

<div class="topic-metadata">

**Author:** [@Dylan](https://discourse.processing.org/u/Dylan)\
**Replies:** 2\
**Last updated:** [May 19, 2020, 7:14am UTC](https://discourse.processing.org/t/nullpointerexception-help/21044 "2020-05-19T07:14:56Z")

</div>

When I go to run my code String\[\] names = { "CyberTruck", "Ford F10", "Ranger", "Sierra", "Titan" }; int nt = names.length; int nb = nt + 2; int b1 = nt, b2=nt+1; float track= 200, trackY = 150, trackDY=100; float sta…

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

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