# Latest

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

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

**Page:** 465

---

## [How to add a tooltip to a p5.dom.js button](https://discourse.processing.org/t/how-to-add-a-tooltip-to-a-p5-dom-js-button/12758)

<div class="topic-metadata">

**Author:** [@grege2](https://discourse.processing.org/u/grege2)\
**Replies:** 5\
**Last updated:** [July 18, 2019, 12:01am UTC](https://discourse.processing.org/t/how-to-add-a-tooltip-to-a-p5-dom-js-button/12758 "2019-07-18T00:01:23Z")

</div>

Hi all. I’d like to add a “tooltip” to a button in a p5.js code. The button is added with createButton() from the p5.dom.js library. There’s a ton of discussion out there, a lot in Stack Overflow, about tooltips … a typi…

---

## [Hitbox and death counter](https://discourse.processing.org/t/hitbox-and-death-counter/12763)

<div class="topic-metadata">

**Author:** [@Prantzz](https://discourse.processing.org/u/Prantzz)\
**Replies:** 5\
**Last updated:** [July 17, 2019, 7:12pm UTC](https://discourse.processing.org/t/hitbox-and-death-counter/12763 "2019-07-17T19:12:09Z")

</div>

Hey there, i’m new to processing and programming in general, so go easy on me :smiley: Well, i was writing this simple game for processing 3, and found myself into some difficulties. I Made 2 tabs, one for the main cod…

---

## [Var not iterating problem • Use all row values to iterate CSV column with for loop to playNote()](https://discourse.processing.org/t/var-not-iterating-problem-use-all-row-values-to-iterate-csv-column-with-for-loop-to-playnote/12590)

<div class="topic-metadata">

**Author:** [@Gus\_Fermin](https://discourse.processing.org/u/Gus_Fermin)\
**Replies:** 18\
**Last updated:** [July 17, 2019, 2:57pm UTC](https://discourse.processing.org/t/var-not-iterating-problem-use-all-row-values-to-iterate-csv-column-with-for-loop-to-playnote/12590 "2019-07-17T14:57:35Z")

</div>

Hello there, I wanted to share my code with you, I feel that there is something crucial that I have not understood keeping me from moving forward, so I ask for your help hoping that somebody shares with me their opinion…

---

## [Help making code more concise](https://discourse.processing.org/t/help-making-code-more-concise/12734)

<div class="topic-metadata">

**Author:** [@r8th](https://discourse.processing.org/u/r8th)\
**Replies:** 8\
**Last updated:** [July 17, 2019, 2:56pm UTC](https://discourse.processing.org/t/help-making-code-more-concise/12734 "2019-07-17T14:56:57Z")

</div>

Dear community, I am trying to capture 2 seconds-worth of frames, every 30 minutes using a webcam. The following code works, but I feel that there must be a more concise way to write this. I’ve searched but cannot find …

---

## [I Want to Add Text on the Button](https://discourse.processing.org/t/i-want-to-add-text-on-the-button/12756)

<div class="topic-metadata">

**Author:** [@Murphy](https://discourse.processing.org/u/Murphy)\
**Replies:** 7\
**Last updated:** [July 17, 2019, 2:49pm UTC](https://discourse.processing.org/t/i-want-to-add-text-on-the-button/12756 "2019-07-17T14:49:18Z")

</div>

Hello my dear friends, I am adding button for open the led. I want to write text on the Button. I am adding text but I can’t see this. Text is under the Button. I want to see that. I am sharing codes. I want to text “ST…

---

## [Trigger sound when data == x](https://discourse.processing.org/t/trigger-sound-when-data-x/12701)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 13\
**Last updated:** [July 17, 2019, 1:13am UTC](https://discourse.processing.org/t/trigger-sound-when-data-x/12701 "2019-07-17T01:13:12Z")

</div>

Hi, I would like to trigger sound when I receive data=0. But sometimes It works, sometimes it doesn’t. Maybe because my program doesn’t actualise itself enough quickly? here my program import processing.serial.\*; /…

---

## [P5LIVE – p5.js live-coding environment, now with COCODING + tutorial](https://discourse.processing.org/t/p5live-p5-js-live-coding-environment-now-with-cocoding-tutorial/12589)

<div class="topic-metadata">

**Author:** [@ffd8](https://discourse.processing.org/u/ffd8)\
**Replies:** 6\
**Last updated:** [July 16, 2019, 11:21pm UTC](https://discourse.processing.org/t/p5live-p5-js-live-coding-environment-now-with-cocoding-tutorial/12589 "2019-07-16T23:21:39Z")

</div>

After beta testing with my students, P5LIVE’s COCODING feature is now live! Here’s a little teaser for it: More helpful, a tutorial walking you through the whole interface: It’s main purpose …

---

## [2D Mechanisms examples?](https://discourse.processing.org/t/2d-mechanisms-examples/12752)

<div class="topic-metadata">

**Author:** [@Bird](https://discourse.processing.org/u/Bird)\
**Replies:** 2\
**Last updated:** [July 16, 2019, 10:53pm UTC](https://discourse.processing.org/t/2d-mechanisms-examples/12752 "2019-07-16T22:53:52Z")

</div>

I’m looking for some examples of basic 2D mechanisms in JS. Simple animations showing rotary and linear motors, linkages, pistons, etc. I would love to find some kind of sandbox that allows simple experiments, but just s…

---

## [Changing the color of black pixels in area](https://discourse.processing.org/t/changing-the-color-of-black-pixels-in-area/12748)

<div class="topic-metadata">

**Author:** [@hensn](https://discourse.processing.org/u/hensn)\
**Replies:** 1\
**Last updated:** [July 16, 2019, 10:41pm UTC](https://discourse.processing.org/t/changing-the-color-of-black-pixels-in-area/12748 "2019-07-16T22:41:26Z")

</div>

Hi, I loaded a binary image (only black and white pixels) into processing. I want the user to be able to click on an area of the image (say a circle around the cursor) and each black pixel within that area then changes …

---

## [How do I add external libraries to Processing?](https://discourse.processing.org/t/how-do-i-add-external-libraries-to-processing/12750)

<div class="topic-metadata">

**Author:** [@BeastCoder](https://discourse.processing.org/u/BeastCoder)\
**Replies:** 2\
**Last updated:** [July 16, 2019, 3:48pm UTC](https://discourse.processing.org/t/how-do-i-add-external-libraries-to-processing/12750 "2019-07-16T15:48:04Z")

</div>

I am unable to add external libraries to processing. I’ve followed multiple tutorials and looked at other questions but none of them do the job. I’ve unzipped the library and put it into the libraries folder inside of …

---

## [Cannot import libraries](https://discourse.processing.org/t/cannot-import-libraries/12716)

<div class="topic-metadata">

**Author:** [@gduteaud](https://discourse.processing.org/u/gduteaud)\
**Replies:** 13\
**Last updated:** [July 16, 2019, 6:42pm UTC](https://discourse.processing.org/t/cannot-import-libraries/12716 "2019-07-16T18:42:49Z")

</div>

Hello all, I’m a beginner to Processing, I’ve been using it for a few months now and everything is going great. Today I was hoping to start working with sound, and so I needed to import the sound library. I saw it could…

---

## [Sound Library not funtioning in Android mode](https://discourse.processing.org/t/sound-library-not-funtioning-in-android-mode/11984)

<div class="topic-metadata">

**Author:** [@markcosmic](https://discourse.processing.org/u/markcosmic)\
**Replies:** 8\
**Last updated:** [July 16, 2019, 6:10pm UTC](https://discourse.processing.org/t/sound-library-not-funtioning-in-android-mode/11984 "2019-07-16T18:10:39Z")

</div>

Since doing the recent SDK update in Processing for Android: google usb\_driver 11.0.0 Android SDK Build-Tools 26.0.2 Google APIs Intel x86 Atom System Image 14 Android SDK Platform 26 2 Android SDK Bui…

---

## [Feature request: Find dialog additions](https://discourse.processing.org/t/feature-request-find-dialog-additions/12709)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 7\
**Last updated:** [July 15, 2019, 3:23pm UTC](https://discourse.processing.org/t/feature-request-find-dialog-additions/12709 "2019-07-15T15:23:47Z")

</div>

It would be really great if the IDE Find dialog had a checkbox for “In Selection” and for “Find Whole Word Only”

---

## [G4P Font for Textfield](https://discourse.processing.org/t/g4p-font-for-textfield/12732)

<div class="topic-metadata">

**Author:** [@madscientist](https://discourse.processing.org/u/madscientist)\
**Replies:** 2\
**Last updated:** [July 16, 2019, 4:16pm UTC](https://discourse.processing.org/t/g4p-font-for-textfield/12732 "2019-07-16T16:16:51Z")

</div>

@quark How would I change the font that a G4P Textfield uses? Thanks

---

## [Loop(), noLoop(), redraw()](https://discourse.processing.org/t/loop-noloop-redraw/12534)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 5\
**Last updated:** [July 16, 2019, 2:11pm UTC](https://discourse.processing.org/t/loop-noloop-redraw/12534 "2019-07-16T14:11:12Z")

</div>

Having read the documentation on the p5.js site, I’m still a little confused as to how to use the redraw() function and the loop function. What I’m trying to achieve is something which allows me to stop the draw function…

---

## [Draw a line from center to mouse with vector](https://discourse.processing.org/t/draw-a-line-from-center-to-mouse-with-vector/12729)

<div class="topic-metadata">

**Author:** [@Erjaeger](https://discourse.processing.org/u/Erjaeger)\
**Replies:** 5\
**Last updated:** [July 16, 2019, 9:53am UTC](https://discourse.processing.org/t/draw-a-line-from-center-to-mouse-with-vector/12729 "2019-07-16T09:53:25Z")

</div>

Hi everyone, I’m reading The Nature of Code but I stuck with a stupid question on vector. I tried to make a line drawn from the center of the screen to my mouse with the help of vectors. Here : https://editor.p5js.org…

---

## [Save image selection into a (different) folder(s)](https://discourse.processing.org/t/save-image-selection-into-a-different-folder-s/12627)

<div class="topic-metadata">

**Author:** [@MissFroes](https://discourse.processing.org/u/MissFroes)\
**Replies:** 1\
**Last updated:** [July 16, 2019, 7:07am UTC](https://discourse.processing.org/t/save-image-selection-into-a-different-folder-s/12627 "2019-07-16T07:07:06Z")

</div>

Hi, I am new in Processing and I have this project that someone has to make an image selection then the selection has to be saved in a specific folder so that when the archive is running again that can save the new selec…

---

## [L system rules for drawing corals](https://discourse.processing.org/t/l-system-rules-for-drawing-corals/12733)

<div class="topic-metadata">

**Author:** [@MustafaMerza](https://discourse.processing.org/u/MustafaMerza)\
**Replies:** 3\
**Last updated:** [July 16, 2019, 6:32am UTC](https://discourse.processing.org/t/l-system-rules-for-drawing-corals/12733 "2019-07-16T06:32:47Z")

</div>

Hello guys, I’m sorry that I’m posting here but I haven’t found any other solution for my problem. I’m using an example code for L-System that comes when downloading examples from “The Nature of Code by Daniel Shiffman…

---

## [Override Escape Key in Python Mode](https://discourse.processing.org/t/override-escape-key-in-python-mode/12726)

<div class="topic-metadata">

**Author:** [@pi3point1415](https://discourse.processing.org/u/pi3point1415)\
**Replies:** 2\
**Last updated:** [July 16, 2019, 4:35am UTC](https://discourse.processing.org/t/override-escape-key-in-python-mode/12726 "2019-07-16T04:35:08Z")

</div>

In normal Java mode, when I use the code: if (key == ESC) { key = 0; } pressing escape does not close the sketch. However, in python mode, when I try similar code: if key == ESC: key = 0 pressing …

---

## [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…

---

## [Sound in p5.js gives warnings](https://discourse.processing.org/t/sound-in-p5-js-gives-warnings/12731)

<div class="topic-metadata">

**Author:** [@Checkers99](https://discourse.processing.org/u/Checkers99)\
**Replies:** 1\
**Last updated:** [July 16, 2019, 12:36am UTC](https://discourse.processing.org/t/sound-in-p5-js-gives-warnings/12731 "2019-07-16T00:36:16Z")

</div>

Hello, I’m currently trying to add sound to a p5.js sketch but i keep getting these ‘warnings’? This is the source of the problem i think… If I write the preload code and loadSound I then get error codes from the p5 s…

---

## [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…

---

## [Merge/ blend p5.Image or base64 image](https://discourse.processing.org/t/merge-blend-p5-image-or-base64-image/12699)

<div class="topic-metadata">

**Author:** [@josebv](https://discourse.processing.org/u/josebv)\
**Replies:** 2\
**Last updated:** [July 15, 2019, 12:02pm UTC](https://discourse.processing.org/t/merge-blend-p5-image-or-base64-image/12699 "2019-07-15T12:02:57Z")

</div>

Hi, im currently working on a paint-like project. right now I have 3 p5.images: \*template // this is kinda of legal notepad \*doodles // a canvas were I draw \*oldDoodles // old doodles that I get from my database is …

---

## [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 …

---

## [Processing-io.so on Raspberry Pi](https://discourse.processing.org/t/processing-io-so-on-raspberry-pi/12464)

<div class="topic-metadata">

**Author:** [@mrdanimal](https://discourse.processing.org/u/mrdanimal)\
**Replies:** 2\
**Last updated:** [July 14, 2019, 9:58pm UTC](https://discourse.processing.org/t/processing-io-so-on-raspberry-pi/12464 "2019-07-14T21:58:55Z")

</div>

I have a Processing sketch that uses the IO library to use the GPIO pins on a Raspberry Pi. It works. But the sketch has reached a size and level of complexity that I want to switch to Java for additional tooling and tes…

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

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