# Latest

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

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

**Page:** 391

---

## [Processing Community Day @ London 2020](https://discourse.processing.org/t/processing-community-day-london-2020/17980)

<div class="topic-metadata">

**Author:** [@limzykenneth](https://discourse.processing.org/u/limzykenneth)\
**Replies:** 0\
**Last updated:** [February 21, 2020, 6:27pm UTC](https://discourse.processing.org/t/processing-community-day-london-2020/17980 "2020-02-21T18:27:54Z")

</div>

Hi all, Just wanted to post here that PCD@London 2020 is being held at UAL Creative Computing Institute on 21st March alongside Arduino Day as Creative Computing Community Day (CCCD). You can sign up to attend here: ht…

---

## [How to make spikes](https://discourse.processing.org/t/how-to-make-spikes/17935)

<div class="topic-metadata">

**Author:** [@DMTR](https://discourse.processing.org/u/DMTR)\
**Replies:** 31\
**Last updated:** [February 21, 2020, 2:41pm UTC](https://discourse.processing.org/t/how-to-make-spikes/17935 "2020-02-21T14:41:25Z")

</div>

Hey, i am new user in processing and java. Im creating my first game, and i need help of making randomly spawning objects that kills you if you hit it. I want those objects spawn to right and going to left (player is i…

---

## [How to reference an object in another function to its class?](https://discourse.processing.org/t/how-to-reference-an-object-in-another-function-to-its-class/17964)

<div class="topic-metadata">

**Author:** [@anon94203042](https://discourse.processing.org/u/anon94203042)\
**Replies:** 3\
**Last updated:** [February 21, 2020, 1:32pm UTC](https://discourse.processing.org/t/how-to-reference-an-object-in-another-function-to-its-class/17964 "2020-02-21T13:32:51Z")

</div>

Let’s say that we have a class and a function (sorry for the peudo-code): class Person { int age; } Person squid; void IncreaseAge(Human object) { } How would I make it so that I could do something like this: v…

---

## [Beginner needs help](https://discourse.processing.org/t/beginner-needs-help/11589)

<div class="topic-metadata">

**Author:** [@d\_vibe](https://discourse.processing.org/u/d_vibe)\
**Replies:** 9\
**Last updated:** [February 21, 2020, 2:23am UTC](https://discourse.processing.org/t/beginner-needs-help/11589 "2020-02-21T02:23:50Z")

</div>

Hi! I’m fairly new to programming graphical effects, and I thought, as a starter, it would be a fun thing to try to imitate some of the early demoscene effects that was seen on computers, such as the Commodore Amiga, bac…

---

## [Help to improve sketch framerate, especially LiquidFun/PixelFlow components](https://discourse.processing.org/t/help-to-improve-sketch-framerate-especially-liquidfun-pixelflow-components/17682)

<div class="topic-metadata">

**Author:** [@julianpb.c1](https://discourse.processing.org/u/julianpb.c1)\
**Replies:** 3\
**Last updated:** [February 21, 2020, 12:23am UTC](https://discourse.processing.org/t/help-to-improve-sketch-framerate-especially-liquidfun-pixelflow-components/17682 "2020-02-21T00:23:11Z")

</div>

I’m creating a display for a research study that will run on a MS Surface tablet that has an Intel i5-4300U and embedded graphics. When I run my current sketch on the tablet, I max out around 12fps, CPU runs around 20%, …

---

## [Kinect interacting with LED's (processing & Arduino)](https://discourse.processing.org/t/kinect-interacting-with-leds-processing-arduino/10799)

<div class="topic-metadata">

**Author:** [@juriaan](https://discourse.processing.org/u/juriaan)\
**Replies:** 2\
**Last updated:** [February 20, 2020, 10:09pm UTC](https://discourse.processing.org/t/kinect-interacting-with-leds-processing-arduino/10799 "2020-02-20T22:09:27Z")

</div>

0 I use a neopixel 6x6 led matrix (ws2812) + Arduino Uno I wrote a small code that uses Kinect to track movement in processing. It displays everything between the depth of 300 & 500 in pixels. I want this to be displa…

---

## [Reversing Random Distribution](https://discourse.processing.org/t/reversing-random-distribution/17427)

<div class="topic-metadata">

**Author:** [@PhilRandom](https://discourse.processing.org/u/PhilRandom)\
**Replies:** 2\
**Last updated:** [February 20, 2020, 7:20pm UTC](https://discourse.processing.org/t/reversing-random-distribution/17427 "2020-02-20T19:20:04Z")

</div>

Hello Fellow Coders, Phil Again, It seems that I have run into another coding predicament…oops. I have successfully coded a random distribution descending code that changes color when reaching the bottom of the canvas…

---

## [Lat long to screen coordinates from database](https://discourse.processing.org/t/lat-long-to-screen-coordinates-from-database/17434)

<div class="topic-metadata">

**Author:** [@katniss0809](https://discourse.processing.org/u/katniss0809)\
**Replies:** 1\
**Last updated:** [February 20, 2020, 6:56pm UTC](https://discourse.processing.org/t/lat-long-to-screen-coordinates-from-database/17434 "2020-02-20T18:56:41Z")

</div>

I have a set of coordinates (more than 100 points) from a JDBC connection and I want to display them on Processing canvas. However, the coordinates are in latitude and longitude, e.g (42.3541, -72.1675), how can I transf…

---

## [Smartwatch, Compass value does not change](https://discourse.processing.org/t/smartwatch-compass-value-does-not-change/17640)

<div class="topic-metadata">

**Author:** [@anon68884268](https://discourse.processing.org/u/anon68884268)\
**Replies:** 3\
**Last updated:** [February 20, 2020, 6:16pm UTC](https://discourse.processing.org/t/smartwatch-compass-value-does-not-change/17640 "2020-02-20T18:16:14Z")

</div>

Hello, I’ve written a little smartwatch watchface (with the Ketai Libary), and the compass value isn’t changing. I tried it with getting the Sensor manually, but then it said me, The field Sensor.TYPE\_ORIENTATION is dep…

---

## [Shape (two parameters)](https://discourse.processing.org/t/shape-two-parameters/17465)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 1\
**Last updated:** [February 19, 2020, 4:51am UTC](https://discourse.processing.org/t/shape-two-parameters/17465 "2020-02-19T04:51:50Z")

</div>

I am trying to understand shape() and its two parameters. In this simple example below I have used createShape() to make two spheres. Spheres, in my world, are three-dimensional. All is fine until I get to position the s…

---

## ["If doc == null" not is correct](https://discourse.processing.org/t/if-doc-null-not-is-correct/17941)

<div class="topic-metadata">

**Author:** [@NoName](https://discourse.processing.org/u/NoName)\
**Replies:** 9\
**Last updated:** [February 20, 2020, 2:07pm UTC](https://discourse.processing.org/t/if-doc-null-not-is-correct/17941 "2020-02-20T14:07:53Z")

</div>

Guys, I tried to solve this problem myself, but I couldn’t. I have the docMain \[0\] line, which I take from the file on the phone, but even if it is null (checked), then the if check considers it not null anyway . how …

---

## [The count of files in the sketch folder?](https://discourse.processing.org/t/the-count-of-files-in-the-sketch-folder/17931)

<div class="topic-metadata">

**Author:** [@iamjustcurious](https://discourse.processing.org/u/iamjustcurious)\
**Replies:** 4\
**Last updated:** [February 20, 2020, 9:30am UTC](https://discourse.processing.org/t/the-count-of-files-in-the-sketch-folder/17931 "2020-02-20T09:30:58Z")

</div>

How can I get the number of files in the sketch folder? Second Question Is it possible to get the number of files in the desktop? Thanks.

---

## [Why can't use mouseX in pixels processing](https://discourse.processing.org/t/why-cant-use-mousex-in-pixels-processing/17926)

<div class="topic-metadata">

**Author:** [@fang1](https://discourse.processing.org/u/fang1)\
**Replies:** 2\
**Last updated:** [February 20, 2020, 2:39am UTC](https://discourse.processing.org/t/why-cant-use-mousex-in-pixels-processing/17926 "2020-02-20T02:39:07Z")

</div>

hello,guys! I’m sorry to borther you a little time about the problem I meeting in using mouseX,mouseY in loops of pixels location array.I find a code linkin this situation can run,but it doesn’t work on my processing sof…

---

## [Uber KML Icosahedron](https://discourse.processing.org/t/uber-kml-icosahedron/17601)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 2\
**Last updated:** [February 20, 2020, 1:02am UTC](https://discourse.processing.org/t/uber-kml-icosahedron/17601 "2020-02-20T01:02:05Z")

</div>

Somehow I ended up reading Uber’s articles on H3, a library they wrote to divide up their markets into hexagons. They have a github page : \[https://github.com/uber/h3/blob/master/KML/icosa.kml#L204\] that uses kml to d…

---

## [What are the advantages of using predefined functions over keywords?](https://discourse.processing.org/t/what-are-the-advantages-of-using-predefined-functions-over-keywords/17897)

<div class="topic-metadata">

**Author:** [@anon94203042](https://discourse.processing.org/u/anon94203042)\
**Replies:** 6\
**Last updated:** [February 19, 2020, 10:56pm UTC](https://discourse.processing.org/t/what-are-the-advantages-of-using-predefined-functions-over-keywords/17897 "2020-02-19T22:56:46Z")

</div>

Are there any benefits to using void keyPressed() {} instead of if (keyPressed)? Or void mousePressed() {} instead of if (mousePressed). Or something like that. And in which situations would you use one over the other?

---

## [Web loadStrings](https://discourse.processing.org/t/web-loadstrings/17923)

<div class="topic-metadata">

**Author:** [@juanjoc](https://discourse.processing.org/u/juanjoc)\
**Replies:** 2\
**Last updated:** [February 19, 2020, 11:59am UTC](https://discourse.processing.org/t/web-loadstrings/17923 "2020-02-19T11:59:46Z")

</div>

Hi guys Im working with data extraction of the web. I tried to use examples like the following String\[\] rawhtml; String \[\] shows; String html; int j = 0; void setup(){ rawhtml = loadStrings("\<a href="http://www.boc…

---

## [Error on StartUp](https://discourse.processing.org/t/error-on-startup/17863)

<div class="topic-metadata">

**Author:** [@Alesk1969](https://discourse.processing.org/u/Alesk1969)\
**Replies:** 3\
**Last updated:** [February 19, 2020, 8:21pm UTC](https://discourse.processing.org/t/error-on-startup/17863 "2020-02-19T20:21:11Z")

</div>

Hi, I just installed Processing on my PI 3B+ by running the instruction : “curl https://processing.org/download/install-arm.sh | sudo sh” in the terminal. The installation went OK, I made a reboot, but when I’m trying t…

---

## [Time synched animation](https://discourse.processing.org/t/time-synched-animation/17685)

<div class="topic-metadata">

**Author:** [@BrokenCode](https://discourse.processing.org/u/BrokenCode)\
**Replies:** 15\
**Last updated:** [February 19, 2020, 6:45pm UTC](https://discourse.processing.org/t/time-synched-animation/17685 "2020-02-19T18:45:53Z")

</div>

Hello everyone, here I’m trying to divide the screen with a grid, then fill each tile in a pre-determined amount of time: (this is the most simplified - even silly - example) float timeToConsume = 7, timeToCancelBin; in…

---

## [Variable must change from 3.67 to 3.15](https://discourse.processing.org/t/variable-must-change-from-3-67-to-3-15/17929)

<div class="topic-metadata">

**Author:** [@JochemTD](https://discourse.processing.org/u/JochemTD)\
**Replies:** 3\
**Last updated:** [February 19, 2020, 6:14pm UTC](https://discourse.processing.org/t/variable-must-change-from-3-67-to-3-15/17929 "2020-02-19T18:14:08Z")

</div>

Hi there! I need my variable i to go from 3.67 to 3.15 to 3.67 to 3.15 to 3.67 and so on. I’m able to do this just fine from 3.67 to 3.15, however I can’t manage to let it go back to 3.67. This is the code i’m using rig…

---

## [Processing project started in CMD - error handling](https://discourse.processing.org/t/processing-project-started-in-cmd-error-handling/17930)

<div class="topic-metadata">

**Author:** [@GeorgeJava](https://discourse.processing.org/u/GeorgeJava)\
**Replies:** 6\
**Last updated:** [February 19, 2020, 2:55pm UTC](https://discourse.processing.org/t/processing-project-started-in-cmd-error-handling/17930 "2020-02-19T14:55:09Z")

</div>

I just start bat file, and want to open some my .pde project, and run it… It works, but… When i have some syntax error in the code, it will only close cmd… I want to get the error, where is it ? What is it ? What is …

---

## [Creating a structure of linked tetrahedra](https://discourse.processing.org/t/creating-a-structure-of-linked-tetrahedra/16955)

<div class="topic-metadata">

**Author:** [@dauwpunt](https://discourse.processing.org/u/dauwpunt)\
**Replies:** 13\
**Last updated:** [February 19, 2020, 1:41pm UTC](https://discourse.processing.org/t/creating-a-structure-of-linked-tetrahedra/16955 "2020-02-19T13:41:12Z")

</div>

Hi there. I am trying to generate a 3D landscape of tetrahedra, so to say, and I’m having some trouble with the mathematics and coding of it. I’m also still quite new to Processing! If I am not being clear enough about s…

---

## [The slider of cp5 library is not responsive](https://discourse.processing.org/t/the-slider-of-cp5-library-is-not-responsive/17856)

<div class="topic-metadata">

**Author:** [@Kamel](https://discourse.processing.org/u/Kamel)\
**Replies:** 3\
**Last updated:** [February 19, 2020, 6:53am UTC](https://discourse.processing.org/t/the-slider-of-cp5-library-is-not-responsive/17856 "2020-02-19T06:53:06Z")

</div>

hello everyone i am using cp5 library to get and represent json data “sensors values” from arduino and from the processing program i want to send to parameters to arduino “percentage and frequency”, i am using two slide…

---

## [Utilisation manette en processing](https://discourse.processing.org/t/utilisation-manette-en-processing/17481)

<div class="topic-metadata">

**Author:** [@theclimbhacker](https://discourse.processing.org/u/theclimbhacker)\
**Replies:** 4\
**Last updated:** [February 19, 2020, 6:06am UTC](https://discourse.processing.org/t/utilisation-manette-en-processing/17481 "2020-02-19T06:06:30Z")

</div>

Bonjour, Je cherche a utilisé une manette (Gamecube dans mon cas) pour faire bouger un personnage dans un jeu. J’ai essayé de détecter les boutons de la manette avec la sous fonction keyCode, pensant que les boutons ré…

---

## [SVG Export Error](https://discourse.processing.org/t/svg-export-error/17882)

<div class="topic-metadata">

**Author:** [@fmS3lect](https://discourse.processing.org/u/fmS3lect)\
**Replies:** 1\
**Last updated:** [February 19, 2020, 5:59am UTC](https://discourse.processing.org/t/svg-export-error/17882 "2020-02-19T05:59:00Z")

</div>

Hi all, i try to export an SVG but i get some kind of error, i have googled about this problem but did not found any solution… does someone know how it might work ? Much Thanks Sebastian import processing.video.\*; im…

---

## [Arduino + Processing Serial Port DATA TRANSFER](https://discourse.processing.org/t/arduino-processing-serial-port-data-transfer/16968)

<div class="topic-metadata">

**Author:** [@kristipham](https://discourse.processing.org/u/kristipham)\
**Replies:** 16\
**Last updated:** [February 19, 2020, 2:49am UTC](https://discourse.processing.org/t/arduino-processing-serial-port-data-transfer/16968 "2020-02-19T02:49:59Z")

</div>

This is my control center which displays the buttons for each room. I am wanting to turn on the lights in one room and have my light sensor transfer the data from Arduino’s serial port into Processing to display the read…

---

## [Problem making a wrap around loop with modulo](https://discourse.processing.org/t/problem-making-a-wrap-around-loop-with-modulo/17851)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 9\
**Last updated:** [February 19, 2020, 2:09am UTC](https://discourse.processing.org/t/problem-making-a-wrap-around-loop-with-modulo/17851 "2020-02-19T02:09:59Z")

</div>

I’m trying to make a wrap around loop with modulus. But it’s not working. Keep getting error “expecting {, found \[”. Showing function for loop appears in. If anyone can help, many thanks! color\[\]getThreeColorLerp() { …

---

## [Javascript library on p5 (location on the screen while scrolling)](https://discourse.processing.org/t/javascript-library-on-p5-location-on-the-screen-while-scrolling/13300)

<div class="topic-metadata">

**Author:** [@calornorte](https://discourse.processing.org/u/calornorte)\
**Replies:** 16\
**Last updated:** [February 19, 2020, 1:51am UTC](https://discourse.processing.org/t/javascript-library-on-p5-location-on-the-screen-while-scrolling/13300 "2020-02-19T01:51:40Z")

</div>

I’m such a newby.! on p5, my problem is that I need to know the precise (visible) location on a very long vertical canvas after mouse scrolling down/up. MouseWheel doesn’t really do the job and might cause problems whe…

---

## [How powerful is p5js?](https://discourse.processing.org/t/how-powerful-is-p5js/1713)

<div class="topic-metadata">

**Author:** [@Jithin](https://discourse.processing.org/u/Jithin)\
**Replies:** 1\
**Last updated:** [February 19, 2020, 1:07am UTC](https://discourse.processing.org/t/how-powerful-is-p5js/1713 "2020-02-19T01:07:17Z")

</div>

I’m just curious to know how powerful actually p5js is, what are its possibilities? I want you guys to post below the links to the awesomest works that you’ve done with p5js. Thanks… I will post mine https://jithinks…

---

## [Range of values for add method for Sound oscillators](https://discourse.processing.org/t/range-of-values-for-add-method-for-sound-oscillators/17813)

<div class="topic-metadata">

**Author:** [@paul-reiners](https://discourse.processing.org/u/paul-reiners)\
**Replies:** 2\
**Last updated:** [February 19, 2020, 12:58am UTC](https://discourse.processing.org/t/range-of-values-for-add-method-for-sound-oscillators/17813 "2020-02-19T00:58:58Z")

</div>

What is the range of values for the add method for Sound oscillators? The documentation says that the method “offset\[s\] the output of the oscillator by given value”. But what does this mean, exactly?

---

## [Issue with windowResize(windowWidth, windowHeight)](https://discourse.processing.org/t/issue-with-windowresize-windowwidth-windowheight/17858)

<div class="topic-metadata">

**Author:** [@jctitan](https://discourse.processing.org/u/jctitan)\
**Replies:** 8\
**Last updated:** [February 18, 2020, 8:54pm UTC](https://discourse.processing.org/t/issue-with-windowresize-windowwidth-windowheight/17858 "2020-02-18T20:54:07Z")

</div>

Hi, recently I was making my reactjs app and decided to use p5 canvas as background. Since I didn’t use p5 before, I found some code on internet and copy it to my app. Canvas (background) looks good on page first load, b…

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

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