# Processing

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

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

**Page:** 285

---

## [Is it possible to import from node.js to Processing?](https://discourse.processing.org/t/is-it-possible-to-import-from-node-js-to-processing/12706)

<div class="topic-metadata">

**Author:** [@Loji](https://discourse.processing.org/u/Loji)\
**Replies:** 2\
**Last updated:** [July 16, 2019, 4:33am UTC](https://discourse.processing.org/t/is-it-possible-to-import-from-node-js-to-processing/12706 "2019-07-16T04:33:54Z")

</div>

Hello, I’m curently trying to make a twitter bot using node.js and Processing. The node.js select some data from twitter and I’d like to use these data to make an image using Processing. Then export this image back to …

---

## [Array of images with effect](https://discourse.processing.org/t/array-of-images-with-effect/12705)

<div class="topic-metadata">

**Author:** [@JoseBri93](https://discourse.processing.org/u/JoseBri93)\
**Replies:** 1\
**Last updated:** [July 13, 2019, 5:45pm UTC](https://discourse.processing.org/t/array-of-images-with-effect/12705 "2019-07-13T17:45:12Z")

</div>

Hi, i’m trying to combine an array of random images with an effect i found in the processing sketches called Explode. I don’t realize what kind of variable I need to use to inicialize the action. So basically, this is t…

---

## [Please help for very basic coding task](https://discourse.processing.org/t/please-help-for-very-basic-coding-task/12009)

<div class="topic-metadata">

**Author:** [@myhatzulu](https://discourse.processing.org/u/myhatzulu)\
**Replies:** 2\
**Last updated:** [July 15, 2019, 11:19pm UTC](https://discourse.processing.org/t/please-help-for-very-basic-coding-task/12009 "2019-07-15T23:19:35Z")

</div>

It keeps escaping me on how to do the following void setup(){ size(800,400); rect (width/2,height/2, ? , random(30,80)); } I need to make the figures body width twice the randomized body height, I don’t know how th…

---

## [Copied out of the book - Uncaught ReferenceError: printArray is not definedShow stack](https://discourse.processing.org/t/copied-out-of-the-book-uncaught-referenceerror-printarray-is-not-definedshow-stack/12724)

<div class="topic-metadata">

**Author:** [@otorp2](https://discourse.processing.org/u/otorp2)\
**Replies:** 1\
**Last updated:** [July 15, 2019, 6:49pm UTC](https://discourse.processing.org/t/copied-out-of-the-book-uncaught-referenceerror-printarray-is-not-definedshow-stack/12724 "2019-07-15T18:49:49Z")

</div>

float\[\] f = { 0.3, 0.4, 0.5 }; void setup(){ size(100,100); background(100); printArray(f); }

---

## [Double/float conversion in time-based calculation won't update](https://discourse.processing.org/t/double-float-conversion-in-time-based-calculation-wont-update/12718)

<div class="topic-metadata">

**Author:** [@grumo](https://discourse.processing.org/u/grumo)\
**Replies:** 8\
**Last updated:** [July 15, 2019, 3:40pm UTC](https://discourse.processing.org/t/double-float-conversion-in-time-based-calculation-wont-update/12718 "2019-07-15T15:40:16Z")

</div>

This is strange or I’m missing something. The code is working, the calculations are right (about sun position using current date/time and latitude and longitude values) the relevant variables are updating quickly (hopefu…

---

## [Fragment shader error: P3D: Processing 3.5.3](https://discourse.processing.org/t/fragment-shader-error-p3d-processing-3-5-3/12691)

<div class="topic-metadata">

**Author:** [@LuckSmith](https://discourse.processing.org/u/LuckSmith)\
**Replies:** 10\
**Last updated:** [July 15, 2019, 3:28pm UTC](https://discourse.processing.org/t/fragment-shader-error-p3d-processing-3-5-3/12691 "2019-07-15T15:28:37Z")

</div>

After having upgraded to Processing 3.5.3 none of my sketches using P3D can run. All settings are default and I don’t use any shaders. Both full screen and windowed. I tried it on several computers with the same result…

---

## [How to style markers with geoJSON and CSV](https://discourse.processing.org/t/how-to-style-markers-with-geojson-and-csv/12667)

<div class="topic-metadata">

**Author:** [@fmS3lect](https://discourse.processing.org/u/fmS3lect)\
**Replies:** 1\
**Last updated:** [July 15, 2019, 7:58am UTC](https://discourse.processing.org/t/how-to-style-markers-with-geojson-and-csv/12667 "2019-07-15T07:58:59Z")

</div>

Hi Guys, so I am working on project, and I am using Unfolding. I am trying to add markers from a geoJSON file on the map. This is working fine. But now i want style those markers based on values from an csv datasheet. …

---

## [Spout/Syphon video input and interactive touch areas](https://discourse.processing.org/t/spout-syphon-video-input-and-interactive-touch-areas/12654)

<div class="topic-metadata">

**Author:** [@mungle](https://discourse.processing.org/u/mungle)\
**Replies:** 2\
**Last updated:** [July 15, 2019, 5:25am UTC](https://discourse.processing.org/t/spout-syphon-video-input-and-interactive-touch-areas/12654 "2019-07-15T05:25:06Z")

</div>

Hello! I’m planning to create an application in processing but I need some help to get start. I have a black and white man shape captured from a Kinect V2 that can I get through spout/syphon. Then I need to place some …

---

## [Import Image and apply pattern](https://discourse.processing.org/t/import-image-and-apply-pattern/12229)

<div class="topic-metadata">

**Author:** [@alice](https://discourse.processing.org/u/alice)\
**Replies:** 22\
**Last updated:** [July 14, 2019, 6:28pm UTC](https://discourse.processing.org/t/import-image-and-apply-pattern/12229 "2019-07-14T18:28:07Z")

</div>

Hi, How can I import a black an white image and apply a patter like the image that I attached in this message? Hope someone can help, Thanks !

---

## [Help writing a visual code for deforming circle](https://discourse.processing.org/t/help-writing-a-visual-code-for-deforming-circle/12648)

<div class="topic-metadata">

**Author:** [@SoundPsychologist](https://discourse.processing.org/u/SoundPsychologist)\
**Replies:** 13\
**Last updated:** [July 14, 2019, 4:30pm UTC](https://discourse.processing.org/t/help-writing-a-visual-code-for-deforming-circle/12648 "2019-07-14T16:30:25Z")

</div>

Hey processing users! My name is Thomas Ryan, im a live electronic musician, and im trying to program a music visualizer with processing. I have a decent amount of programming history, and have used processing to create…

---

## [Images with white boxes](https://discourse.processing.org/t/images-with-white-boxes/12702)

<div class="topic-metadata">

**Author:** [@FlyingApple](https://discourse.processing.org/u/FlyingApple)\
**Replies:** 4\
**Last updated:** [July 14, 2019, 10:32am UTC](https://discourse.processing.org/t/images-with-white-boxes/12702 "2019-07-14T10:32:28Z")

</div>

I am not sure if this is the right place to put this since it isn’t strictly coding based and i believe it is the program i am using (paint) for my images. Is there a way for sprites/images to not have white boxes aroun…

---

## [Really embarrassing questions!](https://discourse.processing.org/t/really-embarrassing-questions/12676)

<div class="topic-metadata">

**Author:** [@femke.blanco](https://discourse.processing.org/u/femke.blanco)\
**Replies:** 4\
**Last updated:** [July 14, 2019, 9:39am UTC](https://discourse.processing.org/t/really-embarrassing-questions/12676 "2019-07-14T09:39:15Z")

</div>

setup(), draw() and ellipse(), for example, are all built-in functions with void return. Why do I need to write “void” before setup() and draw(), but not before ellipse()? Not writing “void” before setup() and draw() r…

---

## [Inversely ellipses](https://discourse.processing.org/t/inversely-ellipses/12621)

<div class="topic-metadata">

**Author:** [@maakin](https://discourse.processing.org/u/maakin)\
**Replies:** 51\
**Last updated:** [July 14, 2019, 1:18am UTC](https://discourse.processing.org/t/inversely-ellipses/12621 "2019-07-14T01:18:54Z")

</div>

How to draw ellipses like this ( using for or while)

---

## [Problem connection Processing Arduino](https://discourse.processing.org/t/problem-connection-processing-arduino/12700)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 1\
**Last updated:** [July 13, 2019, 2:11pm UTC](https://discourse.processing.org/t/problem-connection-processing-arduino/12700 "2019-07-13T14:11:10Z")

</div>

Hi, When I start my program Processing to read data from Arduino, I see this error message \[0\] "/dev/cu.BeatsPill-SPPDev-1" \[1\] "/dev/cu.Bluetooth-Incoming-Port" \[2\] "/dev/cu.JBLFlip3-SPPDev" \[3\] "/dev/cu.UEBOOM-LWACP"…

---

## [Xiaolin Wu line algorithm for antialiasing](https://discourse.processing.org/t/xiaolin-wu-line-algorithm-for-antialiasing/12670)

<div class="topic-metadata">

**Author:** [@Stanlepunk](https://discourse.processing.org/u/Stanlepunk)\
**Replies:** 1\
**Last updated:** [July 13, 2019, 8:41am UTC](https://discourse.processing.org/t/xiaolin-wu-line-algorithm-for-antialiasing/12670 "2019-07-13T08:41:56Z")

</div>

On my hard way to implement antialiasing, I found this algorithm from Xaolin Wu, but the problem is on the alpha value gestion, it’s very weird. when I put the value alpha it’s transparency and when I multiply by the alp…

---

## [Can a class method return the current instance of its class?](https://discourse.processing.org/t/can-a-class-method-return-the-current-instance-of-its-class/12690)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 2\
**Last updated:** [July 12, 2019, 9:25pm UTC](https://discourse.processing.org/t/can-a-class-method-return-the-current-instance-of-its-class/12690 "2019-07-12T21:25:15Z")

</div>

Like return this; or return new ClassName(this) or something like that… Of course I tried and it didn’t work, so I thought I’d ask if it’s possible. I’ve made a new Line class, and the following seems to work, I was ju…

---

## [Passing multiple values between methods/classes](https://discourse.processing.org/t/passing-multiple-values-between-methods-classes/12605)

<div class="topic-metadata">

**Author:** [@cardori](https://discourse.processing.org/u/cardori)\
**Replies:** 1\
**Last updated:** [July 12, 2019, 7:59pm UTC](https://discourse.processing.org/t/passing-multiple-values-between-methods-classes/12605 "2019-07-12T19:59:21Z")

</div>

Hi. I’m creating an Hexagonal grid I have the points for creating it already(edges). The method cell calculates the creation of one hexagon and then it is passed to the method grid where the grid is created. The proble…

---

## [PImage scale when mouse is over](https://discourse.processing.org/t/pimage-scale-when-mouse-is-over/12641)

<div class="topic-metadata">

**Author:** [@edor97](https://discourse.processing.org/u/edor97)\
**Replies:** 4\
**Last updated:** [July 12, 2019, 7:46pm UTC](https://discourse.processing.org/t/pimage-scale-when-mouse-is-over/12641 "2019-07-12T19:46:20Z")

</div>

Hello, is it possible to scale a PImage by 10% when the mouse is over it and return to its normal size after the mouse is clicked? void settings() { size(1080, 720, P2D); smooth(); } void setup() { //Sfondo U…

---

## [Change image color](https://discourse.processing.org/t/change-image-color/12685)

<div class="topic-metadata">

**Author:** [@The\_nish](https://discourse.processing.org/u/The_nish)\
**Replies:** 5\
**Last updated:** [July 12, 2019, 4:56pm UTC](https://discourse.processing.org/t/change-image-color/12685 "2019-07-12T16:56:01Z")

</div>

i have 2 images a and b which is listed below. my both images are in rgb format . i want to change color of “b” image like “a” image by processing. tell me how it is possible. …

---

## [Led System Turn on/off](https://discourse.processing.org/t/led-system-turn-on-off/12662)

<div class="topic-metadata">

**Author:** [@Murphy](https://discourse.processing.org/u/Murphy)\
**Replies:** 2\
**Last updated:** [July 12, 2019, 11:59am UTC](https://discourse.processing.org/t/led-system-turn-on-off/12662 "2019-07-12T11:59:32Z")

</div>

Hey everyone, I am new. I want to do led system. I do all. I need just something. Firstly, I want to put 2 button on Processing. One button work to start light. One button work to stop light. I tried 10 time but I can’t…

---

## [Change fps when the button is pressed](https://discourse.processing.org/t/change-fps-when-the-button-is-pressed/12678)

<div class="topic-metadata">

**Author:** [@GuilhermeVolker](https://discourse.processing.org/u/GuilhermeVolker)\
**Replies:** 4\
**Last updated:** [July 12, 2019, 11:54am UTC](https://discourse.processing.org/t/change-fps-when-the-button-is-pressed/12678 "2019-07-12T11:54:41Z")

</div>

I need to be able to change the fps while the program is running, is it possible? I think the code is right but it doesn’t work :face\_with\_raised\_eyebrow: import g4p\_controls.\*; GImageToggleButton btn1,btn2,btn4,btn8;…

---

## [A Bunch of Questions About Variables!](https://discourse.processing.org/t/a-bunch-of-questions-about-variables/12656)

<div class="topic-metadata">

**Author:** [@MoobleFloob](https://discourse.processing.org/u/MoobleFloob)\
**Replies:** 4\
**Last updated:** [July 11, 2019, 10:55am UTC](https://discourse.processing.org/t/a-bunch-of-questions-about-variables/12656 "2019-07-11T10:55:58Z")

</div>

This post is made in the hopes that some answers might be found for the following questions related to variables as a concept and in practice. This is by no means an exhaustive list of questions, but hopefully they gener…

---

## [Reaction Diffusion : add an image](https://discourse.processing.org/t/reaction-diffusion-add-an-image/12552)

<div class="topic-metadata">

**Author:** [@alice](https://discourse.processing.org/u/alice)\
**Replies:** 4\
**Last updated:** [July 11, 2019, 7:52pm UTC](https://discourse.processing.org/t/reaction-diffusion-add-an-image/12552 "2019-07-11T19:52:21Z")

</div>

Hi Everybody, I hope someone can help : I have the reaction diffusion code based on points, what I’m trying to do is to add a black and white image inside the code and say in the condition loop that I want to apply t…

---

## [All these circles make a square?](https://discourse.processing.org/t/all-these-circles-make-a-square/12674)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 3\
**Last updated:** [July 11, 2019, 6:53pm UTC](https://discourse.processing.org/t/all-these-circles-make-a-square/12674 "2019-07-11T18:53:38Z")

</div>

I’m probably missing something real basic, but I can’t seem to understand why all my circles seem to make squares. void draw(){ fill(255); text(this.electrons,this.x+30,this.y); fill(0); ellipseMode(CENT…

---

## [Antialiasing FXAA](https://discourse.processing.org/t/antialiasing-fxaa/12631)

<div class="topic-metadata">

**Author:** [@Stanlepunk](https://discourse.processing.org/u/Stanlepunk)\
**Replies:** 1\
**Last updated:** [July 11, 2019, 5:11pm UTC](https://discourse.processing.org/t/antialiasing-fxaa/12631 "2019-07-11T17:11:47Z")

</div>

I try to code an antialiasing FXAA, but the result is very far of my dream ; I’ve a feeling to code the right thing, like I found in different post…but that’s dont work and give a me a very glitch result. The problem to…

---

## [Fonts not loading](https://discourse.processing.org/t/fonts-not-loading/12663)

<div class="topic-metadata">

**Author:** [@edor97](https://discourse.processing.org/u/edor97)\
**Replies:** 5\
**Last updated:** [July 11, 2019, 1:20pm UTC](https://discourse.processing.org/t/fonts-not-loading/12663 "2019-07-11T13:20:05Z")

</div>

Hello, I don’t know why but I can’t use fonts in my project: I keep creating and loading fonts from processing but it gives me the same error every time: "GeorgiaPro-Light-48.vlw0" is not available, so another font will…

---

## [SOUND ILLUSTRATION of the different motives of five engines driven with Arduino](https://discourse.processing.org/t/sound-illustration-of-the-different-motives-of-five-engines-driven-with-arduino/12559)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 5\
**Last updated:** [July 11, 2019, 12:32pm UTC](https://discourse.processing.org/t/sound-illustration-of-the-different-motives-of-five-engines-driven-with-arduino/12559 "2019-07-11T12:32:36Z")

</div>

I try to illustrate with sounds the general movement of my artistic installation. Maybe there is easier way to do it with Max/msp but if someone can help with Processing, let’s try! For the moment, I can just play one s…

---

## [Sprite library in a game](https://discourse.processing.org/t/sprite-library-in-a-game/12516)

<div class="topic-metadata">

**Author:** [@Glowtube](https://discourse.processing.org/u/Glowtube)\
**Replies:** 22\
**Last updated:** [July 10, 2019, 11:27am UTC](https://discourse.processing.org/t/sprite-library-in-a-game/12516 "2019-07-10T11:27:16Z")

</div>

Hello. I am currently working on a “little” game which will look something like Civ. First I drew all hexagons by myself but I found some nice sprites so I wanted to use the sprite library. But somehow it is unplayable …

---

## [Make a camera who follow a player](https://discourse.processing.org/t/make-a-camera-who-follow-a-player/12471)

<div class="topic-metadata">

**Author:** [@vincentstrebelle](https://discourse.processing.org/u/vincentstrebelle)\
**Replies:** 3\
**Last updated:** [July 10, 2019, 11:16am UTC](https://discourse.processing.org/t/make-a-camera-who-follow-a-player/12471 "2019-07-10T11:16:41Z")

</div>

Hi everyone, i want to make a camera who follow my player ( i allready make a topic about it but now it’s a bit different) so, i need a camera who follow the player but not linked to the screen so if i change the size o…

---

## [How to run processing sketch automatic when my PC is Shuting Up](https://discourse.processing.org/t/how-to-run-processing-sketch-automatic-when-my-pc-is-shuting-up/12640)

<div class="topic-metadata">

**Author:** [@The\_nish](https://discourse.processing.org/u/The_nish)\
**Replies:** 2\
**Last updated:** [July 10, 2019, 10:50am UTC](https://discourse.processing.org/t/how-to-run-processing-sketch-automatic-when-my-pc-is-shuting-up/12640 "2019-07-10T10:50:09Z")

</div>

i want to run my processing sketch automatic when i open my PC. how it is possible and what method should i use. please share Your answer which will very help full for me. or can i use batch file for this . if this po…

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

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