# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=557

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

**Page:** 558

---

## [Kinect v2 Color Tracking Issue : ArrayIndexOutOfBoundsException](https://discourse.processing.org/t/kinect-v2-color-tracking-issue-arrayindexoutofboundsexception/5636)

<div class="topic-metadata">

**Author:** [@flemingo](https://discourse.processing.org/u/flemingo)\
**Replies:** 4\
**Last updated:** [November 18, 2018, 12:21pm UTC](https://discourse.processing.org/t/kinect-v2-color-tracking-issue-arrayindexoutofboundsexception/5636 "2018-11-18T12:21:51Z")

</div>

Hi everyone! I’m currently working on a project to detect and track a color in the kinect image. However when my program gets to the line: color currentColor = img.pixels \[loc\]; It crashes and gives me the following …

---

## [Cache buffer keeps expanding](https://discourse.processing.org/t/cache-buffer-keeps-expanding/5628)

<div class="topic-metadata">

**Author:** [@Hans](https://discourse.processing.org/u/Hans)\
**Replies:** 7\
**Last updated:** [November 18, 2018, 6:04pm UTC](https://discourse.processing.org/t/cache-buffer-keeps-expanding/5628 "2018-11-18T18:04:07Z")

</div>

After upgrading to Android mode 4.0.3. with Processing 3.4 I experience problems with a growing size of the cache buffer on my device. Tried different devices and ways of installing, directly on the device and a complete…

---

## [How to calculate velocity from Touches array](https://discourse.processing.org/t/how-to-calculate-velocity-from-touches-array/5552)

<div class="topic-metadata">

**Author:** [@brunoruchiga](https://discourse.processing.org/u/brunoruchiga)\
**Replies:** 5\
**Last updated:** [November 18, 2018, 6:28pm UTC](https://discourse.processing.org/t/how-to-calculate-velocity-from-touches-array/5552 "2018-11-18T18:28:48Z")

</div>

I am trying to use Touches array on Processing for Android to calculate an array with the velocity of multiple touches. I know I can use touches\[i\].x and touches\[i\].y to get the current position of multiple touches. The…

---

## [selectOutput feature](https://discourse.processing.org/t/selectoutput-feature/5606)

<div class="topic-metadata">

**Author:** [@FerrariLuigi](https://discourse.processing.org/u/FerrariLuigi)\
**Replies:** 6\
**Last updated:** [November 18, 2018, 6:16pm UTC](https://discourse.processing.org/t/selectoutput-feature/5606 "2018-11-18T18:16:04Z")

</div>

Dear all, I developed a very simple sketch in which I use the selectOutput function. It works but, as soon as the select output file window is open, the sketch graphic disappear and the desktop is shown. Did you have …

---

## [getActivity() and getContext() functions](https://discourse.processing.org/t/getactivity-and-getcontext-functions/5662)

<div class="topic-metadata">

**Author:** [@InSat](https://discourse.processing.org/u/InSat)\
**Replies:** 1\
**Last updated:** [November 18, 2018, 5:59pm UTC](https://discourse.processing.org/t/getactivity-and-getcontext-functions/5662 "2018-11-18T17:59:09Z")

</div>

Who can help me? Where can I find more informations about the getActivity() and getContext() functions ? I read this, but it’s really short https://android.processing.org/reference/environment/activity.html I read in …

---

## [Ohm's law exercice](https://discourse.processing.org/t/ohms-law-exercice/5660)

<div class="topic-metadata">

**Author:** [@saotome](https://discourse.processing.org/u/saotome)\
**Replies:** 2\
**Last updated:** [November 18, 2018, 4:47pm UTC](https://discourse.processing.org/t/ohms-law-exercice/5660 "2018-11-18T16:47:10Z")

</div>

Good morning. Thanks to jb4x I been able to draw a simple electric circuit boolean isOpen; float Vpila=10.0; float R1=100.00; float Rv=500.00; float DR=5.00; float color\_alpha=0; float I=0.00; void setup() { size(600…

---

## [Basic computer course project University](https://discourse.processing.org/t/basic-computer-course-project-university/5526)

<div class="topic-metadata">

**Author:** [@SeanTYH](https://discourse.processing.org/u/SeanTYH)\
**Replies:** 30\
**Last updated:** [November 18, 2018, 1:34pm UTC](https://discourse.processing.org/t/basic-computer-course-project-university/5526 "2018-11-18T13:34:14Z")

</div>

i was doing an assignment for my basic level computer course. what i wanted was to draw pac man ghosts in different colors (3 color choices) and 3 pac man ghosts at time = 3 which will slowly increase as the ghosts are k…

---

## [How to Exporting signed package. MORE INFO](https://discourse.processing.org/t/how-to-exporting-signed-package-more-info/5630)

<div class="topic-metadata">

**Author:** [@imaginativeCODE](https://discourse.processing.org/u/imaginativeCODE)\
**Replies:** 2\
**Last updated:** [November 18, 2018, 1:24pm UTC](https://discourse.processing.org/t/how-to-exporting-signed-package-more-info/5630 "2018-11-18T13:24:36Z")

</div>

Here’s how to resolve these errors that i got when trying to “export signed package”. Keep in mind that things might change in the future. The way to resolve this is do like it says go into “AndroidManifest.xml”, fil…

---

## [What do you guys think of this Stack Exchange proposal?](https://discourse.processing.org/t/what-do-you-guys-think-of-this-stack-exchange-proposal/5664)

<div class="topic-metadata">

**Author:** [@davidj](https://discourse.processing.org/u/davidj)\
**Replies:** 0\
**Last updated:** [November 18, 2018, 10:28am UTC](https://discourse.processing.org/t/what-do-you-guys-think-of-this-stack-exchange-proposal/5664 "2018-11-18T10:28:11Z")

</div>

Do you already use Stack Exchange (eg Stack Overflow?) Would you use a Stack Exchange dedicated to generative art? If not - what forums suit you better?

---

## [Path Separator error \[Android mode\]](https://discourse.processing.org/t/path-separator-error-android-mode/5620)

<div class="topic-metadata">

**Author:** [@manhnt](https://discourse.processing.org/u/manhnt)\
**Replies:** 1\
**Last updated:** [November 18, 2018, 9:54am UTC](https://discourse.processing.org/t/path-separator-error-android-mode/5620 "2018-11-18T09:54:44Z")

</div>

I’ve got some troubles with path in Android mode. In Java mode, I use: Table t = loadTable("data/Snake" + snakeNo + ".csv"); It works well. In Android mode, I add the following code: String path = dataPath("Snake" + s…

---

## [Can background of text editor be changed?](https://discourse.processing.org/t/can-background-of-text-editor-be-changed/5657)

<div class="topic-metadata">

**Author:** [@wsnicol](https://discourse.processing.org/u/wsnicol)\
**Replies:** 1\
**Last updated:** [November 18, 2018, 4:09am UTC](https://discourse.processing.org/t/can-background-of-text-editor-be-changed/5657 "2018-11-18T04:09:50Z")

</div>

Is it possible to change the white background in the text editor? To something easier on the eyes, if not actually a different color then maybe make the white not quite as glaring?:eyeglasses:

---

## [Rotate function with 4 arguments](https://discourse.processing.org/t/rotate-function-with-4-arguments/5652)

<div class="topic-metadata">

**Author:** [@moonspacedancer](https://discourse.processing.org/u/moonspacedancer)\
**Replies:** 2\
**Last updated:** [November 18, 2018, 1:54am UTC](https://discourse.processing.org/t/rotate-function-with-4-arguments/5652 "2018-11-18T01:54:07Z")

</div>

In my studying today, I have come across a rotate function with 4 arguments more than once, except can’t find any documentation on it. anyone know anything about this?

---

## [Java to Python: Incrementation within "if" statement](https://discourse.processing.org/t/java-to-python-incrementation-within-if-statement/5655)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 3\
**Last updated:** [November 18, 2018, 1:51am UTC](https://discourse.processing.org/t/java-to-python-incrementation-within-if-statement/5655 "2018-11-18T01:51:55Z")

</div>

Hi, I was just wondering how you would convert that snippet to Python ? for(int i=0; i\<space.length; i++){ int k=0; while(numCubes\<space\[i\]){ ... if((k++)\>100){ done = 1; I’m not…

---

## [Video Processing with a Rasperry Pi](https://discourse.processing.org/t/video-processing-with-a-rasperry-pi/5540)

<div class="topic-metadata">

**Author:** [@dimpap5555](https://discourse.processing.org/u/dimpap5555)\
**Replies:** 5\
**Last updated:** [November 17, 2018, 10:55pm UTC](https://discourse.processing.org/t/video-processing-with-a-rasperry-pi/5540 "2018-11-17T22:55:59Z")

</div>

Hello there. I have been working on a CV project with a raspberry pi for a Robotics Competition. I am not really experienced within the field of CV though (Working more on the electronics in general). So I am seeking you…

---

## [How to store last 20 mouse positions in an array?](https://discourse.processing.org/t/how-to-store-last-20-mouse-positions-in-an-array/5626)

<div class="topic-metadata">

**Author:** [@fmS3lect](https://discourse.processing.org/u/fmS3lect)\
**Replies:** 5\
**Last updated:** [November 17, 2018, 10:48pm UTC](https://discourse.processing.org/t/how-to-store-last-20-mouse-positions-in-an-array/5626 "2018-11-17T22:48:02Z")

</div>

Hey all together, i am Sebastian, i am very new to programming and i think i need some help :smiley: i wrote this code snippet to store the last 20 mouse positions but it only stores the same 20times… i cannot figure …

---

## [How to use Processing on 4k displays?](https://discourse.processing.org/t/how-to-use-processing-on-4k-displays/5550)

<div class="topic-metadata">

**Author:** [@codrutp](https://discourse.processing.org/u/codrutp)\
**Replies:** 10\
**Last updated:** [November 17, 2018, 10:08pm UTC](https://discourse.processing.org/t/how-to-use-processing-on-4k-displays/5550 "2018-11-17T22:08:07Z")

</div>

I am using Processing in WSL/Ubuntu with X410 server. It works, but the text and the menus are tiny, tiny, I can barely read. How can I adjust the menu and the text?

---

## [Ask google for gps by giving street adress?](https://discourse.processing.org/t/ask-google-for-gps-by-giving-street-adress/5585)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 6\
**Last updated:** [November 17, 2018, 7:41pm UTC](https://discourse.processing.org/t/ask-google-for-gps-by-giving-street-adress/5585 "2018-11-17T19:41:45Z")

</div>

How can I Ask google for gps by giving street adress? I got a bunch of Adresses and like to retrieve the gps data for the houses. Adresses are from germany like street, house number, zip code, city. Thanks a ton! Chr…

---

## [Using the "matrix" controler from the ControlP5 library](https://discourse.processing.org/t/using-the-matrix-controler-from-the-controlp5-library/5572)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 2\
**Last updated:** [November 17, 2018, 3:38pm UTC](https://discourse.processing.org/t/using-the-matrix-controler-from-the-controlp5-library/5572 "2018-11-17T15:38:52Z")

</div>

Hi, Does anyone know how to remove the “moving line” (don’t know how to call it) embeded in the matrix controller from the ControlP5 library ? By default the matrix is displayed as a (music) sequencer but I’d like to u…

---

## [Processing will not start](https://discourse.processing.org/t/processing-will-not-start/5623)

<div class="topic-metadata">

**Author:** [@dds](https://discourse.processing.org/u/dds)\
**Replies:** 0\
**Last updated:** [November 17, 2018, 12:54pm UTC](https://discourse.processing.org/t/processing-will-not-start/5623 "2018-11-17T12:54:32Z")

</div>

Description When I double-click on processing.exe, the logo window of Processing shows up for a couple of seconds and then it disappears. My Environment Processing version: 3.4 Operating System and OS version: Windows …

---

## [Rotate image implementation](https://discourse.processing.org/t/rotate-image-implementation/5615)

<div class="topic-metadata">

**Author:** [@molo32](https://discourse.processing.org/u/molo32)\
**Replies:** 2\
**Last updated:** [November 17, 2018, 11:17am UTC](https://discourse.processing.org/t/rotate-image-implementation/5615 "2018-11-17T11:17:32Z")

</div>

I’m implementing the matrix rotation from here My code works but the rotated image has holes, I guess it’s because of the rounding of the values of sin () and cos () How to fill the holes in the rotated image? …

---

## [How to make a switch in a circuit?](https://discourse.processing.org/t/how-to-make-a-switch-in-a-circuit/5603)

<div class="topic-metadata">

**Author:** [@saotome](https://discourse.processing.org/u/saotome)\
**Replies:** 5\
**Last updated:** [November 17, 2018, 11:07am UTC](https://discourse.processing.org/t/how-to-make-a-switch-in-a-circuit/5603 "2018-11-17T11:07:32Z")

</div>

Hello. I have this "circuit! void setup() { size(600, 600); } void draw() { ellipse (300, 150, 40, 40); line (280, 150, 120, 150); line (120, 150, 120, 220); line (120, 220, 120, 290); //closed circuit line (1…

---

## [Using FastNoise](https://discourse.processing.org/t/using-fastnoise/5587)

<div class="topic-metadata">

**Author:** [@drc](https://discourse.processing.org/u/drc)\
**Replies:** 4\
**Last updated:** [November 17, 2018, 10:28am UTC](https://discourse.processing.org/t/using-fastnoise/5587 "2018-11-17T10:28:13Z")

</div>

Hi, I’d like to use the FastNoise library. I drag&dropped the FastNoise.java to a new sketch, and with the following code: FastNoise myNoise; void setup() { myNoise.SetNoiseType(FastNoise.NoiseType.SimplexFractal); …

---

## [Programacion visual](https://discourse.processing.org/t/programacion-visual/5593)

<div class="topic-metadata">

**Author:** [@hokuto](https://discourse.processing.org/u/hokuto)\
**Replies:** 2\
**Last updated:** [November 17, 2018, 9:53am UTC](https://discourse.processing.org/t/programacion-visual/5593 "2018-11-17T09:53:53Z")

</div>

Hola. Me gustaria saber si hay alguna libreria o extension para programacion visual en processing. Algo como la programacion de bloques de scratch,la programacion por eventos de construct 2 o la programacion de nodos c…

---

## [Hosting A Processing.net server](https://discourse.processing.org/t/hosting-a-processing-net-server/5578)

<div class="topic-metadata">

**Author:** [@Quillbert1](https://discourse.processing.org/u/Quillbert1)\
**Replies:** 4\
**Last updated:** [November 17, 2018, 9:38am UTC](https://discourse.processing.org/t/hosting-a-processing-net-server/5578 "2018-11-17T09:38:02Z")

</div>

I have a program that uses processing.net to send and receive data. I was wondering if there is a website where i could host this server for free. For the sake of example, I will use Shiffman’s basic chat server. Server…

---

## [GPIO with keyPressed()](https://discourse.processing.org/t/gpio-with-keypressed/5592)

<div class="topic-metadata">

**Author:** [@Jerome](https://discourse.processing.org/u/Jerome)\
**Replies:** 1\
**Last updated:** [November 17, 2018, 1:19am UTC](https://discourse.processing.org/t/gpio-with-keypressed/5592 "2018-11-17T01:19:23Z")

</div>

Hello! I use my Raspberry Pi with Processing and a GPIO push button. Every tests I made worked fine. But I need with this button something equivalent to the function keyPressed(). Is it possible? Or must I map the GPIO…

---

## [Infinetly thinking](https://discourse.processing.org/t/infinetly-thinking/5546)

<div class="topic-metadata">

**Author:** [@Darkar25](https://discourse.processing.org/u/Darkar25)\
**Replies:** 5\
**Last updated:** [November 17, 2018, 12:18am UTC](https://discourse.processing.org/t/infinetly-thinking/5546 "2018-11-17T00:18:38Z")

</div>

What’s wrong with my code?it seemed to work properly,but when sketch starts,it thinking a lot of time,then app crashes… Sketch code: import java.util.Collections; color clr = color(255, 0, 0); MeshBall mb = new MeshBal…

---

## [G4P library - Is there a way to make big letters on numbers?](https://discourse.processing.org/t/g4p-library-is-there-a-way-to-make-big-letters-on-numbers/4350)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 19\
**Last updated:** [November 16, 2018, 10:51pm UTC](https://discourse.processing.org/t/g4p-library-is-there-a-way-to-make-big-letters-on-numbers/4350 "2018-11-16T22:51:43Z")

</div>

I am building a touch tablet interface for a robotic arm. It seems that the G4P library is the only one to respond to touch as a mouse click. That is nice, thank you author. However the buttons have very small writing …

---

## [mousePressed always true](https://discourse.processing.org/t/mousepressed-always-true/5594)

<div class="topic-metadata">

**Author:** [@FerrariLuigi](https://discourse.processing.org/u/FerrariLuigi)\
**Replies:** 2\
**Last updated:** [November 16, 2018, 9:37pm UTC](https://discourse.processing.org/t/mousepressed-always-true/5594 "2018-11-16T21:37:53Z")

</div>

Dear all I developed a Processing sketch that handle mouse and its buttons. It works but, after a while, the mousePressed attribute becomes always true. Did you have any similar problem ? How did you fix it ? Thank …

---

## [Problem with saving PImage with transparency](https://discourse.processing.org/t/problem-with-saving-pimage-with-transparency/5566)

<div class="topic-metadata">

**Author:** [@Spu7Nix](https://discourse.processing.org/u/Spu7Nix)\
**Replies:** 4\
**Last updated:** [November 16, 2018, 6:09pm UTC](https://discourse.processing.org/t/problem-with-saving-pimage-with-transparency/5566 "2018-11-16T18:09:07Z")

</div>

Hi, i have written this little program to cut a spritesheet for me, but it doesn’t work with transparency. Anybody know a fix? PImage sheet = loadImage("dirtTiles.png"); PImage\[\] tiles = new PImage\[25\]; int s = 16; bac…

---

## [Wait until Canvas gets created in DOM](https://discourse.processing.org/t/wait-until-canvas-gets-created-in-dom/5602)

<div class="topic-metadata">

**Author:** [@FedFod](https://discourse.processing.org/u/FedFod)\
**Replies:** 2\
**Last updated:** [November 16, 2018, 3:42pm UTC](https://discourse.processing.org/t/wait-until-canvas-gets-created-in-dom/5602 "2018-11-16T15:42:13Z")

</div>

Hi all, I have this code: canvas2 = mCreateCanvas(m4.windowWidth, m4.windowHeight, m4.WEBGL); m4.setAttributes('antialias', true); glCanvas = document.getElementById('defaultCanvas0').getContext('webgl'); …

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=556)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=558)
