# Processing

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

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

**Page:** 309

---

## [If I want to show only 1 time my text what can I use?](https://discourse.processing.org/t/if-i-want-to-show-only-1-time-my-text-what-can-i-use/10208)

<div class="topic-metadata">

**Author:** [@fwtini](https://discourse.processing.org/u/fwtini)\
**Replies:** 11\
**Last updated:** [April 12, 2019, 12:42pm UTC](https://discourse.processing.org/t/if-i-want-to-show-only-1-time-my-text-what-can-i-use/10208 "2019-04-12T12:42:08Z")

</div>

PFont myFont; float rotateVal=0.4; String s1= ("test"); float x,y,z; void setup(){ background(255); size(500,500,P3D); myFont = loadFont("Serif-48.vlw"); //frameRate(20); } void draw(){ …

---

## [Simple access to scientific datasets with Processing](https://discourse.processing.org/t/simple-access-to-scientific-datasets-with-processing/5779)

<div class="topic-metadata">

**Author:** [@mcintyre](https://discourse.processing.org/u/mcintyre)\
**Replies:** 2\
**Last updated:** [April 12, 2019, 2:03am UTC](https://discourse.processing.org/t/simple-access-to-scientific-datasets-with-processing/5779 "2019-04-12T02:03:51Z")

</div>

Howdy folks! I’d like to announce NetCDF for Processing, a wrapper around the NetCDF Java library. The goal is to provide a simple API for accessing scientific datasets in formats like HDF5, NetCDF, GRIB, and many more. …

---

## [Is it possible to have and array of objects with varying parameters?](https://discourse.processing.org/t/is-it-possible-to-have-and-array-of-objects-with-varying-parameters/10188)

<div class="topic-metadata">

**Author:** [@itch](https://discourse.processing.org/u/itch)\
**Replies:** 4\
**Last updated:** [April 11, 2019, 7:50pm UTC](https://discourse.processing.org/t/is-it-possible-to-have-and-array-of-objects-with-varying-parameters/10188 "2019-04-11T19:50:17Z")

</div>

Hi everyone, I’m just getting started with Processing and I’m writing a simple, one-octave piano keyboard. I have a class named Key: class Key{ float x; float y; float w; float h; color col; Key(flo…

---

## [OpenSimplexNoise is a bit too slow](https://discourse.processing.org/t/opensimplexnoise-is-a-bit-too-slow/10160)

<div class="topic-metadata">

**Author:** [@Kazuya\_Yoshimisu](https://discourse.processing.org/u/Kazuya_Yoshimisu)\
**Replies:** 7\
**Last updated:** [April 11, 2019, 6:30pm UTC](https://discourse.processing.org/t/opensimplexnoise-is-a-bit-too-slow/10160 "2019-04-11T18:30:23Z")

</div>

Hello everyone, I’m currently trying to make an animation using perlin noise. It was too slow so I tried with OpenSimplexNoise and it was better, but still not fast enough. I’m juste looping through 2D slices of 3D noi…

---

## [Help! Can't export frames](https://discourse.processing.org/t/help-cant-export-frames/10195)

<div class="topic-metadata">

**Author:** [@vitoriaseven](https://discourse.processing.org/u/vitoriaseven)\
**Replies:** 1\
**Last updated:** [April 11, 2019, 6:00pm UTC](https://discourse.processing.org/t/help-cant-export-frames/10195 "2019-04-11T18:00:58Z")

</div>

Hi, I’m pretty new to Processing. I’m trying to export frame images to create a movie but it’s not working. All I get is just one frame and just with the background. What am I doing wrong? import geomerative.\*; import …

---

## [Merging two pictures](https://discourse.processing.org/t/merging-two-pictures/4869)

<div class="topic-metadata">

**Author:** [@Odermonicon](https://discourse.processing.org/u/Odermonicon)\
**Replies:** 3\
**Last updated:** [April 11, 2019, 4:09pm UTC](https://discourse.processing.org/t/merging-two-pictures/4869 "2019-04-11T16:09:31Z")

</div>

I realized if I scroll through a panorama it looks like looking up and down; so I thought: what if I made a panorama on a plane? I then realized that I would need to simulate the merging in a panorama twice, but I did n…

---

## [Smooth close curveVertex shape](https://discourse.processing.org/t/smooth-close-curvevertex-shape/10184)

<div class="topic-metadata">

**Author:** [@lumicon9](https://discourse.processing.org/u/lumicon9)\
**Replies:** 2\
**Last updated:** [April 11, 2019, 2:28pm UTC](https://discourse.processing.org/t/smooth-close-curvevertex-shape/10184 "2019-04-11T14:28:11Z")

</div>

hi, how to smooth close a curveVertex shape, like this: thnx! void setup() { size(200,200); smooth(); noFill(); strokeWeight(1); } void draw() { curves(0,100, 100,0, 200,100, 100,200, 0,100); } void cur…

---

## [Is three keys maximum?](https://discourse.processing.org/t/is-three-keys-maximum/10090)

<div class="topic-metadata">

**Author:** [@lilleGauss](https://discourse.processing.org/u/lilleGauss)\
**Replies:** 5\
**Last updated:** [April 11, 2019, 1:33pm UTC](https://discourse.processing.org/t/is-three-keys-maximum/10090 "2019-04-11T13:33:31Z")

</div>

Hello! I am trying to get keyPressed/keyReleased to work for several keys simultaneously. Every single stroke works and two at the same time too. But nerver for all four of them? Is there somthing with internal handling…

---

## [Bug? print() to console slows sketch down](https://discourse.processing.org/t/bug-print-to-console-slows-sketch-down/10044)

<div class="topic-metadata">

**Author:** [@lnp](https://discourse.processing.org/u/lnp)\
**Replies:** 7\
**Last updated:** [April 11, 2019, 4:25am UTC](https://discourse.processing.org/t/bug-print-to-console-slows-sketch-down/10044 "2019-04-11T04:25:42Z")

</div>

I’m doing a lot of printing to console and for sure it’s obvs not really that necessary beyond debugging. I was very surprised to find out that it was slowing a sketch down enormously! Perhaps that’s my naivety but it se…

---

## [Questions about gradually lighting up](https://discourse.processing.org/t/questions-about-gradually-lighting-up/10159)

<div class="topic-metadata">

**Author:** [@lqw14520](https://discourse.processing.org/u/lqw14520)\
**Replies:** 3\
**Last updated:** [April 10, 2019, 4:18pm UTC](https://discourse.processing.org/t/questions-about-gradually-lighting-up/10159 "2019-04-10T16:18:42Z")

</div>

Hello! Here is my project of the fireflies that will run away when the mouse is on the left side of the screen, I’m wondering whether there is a way to light each partical (firefly) gradually instead of just suddenly lig…

---

## [Hair like strokes](https://discourse.processing.org/t/hair-like-strokes/10143)

<div class="topic-metadata">

**Author:** [@kaecodes](https://discourse.processing.org/u/kaecodes)\
**Replies:** 3\
**Last updated:** [April 10, 2019, 3:25pm UTC](https://discourse.processing.org/t/hair-like-strokes/10143 "2019-04-10T15:25:40Z")

</div>

Hello, I have moving points on an Arabic letter outline (but you can try it using any letter from any font) , and basically I want to create hairlike strokes on the points, where they grow out (similar to sketches in th…

---

## [Removing Markers in Unfolding](https://discourse.processing.org/t/removing-markers-in-unfolding/10068)

<div class="topic-metadata">

**Author:** [@Niloo](https://discourse.processing.org/u/Niloo)\
**Replies:** 1\
**Last updated:** [April 8, 2019, 3:54pm UTC](https://discourse.processing.org/t/removing-markers-in-unfolding/10068 "2019-04-08T15:54:32Z")

</div>

Hi all, I’m currently working on a map-based data visualization using Processing and Unfolding library. I’ve been able to add markers from my geojson file to the map. However I can’t figure out how I can remove markers.…

---

## [Delay Reading Serial Port and Displaying Data](https://discourse.processing.org/t/delay-reading-serial-port-and-displaying-data/10071)

<div class="topic-metadata">

**Author:** [@SearayCA](https://discourse.processing.org/u/SearayCA)\
**Replies:** 1\
**Last updated:** [April 10, 2019, 4:34am UTC](https://discourse.processing.org/t/delay-reading-serial-port-and-displaying-data/10071 "2019-04-10T04:34:34Z")

</div>

We are using a line scan camera,10 bit data, 128 pixels per line. We reduce this to 8 bit data. We are attempting to read serial data at 115200 baud, 130 bytes at a time, header plus data. We are displaying a vertical li…

---

## [How to write into a JSON file via input-box?](https://discourse.processing.org/t/how-to-write-into-a-json-file-via-input-box/10109)

<div class="topic-metadata">

**Author:** [@RealDwayneJ](https://discourse.processing.org/u/RealDwayneJ)\
**Replies:** 9\
**Last updated:** [April 10, 2019, 4:23am UTC](https://discourse.processing.org/t/how-to-write-into-a-json-file-via-input-box/10109 "2019-04-10T04:23:53Z")

</div>

Hi there. I’d like to know the following: Is it possible to save user-input straightly into a specific array position in a JSON file? Example: The user get’s a little screen in Processing. It states the question: “How …

---

## [Interface that has multiple sketches](https://discourse.processing.org/t/interface-that-has-multiple-sketches/10144)

<div class="topic-metadata">

**Author:** [@kaecodes](https://discourse.processing.org/u/kaecodes)\
**Replies:** 1\
**Last updated:** [April 9, 2019, 10:00pm UTC](https://discourse.processing.org/t/interface-that-has-multiple-sketches/10144 "2019-04-09T22:00:09Z")

</div>

Hello, I am new to processing and basically I want to create a user interface where users can interact, that activates different sketches that I have created, using keyboard keys. I am not sure how to put sketches within…

---

## [Tracking the good color](https://discourse.processing.org/t/tracking-the-good-color/9636)

<div class="topic-metadata">

**Author:** [@camille05](https://discourse.processing.org/u/camille05)\
**Replies:** 14\
**Last updated:** [April 9, 2019, 7:56pm UTC](https://discourse.processing.org/t/tracking-the-good-color/9636 "2019-04-09T19:56:05Z")

</div>

I’m building a code that will allow you to recognize color cards and, depending on the color, a drawing will appear in the drawing area. Example: red = red round blue = blue round green = green square I was able to …

---

## [End and Begin a New Shape Based off of Data Value](https://discourse.processing.org/t/end-and-begin-a-new-shape-based-off-of-data-value/9975)

<div class="topic-metadata">

**Author:** [@kirstee\_baxt](https://discourse.processing.org/u/kirstee_baxt)\
**Replies:** 5\
**Last updated:** [April 9, 2019, 5:58pm UTC](https://discourse.processing.org/t/end-and-begin-a-new-shape-based-off-of-data-value/9975 "2019-04-09T17:58:06Z")

</div>

Hello, I would like to endShape and begin a new one based off a numeric value from a data set. I would like each separate shape to also have a different rotation value based off of the same numeric value. My current cod…

---

## [Help - lines from right to left](https://discourse.processing.org/t/help-lines-from-right-to-left/10129)

<div class="topic-metadata">

**Author:** [@maxwestermann](https://discourse.processing.org/u/maxwestermann)\
**Replies:** 3\
**Last updated:** [April 9, 2019, 3:29pm UTC](https://discourse.processing.org/t/help-lines-from-right-to-left/10129 "2019-04-09T15:29:46Z")

</div>

Hello, I´m new to Processing. What I am trying to do is to create an animation of many black lines (like on the following picture) on a white background going smoothly from left to right in a never ending flow. I man…

---

## [OscP5, receive an array](https://discourse.processing.org/t/oscp5-receive-an-array/10049)

<div class="topic-metadata">

**Author:** [@tobor](https://discourse.processing.org/u/tobor)\
**Replies:** 1\
**Last updated:** [April 9, 2019, 2:22pm UTC](https://discourse.processing.org/t/oscp5-receive-an-array/10049 "2019-04-09T14:22:06Z")

</div>

Hi, I need to receive in Processing an array of letters from Pure Data with OSC. Anybody has a clue on how to create the correct oscEvent? Thanks

---

## [3d problem with a simple title game](https://discourse.processing.org/t/3d-problem-with-a-simple-title-game/10003)

<div class="topic-metadata">

**Author:** [@diego](https://discourse.processing.org/u/diego)\
**Replies:** 15\
**Last updated:** [April 9, 2019, 9:11am UTC](https://discourse.processing.org/t/3d-problem-with-a-simple-title-game/10003 "2019-04-09T09:11:31Z")

</div>

I made a simple tile game in 2 in two dimensions and it works well (even if you have suggestions for the optimization are well accepted), but when I tried to render it in three dimensions the coordinates of the cubes are…

---

## [Processing Sound Library Distorted](https://discourse.processing.org/t/processing-sound-library-distorted/9982)

<div class="topic-metadata">

**Author:** [@LordBruce](https://discourse.processing.org/u/LordBruce)\
**Replies:** 3\
**Last updated:** [April 9, 2019, 12:36am UTC](https://discourse.processing.org/t/processing-sound-library-distorted/9982 "2019-04-09T00:36:30Z")

</div>

So I am trying to run a basic game using this library to play gunshot sounds. It works great, up until a couple hundred shots when out of no where the audio will get distorted and never end. When this is happening the au…

---

## [Is there any way to update the camera, rather than create a new one?](https://discourse.processing.org/t/is-there-any-way-to-update-the-camera-rather-than-create-a-new-one/10031)

<div class="topic-metadata">

**Author:** [@Bluu](https://discourse.processing.org/u/Bluu)\
**Replies:** 5\
**Last updated:** [April 8, 2019, 9:50pm UTC](https://discourse.processing.org/t/is-there-any-way-to-update-the-camera-rather-than-create-a-new-one/10031 "2019-04-08T21:50:16Z")

</div>

I was creating a 3-d modeling program and was working on camera controls, when I realized that I couldn’t make a camera system that would just update the camera’s position and other values, rather than just creating a ne…

---

## [Want a screen saver](https://discourse.processing.org/t/want-a-screen-saver/10102)

<div class="topic-metadata">

**Author:** [@chaps421](https://discourse.processing.org/u/chaps421)\
**Replies:** 3\
**Last updated:** [April 8, 2019, 8:53pm UTC](https://discourse.processing.org/t/want-a-screen-saver/10102 "2019-04-08T20:53:55Z")

</div>

i made the dvd logo bouncer and i want to see if there is a way to make it the scren saver of my computer. its an “animation” but i variates each time so its not allways the same if you could put some instruction about …

---

## [Changing "keyPressed" to Arduino buttons](https://discourse.processing.org/t/changing-keypressed-to-arduino-buttons/10100)

<div class="topic-metadata">

**Author:** [@anon98404100](https://discourse.processing.org/u/anon98404100)\
**Replies:** 3\
**Last updated:** [April 8, 2019, 7:23pm UTC](https://discourse.processing.org/t/changing-keypressed-to-arduino-buttons/10100 "2019-04-08T19:23:24Z")

</div>

After getting some help here to randomize my work more, I am currently trying to add 1 small addition which is required for my school project : usage of Arduino, however, the addition can be as small or as major as I lik…

---

## [Cash register game](https://discourse.processing.org/t/cash-register-game/9938)

<div class="topic-metadata">

**Author:** [@anna](https://discourse.processing.org/u/anna)\
**Replies:** 10\
**Last updated:** [April 8, 2019, 4:01pm UTC](https://discourse.processing.org/t/cash-register-game/9938 "2019-04-08T16:01:39Z")

</div>

Hello! I am making a game, which is a simulation of sitting as a cashier at the check-out register in a supermarket. I have trouble with which code to use, in order to make a good “library” of data. If fx a banana is d…

---

## [How do I make a shape grow?](https://discourse.processing.org/t/how-do-i-make-a-shape-grow/10095)

<div class="topic-metadata">

**Author:** [@cesca](https://discourse.processing.org/u/cesca)\
**Replies:** 3\
**Last updated:** [April 8, 2019, 5:04pm UTC](https://discourse.processing.org/t/how-do-i-make-a-shape-grow/10095 "2019-04-08T17:04:55Z")

</div>

I’m super new to processing. How do I make my flower shape grow or make it look like it’s “blooming”? The size it is now is the max size I want, but how do I make it so it starts from a 0 size to grow into that? void s…

---

## [Load random images every time the button is pressed - Processing - Arduino](https://discourse.processing.org/t/load-random-images-every-time-the-button-is-pressed-processing-arduino/9960)

<div class="topic-metadata">

**Author:** [@Sol81](https://discourse.processing.org/u/Sol81)\
**Replies:** 22\
**Last updated:** [April 8, 2019, 4:45pm UTC](https://discourse.processing.org/t/load-random-images-every-time-the-button-is-pressed-processing-arduino/9960 "2019-04-08T16:45:13Z")

</div>

Hey guys, I need to use a button through an Arduino to be able to load random images on screen every time this button is pressed. I have a background image and want to be able first time I press the button to see a bul…

---

## [Wanting advise on how I could randomize my work more](https://discourse.processing.org/t/wanting-advise-on-how-i-could-randomize-my-work-more/9267)

<div class="topic-metadata">

**Author:** [@anon98404100](https://discourse.processing.org/u/anon98404100)\
**Replies:** 41\
**Last updated:** [April 8, 2019, 4:23pm UTC](https://discourse.processing.org/t/wanting-advise-on-how-i-could-randomize-my-work-more/9267 "2019-04-08T16:23:18Z")

</div>

I am working on a project where I use a keylogger to collect button input, let Processing read it and let it do certain actions when it goes over the specific letter. I need to make the program somewhat random, and I am …

---

## [The shader doesn't have a uniform called "textur](https://discourse.processing.org/t/the-shader-doesnt-have-a-uniform-called-textur/10045)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 5\
**Last updated:** [April 8, 2019, 10:56am UTC](https://discourse.processing.org/t/the-shader-doesnt-have-a-uniform-called-textur/10045 "2019-04-08T10:56:06Z")

</div>

I have this really simple fragment shader (this is just the starting point…): out vec4 fragColor; uniform sampler2D texture; void main() { fragColor = texture2D(texture, vec2(0.5, 0.5)); } PShader shader; PImage im…

---

## [How to know when a sound file has been read in its entirety?](https://discourse.processing.org/t/how-to-know-when-a-sound-file-has-been-read-in-its-entirety/9873)

<div class="topic-metadata">

**Author:** [@Mimal](https://discourse.processing.org/u/Mimal)\
**Replies:** 4\
**Last updated:** [April 8, 2019, 9:02am UTC](https://discourse.processing.org/t/how-to-know-when-a-sound-file-has-been-read-in-its-entirety/9873 "2019-04-08T09:02:10Z")

</div>

Hi, Here my program that retrieves a value from the Arduino card and plays a sound based on that value. The value varies according to the position of a potentiometer: an Arduino program transforms the voltage across th…

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

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