# Processing

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

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

**Page:** 214

---

## [Is bezierPoint() part of core.PGraphics?](https://discourse.processing.org/t/is-bezierpoint-part-of-core-pgraphics/20512)

<div class="topic-metadata">

**Author:** [@mala](https://discourse.processing.org/u/mala)\
**Replies:** 2\
**Last updated:** [May 5, 2020, 4:21pm UTC](https://discourse.processing.org/t/is-bezierpoint-part-of-core-pgraphics/20512 "2020-05-05T16:21:45Z")

</div>

I’m trying to move some of my work over to a library built using netbeans and have come across a problem with bezierPoint(float, float, float, float, float) From the processing reference it appears this is part of core…

---

## [Seamless frequency circle (FFT)](https://discourse.processing.org/t/seamless-frequency-circle-fft/20494)

<div class="topic-metadata">

**Author:** [@Hetoft](https://discourse.processing.org/u/Hetoft)\
**Replies:** 3\
**Last updated:** [May 5, 2020, 2:44pm UTC](https://discourse.processing.org/t/seamless-frequency-circle-fft/20494 "2020-05-05T14:44:18Z")

</div>

Hi all, For the past couple of days I’ve been getting into FFT and music visualization. Wanting to make a smooth, circular display of frequencies, I managed to do that, using Minim/FFT, a linear grouping of frequencies,…

---

## [Serial port management in a class, constructor undefined error](https://discourse.processing.org/t/serial-port-management-in-a-class-constructor-undefined-error/20465)

<div class="topic-metadata">

**Author:** [@AlexanderDyas](https://discourse.processing.org/u/AlexanderDyas)\
**Replies:** 3\
**Last updated:** [May 5, 2020, 6:33am UTC](https://discourse.processing.org/t/serial-port-management-in-a-class-constructor-undefined-error/20465 "2020-05-05T06:33:35Z")

</div>

Hello, I am having trouble moving some code into a class. The code works fine outside the class, in the setup() function for instance. Within the class the following line raises an error on build : myPort = new Serial(…

---

## [Appending more than one color to an array loop of colors](https://discourse.processing.org/t/appending-more-than-one-color-to-an-array-loop-of-colors/20490)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 7\
**Last updated:** [May 5, 2020, 5:37am UTC](https://discourse.processing.org/t/appending-more-than-one-color-to-an-array-loop-of-colors/20490 "2020-05-05T05:37:35Z")

</div>

I want to append black and white to an array of lerped colors. Works okay when I append the first color, but not when I append the second color. What am I doing wrong? // MAIN ----------------------------- Cell \[\] cell…

---

## [Starting Screen - struggling with code](https://discourse.processing.org/t/starting-screen-struggling-with-code/20473)

<div class="topic-metadata">

**Author:** [@Eduwu](https://discourse.processing.org/u/Eduwu)\
**Replies:** 2\
**Last updated:** [May 5, 2020, 2:21am UTC](https://discourse.processing.org/t/starting-screen-struggling-with-code/20473 "2020-05-05T02:21:16Z")

</div>

Hi!! I’m very new at coding and am doing a project that involves de video library, but I encounter a few problems. The first one is that I’m trying to do a starting screen for my program but the image I made doesn’t app…

---

## [How to combine a point shader with a blur shader?](https://discourse.processing.org/t/how-to-combine-a-point-shader-with-a-blur-shader/718)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 2\
**Last updated:** [December 2, 2018, 4:52pm UTC](https://discourse.processing.org/t/how-to-combine-a-point-shader-with-a-blur-shader/718 "2018-12-02T16:52:18Z")

</div>

I would like to display thousands of points on a 3D canvas with a Depth of Field effect. More specifically, I would like to use a z-buffer (depth buffering) to adjust the level of blur of a point based on its distance fr…

---

## [Data communication from Arduino/Processing Post #1](https://discourse.processing.org/t/data-communication-from-arduino-processing-post-1/20482)

<div class="topic-metadata">

**Author:** [@MaissaHamdi](https://discourse.processing.org/u/MaissaHamdi)\
**Replies:** 5\
**Last updated:** [May 5, 2020, 12:53am UTC](https://discourse.processing.org/t/data-communication-from-arduino-processing-post-1/20482 "2020-05-05T00:53:18Z")

</div>

i am a beginner I would appreciate it if someone help me to write a programme to receive data(62 data) from arduino to processing and class them in a table plz

---

## [How to make a timer in Processing?](https://discourse.processing.org/t/how-to-make-a-timer-in-processing/20481)

<div class="topic-metadata">

**Author:** [@Cybernet](https://discourse.processing.org/u/Cybernet)\
**Replies:** 1\
**Last updated:** [May 4, 2020, 11:15pm UTC](https://discourse.processing.org/t/how-to-make-a-timer-in-processing/20481 "2020-05-04T23:15:00Z")

</div>

So I know this is a really simple question, but I can’t figure out how to do it! So I have this code: void draw() { if (startGame) // do stuff if (lose) DisplayTimer(); } void mousePressed() { …

---

## [Flickering saturation](https://discourse.processing.org/t/flickering-saturation/20084)

<div class="topic-metadata">

**Author:** [@benprice](https://discourse.processing.org/u/benprice)\
**Replies:** 2\
**Last updated:** [May 4, 2020, 9:38pm UTC](https://discourse.processing.org/t/flickering-saturation/20084 "2020-05-04T21:38:57Z")

</div>

Hi, little bit of a strange one! So I’m trying to code into a programme a saturation slider. This works, however the saturation seems to flicker on and off in the draw function, as if it gets drawn as the original colou…

---

## [Processing.video causes VM failure](https://discourse.processing.org/t/processing-video-causes-vm-failure/11153)

<div class="topic-metadata">

**Author:** [@simonbiggs](https://discourse.processing.org/u/simonbiggs)\
**Replies:** 7\
**Last updated:** [May 4, 2020, 11:46am UTC](https://discourse.processing.org/t/processing-video-causes-vm-failure/11153 "2020-05-04T11:46:48Z")

</div>

Hi everyone. I have been running Processing 2.2.1 on a Macbook Pro 2014 with the processing.video library no problems. I am now moving the project to a Mac Pro (tower) 2017 model. Importing the processing.video library …

---

## [Program slower when I send data to Arduino](https://discourse.processing.org/t/program-slower-when-i-send-data-to-arduino/19815)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 7\
**Last updated:** [May 4, 2020, 10:37am UTC](https://discourse.processing.org/t/program-slower-when-i-send-data-to-arduino/19815 "2020-05-04T10:37:57Z")

</div>

Hello, I make turning 5 motors with a potar with Arduino. It works perfectly, I make turning them with a simulation from Processing, it all turn but the simulation is slower than if I don’t send datas to Arduino. What…

---

## [Sound: playing arbitrary waveform](https://discourse.processing.org/t/sound-playing-arbitrary-waveform/20197)

<div class="topic-metadata">

**Author:** [@Eamoex](https://discourse.processing.org/u/Eamoex)\
**Replies:** 4\
**Last updated:** [May 4, 2020, 8:18am UTC](https://discourse.processing.org/t/sound-playing-arbitrary-waveform/20197 "2020-05-04T08:18:09Z")

</div>

Hello, I make electronic music and I’m using a physical synth (Elektron Digitakt) which can take arbitrary single-cycle waveforms to create continuous sounds. For instance, as with the audio library of processing, we hav…

---

## [Implementing Midpoint Displacement Algorithm](https://discourse.processing.org/t/implementing-midpoint-displacement-algorithm/20441)

<div class="topic-metadata">

**Author:** [@Dangeroustuber](https://discourse.processing.org/u/Dangeroustuber)\
**Replies:** 5\
**Last updated:** [May 4, 2020, 8:16am UTC](https://discourse.processing.org/t/implementing-midpoint-displacement-algorithm/20441 "2020-05-04T08:16:26Z")

</div>

Hi, i want to implement the Midpoint displacement algorithm. Please help! I can’t find a good source to follow in 1D and i dont understand it fully that i can implement it myself alone. I’m not interested in 2d case bef…

---

## [How can i make exp system](https://discourse.processing.org/t/how-can-i-make-exp-system/20449)

<div class="topic-metadata">

**Author:** [@MEOACOHI](https://discourse.processing.org/u/MEOACOHI)\
**Replies:** 1\
**Last updated:** [May 3, 2020, 10:29pm UTC](https://discourse.processing.org/t/how-can-i-make-exp-system/20449 "2020-05-03T22:29:41Z")

</div>

hi, everyone i have a question for yall. me and my friend are working on a pokemon like game and we need an exp system but we dont know how to make one so if u can help or send the code it will be amazing ty community! :…

---

## [How to distribute sketches with libraries to Openframe?](https://discourse.processing.org/t/how-to-distribute-sketches-with-libraries-to-openframe/14095)

<div class="topic-metadata">

**Author:** [@jvolker](https://discourse.processing.org/u/jvolker)\
**Replies:** 12\
**Last updated:** [May 1, 2020, 12:19pm UTC](https://discourse.processing.org/t/how-to-distribute-sketches-with-libraries-to-openframe/14095 "2020-05-01T12:19:37Z")

</div>

I’m currently working on a Processing extension to the Openframe platform open source platform for artists, curators and art enthusiasts to share, discover and display digital art. … basically, a smart digital pictur…

---

## [HUION GRAPHIC TABLET compatibility](https://discourse.processing.org/t/huion-graphic-tablet-compatibility/20383)

<div class="topic-metadata">

**Author:** [@dcxder](https://discourse.processing.org/u/dcxder)\
**Replies:** 1\
**Last updated:** [May 3, 2020, 8:16pm UTC](https://discourse.processing.org/t/huion-graphic-tablet-compatibility/20383 "2020-05-03T20:16:09Z")

</div>

Hi, I am about to buy an Huion tablet and I wonder if there is any workaround using it with Processing. Is it compatible with any library? Thanks

---

## [Bug in emojis display when using g4p (or using 'createFont', 'textFont')](https://discourse.processing.org/t/bug-in-emojis-display-when-using-g4p-or-using-createfont-textfont/19969)

<div class="topic-metadata">

**Author:** [@amit.ilan](https://discourse.processing.org/u/amit.ilan)\
**Replies:** 10\
**Last updated:** [May 3, 2020, 7:43pm UTC](https://discourse.processing.org/t/bug-in-emojis-display-when-using-g4p-or-using-createfont-textfont/19969 "2020-05-03T19:43:28Z")

</div>

Hello, I have a problem in emojis display read from txt/UTF-8 csv. When styling a text using ‘createFont’, ‘textFont’ before drawing it with ‘text()’, emojis appear like an empty square. (no matter what font I tried to…

---

## [Move up and down rectangle by mousepressed](https://discourse.processing.org/t/move-up-and-down-rectangle-by-mousepressed/20179)

<div class="topic-metadata">

**Author:** [@MCGFP](https://discourse.processing.org/u/MCGFP)\
**Replies:** 1\
**Last updated:** [May 3, 2020, 7:12pm UTC](https://discourse.processing.org/t/move-up-and-down-rectangle-by-mousepressed/20179 "2020-05-03T19:12:19Z")

</div>

Hi, I have a FBox in Fisica (actually more but I simplified the code) that I need to move up or down when clicking in it. It’s meant to be a sliding door, so it represents opening and closing it. I now have a code that …

---

## [Object on-off by clicking area](https://discourse.processing.org/t/object-on-off-by-clicking-area/20162)

<div class="topic-metadata">

**Author:** [@MCGFP](https://discourse.processing.org/u/MCGFP)\
**Replies:** 5\
**Last updated:** [May 3, 2020, 7:06pm UTC](https://discourse.processing.org/t/object-on-off-by-clicking-area/20162 "2020-05-03T19:06:26Z")

</div>

Hi, I have a code made of rectangles that form the «walls» of a plan. I want to add doors (the same rectangles but they would appear/disappear when I click on the sill). I am using the boxes from the fisica library. Ho…

---

## [Hi-Res PDF Image Does Not Reflect Canvas Drawing](https://discourse.processing.org/t/hi-res-pdf-image-does-not-reflect-canvas-drawing/20215)

<div class="topic-metadata">

**Author:** [@mnoble](https://discourse.processing.org/u/mnoble)\
**Replies:** 4\
**Last updated:** [May 3, 2020, 6:50pm UTC](https://discourse.processing.org/t/hi-res-pdf-image-does-not-reflect-canvas-drawing/20215 "2020-05-03T18:50:52Z")

</div>

Hello Forum, I am working with one of the examples from the \[Generative Design book\](// http://www.generative-gestaltung.de) and I am trying to make a super hi-res image of the drawings I do. But, the PDF lines are neve…

---

## [Halftone from photo](https://discourse.processing.org/t/halftone-from-photo/20130)

<div class="topic-metadata">

**Author:** [@May](https://discourse.processing.org/u/May)\
**Replies:** 1\
**Last updated:** [May 3, 2020, 6:47pm UTC](https://discourse.processing.org/t/halftone-from-photo/20130 "2020-05-03T18:47:10Z")

</div>

Hi! I am currently working on a project about halftone and I am quite new to the coding-world. I am struggling with the degrees in my halftone and with how to make a halftone with lines. Right now the grids are all by…

---

## [Borders for a maze that resets the object to the start?](https://discourse.processing.org/t/borders-for-a-maze-that-resets-the-object-to-the-start/20126)

<div class="topic-metadata">

**Author:** [@lilqtip](https://discourse.processing.org/u/lilqtip)\
**Replies:** 4\
**Last updated:** [May 3, 2020, 6:42pm UTC](https://discourse.processing.org/t/borders-for-a-maze-that-resets-the-object-to-the-start/20126 "2020-05-03T18:42:09Z")

</div>

So I am making a little game as a project to improve my coding. It is a maze-ish game where you can shrink and grow to go through it and when you touch a wall it will reset you to the start, I am using if statements to …

---

## [How do you create an array to store geolocation which can appear on a map?](https://discourse.processing.org/t/how-do-you-create-an-array-to-store-geolocation-which-can-appear-on-a-map/20062)

<div class="topic-metadata">

**Author:** [@Stage1](https://discourse.processing.org/u/Stage1)\
**Replies:** 2\
**Last updated:** [May 3, 2020, 6:35pm UTC](https://discourse.processing.org/t/how-do-you-create-an-array-to-store-geolocation-which-can-appear-on-a-map/20062 "2020-05-03T18:35:59Z")

</div>

I have a csv file which states the names of cities of UK that have different geolocations for each cities. Considering theres over 10 cities i would like to store these cities into an array and then have them mapped onto…

---

## [Grab Pixels Around Edges of an Irregular Image Shape](https://discourse.processing.org/t/grab-pixels-around-edges-of-an-irregular-image-shape/20020)

<div class="topic-metadata">

**Author:** [@mnoble](https://discourse.processing.org/u/mnoble)\
**Replies:** 4\
**Last updated:** [May 3, 2020, 6:22pm UTC](https://discourse.processing.org/t/grab-pixels-around-edges-of-an-irregular-image-shape/20020 "2020-05-03T18:22:05Z")

</div>

Hello Forum, I am wondering if there is a simple way to grab the pixels around the edges of an irregular image that is accurate? I have been having a blast with the simplicity of color detection for moving collisions. I…

---

## [Drawing shapes in between loadPixels() and updatePixels()](https://discourse.processing.org/t/drawing-shapes-in-between-loadpixels-and-updatepixels/19991)

<div class="topic-metadata">

**Author:** [@Gabe](https://discourse.processing.org/u/Gabe)\
**Replies:** 3\
**Last updated:** [May 3, 2020, 5:42pm UTC](https://discourse.processing.org/t/drawing-shapes-in-between-loadpixels-and-updatepixels/19991 "2020-05-03T17:42:11Z")

</div>

I notice that I can’t draw primitive shapes in between calls to loadPixels() and updatePixels(). Consider the following sketch: void setup() { size(200, 100); } void draw() { fill(0); ellipseMode(CENTER); ellip…

---

## [Play sound a number of times](https://discourse.processing.org/t/play-sound-a-number-of-times/20433)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 0\
**Last updated:** [May 3, 2020, 1:51pm UTC](https://discourse.processing.org/t/play-sound-a-number-of-times/20433 "2020-05-03T13:51:45Z")

</div>

This should be really simple. I want to play a sound a fixed number of times (once, twice, or thrice). I tried this below. Here I copied the same sound and pretend that Quack1 and Quack2 are different sounds so I can pl…

---

## [The package “processing.io” does not exist. You might be missing a library](https://discourse.processing.org/t/the-package-processing-io-does-not-exist-you-might-be-missing-a-library/20442)

<div class="topic-metadata">

**Author:** [@kev.i.am](https://discourse.processing.org/u/kev.i.am)\
**Replies:** 1\
**Last updated:** [May 3, 2020, 5:12pm UTC](https://discourse.processing.org/t/the-package-processing-io-does-not-exist-you-might-be-missing-a-library/20442 "2020-05-03T17:12:36Z")

</div>

please help me cant get seem to find it

---

## [Can i emul controler?](https://discourse.processing.org/t/can-i-emul-controler/20102)

<div class="topic-metadata">

**Author:** [@hitmoh47](https://discourse.processing.org/u/hitmoh47)\
**Replies:** 5\
**Last updated:** [May 3, 2020, 1:57pm UTC](https://discourse.processing.org/t/can-i-emul-controler/20102 "2020-05-03T13:57:38Z")

</div>

Hi , i have a question. i would to create a program that can emulate a controller ,i don’t know if i can do it with robot class.

---

## [How can I add mutiple sound files to my game](https://discourse.processing.org/t/how-can-i-add-mutiple-sound-files-to-my-game/20416)

<div class="topic-metadata">

**Author:** [@TheBlazeinPanther](https://discourse.processing.org/u/TheBlazeinPanther)\
**Replies:** 1\
**Last updated:** [May 3, 2020, 1:46pm UTC](https://discourse.processing.org/t/how-can-i-add-mutiple-sound-files-to-my-game/20416 "2020-05-03T13:46:38Z")

</div>

So I’ve programmed my game using the .fisica and processing sound library. I’ve created a menu screen and game screen. I want there to be one song that plays for the menu, and another one that plays for game. But, whenev…

---

## [Boids - Can I improve my method / efficiency?](https://discourse.processing.org/t/boids-can-i-improve-my-method-efficiency/20256)

<div class="topic-metadata">

**Author:** [@ketchupmustard](https://discourse.processing.org/u/ketchupmustard)\
**Replies:** 9\
**Last updated:** [May 3, 2020, 1:34pm UTC](https://discourse.processing.org/t/boids-can-i-improve-my-method-efficiency/20256 "2020-05-03T13:34:12Z")

</div>

Hi all, first post! So this is my first big stab at boids. It’s still kinda wonky - I plan to implement more features and corrections. I’m more looking for any general tips to increase efficiency (I’m not sure if it’s j…

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

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