# Latest

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

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

**Page:** 499

---

## [Constructor Argument for COLOR ~ Dan Shiffman book ~ exercise 8-6](https://discourse.processing.org/t/constructor-argument-for-color-dan-shiffman-book-exercise-8-6/10415)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 2\
**Last updated:** [April 18, 2019, 2:51pm UTC](https://discourse.processing.org/t/constructor-argument-for-color-dan-shiffman-book-exercise-8-6/10415 "2019-04-18T14:51:04Z")

</div>

I want the eyes to appear in RED in one iteration of the Zoog object, and to appear GREEN in the second iteration of the Zoog object. However the eyes are currently appearing BLACK in both iterations. What have I done …

---

## [Trouble with saving to Table](https://discourse.processing.org/t/trouble-with-saving-to-table/10150)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 9\
**Last updated:** [April 18, 2019, 8:07am UTC](https://discourse.processing.org/t/trouble-with-saving-to-table/10150 "2019-04-18T08:07:33Z")

</div>

I am trying to make an interface that would save grades for students. Then the data is saved to CSV. In the first column I have the student ID (SID)- next to it are the grades. What I wish for is that if I go back to…

---

## [3D rain drops \[The rate at which the drops fall gradually increases\]](https://discourse.processing.org/t/3d-rain-drops-the-rate-at-which-the-drops-fall-gradually-increases/10397)

<div class="topic-metadata">

**Author:** [@Capt.Sloth](https://discourse.processing.org/u/Capt.Sloth)\
**Replies:** 7\
**Last updated:** [April 18, 2019, 9:42am UTC](https://discourse.processing.org/t/3d-rain-drops-the-rate-at-which-the-drops-fall-gradually-increases/10397 "2019-04-18T09:42:04Z")

</div>

This a simple code in which multiple spheres are created at different X and Y coordinates and are given the speed at which they will fall.The speed seems to gradually increase as the number of spheres increase as a resu…

---

## [Conversion from a "public String" to a normal String](https://discourse.processing.org/t/conversion-from-a-public-string-to-a-normal-string/10355)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 7\
**Last updated:** [April 18, 2019, 5:52am UTC](https://discourse.processing.org/t/conversion-from-a-public-string-to-a-normal-string/10355 "2019-04-18T05:52:04Z")

</div>

I am obtaining a String from the apsync.\*; library. It is very reliable but I have to declare it as a public String. Later I am trying to compare it to a local string and get a True or false. Here is the code simpl…

---

## [Reason why accelerationX, accelerationY, accelerationZ and and rotationX, rotationY, rotationZ values are not recorded sometimes?](https://discourse.processing.org/t/reason-why-accelerationx-accelerationy-accelerationz-and-and-rotationx-rotationy-rotationz-values-are-not-recorded-sometimes/10336)

<div class="topic-metadata">

**Author:** [@togo](https://discourse.processing.org/u/togo)\
**Replies:** 11\
**Last updated:** [April 18, 2019, 4:35am UTC](https://discourse.processing.org/t/reason-why-accelerationx-accelerationy-accelerationz-and-and-rotationx-rotationy-rotationz-values-are-not-recorded-sometimes/10336 "2019-04-18T04:35:02Z")

</div>

Hello, I have a question about accelerationX, accelerationY, accelerationZ and rotationX, rotationY, rotationZ. For a class project, I made a sketch on p5.js that records both the acceleration and the rotation of the mo…

---

## [Magic game Scroll code :)](https://discourse.processing.org/t/magic-game-scroll-code/10385)

<div class="topic-metadata">

**Author:** [@erkosone](https://discourse.processing.org/u/erkosone)\
**Replies:** 2\
**Last updated:** [April 18, 2019, 3:20am UTC](https://discourse.processing.org/t/magic-game-scroll-code/10385 "2019-04-18T03:20:35Z")

</div>

Hello people, I bring you a code that I have not yet seen in the processing forum, it is a great help to make video scrolling games or a huge help to make cyclic textures effects completely adaptable to all the needs you…

---

## [Writing code using Processing 3.x on a Samsung Tab S4](https://discourse.processing.org/t/writing-code-using-processing-3-x-on-a-samsung-tab-s4/10228)

<div class="topic-metadata">

**Author:** [@Keif3r](https://discourse.processing.org/u/Keif3r)\
**Replies:** 2\
**Last updated:** [April 18, 2019, 1:04am UTC](https://discourse.processing.org/t/writing-code-using-processing-3-x-on-a-samsung-tab-s4/10228 "2019-04-18T01:04:30Z")

</div>

Hi, Sorry if this is in the wrong spot, I have been trying to work out an easy way to write code on a Samsung Tab S4 in a Processing environment. I normally use my PC at home for most of it, but sometimes I have time to…

---

## [Problem with loadJSONArray example](https://discourse.processing.org/t/problem-with-loadjsonarray-example/10207)

<div class="topic-metadata">

**Author:** [@wprisk](https://discourse.processing.org/u/wprisk)\
**Replies:** 13\
**Last updated:** [April 18, 2019, 12:05am UTC](https://discourse.processing.org/t/problem-with-loadjsonarray-example/10207 "2019-04-18T00:05:29Z")

</div>

Hello, I am trying to run the simple example for “loadJSONArray” found here: https://processing.org/reference/loadJSONArray\_.html When I do so (by copying and pasting into a Processing sketch, and also creating the da…

---

## [Array expand doesn't always work?](https://discourse.processing.org/t/array-expand-doesnt-always-work/10410)

<div class="topic-metadata">

**Author:** [@RichardDL](https://discourse.processing.org/u/RichardDL)\
**Replies:** 2\
**Last updated:** [April 17, 2019, 9:05pm UTC](https://discourse.processing.org/t/array-expand-doesnt-always-work/10410 "2019-04-17T21:05:47Z")

</div>

The example given for ‘expand’ works alright, but the code below is the example for loadStrings, with expand added. Why doesn’t it expand the array? String\[\] lines = loadStrings("list.txt"); println("there are " + line…

---

## [My paragraph '\<p\> \</p\>' is not uder the sketch](https://discourse.processing.org/t/my-paragraph-p-p-is-not-uder-the-sketch/10408)

<div class="topic-metadata">

**Author:** [@Sky](https://discourse.processing.org/u/Sky)\
**Replies:** 1\
**Last updated:** [April 17, 2019, 8:04pm UTC](https://discourse.processing.org/t/my-paragraph-p-p-is-not-uder-the-sketch/10408 "2019-04-17T20:04:47Z")

</div>

\<body\> \<h1\>Hello World!\</h1\> \<script src="sketch.js"\>\</script\> \<p\>I should be under the sketch\</p\> \</body\> (it is not under the sketch) How does this exactly work?

---

## [Can I include p5.js in a game download?](https://discourse.processing.org/t/can-i-include-p5-js-in-a-game-download/10268)

<div class="topic-metadata">

**Author:** [@burningpocket](https://discourse.processing.org/u/burningpocket)\
**Replies:** 4\
**Last updated:** [April 17, 2019, 6:53pm UTC](https://discourse.processing.org/t/can-i-include-p5-js-in-a-game-download/10268 "2019-04-17T18:53:11Z")

</div>

I made a game using p5.js and have it on my website. I have a code explanation section where I link to p5js.org adn explane that I used it. I want to provide a download of my script so that people can check it out. Can I…

---

## [Panorama warping cylinder](https://discourse.processing.org/t/panorama-warping-cylinder/9131)

<div class="topic-metadata">

**Author:** [@janebeta7](https://discourse.processing.org/u/janebeta7)\
**Replies:** 18\
**Last updated:** [April 17, 2019, 6:36pm UTC](https://discourse.processing.org/t/panorama-warping-cylinder/9131 "2019-04-17T18:36:29Z")

</div>

Hello, i would like to create this warp (source: http://paulbourke.net/stereographics/cylinder/) i Just found a way to use opencv but i am not super clear do you know any way to create in real time the cylinder w…

---

## [Text Rain Processing](https://discourse.processing.org/t/text-rain-processing/10306)

<div class="topic-metadata">

**Author:** [@nothingnew](https://discourse.processing.org/u/nothingnew)\
**Replies:** 7\
**Last updated:** [April 17, 2019, 6:21pm UTC](https://discourse.processing.org/t/text-rain-processing/10306 "2019-04-17T18:21:35Z")

</div>

hello! i am creating random alphabet rain at this moment, but it seems like continuously same position with same alphabets. I want it to be all random! is there any solution for this problem? thanks! String \[\] data =…

---

## [Programming Posters - Creative Coding in the realms of Graphic Design](https://discourse.processing.org/t/programming-posters-creative-coding-in-the-realms-of-graphic-design/6474)

<div class="topic-metadata">

**Author:** [@timrodenbroeker](https://discourse.processing.org/u/timrodenbroeker)\
**Replies:** 8\
**Last updated:** [April 17, 2019, 3:36pm UTC](https://discourse.processing.org/t/programming-posters-creative-coding-in-the-realms-of-graphic-design/6474 "2019-04-17T15:36:34Z")

</div>

Hi folks! I’m finally done with the case study of an explorative project that i’ve been working on for a few months: “Programming Posters”: Hope you like it! Here’s the “official” text: The printed poster, the m…

---

## [Processing will not open past logo screen](https://discourse.processing.org/t/processing-will-not-open-past-logo-screen/10394)

<div class="topic-metadata">

**Author:** [@thekeets](https://discourse.processing.org/u/thekeets)\
**Replies:** 1\
**Last updated:** [April 17, 2019, 3:21pm UTC](https://discourse.processing.org/t/processing-will-not-open-past-logo-screen/10394 "2019-04-17T15:21:34Z")

</div>

Description As soon as I unzip and try to open Processing, I only get to see the startup logo window for about 3 seconds and then nothing else happens. It dissappears and no app opens. Expected Behavior I’m not quite …

---

## [Why I cannot run code NullPointerException](https://discourse.processing.org/t/why-i-cannot-run-code-nullpointerexception/10378)

<div class="topic-metadata">

**Author:** [@warayutsitha2](https://discourse.processing.org/u/warayutsitha2)\
**Replies:** 8\
**Last updated:** [April 17, 2019, 3:20pm UTC](https://discourse.processing.org/t/why-i-cannot-run-code-nullpointerexception/10378 "2019-04-17T15:20:29Z")

</div>

import processing.serial.\*; Serial myPort; String inBuffer; PImage img; String\[\] txt = split(inBuffer,' '); void setup(){ myPort = new Serial(this, "COM9", 115200); myPort.bufferUntil('\\n'); } void draw(){ \*…

---

## [Sequence question](https://discourse.processing.org/t/sequence-question/10365)

<div class="topic-metadata">

**Author:** [@horsemen](https://discourse.processing.org/u/horsemen)\
**Replies:** 3\
**Last updated:** [April 17, 2019, 12:31pm UTC](https://discourse.processing.org/t/sequence-question/10365 "2019-04-17T12:31:58Z")

</div>

The question is the sequence starts with three ones and then every number after that is the sum of the three numbers that precede it. For example: 1 1 1 3 = 1 + 1 + 1 5 = 3 + 1 + 1 9 = 5 + 3 + 1 17 = 9 + 5 + 3 3…

---

## [Import or "translate" a FORTAN code in Processing](https://discourse.processing.org/t/import-or-translate-a-fortan-code-in-processing/9997)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 7\
**Last updated:** [April 16, 2019, 9:24am UTC](https://discourse.processing.org/t/import-or-translate-a-fortan-code-in-processing/9997 "2019-04-16T09:24:27Z")

</div>

Hi everyones, I’m very interested with the synchronisation of globally coupled oscillators due to wonderful pattern it can make. So, I would like to use the periodic signal of 5 oscillators and see how they synchronise…

---

## [Debugging via web inspector in p5 web editor](https://discourse.processing.org/t/debugging-via-web-inspector-in-p5-web-editor/10373)

<div class="topic-metadata">

**Author:** [@jafish](https://discourse.processing.org/u/jafish)\
**Replies:** 2\
**Last updated:** [April 17, 2019, 7:41am UTC](https://discourse.processing.org/t/debugging-via-web-inspector-in-p5-web-editor/10373 "2019-04-17T07:41:25Z")

</div>

Hello, I’m attempting to debug a p5.js sketch and, for this particular sketch it would be helpful to use the web inspector (via Chrome or Safari, for example) to track a variable’s value. Can anyone provide some pointers…

---

## [Assignment operator](https://discourse.processing.org/t/assignment-operator/10249)

<div class="topic-metadata">

**Author:** [@jdk](https://discourse.processing.org/u/jdk)\
**Replies:** 5\
**Last updated:** [April 17, 2019, 4:48am UTC](https://discourse.processing.org/t/assignment-operator/10249 "2019-04-17T04:48:44Z")

</div>

I was preparing simple animation game of bouncing ball. There I have to insert an assignment condition for collision with a paddle to bounce. But it seems that p5js isn’t compatible with assignment operator. Its not …

---

## [How can I make my circles move slightly?](https://discourse.processing.org/t/how-can-i-make-my-circles-move-slightly/10301)

<div class="topic-metadata">

**Author:** [@dana](https://discourse.processing.org/u/dana)\
**Replies:** 3\
**Last updated:** [April 16, 2019, 9:27pm UTC](https://discourse.processing.org/t/how-can-i-make-my-circles-move-slightly/10301 "2019-04-16T21:27:42Z")

</div>

Okay so I found some code and I’ll like to change it to do something else. Right now there’s a class of circles that appear at random places on the screen, and when the mouse hovers over the screen, the colours of the ci…

---

## [Array of method calls?](https://discourse.processing.org/t/array-of-method-calls/10327)

<div class="topic-metadata">

**Author:** [@aaronjmcd2](https://discourse.processing.org/u/aaronjmcd2)\
**Replies:** 2\
**Last updated:** [April 16, 2019, 5:21pm UTC](https://discourse.processing.org/t/array-of-method-calls/10327 "2019-04-16T17:21:42Z")

</div>

Hi all! Basically, I’m trying to build an overlapping drawing that is dependent on which step the user selects. For example: Step 1: A line. Step 2: A line and a circle. Step 3: A line and a circle and a square. Ste…

---

## [How can I convert local time with long & lat into universal time?](https://discourse.processing.org/t/how-can-i-convert-local-time-with-long-lat-into-universal-time/10181)

<div class="topic-metadata">

**Author:** [@EvilDuck](https://discourse.processing.org/u/EvilDuck)\
**Replies:** 5\
**Last updated:** [April 16, 2019, 5:05pm UTC](https://discourse.processing.org/t/how-can-i-convert-local-time-with-long-lat-into-universal-time/10181 "2019-04-16T17:05:25Z")

</div>

How can I convert local time (with long & lat) into universal time, is there maybe a library for this? The problem seems be be very difficult to solve. I am searching the interwebs now for two days already but to no ava…

---

## [Flying text animation jitter](https://discourse.processing.org/t/flying-text-animation-jitter/10296)

<div class="topic-metadata">

**Author:** [@AndreasF](https://discourse.processing.org/u/AndreasF)\
**Replies:** 9\
**Last updated:** [April 16, 2019, 3:57pm UTC](https://discourse.processing.org/t/flying-text-animation-jitter/10296 "2019-04-16T15:57:00Z")

</div>

Hi everyone, I just started with my first sketch in p5. I want to create a flying text effect. I created a simple prototype in the online editor: https://editor.p5js.org/AndreasFurster/sketches/jc1Ozy7VU The only pro…

---

## [Problems with true false](https://discourse.processing.org/t/problems-with-true-false/10348)

<div class="topic-metadata">

**Author:** [@jensemand](https://discourse.processing.org/u/jensemand)\
**Replies:** 6\
**Last updated:** [April 16, 2019, 1:32pm UTC](https://discourse.processing.org/t/problems-with-true-false/10348 "2019-04-16T13:32:15Z")

</div>

Hi, I have some troubles. I want to make a boolean true when I press a bottom and then stay true but it always changes back to false

---

## [Coding AxiDraw as I want](https://discourse.processing.org/t/coding-axidraw-as-i-want/10329)

<div class="topic-metadata">

**Author:** [@duddy](https://discourse.processing.org/u/duddy)\
**Replies:** 10\
**Last updated:** [April 16, 2019, 8:00am UTC](https://discourse.processing.org/t/coding-axidraw-as-i-want/10329 "2019-04-16T08:00:42Z")

</div>

Hello everybody ! Just want to precise first that I’m not a native English speaker so please be merciful with me if you spot grammar mistakes or anything… I need help on a project about making an AxiDraw v3 robot (pain…

---

## [Make GIF with p5.js](https://discourse.processing.org/t/make-gif-with-p5-js/9453)

<div class="topic-metadata">

**Author:** [@ankur\_54](https://discourse.processing.org/u/ankur_54)\
**Replies:** 2\
**Last updated:** [April 16, 2019, 7:04am UTC](https://discourse.processing.org/t/make-gif-with-p5-js/9453 "2019-04-16T07:04:57Z")

</div>

Sir/Mam, I am Ankur Mazumder, 2nd year in IIT Bhubaneshwar. I have a fair amount of knowledge in JavaScript including ES6 and have some experience with p5.js. I would like to work on GIF project. I have some ideas on th…

---

## [Getting gif exporting via ccapture working in the p5js web editor](https://discourse.processing.org/t/getting-gif-exporting-via-ccapture-working-in-the-p5js-web-editor/7815)

<div class="topic-metadata">

**Author:** [@jgl](https://discourse.processing.org/u/jgl)\
**Replies:** 1\
**Last updated:** [April 16, 2019, 6:59am UTC](https://discourse.processing.org/t/getting-gif-exporting-via-ccapture-working-in-the-p5js-web-editor/7815 "2019-04-16T06:59:12Z")

</div>

Hi All, I’m trying to get animated gif export via ccapture.js, there is an example here: I’ve duplicated @GoToLoop code into the online editor: But I get the error: “ReferenceError: can’t access lexical declarati…

---

## [Can some one help me stack and navigate two canvases](https://discourse.processing.org/t/can-some-one-help-me-stack-and-navigate-two-canvases/10315)

<div class="topic-metadata">

**Author:** [@octaminotin](https://discourse.processing.org/u/octaminotin)\
**Replies:** 0\
**Last updated:** [April 16, 2019, 12:09am UTC](https://discourse.processing.org/t/can-some-one-help-me-stack-and-navigate-two-canvases/10315 "2019-04-16T00:09:42Z")

</div>

i got this so far {dot.operator function setup1() { iframe\>createCanvas(400, 500); } function draw() { background1(220); } {dot.operator function setup2() { iframe\>createCanvas(400, 400); } function draw() { …

---

## [Dev tool result](https://discourse.processing.org/t/dev-tool-result/10183)

<div class="topic-metadata">

**Author:** [@l3ehfar](https://discourse.processing.org/u/l3ehfar)\
**Replies:** 2\
**Last updated:** [April 15, 2019, 11:41pm UTC](https://discourse.processing.org/t/dev-tool-result/10183 "2019-04-15T23:41:13Z")

</div>

As my code has been crashed, I got a result from chrome dev tool which said: DevTools: CPU profile parser is fixing 1 missing samples. what does it mean? https://editor.p5js.org/l3ehfar/sketches/JFf1Dxf2K

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

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