# Latest

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

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

**Page:** 418

---

## [Passing this as a method](https://discourse.processing.org/t/passing-this-as-a-method/15796)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 6\
**Last updated:** [December 4, 2019, 2:32am UTC](https://discourse.processing.org/t/passing-this-as-a-method/15796 "2019-12-04T02:32:54Z")

</div>

Controlp5 passes this as a method, controlP5 = new ControlP5(this) How do you create a class that can do this?

---

## [Installing JPaste](https://discourse.processing.org/t/installing-jpaste/16078)

<div class="topic-metadata">

**Author:** [@Devon123](https://discourse.processing.org/u/Devon123)\
**Replies:** 1\
**Last updated:** [December 3, 2019, 9:35pm UTC](https://discourse.processing.org/t/installing-jpaste/16078 "2019-12-03T21:35:23Z")

</div>

I put it in the library folder, but it isn’t installed. Any help would be appreciated Here it is:

---

## [Lines don't draw when using custom "zooming" - can't see why](https://discourse.processing.org/t/lines-dont-draw-when-using-custom-zooming-cant-see-why/16051)

<div class="topic-metadata">

**Author:** [@C-Level-Increment](https://discourse.processing.org/u/C-Level-Increment)\
**Replies:** 2\
**Last updated:** [December 3, 2019, 7:37pm UTC](https://discourse.processing.org/t/lines-dont-draw-when-using-custom-zooming-cant-see-why/16051 "2019-12-03T19:37:50Z")

</div>

Hey there, since this is my first post here I’ll quickly introduce myself: I am an material sciences engeneering student with a hobby level experience in some coding matters (like arduinos, tinkering with physics engi…

---

## [Exporting as .gif, the Explode effect, and many more problems](https://discourse.processing.org/t/exporting-as-gif-the-explode-effect-and-many-more-problems/15802)

<div class="topic-metadata">

**Author:** [@vogelstraussk](https://discourse.processing.org/u/vogelstraussk)\
**Replies:** 3\
**Last updated:** [December 3, 2019, 7:35pm UTC](https://discourse.processing.org/t/exporting-as-gif-the-explode-effect-and-many-more-problems/15802 "2019-12-03T19:35:34Z")

</div>

Hello, clever people! First things first, I am a design student who just started teaching herself Processing a week ago, so I have NO knowledge beyond The Coding Train tutorials. (It’s fun! But at the same time I am ju…

---

## [I am creating a floor plan and I want to know how to constraint certain areas to not draw in](https://discourse.processing.org/t/i-am-creating-a-floor-plan-and-i-want-to-know-how-to-constraint-certain-areas-to-not-draw-in/16081)

<div class="topic-metadata">

**Author:** [@elcougario](https://discourse.processing.org/u/elcougario)\
**Replies:** 3\
**Last updated:** [November 6, 2026, 3:37am UTC](https://discourse.processing.org/t/i-am-creating-a-floor-plan-and-i-want-to-know-how-to-constraint-certain-areas-to-not-draw-in/16081 "2026-11-06T03:37:03Z")

</div>

Hey guys, I am working on an abstract floor plan using processing. I am making a grid with random rectangles and small ellipses. I have some voids on the four corners and one in the middle. Right now I am just covering u…

---

## [How can I restart the program with keypress](https://discourse.processing.org/t/how-can-i-restart-the-program-with-keypress/15446)

<div class="topic-metadata">

**Author:** [@Kitty](https://discourse.processing.org/u/Kitty)\
**Replies:** 26\
**Last updated:** [November 22, 2019, 7:18pm UTC](https://discourse.processing.org/t/how-can-i-restart-the-program-with-keypress/15446 "2019-11-22T19:18:31Z")

</div>

I want the key “Q” to restart the program, but the reset function isn’t working.

---

## [Can I Sort my incoming String based on the first char?](https://discourse.processing.org/t/can-i-sort-my-incoming-string-based-on-the-first-char/15847)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 12\
**Last updated:** [December 3, 2019, 11:00am UTC](https://discourse.processing.org/t/can-i-sort-my-incoming-string-based-on-the-first-char/15847 "2019-12-03T11:00:41Z")

</div>

I am getting a lot of data from an Arduino Serial port. The problem is that some are numbers , some are sentences, etc While I can split a String in Floats, that string can have only numbers. So I decided to have seve…

---

## [WEBGL vs P2D pros and cons](https://discourse.processing.org/t/webgl-vs-p2d-pros-and-cons/16073)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 0\
**Last updated:** [December 3, 2019, 10:27am UTC](https://discourse.processing.org/t/webgl-vs-p2d-pros-and-cons/16073 "2019-12-03T10:27:22Z")

</div>

I have little to no experience in p5.js. What are people’s thoughts on WEBGL vs P2D?

---

## [Getting error message on Raspberry Pi V2 Camera Colour Detection code](https://discourse.processing.org/t/getting-error-message-on-raspberry-pi-v2-camera-colour-detection-code/16064)

<div class="topic-metadata">

**Author:** [@Treedom](https://discourse.processing.org/u/Treedom)\
**Replies:** 1\
**Last updated:** [December 3, 2019, 4:02am UTC](https://discourse.processing.org/t/getting-error-message-on-raspberry-pi-v2-camera-colour-detection-code/16064 "2019-12-03T04:02:57Z")

</div>

Hi, I’m using a Raspberry pi with a V2 camera and am running this code and getting the error message “ArrayIndexOutOfBoundsException: 64001”. I have ran this code on a mac computer and I do not get this error. It seems t…

---

## [Taking Adob Illustrator Artboard and importing into Processing](https://discourse.processing.org/t/taking-adob-illustrator-artboard-and-importing-into-processing/16061)

<div class="topic-metadata">

**Author:** [@msw](https://discourse.processing.org/u/msw)\
**Replies:** 1\
**Last updated:** [December 3, 2019, 2:31am UTC](https://discourse.processing.org/t/taking-adob-illustrator-artboard-and-importing-into-processing/16061 "2019-12-03T02:31:06Z")

</div>

Hi there, so I am very new to processing and to be frank only using it for school. I’ve heard there is a way to take an adobe illustrator file and put it into processing (apologies if my wording isn’t right here). I can’…

---

## [How to loop sound generated within a p5 envelope](https://discourse.processing.org/t/how-to-loop-sound-generated-within-a-p5-envelope/15889)

<div class="topic-metadata">

**Author:** [@gjs](https://discourse.processing.org/u/gjs)\
**Replies:** 5\
**Last updated:** [December 3, 2019, 1:32am UTC](https://discourse.processing.org/t/how-to-loop-sound-generated-within-a-p5-envelope/15889 "2019-12-03T01:32:58Z")

</div>

In p5, I’m trying to loop sound generated within a p5 envelope in response to a mousePressed() function. Multiple attempts at inserting it within the following code, copied from p5 envelope reference and pasted below, ha…

---

## [Saving variables to global environment](https://discourse.processing.org/t/saving-variables-to-global-environment/16054)

<div class="topic-metadata">

**Author:** [@tanzor](https://discourse.processing.org/u/tanzor)\
**Replies:** 17\
**Last updated:** [December 3, 2019, 12:28am UTC](https://discourse.processing.org/t/saving-variables-to-global-environment/16054 "2019-12-03T00:28:03Z")

</div>

Hi! I’m programming a psychological experiment using labjs and I want to add p5 functionalities to some of the screens. My understanding is that in order for things not to break, I need to use p5’s instance mode to make…

---

## [Sending Arduino to Processing](https://discourse.processing.org/t/sending-arduino-to-processing/16058)

<div class="topic-metadata">

**Author:** [@Cbeni](https://discourse.processing.org/u/Cbeni)\
**Replies:** 3\
**Last updated:** [December 2, 2019, 11:53pm UTC](https://discourse.processing.org/t/sending-arduino-to-processing/16058 "2019-12-02T23:53:57Z")

</div>

Hey, Its my first time connecting the arduino to processing. I followed a tutorial to the T and double checked the code but i am still getting an error. can someone tell me where i went wrong? Processing Code — import …

---

## [Class Problem - Any Suggestions](https://discourse.processing.org/t/class-problem-any-suggestions/14864)

<div class="topic-metadata">

**Author:** [@Cbeni](https://discourse.processing.org/u/Cbeni)\
**Replies:** 6\
**Last updated:** [December 2, 2019, 10:32pm UTC](https://discourse.processing.org/t/class-problem-any-suggestions/14864 "2019-12-02T22:32:36Z")

</div>

My bolt class is not being recognized. Any suggestions? import processing.sound.\*; SoundFile myAudio; SoundFile AudioWin; //variables float rectx =100; float recty =100; float b=20; PImage myImageRobot; PImage myImage…

---

## [What do you think about my program?](https://discourse.processing.org/t/what-do-you-think-about-my-program/16042)

<div class="topic-metadata">

**Author:** [@willianxz](https://discourse.processing.org/u/willianxz)\
**Replies:** 17\
**Last updated:** [December 2, 2019, 10:06pm UTC](https://discourse.processing.org/t/what-do-you-think-about-my-program/16042 "2019-12-02T22:06:41Z")

</div>

It’s an example of how to consume data from a JSON API using text and even 3D. I had a hard time putting the text () command together with the 3D “box”, because it gave a strange font error, so I ended up creating a gra…

---

## [Running multiple interact sketches](https://discourse.processing.org/t/running-multiple-interact-sketches/16044)

<div class="topic-metadata">

**Author:** [@otji](https://discourse.processing.org/u/otji)\
**Replies:** 2\
**Last updated:** [December 2, 2019, 5:09pm UTC](https://discourse.processing.org/t/running-multiple-interact-sketches/16044 "2019-12-02T17:09:25Z")

</div>

Hi there, I am beginning to use P5.JS to create a small experience and one of the things i’m trying to do is to have a sketch that runs another sketch when an icon is clicked. I’m pretty sure this is a basic function bu…

---

## [Referencia de processing en español](https://discourse.processing.org/t/referencia-de-processing-en-espanol/15919)

<div class="topic-metadata">

**Author:** [@hokuto](https://discourse.processing.org/u/hokuto)\
**Replies:** 4\
**Last updated:** [December 2, 2019, 4:36pm UTC](https://discourse.processing.org/t/referencia-de-processing-en-espanol/15919 "2019-12-02T16:36:12Z")

</div>

¿Cuando habra una traduccion al español de la referencia de processing?

---

## [Closed Mesh Area and Volume](https://discourse.processing.org/t/closed-mesh-area-and-volume/15640)

<div class="topic-metadata">

**Author:** [@jNew](https://discourse.processing.org/u/jNew)\
**Replies:** 10\
**Last updated:** [December 2, 2019, 4:19pm UTC](https://discourse.processing.org/t/closed-mesh-area-and-volume/15640 "2019-12-02T16:19:17Z")

</div>

I am trying to slice a closed mesh and get the new surface area and volume. HEMesh has a mesh.getArea() in the Ref\_HEM\_Soapfilm example, but the function does not exist in the library and I can’t find documentation for …

---

## [Modifying Project Sentry Gun (PSG) to Detect Fires](https://discourse.processing.org/t/modifying-project-sentry-gun-psg-to-detect-fires/16047)

<div class="topic-metadata">

**Author:** [@gupperino](https://discourse.processing.org/u/gupperino)\
**Replies:** 0\
**Last updated:** [December 2, 2019, 4:15pm UTC](https://discourse.processing.org/t/modifying-project-sentry-gun-psg-to-detect-fires/16047 "2019-12-02T16:15:02Z")

</div>

Hello all, I’m a high school student working on a project for the New York City Science and Engineering Fair. My partner and I have created a device that can track fires and extinguish them using water. The software driv…

---

## [Processing JS and HTML + PHP](https://discourse.processing.org/t/processing-js-and-html-php/16046)

<div class="topic-metadata">

**Author:** [@Vickydcl](https://discourse.processing.org/u/Vickydcl)\
**Replies:** 0\
**Last updated:** [December 2, 2019, 4:11pm UTC](https://discourse.processing.org/t/processing-js-and-html-php/16046 "2019-12-02T16:11:08Z")

</div>

I’ve made a processing sketch that I had upload on my website (localhost). But the buttons that I programmed doesn’t work because i’m using the “selectInput” function that is not avaible in web. So, I guess I need to mak…

---

## [Monitoring Graphics Processing Unit (GPU) with Processing 3](https://discourse.processing.org/t/monitoring-graphics-processing-unit-gpu-with-processing-3/15860)

<div class="topic-metadata">

**Author:** [@Thomas](https://discourse.processing.org/u/Thomas)\
**Replies:** 12\
**Last updated:** [December 2, 2019, 3:06pm UTC](https://discourse.processing.org/t/monitoring-graphics-processing-unit-gpu-with-processing-3/15860 "2019-12-02T15:06:07Z")

</div>

Hello, Using the: java.lang.management.ManagementFactory and com.sun.management.OperatingSystemMXBean libraries, I was able to read the CPU and RAM usage of my pc. Now I would like to be able to read the Graphics Proces…

---

## [How to upload an image from a URL?](https://discourse.processing.org/t/how-to-upload-an-image-from-a-url/16020)

<div class="topic-metadata">

**Author:** [@willianxz](https://discourse.processing.org/u/willianxz)\
**Replies:** 8\
**Last updated:** [December 2, 2019, 11:24am UTC](https://discourse.processing.org/t/how-to-upload-an-image-from-a-url/16020 "2019-12-02T11:24:43Z")

</div>

Hi, I tried to upload an image from a URL, but from what I see it doesn’t work, only for images that I place locally. The purpose of uploading images using URL is because in the JSON I receive it contains their URL. Ex…

---

## [Rotations and translations in real time](https://discourse.processing.org/t/rotations-and-translations-in-real-time/15490)

<div class="topic-metadata">

**Author:** [@Waboqueox](https://discourse.processing.org/u/Waboqueox)\
**Replies:** 2\
**Last updated:** [December 2, 2019, 11:13am UTC](https://discourse.processing.org/t/rotations-and-translations-in-real-time/15490 "2019-12-02T11:13:50Z")

</div>

Hi guys, I know there are many topics about this theme, but I’m getting mad with this :woozy\_face:… I have the UTM coordinates and orientation of my state, at the same time, I have coordinates of the objects that surrou…

---

## [Processing js - html and php](https://discourse.processing.org/t/processing-js-html-and-php/16034)

<div class="topic-metadata">

**Author:** [@dawn](https://discourse.processing.org/u/dawn)\
**Replies:** 3\
**Last updated:** [December 2, 2019, 11:05am UTC](https://discourse.processing.org/t/processing-js-html-and-php/16034 "2019-12-02T11:05:17Z")

</div>

Hello, I have to run a sketch on a website but I can’t make it appear. I only can run some examples if they are inside the examples folder but when I want to link them on my webpage (HTML) they don’t work. Below some cod…

---

## [Convert color notation in an array](https://discourse.processing.org/t/convert-color-notation-in-an-array/15972)

<div class="topic-metadata">

**Author:** [@stupidquestion](https://discourse.processing.org/u/stupidquestion)\
**Replies:** 6\
**Last updated:** [December 2, 2019, 9:28am UTC](https://discourse.processing.org/t/convert-color-notation-in-an-array/15972 "2019-12-02T09:28:36Z")

</div>

so, i want to take an inventory of a bunch of my pixels in an array, and loadPixels() seems to generate that array fine, but I can’t figure out how to read that data, much less use it with other code. any idea how to co…

---

## [Detect double click inside class](https://discourse.processing.org/t/detect-double-click-inside-class/15793)

<div class="topic-metadata">

**Author:** [@Thomas](https://discourse.processing.org/u/Thomas)\
**Replies:** 12\
**Last updated:** [December 2, 2019, 9:26am UTC](https://discourse.processing.org/t/detect-double-click-inside-class/15793 "2019-12-02T09:26:35Z")

</div>

Hello, I would like to detect a double mouse click from within a class. If a double click is detected, some event has to be executed. I would like the code to be modular, so the mouseClicked() or mousePressed() functions…

---

## [Exported application crashes -- illegal reflective access operation error](https://discourse.processing.org/t/exported-application-crashes-illegal-reflective-access-operation-error/16029)

<div class="topic-metadata">

**Author:** [@sargent](https://discourse.processing.org/u/sargent)\
**Replies:** 1\
**Last updated:** [December 2, 2019, 3:18am UTC](https://discourse.processing.org/t/exported-application-crashes-illegal-reflective-access-operation-error/16029 "2019-12-02T03:18:04Z")

</div>

I have a processing.py sketch that runs fine in the IDE but when I export it (I’m running a mac), I get the following error: WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective acces…

---

## [How do i make a username input interface (python)?](https://discourse.processing.org/t/how-do-i-make-a-username-input-interface-python/15832)

<div class="topic-metadata">

**Author:** [@esaem](https://discourse.processing.org/u/esaem)\
**Replies:** 4\
**Last updated:** [November 26, 2019, 7:52pm UTC](https://discourse.processing.org/t/how-do-i-make-a-username-input-interface-python/15832 "2019-11-26T19:52:09Z")

</div>

So i’m making a game in python processing and i need to have people input their names so it get’s attached to player 1 or player 2 etc…

---

## [Open Call for 2020 Processing Foundation Fellowships](https://discourse.processing.org/t/open-call-for-2020-processing-foundation-fellowships/16027)

<div class="topic-metadata">

**Author:** [@lmccart](https://discourse.processing.org/u/lmccart)\
**Replies:** 0\
**Last updated:** [December 2, 2019, 1:19am UTC](https://discourse.processing.org/t/open-call-for-2020-processing-foundation-fellowships/16027 "2019-12-02T01:19:34Z")

</div>

The Processing Foundation is currently accepting applications for the 2020 Fellowship Program. Processing Foundation Fellowships support artists, coders, and collectives in visionary projects that conceive a new directio…

---

## [Processing won’t start at all](https://discourse.processing.org/t/processing-won-t-start-at-all/16010)

<div class="topic-metadata">

**Author:** [@Grimtin10](https://discourse.processing.org/u/Grimtin10)\
**Replies:** 7\
**Last updated:** [December 2, 2019, 12:53am UTC](https://discourse.processing.org/t/processing-won-t-start-at-all/16010 "2019-12-02T00:53:59Z")

</div>

In the .err file it says “Exception in thread “AWT-EventQueue-0” java.lang.NoClassDefFoundError: Could not initialize class sun.reflect.misc.MethodUtil” Any help?

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

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