# Latest

**URL:** https://discourse.processing.org/latest.md?page=612

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

**Page:** 613

---

## [Arduino to Processing // Reading data from sensors to control video output](https://discourse.processing.org/t/arduino-to-processing-reading-data-from-sensors-to-control-video-output/1223)

<div class="topic-metadata">

**Author:** [@Lula](https://discourse.processing.org/u/Lula)\
**Replies:** 4\
**Last updated:** [June 25, 2018, 11:52am UTC](https://discourse.processing.org/t/arduino-to-processing-reading-data-from-sensors-to-control-video-output/1223 "2018-06-25T11:52:49Z")

</div>

Hi there! :slight\_smile: I’m very new to Processing and am currently working on an interactive, Uni project and was wondering if anyone could please help me. : ) Usng FSR and Piezo sensors, I would like to transfer dat…

---

## [Use a class declared as .pde in a .java file](https://discourse.processing.org/t/use-a-class-declared-as-pde-in-a-java-file/1237)

<div class="topic-metadata">

**Author:** [@Manuel](https://discourse.processing.org/u/Manuel)\
**Replies:** 3\
**Last updated:** [June 25, 2018, 11:46am UTC](https://discourse.processing.org/t/use-a-class-declared-as-pde-in-a-java-file/1237 "2018-06-25T11:46:20Z")

</div>

Hi, I’m using a .java file to contain an enum with extended variables an behaviours, but I want it to contain an object of one of the classes contained in a .pde file, however the compiler says that that class does not e…

---

## [PGraphics and PApplets](https://discourse.processing.org/t/pgraphics-and-papplets/1227)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 6\
**Last updated:** [June 25, 2018, 10:16am UTC](https://discourse.processing.org/t/pgraphics-and-papplets/1227 "2018-06-25T10:16:25Z")

</div>

Hello. Im trying to do a preview output of main buffer Graphic in a extra pApplet. Here my code: layerWindow p; LayerManager layer; void settings(){ size(1280, 720, P3D); } void setup(){ p = new layerWindow(); l…

---

## [Try catch with serial](https://discourse.processing.org/t/try-catch-with-serial/1148)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 5\
**Last updated:** [June 25, 2018, 9:49am UTC](https://discourse.processing.org/t/try-catch-with-serial/1148 "2018-06-25T09:49:04Z")

</div>

Hi, I’m using an arduino that I plugged after my program is running. I would like, if there is a problem that my app doesn’t crash. I think to use this : try { Serial serial = new Serial(this, "/dev/ttyACM0", 1920…

---

## [How to export a sketch as .exe](https://discourse.processing.org/t/how-to-export-a-sketch-as-exe/1233)

<div class="topic-metadata">

**Author:** [@prasad](https://discourse.processing.org/u/prasad)\
**Replies:** 4\
**Last updated:** [June 25, 2018, 8:47am UTC](https://discourse.processing.org/t/how-to-export-a-sketch-as-exe/1233 "2018-06-25T08:47:49Z")

</div>

i need to create a .exe of my project to run independently of processing environment. How do i do it.

---

## [Processing to Arduino to Neopixels communication problems](https://discourse.processing.org/t/processing-to-arduino-to-neopixels-communication-problems/1210)

<div class="topic-metadata">

**Author:** [@mhol](https://discourse.processing.org/u/mhol)\
**Replies:** 5\
**Last updated:** [June 25, 2018, 3:34am UTC](https://discourse.processing.org/t/processing-to-arduino-to-neopixels-communication-problems/1210 "2018-06-25T03:34:24Z")

</div>

Hello! I’m trying change the intensity of my Neopixels with a string of values from processing. Setup is pretty simple - 15 Neopixels wired to Arduino Uno. Signal on pin 6. I’m sending a string of 16 characters from pr…

---

## [Point "over" object (inside to push ans pop matrix)](https://discourse.processing.org/t/point-over-object-inside-to-push-ans-pop-matrix/1224)

<div class="topic-metadata">

**Author:** [@ferrari](https://discourse.processing.org/u/ferrari)\
**Replies:** 3\
**Last updated:** [June 25, 2018, 3:26am UTC](https://discourse.processing.org/t/point-over-object-inside-to-push-ans-pop-matrix/1224 "2018-06-25T03:26:12Z")

</div>

Hello, I need to detect when a point is over an object (mouse, for example), but this object was previously moved, rotated and scaled inside to pushMatrix() and popMatrix() Any idea or suggestion is welcome and appreci…

---

## [P5.js not displayed in my web site](https://discourse.processing.org/t/p5-js-not-displayed-in-my-web-site/1204)

<div class="topic-metadata">

**Author:** [@eli94](https://discourse.processing.org/u/eli94)\
**Replies:** 4\
**Last updated:** [June 24, 2018, 10:27pm UTC](https://discourse.processing.org/t/p5-js-not-displayed-in-my-web-site/1204 "2018-06-24T22:27:32Z")

</div>

Hi everybody, my professor chosen a p5.js from internet to do exercises with p5.js. This p5.js sketch is not displayed in my website but it is displayed and work very well separate from the website. I want to be more cl…

---

## [How to add groupCanvas to accordion in controlP5?](https://discourse.processing.org/t/how-to-add-groupcanvas-to-accordion-in-controlp5/1169)

<div class="topic-metadata">

**Author:** [@newton45](https://discourse.processing.org/u/newton45)\
**Replies:** 0\
**Last updated:** [June 22, 2018, 1:50pm UTC](https://discourse.processing.org/t/how-to-add-groupcanvas-to-accordion-in-controlp5/1169 "2018-06-22T13:50:35Z")

</div>

I want to create canvas and draw something in the group, and I also want to make these group to shrink and arrange like “Accordion” class. But these too seems can’t work together. Is there any other way to make it work? …

---

## [Calculating the distance of a vertex from the center of a "Perlin Noisy" sphere](https://discourse.processing.org/t/calculating-the-distance-of-a-vertex-from-the-center-of-a-perlin-noisy-sphere/1157)

<div class="topic-metadata">

**Author:** [@UtrimiqueTrebus12](https://discourse.processing.org/u/UtrimiqueTrebus12)\
**Replies:** 2\
**Last updated:** [June 24, 2018, 6:45pm UTC](https://discourse.processing.org/t/calculating-the-distance-of-a-vertex-from-the-center-of-a-perlin-noisy-sphere/1157 "2018-06-24T18:45:48Z")

</div>

I have some weird problems. I would need some help. import peasy.\*; int resolution = 100; float r = 500; float lat,lon; float xoff,yoff; PVector\[\]\[\] globularLandscape; float rangeMin = 0; float rangeMax = 40; PeasyCam …

---

## [Computational Arts OPEN DAY @ Goldsmiths](https://discourse.processing.org/t/computational-arts-open-day-goldsmiths/1212)

<div class="topic-metadata">

**Author:** [@marinero](https://discourse.processing.org/u/marinero)\
**Replies:** 0\
**Last updated:** [June 24, 2018, 4:34pm UTC](https://discourse.processing.org/t/computational-arts-open-day-goldsmiths/1212 "2018-06-24T16:34:48Z")

</div>

Hi everyone, we’re holding a computational arts open day next Wednesday the 27th of June from 6:30-7:30pm here at Goldsmiths, University of London. Last time we held it it was great fun!!! If you come: I’ll show you …

---

## [Trying to do fractal tree](https://discourse.processing.org/t/trying-to-do-fractal-tree/1207)

<div class="topic-metadata">

**Author:** [@Nanonnien](https://discourse.processing.org/u/Nanonnien)\
**Replies:** 0\
**Last updated:** [June 24, 2018, 4:18pm UTC](https://discourse.processing.org/t/trying-to-do-fractal-tree/1207 "2018-06-24T16:18:05Z")

</div>

Good morning, I started watching videos from The coding train channel and I’m trying to replicate his fractal tree. But in a slightly different way: Sketch.js var tree; var width\_canvas = 640; var height\_canvas = 400;…

---

## [Cp5 Knob: how to use an image?](https://discourse.processing.org/t/cp5-knob-how-to-use-an-image/1143)

<div class="topic-metadata">

**Author:** [@koendepoorter](https://discourse.processing.org/u/koendepoorter)\
**Replies:** 3\
**Last updated:** [June 24, 2018, 1:48pm UTC](https://discourse.processing.org/t/cp5-knob-how-to-use-an-image/1143 "2018-06-24T13:48:21Z")

</div>

hey everybody, I have a problem i can’t seem to solve: I want to use an image instead of the standard Knob-layout. It works fine with buttons, toggles, … but not with knobs? Anyone got any idea what I’m doing wrong? …

---

## [How to make array values MOVE UP](https://discourse.processing.org/t/how-to-make-array-values-move-up/1184)

<div class="topic-metadata">

**Author:** [@WindJammer](https://discourse.processing.org/u/WindJammer)\
**Replies:** 8\
**Last updated:** [June 24, 2018, 10:19am UTC](https://discourse.processing.org/t/how-to-make-array-values-move-up/1184 "2018-06-24T10:19:38Z")

</div>

How do i make values in an array move up, everytime the array receives a new value? I want to have the newest incoming variable always to be in the 1st array slot. The rest should move up to the next slot. Example: \[…

---

## [How to get a folder fileList?](https://discourse.processing.org/t/how-to-get-a-folder-filelist/913)

<div class="topic-metadata">

**Author:** [@erkosone](https://discourse.processing.org/u/erkosone)\
**Replies:** 6\
**Last updated:** [June 24, 2018, 5:16am UTC](https://discourse.processing.org/t/how-to-get-a-folder-filelist/913 "2018-06-24T05:16:38Z")

</div>

Hi! I try to get a folder filelist for load images in batch with function… but don´t work… Any suggestion? function getDirectories(path) { var fs = require('fs'); var files = fs.readdirSync(path); console.…

---

## [Help with for()](https://discourse.processing.org/t/help-with-for/1194)

<div class="topic-metadata">

**Author:** [@jferreira](https://discourse.processing.org/u/jferreira)\
**Replies:** 2\
**Last updated:** [June 24, 2018, 4:57am UTC](https://discourse.processing.org/t/help-with-for/1194 "2018-06-24T04:57:14Z")

</div>

Hello! I am working in a minigame based in StarCastle(Vectrex), and i am trying to draw the shields: void drawLines(){ for(ArrayList\<PVector\> line : this.shield){ switch(this.shield.indexOf(line)){ c…

---

## [Color Shuffle with hex color codes](https://discourse.processing.org/t/color-shuffle-with-hex-color-codes/1191)

<div class="topic-metadata">

**Author:** [@deanomite](https://discourse.processing.org/u/deanomite)\
**Replies:** 11\
**Last updated:** [June 24, 2018, 12:26am UTC](https://discourse.processing.org/t/color-shuffle-with-hex-color-codes/1191 "2018-06-24T00:26:43Z")

</div>

Hi there, Am trying to get colors in an array to shuffle, but having some trouble understanding how to adapt this code: I want to create an array with the following hex color codes and have them shuffle whenever there’…

---

## [Help with loops](https://discourse.processing.org/t/help-with-loops/1190)

<div class="topic-metadata">

**Author:** [@NNY](https://discourse.processing.org/u/NNY)\
**Replies:** 7\
**Last updated:** [June 23, 2018, 11:59pm UTC](https://discourse.processing.org/t/help-with-loops/1190 "2018-06-23T23:59:21Z")

</div>

Working on a homework assignment and I’m absolutely horrible with programming. I need to run a program that asks a riddle and lists some words. the Answer to the riddle is the first letter of each word. Once the user inp…

---

## [Alternative for Android Studio](https://discourse.processing.org/t/alternative-for-android-studio/1187)

<div class="topic-metadata">

**Author:** [@noel](https://discourse.processing.org/u/noel)\
**Replies:** 0\
**Last updated:** [June 23, 2018, 7:24pm UTC](https://discourse.processing.org/t/alternative-for-android-studio/1187 "2018-06-23T19:24:41Z")

</div>

If your ordinary home computer, like mine, can’t handle Android Studio (it takes half an hour to run some code!), I recommend to code on your device with the AIDE app. It has courses, to begin with, but you can also make…

---

## [Camera: How top down view](https://discourse.processing.org/t/camera-how-top-down-view/1178)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 5\
**Last updated:** [June 23, 2018, 5:54pm UTC](https://discourse.processing.org/t/camera-how-top-down-view/1178 "2018-06-23T17:54:17Z")

</div>

Hello, it is well known that camera(width/2.0, height/2.0, (height/2.0) / tan(PI\*30.0 / 180.0), width/2.0, height/2.0, 0, 0, 1, 0); delivers the normal view. I am trying to implement a top down view: My best guess…

---

## [Passing mat4 array to shader uniform](https://discourse.processing.org/t/passing-mat4-array-to-shader-uniform/1177)

<div class="topic-metadata">

**Author:** [@kosowski](https://discourse.processing.org/u/kosowski)\
**Replies:** 1\
**Last updated:** [June 23, 2018, 4:46pm UTC](https://discourse.processing.org/t/passing-mat4-array-to-shader-uniform/1177 "2018-06-23T16:46:51Z")

</div>

Hi all! I want to pass an array of mat4 transformation matrices to a uniform in a PShader object, defined like this: uniform mat4 jointTransforms\[MAX\_JOINTS\]; I cannot see this option neither in the reference nor in …

---

## [Compositing of two blurred shapes drawn into PGraphics](https://discourse.processing.org/t/compositing-of-two-blurred-shapes-drawn-into-pgraphics/1174)

<div class="topic-metadata">

**Author:** [@stoph](https://discourse.processing.org/u/stoph)\
**Replies:** 8\
**Last updated:** [June 23, 2018, 1:27pm UTC](https://discourse.processing.org/t/compositing-of-two-blurred-shapes-drawn-into-pgraphics/1174 "2018-06-23T13:27:57Z")

</div>

Hello, everyone! What I want to achieve is having two differently colored blurred shapes in one PGraphics. The problem is that when copying the latter shape/image into the first one the semi-transparent pixels (blurred …

---

## [\[ G4P \] changing Text of a Textfield in its eventHandler method](https://discourse.processing.org/t/g4p-changing-text-of-a-textfield-in-its-eventhandler-method/1170)

<div class="topic-metadata">

**Author:** [@AntonC](https://discourse.processing.org/u/AntonC)\
**Replies:** 1\
**Last updated:** [June 23, 2018, 11:51am UTC](https://discourse.processing.org/t/g4p-changing-text-of-a-textfield-in-its-eventhandler-method/1170 "2018-06-23T11:51:16Z")

</div>

I tried the code below. When the text length is greater than 4, I’m getting an error. For some reason, I’m not allowed to change the text, while being inside that method. It calls the method splendidly, and the error i…

---

## [Oh No, APwidgets again](https://discourse.processing.org/t/oh-no-apwidgets-again/1064)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 3\
**Last updated:** [June 23, 2018, 8:03am UTC](https://discourse.processing.org/t/oh-no-apwidgets-again/1064 "2018-06-23T08:03:51Z")

</div>

I am trying to add buttons(APwidgets) and stuff to my app that is built on processing for android. I got it to upload to my tablet using the android mode processing3, but it crashed. I exported it so I could tweak it i…

---

## [Line & Intersection](https://discourse.processing.org/t/line-intersection/1118)

<div class="topic-metadata">

**Author:** [@rioma7](https://discourse.processing.org/u/rioma7)\
**Replies:** 2\
**Last updated:** [June 23, 2018, 2:35am UTC](https://discourse.processing.org/t/line-intersection/1118 "2018-06-23T02:35:32Z")

</div>

Hello people, I would like to draw lines from side to side of the canvas \[random points\] but I don’t want that it draws if the drawn line intersect a circle, which is in the middle. My code is this void setup(){ back…

---

## [Retaining transparency with png images](https://discourse.processing.org/t/retaining-transparency-with-png-images/1159)

<div class="topic-metadata">

**Author:** [@tutantontut](https://discourse.processing.org/u/tutantontut)\
**Replies:** 11\
**Last updated:** [June 22, 2018, 9:03pm UTC](https://discourse.processing.org/t/retaining-transparency-with-png-images/1159 "2018-06-22T21:03:16Z")

</div>

Hello everyone! I’ve been learning Processing for a while now, and have struck a brick wall: What I want to do; Load an image of a circular object (like an eye or a bubble etc.) and “retain it’s transparency”. I heard …

---

## [P5js keywords/functions Syntax highlighting](https://discourse.processing.org/t/p5js-keywords-functions-syntax-highlighting/1160)

<div class="topic-metadata">

**Author:** [@CrispyCabot](https://discourse.processing.org/u/CrispyCabot)\
**Replies:** 13\
**Last updated:** [June 22, 2018, 8:18pm UTC](https://discourse.processing.org/t/p5js-keywords-functions-syntax-highlighting/1160 "2018-06-22T20:18:24Z")

</div>

So I have been using p5js in the desktop editor, but it is starting to annoy me that a lot of the p5js keywords and functions show up as just regular text. Is there any way I can manually add these keywords or is there a…

---

## [How to create p5 image from local user file?](https://discourse.processing.org/t/how-to-create-p5-image-from-local-user-file/1165)

<div class="topic-metadata">

**Author:** [@colin](https://discourse.processing.org/u/colin)\
**Replies:** 1\
**Last updated:** [June 22, 2018, 5:07pm UTC](https://discourse.processing.org/t/how-to-create-p5-image-from-local-user-file/1165 "2018-06-22T17:07:16Z")

</div>

Hi there, I’m working on a drag and drop p5 sketch, and it isn’t working so well. So far I managed to make the drag and drop function, but I cant’ manage to transform the image it get into p5.image objet. Anyone knows…

---

## [Displaying Random Images on a Certain XY](https://discourse.processing.org/t/displaying-random-images-on-a-certain-xy/922)

<div class="topic-metadata">

**Author:** [@janberkjk](https://discourse.processing.org/u/janberkjk)\
**Replies:** 12\
**Last updated:** [June 22, 2018, 11:35am UTC](https://discourse.processing.org/t/displaying-random-images-on-a-certain-xy/922 "2018-06-22T11:35:30Z")

</div>

Hi mankind, I need help. I am trying to make something like a slideshow. I need to put an image on a certain xy coordinate when i click to mouse image will randomly change, it will be hundreds of images, and it will b…

---

## [Help needed (Processing)](https://discourse.processing.org/t/help-needed-processing/1134)

<div class="topic-metadata">

**Author:** [@adlertag](https://discourse.processing.org/u/adlertag)\
**Replies:** 1\
**Last updated:** [June 21, 2018, 12:00am UTC](https://discourse.processing.org/t/help-needed-processing/1134 "2018-06-21T00:00:35Z")

</div>

What is wrong with this Sketck? ////////////////////////////////////////////////////// Ptica\[\] p = new Ptica\[1200\]; int N = 100; void setup() { size(1280, 900); for(int i=0; i \< N; i++) { p\[i\] = new Ptica(random(w…

[Previous page](https://discourse.processing.org/latest.md?page=611)

[Next page](https://discourse.processing.org/latest.md?page=613)
