# Latest

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

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

**Page:** 442

---

## [Value NaN of a variable](https://discourse.processing.org/t/value-nan-of-a-variable/14220)

<div class="topic-metadata">

**Author:** [@Ignaki](https://discourse.processing.org/u/Ignaki)\
**Replies:** 7\
**Last updated:** [October 3, 2019, 3:34pm UTC](https://discourse.processing.org/t/value-nan-of-a-variable/14220 "2019-10-03T15:34:07Z")

</div>

What does it mean wnen the printed value of a variable is “NaN”?

---

## [Cannot find a class or type named “ParticleSystem”](https://discourse.processing.org/t/cannot-find-a-class-or-type-named-particlesystem/14394)

<div class="topic-metadata">

**Author:** [@Andrea](https://discourse.processing.org/u/Andrea)\
**Replies:** 3\
**Last updated:** [October 3, 2019, 3:10pm UTC](https://discourse.processing.org/t/cannot-find-a-class-or-type-named-particlesystem/14394 "2019-10-03T15:10:10Z")

</div>

Hi! I’m a beginner at programming and coding (actually, I know nothing but what I’ve seen in tutorials) so I’ve been following Daniel’s tutorials on Youtube. The thing is that I’m stuck into this particular tutorial, eve…

---

## [Oncreate() method](https://discourse.processing.org/t/oncreate-method/14388)

<div class="topic-metadata">

**Author:** [@Yash](https://discourse.processing.org/u/Yash)\
**Replies:** 3\
**Last updated:** [October 3, 2019, 9:32am UTC](https://discourse.processing.org/t/oncreate-method/14388 "2019-10-03T09:32:11Z")

</div>

Why does the oncreate method doesn’t get called when written inside a activity/basic class. But gets called when written independently in processing. Ex: publc class A extends Activity { Public void onCreate(Bundle s…

---

## [How to disable sleep in MacOS while program is running?](https://discourse.processing.org/t/how-to-disable-sleep-in-macos-while-program-is-running/14384)

<div class="topic-metadata">

**Author:** [@spy](https://discourse.processing.org/u/spy)\
**Replies:** 3\
**Last updated:** [October 3, 2019, 6:45am UTC](https://discourse.processing.org/t/how-to-disable-sleep-in-macos-while-program-is-running/14384 "2019-10-03T06:45:16Z")

</div>

I created a digital full screen Clock in Processing. I also created a executable file to run it directly via double click. My OS is MacOS High Sierra. When I run it, my laptop goes to sleep after some time. I want to dis…

---

## [How to figure out which object is closest to a moving origin point](https://discourse.processing.org/t/how-to-figure-out-which-object-is-closest-to-a-moving-origin-point/14298)

<div class="topic-metadata">

**Author:** [@cryptacritic](https://discourse.processing.org/u/cryptacritic)\
**Replies:** 2\
**Last updated:** [October 3, 2019, 6:43am UTC](https://discourse.processing.org/t/how-to-figure-out-which-object-is-closest-to-a-moving-origin-point/14298 "2019-10-03T06:43:29Z")

</div>

Let’s say I’m building a project. Just picture Galaga in your head. The ship you play as shoots missiles. What I’m trying to do here is to program the missiles to fly toward the nearest enemy ship along the x axis (y axi…

---

## [Analogue Clock Second hand Sweep not Tick](https://discourse.processing.org/t/analogue-clock-second-hand-sweep-not-tick/2331)

<div class="topic-metadata">

**Author:** [@yorkie](https://discourse.processing.org/u/yorkie)\
**Replies:** 18\
**Last updated:** [October 3, 2019, 2:36am UTC](https://discourse.processing.org/t/analogue-clock-second-hand-sweep-not-tick/2331 "2019-10-03T02:36:01Z")

</div>

Hi All, I’m busting my brains with this one. I’ve taken the very simple clock sketch from the examples, but instead of drawing the lines I’m using images of clock hands. I currently have my clock working perfectly, ho…

---

## [Simultaneous (nested) AniSequences](https://discourse.processing.org/t/simultaneous-nested-anisequences/14380)

<div class="topic-metadata">

**Author:** [@leo.nerd](https://discourse.processing.org/u/leo.nerd)\
**Replies:** 1\
**Last updated:** [October 3, 2019, 1:51am UTC](https://discourse.processing.org/t/simultaneous-nested-anisequences/14380 "2019-10-03T01:51:54Z")

</div>

Hello. I’m trying to use the Ani library to orchestrate a sketch that contains several “sub-modes” that have their own timelines and display methods. Essentially, I would like the master sketch to run a sequence similar …

---

## [Making a loop infinite](https://discourse.processing.org/t/making-a-loop-infinite/14373)

<div class="topic-metadata">

**Author:** [@Adrian1998](https://discourse.processing.org/u/Adrian1998)\
**Replies:** 1\
**Last updated:** [October 2, 2019, 5:10pm UTC](https://discourse.processing.org/t/making-a-loop-infinite/14373 "2019-10-02T17:10:17Z")

</div>

Hello, so I need help with finding a way to make the black striped lines infinte, currently it starts at -100, but the lines stops printing after a little. Also im having trouble with the yellow solid line, currently the…

---

## [Network library Netstation](https://discourse.processing.org/t/network-library-netstation/14365)

<div class="topic-metadata">

**Author:** [@kb12592](https://discourse.processing.org/u/kb12592)\
**Replies:** 4\
**Last updated:** [October 2, 2019, 2:54pm UTC](https://discourse.processing.org/t/network-library-netstation/14365 "2019-10-02T14:54:08Z")

</div>

I want to be able to send time-stamps from Processing PDE to an EEG acquisition software called NetStation using the network library. NetStation has plug-ins and scripts available for Matlab, E-prime and Python, to send …

---

## [Using millis() to count](https://discourse.processing.org/t/using-millis-to-count/3093)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 16\
**Last updated:** [October 2, 2019, 12:51pm UTC](https://discourse.processing.org/t/using-millis-to-count/3093 "2019-10-02T12:51:15Z")

</div>

I’ve been trying to find a way to solve this problem for a while. I remember seeing a solution somewhere on the internet a while back but I can’t find it now. I was hoping to be able to use a modulo condition to check f…

---

## [Height / width for a beginner](https://discourse.processing.org/t/height-width-for-a-beginner/14364)

<div class="topic-metadata">

**Author:** [@harsande](https://discourse.processing.org/u/harsande)\
**Replies:** 3\
**Last updated:** [October 2, 2019, 10:47am UTC](https://discourse.processing.org/t/height-width-for-a-beginner/14364 "2019-10-02T10:47:35Z")

</div>

Hi, I’m all new to Processing, trying to learn the basics. Right now I’m trying to make a square expand for the center of a window. This works fine except for the first time running the loop. I am defining corner x and …

---

## [Can a function like this load images?](https://discourse.processing.org/t/can-a-function-like-this-load-images/14354)

<div class="topic-metadata">

**Author:** [@ImDaGr3en](https://discourse.processing.org/u/ImDaGr3en)\
**Replies:** 2\
**Last updated:** [October 2, 2019, 10:05am UTC](https://discourse.processing.org/t/can-a-function-like-this-load-images/14354 "2019-10-02T10:05:52Z")

</div>

I wrote a function assuming that I could pass to an array of images, an array of strings and the length of the two of them and it would have loaded the images, stored into the strings, in the elements of the images array…

---

## [Java reflect Field get class variables](https://discourse.processing.org/t/java-reflect-field-get-class-variables/14357)

<div class="topic-metadata">

**Author:** [@GeorgeJava](https://discourse.processing.org/u/GeorgeJava)\
**Replies:** 3\
**Last updated:** [October 2, 2019, 7:56am UTC](https://discourse.processing.org/t/java-reflect-field-get-class-variables/14357 "2019-10-02T07:56:38Z")

</div>

Hello, i want to load all variables from sketch and want to check some variables in the specific class and do some changes, how i can get class from Field ? :neutral\_face::thinking: import java.lang.reflect.Field; test…

---

## [Using camera() and displaying pin up things](https://discourse.processing.org/t/using-camera-and-displaying-pin-up-things/14350)

<div class="topic-metadata">

**Author:** [@Waboqueox](https://discourse.processing.org/u/Waboqueox)\
**Replies:** 2\
**Last updated:** [October 2, 2019, 7:23am UTC](https://discourse.processing.org/t/using-camera-and-displaying-pin-up-things/14350 "2019-10-02T07:23:03Z")

</div>

Hi people; I’m starting using camera(…) and don’t understand well looking the reference or other topics :dizzy\_face: I want to change the camera but let some buttons/text in the front lane without moving (to be able to …

---

## [applyMatrix to mouseX and mouseY](https://discourse.processing.org/t/applymatrix-to-mousex-and-mousey/14242)

<div class="topic-metadata">

**Author:** [@Jithin](https://discourse.processing.org/u/Jithin)\
**Replies:** 9\
**Last updated:** [October 2, 2019, 6:54am UTC](https://discourse.processing.org/t/applymatrix-to-mousex-and-mousey/14242 "2019-10-02T06:54:04Z")

</div>

When I use applyMatrix in a sketch to transform the coordinates, the mouseX and mouseY is not transformed accordingly. The sketch explains the problem. https://editor.p5js.org/jithunni.ks/sketches/p9Q0JnE\_l Is there a…

---

## [Full Page Canvas for Album Art Project](https://discourse.processing.org/t/full-page-canvas-for-album-art-project/14328)

<div class="topic-metadata">

**Author:** [@bradley](https://discourse.processing.org/u/bradley)\
**Replies:** 2\
**Last updated:** [October 2, 2019, 4:31am UTC](https://discourse.processing.org/t/full-page-canvas-for-album-art-project/14328 "2019-10-02T04:31:52Z")

</div>

I have an idea to make a website for an album my friends and I made that does some interactive stuff with photos that a user would upload and then with p5 various effects and stuff would happen. I was thinking of just co…

---

## [Ask for help for the "expecting EOF, found 'for"](https://discourse.processing.org/t/ask-for-help-for-the-expecting-eof-found-for/14362)

<div class="topic-metadata">

**Author:** [@chengch](https://discourse.processing.org/u/chengch)\
**Replies:** 1\
**Last updated:** [October 2, 2019, 3:23am UTC](https://discourse.processing.org/t/ask-for-help-for-the-expecting-eof-found-for/14362 "2019-10-02T03:23:49Z")

</div>

Dear ALL: I just type the following simple code, and shown the error message of “expecting EOF, found 'for” can some one give me the guidence of this problem, thanks a lot void setup(){ size(200, 200); noStrok…

---

## [Random Circles in circles](https://discourse.processing.org/t/random-circles-in-circles/14360)

<div class="topic-metadata">

**Author:** [@Epic\_ModZz](https://discourse.processing.org/u/Epic_ModZz)\
**Replies:** 9\
**Last updated:** [October 2, 2019, 2:17am UTC](https://discourse.processing.org/t/random-circles-in-circles/14360 "2019-10-02T02:17:17Z")

</div>

I would like to generate circles at a random place in a circle, I do not know how to do this without having the circles generated by the generator overlap the edges of the starting circle please send code

---

## [Toxiclibs particles and springs](https://discourse.processing.org/t/toxiclibs-particles-and-springs/14182)

<div class="topic-metadata">

**Author:** [@orbicularis](https://discourse.processing.org/u/orbicularis)\
**Replies:** 5\
**Last updated:** [October 2, 2019, 12:15am UTC](https://discourse.processing.org/t/toxiclibs-particles-and-springs/14182 "2019-10-02T00:15:43Z")

</div>

Hi, I wrote that with the help of a toxiclibs tutorial. I want all the particles moving upwards to make cylindrical mesh. But in my sketch, particles moves horizontally. What should I change to move particles and spring…

---

## [Make an authenticated JSON request](https://discourse.processing.org/t/make-an-authenticated-json-request/14224)

<div class="topic-metadata">

**Author:** [@prismspecs](https://discourse.processing.org/u/prismspecs)\
**Replies:** 5\
**Last updated:** [October 1, 2019, 6:29pm UTC](https://discourse.processing.org/t/make-an-authenticated-json-request/14224 "2019-10-01T18:29:00Z")

</div>

I see this page https://p5js.org/reference/#/p5/httpDo But when I try to make an API request with my access token from https://littlesis.org/api it doesn’t work. I see that LittleSis wants the string “Littlesis-Api-To…

---

## [Saving table files in android](https://discourse.processing.org/t/saving-table-files-in-android/14262)

<div class="topic-metadata">

**Author:** [@Srihari](https://discourse.processing.org/u/Srihari)\
**Replies:** 1\
**Last updated:** [October 1, 2019, 3:48pm UTC](https://discourse.processing.org/t/saving-table-files-in-android/14262 "2019-10-01T15:48:39Z")

</div>

I am not able to save table file in processing android. I have microsoft exel on the mobile I used this syntax - save(tablename,location); I used location as data/table.csv Thank you for the help

---

## [textWidth() issues](https://discourse.processing.org/t/textwidth-issues/14218)

<div class="topic-metadata">

**Author:** [@GildasP](https://discourse.processing.org/u/GildasP)\
**Replies:** 4\
**Last updated:** [October 1, 2019, 1:17pm UTC](https://discourse.processing.org/t/textwidth-issues/14218 "2019-10-01T13:17:18Z")

</div>

Hi there. I’m using textWidth() to fit texts horizontaly in a fixed width. Doing so works great, I check for the textWidth() of my text in size 100, then I calculate in which size it would perfectly fit my fixed width …

---

## [IR cameras for outdoor installations using processing](https://discourse.processing.org/t/ir-cameras-for-outdoor-installations-using-processing/14345)

<div class="topic-metadata">

**Author:** [@rojele](https://discourse.processing.org/u/rojele)\
**Replies:** 0\
**Last updated:** [October 1, 2019, 12:12pm UTC](https://discourse.processing.org/t/ir-cameras-for-outdoor-installations-using-processing/14345 "2019-10-01T12:12:29Z")

</div>

Hi! I’m searching for any advice on IR cams (or hackable webcam) that could allow me to track people in a distance of about 20 meters. The most of the hackable webcams I know turns out to have this problem with long dis…

---

## [Using lambda with Pixel Flow library](https://discourse.processing.org/t/using-lambda-with-pixel-flow-library/14284)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 2\
**Last updated:** [October 1, 2019, 12:36pm UTC](https://discourse.processing.org/t/using-lambda-with-pixel-flow-library/14284 "2019-10-01T12:36:55Z")

</div>

Previously I described a Hype library sketch using java lambda using Sam Pottingers development version of processing here is a Pixel Flow library sketch that implements a callback using a java lambda. /\*\* \* \* PixelF…

---

## [Detecting object collision](https://discourse.processing.org/t/detecting-object-collision/14336)

<div class="topic-metadata">

**Author:** [@quoi](https://discourse.processing.org/u/quoi)\
**Replies:** 1\
**Last updated:** [October 1, 2019, 11:58am UTC](https://discourse.processing.org/t/detecting-object-collision/14336 "2019-10-01T11:58:27Z")

</div>

Hello! I’m new to processing, and i’m wondering how can i compare two variables from different classes with each other. Can someone please guide me in the right direction… if you are wondering here is my code: float an…

---

## [Interstitial ad](https://discourse.processing.org/t/interstitial-ad/14338)

<div class="topic-metadata">

**Author:** [@Yash](https://discourse.processing.org/u/Yash)\
**Replies:** 3\
**Last updated:** [October 1, 2019, 10:26am UTC](https://discourse.processing.org/t/interstitial-ad/14338 "2019-10-01T10:26:58Z")

</div>

hello everyone ive completed creating my game…but iam facing so much trouble from 2 weeks implementing either interstitial or video ads.The code executes without any error ads doesnt show.i want to publish my app…any hel…

---

## [Loading 3D models in android mode and adding textures (how to)](https://discourse.processing.org/t/loading-3d-models-in-android-mode-and-adding-textures-how-to/14339)

<div class="topic-metadata">

**Author:** [@Waboqueox](https://discourse.processing.org/u/Waboqueox)\
**Replies:** 1\
**Last updated:** [October 1, 2019, 7:37am UTC](https://discourse.processing.org/t/loading-3d-models-in-android-mode-and-adding-textures-how-to/14339 "2019-10-01T07:37:44Z")

</div>

Hi there!! I’m having problems loading 3d models in android. At java mode, it works nice :open\_mouth: : But using android mode I can’t even load it, and importing it to android studio and adding some code on the man…

---

## [Handling rotary encoder signals](https://discourse.processing.org/t/handling-rotary-encoder-signals/14283)

<div class="topic-metadata">

**Author:** [@isdn](https://discourse.processing.org/u/isdn)\
**Replies:** 3\
**Last updated:** [October 1, 2019, 12:55am UTC](https://discourse.processing.org/t/handling-rotary-encoder-signals/14283 "2019-10-01T00:55:45Z")

</div>

I’m working on a project that uses this rotary encoder to control an onscreen element. I believe I understand how rotary encoders work in that there are two pins (A & B) that produce high or low pulses based on the direc…

---

## [Inpainting, image processing, complex functions](https://discourse.processing.org/t/inpainting-image-processing-complex-functions/14223)

<div class="topic-metadata">

**Author:** [@nsegal](https://discourse.processing.org/u/nsegal)\
**Replies:** 3\
**Last updated:** [September 30, 2019, 11:20pm UTC](https://discourse.processing.org/t/inpainting-image-processing-complex-functions/14223 "2019-09-30T23:20:19Z")

</div>

I’m trying to code a program that will visualize the effect of various polynomial functions on the complex plane. For example, the first image below shows a segment of the complex plane, centered on (0, 0), colored accor…

---

## [I don't understand why this doesn't work](https://discourse.processing.org/t/i-dont-understand-why-this-doesnt-work/14327)

<div class="topic-metadata">

**Author:** [@ImDaGr3en](https://discourse.processing.org/u/ImDaGr3en)\
**Replies:** 3\
**Last updated:** [September 30, 2019, 10:00pm UTC](https://discourse.processing.org/t/i-dont-understand-why-this-doesnt-work/14327 "2019-09-30T22:00:09Z")

</div>

I’m trying to make some functions that allow me to show some images in the window, so I made a class in which I put the PImage variables and a function that allows me to load the images, but it doesn’t actually work. (An…

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

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