# Processing

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

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

**Page:** 221

---

## [Repetitive code](https://discourse.processing.org/t/repetitive-code/19659)

<div class="topic-metadata">

**Author:** [@Quorum](https://discourse.processing.org/u/Quorum)\
**Replies:** 4\
**Last updated:** [April 12, 2020, 2:32pm UTC](https://discourse.processing.org/t/repetitive-code/19659 "2020-04-12T14:32:34Z")

</div>

Good morning everyone, I just started using processing. I’m drawing a sketch where I’m going to create 30 little balls. There’s a way to make them appear in sequence without writing 30 times the same line with the ell…

---

## [Write a two-dimensional array (matrix) to text files?](https://discourse.processing.org/t/write-a-two-dimensional-array-matrix-to-text-files/19674)

<div class="topic-metadata">

**Author:** [@ardano](https://discourse.processing.org/u/ardano)\
**Replies:** 3\
**Last updated:** [April 12, 2020, 2:30pm UTC](https://discourse.processing.org/t/write-a-two-dimensional-array-matrix-to-text-files/19674 "2020-04-12T14:30:13Z")

</div>

Hi everyone! I am an absolute beginner in Processing. I’m trying to figuring how to write a 12x12 two-dimensional array of integers to a .txt file but I don’t have any idea… Can someone please suggest me how? The ful…

---

## [TextureSphere with Text](https://discourse.processing.org/t/texturesphere-with-text/19543)

<div class="topic-metadata">

**Author:** [@paturn](https://discourse.processing.org/u/paturn)\
**Replies:** 18\
**Last updated:** [April 12, 2020, 11:04am UTC](https://discourse.processing.org/t/texturesphere-with-text/19543 "2020-04-12T11:04:51Z")

</div>

I am using Gillian Ramsay’s version of textureSphere and I would like to add text to interact with the operation of the program. However, when the sphere is rotated or translated, it also rotates or translates the text …

---

## [How can I have Perlin Noise take shape from an image?](https://discourse.processing.org/t/how-can-i-have-perlin-noise-take-shape-from-an-image/19663)

<div class="topic-metadata">

**Author:** [@BogginJunior](https://discourse.processing.org/u/BogginJunior)\
**Replies:** 4\
**Last updated:** [April 12, 2020, 3:12am UTC](https://discourse.processing.org/t/how-can-i-have-perlin-noise-take-shape-from-an-image/19663 "2020-04-12T03:12:23Z")

</div>

Hi everyone! I hope you are all well, considering the circumstances. I am a Graphic Designer and have just begun exploring Generative Art and Processing. I’ve watched tutorials about Perlin Noise, which is beautiful on…

---

## [Tangent line of curve](https://discourse.processing.org/t/tangent-line-of-curve/19600)

<div class="topic-metadata">

**Author:** [@Martaf2001](https://discourse.processing.org/u/Martaf2001)\
**Replies:** 2\
**Last updated:** [April 11, 2020, 9:57pm UTC](https://discourse.processing.org/t/tangent-line-of-curve/19600 "2020-04-11T21:57:16Z")

</div>

Hi everyone!!! I’m new at coding and I have a problem, I would like to draw a program where there is a bicorn curve and every time the mouse is on the curve, it can be generated a tangent line, so on infinite points, bu…

---

## [How to not display blank fields from a csv file?](https://discourse.processing.org/t/how-to-not-display-blank-fields-from-a-csv-file/19668)

<div class="topic-metadata">

**Author:** [@Stage1](https://discourse.processing.org/u/Stage1)\
**Replies:** 1\
**Last updated:** [April 11, 2020, 6:20pm UTC](https://discourse.processing.org/t/how-to-not-display-blank-fields-from-a-csv-file/19668 "2020-04-11T18:20:36Z")

</div>

Hello im currently plotting shapes on my 2d image whilst using the coordinates of longitude and latitude. However, i’ve got some blank fields which i do not want to appear on my image and when they are kept blank they st…

---

## [How can I make a regular triangle from a line?](https://discourse.processing.org/t/how-can-i-make-a-regular-triangle-from-a-line/19655)

<div class="topic-metadata">

**Author:** [@Tauter](https://discourse.processing.org/u/Tauter)\
**Replies:** 10\
**Last updated:** [April 11, 2020, 3:17pm UTC](https://discourse.processing.org/t/how-can-i-make-a-regular-triangle-from-a-line/19655 "2020-04-11T15:17:43Z")

</div>

I have to create a regular triangle from a line. i calculated the middle of the line but after this I can’t figure it out. (szR is a line drawing algorithm) What should be the line end ? int x1,x2,y1,y2,xl,yl; void …

---

## [Processing 3 Escaping Regex Characters](https://discourse.processing.org/t/processing-3-escaping-regex-characters/19477)

<div class="topic-metadata">

**Author:** [@Conor98](https://discourse.processing.org/u/Conor98)\
**Replies:** 3\
**Last updated:** [April 11, 2020, 3:12pm UTC](https://discourse.processing.org/t/processing-3-escaping-regex-characters/19477 "2020-04-11T15:12:10Z")

</div>

I’m currently using the Regex .matches("") command Processing 3 to make an ipv4 address format verifier. I’ve currently got it working with the seperate sets of numbers but my problem is with the ‘.’ symbol. The ‘.’ sy…

---

## [I have a rectangle which is bouncing on the screen. I want it to occur in 8 steps instead of being continuous](https://discourse.processing.org/t/i-have-a-rectangle-which-is-bouncing-on-the-screen-i-want-it-to-occur-in-8-steps-instead-of-being-continuous/19626)

<div class="topic-metadata">

**Author:** [@bellievr](https://discourse.processing.org/u/bellievr)\
**Replies:** 16\
**Last updated:** [April 11, 2020, 12:18pm UTC](https://discourse.processing.org/t/i-have-a-rectangle-which-is-bouncing-on-the-screen-i-want-it-to-occur-in-8-steps-instead-of-being-continuous/19626 "2020-04-11T12:18:09Z")

</div>

Please help me with this question!!!

---

## [Massive latency when doing FFT with Minim on live audio from mixer](https://discourse.processing.org/t/massive-latency-when-doing-fft-with-minim-on-live-audio-from-mixer/6513)

<div class="topic-metadata">

**Author:** [@hamoid](https://discourse.processing.org/u/hamoid)\
**Replies:** 13\
**Last updated:** [April 11, 2020, 9:38am UTC](https://discourse.processing.org/t/massive-latency-when-doing-fft-with-minim-on-live-audio-from-mixer/6513 "2020-04-11T09:38:46Z")

</div>

I wanted to share a program here, but I’m having trouble making it behave well. The idea is to visualize (FFT) whatever music you are playing on your system, so you don’t need to load a track into Processing, but assume…

---

## [Is there a tutorial on Embedding processing code in JAVA in Eclipse?](https://discourse.processing.org/t/is-there-a-tutorial-on-embedding-processing-code-in-java-in-eclipse/19650)

<div class="topic-metadata">

**Author:** [@Samizen](https://discourse.processing.org/u/Samizen)\
**Replies:** 5\
**Last updated:** [April 11, 2020, 3:38am UTC](https://discourse.processing.org/t/is-there-a-tutorial-on-embedding-processing-code-in-java-in-eclipse/19650 "2020-04-11T03:38:10Z")

</div>

I followed the build path tutorials. The import processing.core.\* works fine but Java doesnot acknowledge color in hex form. Similar is the case with variables like height. Also many many functions are throwing unde…

---

## [How do you make a 3d bar clickable to display a message?](https://discourse.processing.org/t/how-do-you-make-a-3d-bar-clickable-to-display-a-message/19641)

<div class="topic-metadata">

**Author:** [@Stage1](https://discourse.processing.org/u/Stage1)\
**Replies:** 3\
**Last updated:** [April 10, 2020, 8:16pm UTC](https://discourse.processing.org/t/how-do-you-make-a-3d-bar-clickable-to-display-a-message/19641 "2020-04-10T20:16:54Z")

</div>

Hello, i have a 3D bar and i would like to make it clickable. I’ve created the 3d bar using pushmatrix() function and i would like to know how i can make it to display message once its clicked. Here’s an example code. b…

---

## [Storing java pop up on computer](https://discourse.processing.org/t/storing-java-pop-up-on-computer/19643)

<div class="topic-metadata">

**Author:** [@senior](https://discourse.processing.org/u/senior)\
**Replies:** 1\
**Last updated:** [April 10, 2020, 11:27pm UTC](https://discourse.processing.org/t/storing-java-pop-up-on-computer/19643 "2020-04-10T23:27:11Z")

</div>

I have a display popping up in java mode. What code would I use to save and store the java display on my computer. I know I can screen record but how how would I do it with processing. Thank you all and have a blessed da…

---

## [Serial issues with apc220 and Processing 3.5.4](https://discourse.processing.org/t/serial-issues-with-apc220-and-processing-3-5-4/19621)

<div class="topic-metadata">

**Author:** [@JG97400](https://discourse.processing.org/u/JG97400)\
**Replies:** 1\
**Last updated:** [April 10, 2020, 10:58pm UTC](https://discourse.processing.org/t/serial-issues-with-apc220-and-processing-3-5-4/19621 "2020-04-10T22:58:10Z")

</div>

Hello everybody !! I’am a new user of Processing software and I try to etablish a communication between my laptop and arduino board with apc 220 wireless module. In the following link someone use the Processing 1.5.1 : h…

---

## [Music vizualiser and player with ftt](https://discourse.processing.org/t/music-vizualiser-and-player-with-ftt/19050)

<div class="topic-metadata">

**Author:** [@Ysaelya](https://discourse.processing.org/u/Ysaelya)\
**Replies:** 19\
**Last updated:** [April 10, 2020, 10:29pm UTC](https://discourse.processing.org/t/music-vizualiser-and-player-with-ftt/19050 "2020-04-10T22:29:50Z")

</div>

Hello there ! So I have been given a code and the goal is to create a music player . I must add features such as play, pause, stop and volume buttons and also a basic bar with the music timer that fills in color, like …

---

## [Control P5 Buttons in P3D follows the 3D orientation of the sketch. How to make it fixed?](https://discourse.processing.org/t/control-p5-buttons-in-p3d-follows-the-3d-orientation-of-the-sketch-how-to-make-it-fixed/19618)

<div class="topic-metadata">

**Author:** [@Samizen](https://discourse.processing.org/u/Samizen)\
**Replies:** 2\
**Last updated:** [April 10, 2020, 7:37pm UTC](https://discourse.processing.org/t/control-p5-buttons-in-p3d-follows-the-3d-orientation-of-the-sketch-how-to-make-it-fixed/19618 "2020-04-10T19:37:41Z")

</div>

If I do the same for a normal sketch with nothing in it the button appears. But even if I write the same code for my sketch, the button does not appear. The result is following: The funny thing is if I click in appro…

---

## [Importing ControlP5 with IntelliJ IDEA Processing project](https://discourse.processing.org/t/importing-controlp5-with-intellij-idea-processing-project/19573)

<div class="topic-metadata">

**Author:** [@DPakulski](https://discourse.processing.org/u/DPakulski)\
**Replies:** 7\
**Last updated:** [April 10, 2020, 6:01pm UTC](https://discourse.processing.org/t/importing-controlp5-with-intellij-idea-processing-project/19573 "2020-04-10T18:01:00Z")

</div>

I am new to Processing, but really enjoying it. I am coding in Java (Intellij IDEA) using the PApplet ProcessingCore as a library. I am building an interactive model that will simulate and display switching events on a…

---

## [How can I check that the pixel has color?](https://discourse.processing.org/t/how-can-i-check-that-the-pixel-has-color/19633)

<div class="topic-metadata">

**Author:** [@Tauter](https://discourse.processing.org/u/Tauter)\
**Replies:** 2\
**Last updated:** [April 10, 2020, 4:31pm UTC](https://discourse.processing.org/t/how-can-i-check-that-the-pixel-has-color/19633 "2020-04-10T16:31:31Z")

</div>

I’m allowed to use only get(), background() methods and color data type. How can I check that the given pixel (x,y), is background colored(black) or not ? I can’t figure it out from the references.

---

## [How do you create 3D bars to be display on a 2D image?](https://discourse.processing.org/t/how-do-you-create-3d-bars-to-be-display-on-a-2d-image/19631)

<div class="topic-metadata">

**Author:** [@Stage1](https://discourse.processing.org/u/Stage1)\
**Replies:** 6\
**Last updated:** [April 10, 2020, 3:09pm UTC](https://discourse.processing.org/t/how-do-you-create-3d-bars-to-be-display-on-a-2d-image/19631 "2020-04-10T15:09:48Z")

</div>

Hi there. I would like to know how you can display 3D bars on a image using processing 3. For example, i have a 2D map and on that map i want to display the coordinates using the latitude and longitude of a certain cit…

---

## [PImage attractor for Particle system?](https://discourse.processing.org/t/pimage-attractor-for-particle-system/19628)

<div class="topic-metadata">

**Author:** [@Tickie](https://discourse.processing.org/u/Tickie)\
**Replies:** 1\
**Last updated:** [April 10, 2020, 1:53pm UTC](https://discourse.processing.org/t/pimage-attractor-for-particle-system/19628 "2020-04-10T13:53:26Z")

</div>

Hello, I’m trying to write this processing code where particles are either attracted to the mouse when it’s pressed or repelled when it’s released. I have PImage representing a basic arrow in b&w, with a keypressed funct…

---

## [The rectangle is moving down the screen! I want the rectangle to stop and start with the Space Bar](https://discourse.processing.org/t/the-rectangle-is-moving-down-the-screen-i-want-the-rectangle-to-stop-and-start-with-the-space-bar/19584)

<div class="topic-metadata">

**Author:** [@bellievr](https://discourse.processing.org/u/bellievr)\
**Replies:** 2\
**Last updated:** [April 10, 2020, 1:22pm UTC](https://discourse.processing.org/t/the-rectangle-is-moving-down-the-screen-i-want-the-rectangle-to-stop-and-start-with-the-space-bar/19584 "2020-04-10T13:22:14Z")

</div>

Please help me create this program I have done with the steps of moving rectangle up and down . Just confused with using spacebar for starting and stopping it.

---

## [Does the function draw() clear the screen?](https://discourse.processing.org/t/does-the-function-draw-clear-the-screen/19614)

<div class="topic-metadata">

**Author:** [@Tauter](https://discourse.processing.org/u/Tauter)\
**Replies:** 6\
**Last updated:** [April 10, 2020, 1:21pm UTC](https://discourse.processing.org/t/does-the-function-draw-clear-the-screen/19614 "2020-04-10T13:21:52Z")

</div>

My teacher said that the draw() method run at many times per second, and it always clear the screen. But it doesn’t seems like it. By his teachings this code should draw nothing as it is run only once. Than it will be e…

---

## [JavaFX Processing Sketch doesnt draw()](https://discourse.processing.org/t/javafx-processing-sketch-doesnt-draw/12797)

<div class="topic-metadata">

**Author:** [@poboyd](https://discourse.processing.org/u/poboyd)\
**Replies:** 1\
**Last updated:** [April 10, 2020, 1:15pm UTC](https://discourse.processing.org/t/javafx-processing-sketch-doesnt-draw/12797 "2020-04-10T13:15:30Z")

</div>

Hi, I am running a processing sketch by calling it from a JavaFX application… public class Main extends Application { public pro sketch; @Override public void init() throws Exception { sketch = new pro(); sketch.ru…

---

## [JavaFX and Processing 3 P3D](https://discourse.processing.org/t/javafx-and-processing-3-p3d/15744)

<div class="topic-metadata">

**Author:** [@OliverC](https://discourse.processing.org/u/OliverC)\
**Replies:** 6\
**Last updated:** [April 10, 2020, 1:10pm UTC](https://discourse.processing.org/t/javafx-and-processing-3-p3d/15744 "2020-04-10T13:10:51Z")

</div>

Hello all, I am working on a javafx project in which I want to use P3D to display several 3D objects. I succeeded to make the example given by micycle here running but it is 2D and uses FX2D. So I have two questions: …

---

## [Show given number of significant numbers of float in text()](https://discourse.processing.org/t/show-given-number-of-significant-numbers-of-float-in-text/19603)

<div class="topic-metadata">

**Author:** [@juanjoc](https://discourse.processing.org/u/juanjoc)\
**Replies:** 2\
**Last updated:** [April 10, 2020, 8:40am UTC](https://discourse.processing.org/t/show-given-number-of-significant-numbers-of-float-in-text/19603 "2020-04-10T08:40:28Z")

</div>

Hi everyone. I want to show a float number in a text, but it show like 4 significant numbers. float number = 1; void setup() { background(0); size(100,100); } void draw() { fill(255); text(number,50,50); delay…

---

## [Obj texture framerate hit](https://discourse.processing.org/t/obj-texture-framerate-hit/19554)

<div class="topic-metadata">

**Author:** [@mala](https://discourse.processing.org/u/mala)\
**Replies:** 4\
**Last updated:** [April 10, 2020, 8:26am UTC](https://discourse.processing.org/t/obj-texture-framerate-hit/19554 "2020-04-10T08:26:27Z")

</div>

I’m finding that using a texture on an imported .obj is leading to a severe slow down in my sketch. The obj is one part of a PShape Group, it is loaded and added to the Group in setup(). It is then used by a Class whic…

---

## [Processing to make 2 array in one](https://discourse.processing.org/t/processing-to-make-2-array-in-one/19587)

<div class="topic-metadata">

**Author:** [@gurki](https://discourse.processing.org/u/gurki)\
**Replies:** 19\
**Last updated:** [April 9, 2020, 10:40pm UTC](https://discourse.processing.org/t/processing-to-make-2-array-in-one/19587 "2020-04-09T22:40:25Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Now I have 2 array int a = { 1, 2, 25 }; int b = { 9, 18 }; I want to make with two of them in one array with a for loop. Can someone sho…

---

## [How to rotate an image continuously?](https://discourse.processing.org/t/how-to-rotate-an-image-continuously/19564)

<div class="topic-metadata">

**Author:** [@NKF](https://discourse.processing.org/u/NKF)\
**Replies:** 12\
**Last updated:** [April 9, 2020, 11:28am UTC](https://discourse.processing.org/t/how-to-rotate-an-image-continuously/19564 "2020-04-09T11:28:37Z")

</div>

I know how to rotate an image but I don’t know how to make it rotates continuously by itself Could someone teach me pls void setup() { size(500,500, P3D); background(255); } void draw() { translate(width/2, height…

---

## [How to spell your three names in three lines](https://discourse.processing.org/t/how-to-spell-your-three-names-in-three-lines/19574)

<div class="topic-metadata">

**Author:** [@karakara](https://discourse.processing.org/u/karakara)\
**Replies:** 2\
**Last updated:** [April 9, 2020, 10:55am UTC](https://discourse.processing.org/t/how-to-spell-your-three-names-in-three-lines/19574 "2020-04-09T10:55:42Z")

</div>

Help please! To write a program on the Processing screen of 1000/1000 sizes. Spell your three names in three lines of your choice. Each name should begin with a capital letter. Choose the right font and the right color f…

---

## [Looking for help to improve my code](https://discourse.processing.org/t/looking-for-help-to-improve-my-code/19362)

<div class="topic-metadata">

**Author:** [@vincentstrebelle](https://discourse.processing.org/u/vincentstrebelle)\
**Replies:** 6\
**Last updated:** [April 9, 2020, 10:27am UTC](https://discourse.processing.org/t/looking-for-help-to-improve-my-code/19362 "2020-04-09T10:27:31Z")

</div>

Hi everyone, i hope everything is allright for all of you. I’m looking for advices and/or help to improve a specific part of my code. So here’s my code so you can run it: first the main class: import java.util.Iterat…

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

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