# Latest

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

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

**Page:** 385

---

## [Draw with code - Type-in JavaScript programs for young learners](https://discourse.processing.org/t/draw-with-code-type-in-javascript-programs-for-young-learners/18484)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 0\
**Last updated:** [March 7, 2020, 3:00pm UTC](https://discourse.processing.org/t/draw-with-code-type-in-javascript-programs-for-young-learners/18484 "2020-03-07T15:00:39Z")

</div>

Hi Processing community, Processing API is such a great educational tool for helping beginners and young people learn to code. Sometimes I compare the processing API with the programming platforms the computers from th…

---

## [Processing listening to wrong IP address when receiving UDP message](https://discourse.processing.org/t/processing-listening-to-wrong-ip-address-when-receiving-udp-message/8175)

<div class="topic-metadata">

**Author:** [@saadjumani](https://discourse.processing.org/u/saadjumani)\
**Replies:** 2\
**Last updated:** [March 7, 2020, 8:44am UTC](https://discourse.processing.org/t/processing-listening-to-wrong-ip-address-when-receiving-udp-message/8175 "2020-03-07T08:44:36Z")

</div>

Hi everyone, I have been trying to connect my NodeMCU device to Processing 3 running on my pc through OSCP5 library through which I am trying to recieve OSC message through UDP port over my local wifi. The problem is th…

---

## [How to create two canvases to run separate WebGL app](https://discourse.processing.org/t/how-to-create-two-canvases-to-run-separate-webgl-app/18304)

<div class="topic-metadata">

**Author:** [@zyhllr](https://discourse.processing.org/u/zyhllr)\
**Replies:** 2\
**Last updated:** [March 6, 2020, 7:48pm UTC](https://discourse.processing.org/t/how-to-create-two-canvases-to-run-separate-webgl-app/18304 "2020-03-06T19:48:45Z")

</div>

How to create two cnavas to run separate WebGL app

---

## [Signup new account using caps in name on https://editor.p5js.org](https://discourse.processing.org/t/signup-new-account-using-caps-in-name-on-https-editor-p5js-org/18427)

<div class="topic-metadata">

**Author:** [@podryna](https://discourse.processing.org/u/podryna)\
**Replies:** 3\
**Last updated:** [March 6, 2020, 7:43pm UTC](https://discourse.processing.org/t/signup-new-account-using-caps-in-name-on-https-editor-p5js-org/18427 "2020-03-06T19:43:47Z")

</div>

It seems we are hitting a possible bug related to having caps in the login name. For example signup with: Login name: GeorgeZ Password: 123456 Email: \<a valid email address\> Note; These are all fake for testing purpos…

---

## [Mixing 2d code and 3d (with kinect and touchboard)](https://discourse.processing.org/t/mixing-2d-code-and-3d-with-kinect-and-touchboard/18353)

<div class="topic-metadata">

**Author:** [@aradeea](https://discourse.processing.org/u/aradeea)\
**Replies:** 2\
**Last updated:** [March 6, 2020, 7:42pm UTC](https://discourse.processing.org/t/mixing-2d-code-and-3d-with-kinect-and-touchboard/18353 "2020-03-06T19:42:48Z")

</div>

Hi there, I have some doubts about an installation project I’m doing. This project involves music, video, a touchboard and a kinect. Here’s what the code is supposed to do: Whenever someone touches one of the touchboa…

---

## [Shared library for simple functions](https://discourse.processing.org/t/shared-library-for-simple-functions/18374)

<div class="topic-metadata">

**Author:** [@podryna](https://discourse.processing.org/u/podryna)\
**Replies:** 13\
**Last updated:** [March 6, 2020, 7:17pm UTC](https://discourse.processing.org/t/shared-library-for-simple-functions/18374 "2020-03-06T19:17:40Z")

</div>

Hi, I’m trying to create a simple library of functions that can be used by elementary school students to do some coding. The first function is one that draws a grid on the canvas with simple coordinate labels. These stud…

---

## [Posts in Gallery vs platform/language mode](https://discourse.processing.org/t/posts-in-gallery-vs-platform-language-mode/18419)

<div class="topic-metadata">

**Author:** [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Replies:** 10\
**Last updated:** [March 6, 2020, 7:13pm UTC](https://discourse.processing.org/t/posts-in-gallery-vs-platform-language-mode/18419 "2020-03-06T19:13:13Z")

</div>

\[As this is for an Android audience, moving back to Android category at user request.\] @GoToLoop Moving this off the thread by @noel. EDIT: In general, we move projects to the Gallery. This works well for Processing J…

---

## [Water flow simulation](https://discourse.processing.org/t/water-flow-simulation/18225)

<div class="topic-metadata">

**Author:** [@LuckSmith](https://discourse.processing.org/u/LuckSmith)\
**Replies:** 5\
**Last updated:** [March 6, 2020, 7:12pm UTC](https://discourse.processing.org/t/water-flow-simulation/18225 "2020-03-06T19:12:37Z")

</div>

Hi, guys, it’s been a while :slight\_smile: Please take a look at https://www.openprocessing.org/sketch/845420 Please be sure to run it not from the browser, because it’s slow. In shortly, what it does: Creates a hig…

---

## [Matterjs with posenet in p5js](https://discourse.processing.org/t/matterjs-with-posenet-in-p5js/18454)

<div class="topic-metadata">

**Author:** [@l3ehfar](https://discourse.processing.org/u/l3ehfar)\
**Replies:** 0\
**Last updated:** [March 6, 2020, 6:32pm UTC](https://discourse.processing.org/t/matterjs-with-posenet-in-p5js/18454 "2020-03-06T18:32:45Z")

</div>

Is there anyone have any idea, guidance, tutorial etc. to use posenet (ml5.js) to interact with matter.js bodies in p5.js?

---

## [Text input values don't seem to be working](https://discourse.processing.org/t/text-input-values-dont-seem-to-be-working/18337)

<div class="topic-metadata">

**Author:** [@Pixelfixation](https://discourse.processing.org/u/Pixelfixation)\
**Replies:** 5\
**Last updated:** [March 6, 2020, 6:09pm UTC](https://discourse.processing.org/t/text-input-values-dont-seem-to-be-working/18337 "2020-03-06T18:09:52Z")

</div>

I have this sketch I have been working on. https://editor.p5js.org/pixelfixation/sketches/o8UMGxdk I am working on the input boxes under the sketch. On lines 81-88 i am setting up the inputs and on 118 thru 133 i am wo…

---

## [Want My Own Shape for this code](https://discourse.processing.org/t/want-my-own-shape-for-this-code/18366)

<div class="topic-metadata">

**Author:** [@heelaries](https://discourse.processing.org/u/heelaries)\
**Replies:** 2\
**Last updated:** [March 6, 2020, 6:06pm UTC](https://discourse.processing.org/t/want-my-own-shape-for-this-code/18366 "2020-03-06T18:06:55Z")

</div>

I want to add my own image/shape to this code. This is the code from processing I want to add the image to: int num = 50; int\[\] x = new int\[num\]; int\[\] y = new int\[num\]; void setup() { size(100, 100); noStroke(); …

---

## [G4P, extend control class?](https://discourse.processing.org/t/g4p-extend-control-class/17788)

<div class="topic-metadata">

**Author:** [@mala](https://discourse.processing.org/u/mala)\
**Replies:** 44\
**Last updated:** [March 6, 2020, 2:32pm UTC](https://discourse.processing.org/t/g4p-extend-control-class/17788 "2020-03-06T14:32:21Z")

</div>

@quark I would like to add a couple of my own classes to G4P or perhaps request them to be added :wink: They are both quite simple but I can’t seem to find a way to get the same functionality and look using G4P alone. …

---

## [Constant rounding](https://discourse.processing.org/t/constant-rounding/18449)

<div class="topic-metadata">

**Author:** [@immorom](https://discourse.processing.org/u/immorom)\
**Replies:** 1\
**Last updated:** [March 6, 2020, 2:17pm UTC](https://discourse.processing.org/t/constant-rounding/18449 "2020-03-06T14:17:27Z")

</div>

Why does this happen?

---

## [Rotate sun keyPressed](https://discourse.processing.org/t/rotate-sun-keypressed/18429)

<div class="topic-metadata">

**Author:** [@M.juliet](https://discourse.processing.org/u/M.juliet)\
**Replies:** 3\
**Last updated:** [March 6, 2020, 7:49am UTC](https://discourse.processing.org/t/rotate-sun-keypressed/18429 "2020-03-06T07:49:47Z")

</div>

Hi, I’m writing some code for a animation project and I want to let ellipses move around a sun. I have four ellipses that move four times around the sun and I want to let them move around when you press the up or the dow…

---

## [Try-catch structure problem](https://discourse.processing.org/t/try-catch-structure-problem/18437)

<div class="topic-metadata">

**Author:** [@JohnC](https://discourse.processing.org/u/JohnC)\
**Replies:** 1\
**Last updated:** [March 6, 2020, 7:07am UTC](https://discourse.processing.org/t/try-catch-structure-problem/18437 "2020-03-06T07:07:15Z")

</div>

here is a minimise code import processing.video.\*; Movie m; boolean error = false; void setup(){ size(200,200); } void draw(){ background(0); if (error){ background(255,0,0); } } void keyPressed(){ if (k…

---

## [LED CONTROL Serial myPort vs. Serial port](https://discourse.processing.org/t/led-control-serial-myport-vs-serial-port/18293)

<div class="topic-metadata">

**Author:** [@kristipham](https://discourse.processing.org/u/kristipham)\
**Replies:** 15\
**Last updated:** [March 6, 2020, 4:47am UTC](https://discourse.processing.org/t/led-control-serial-myport-vs-serial-port/18293 "2020-03-06T04:47:34Z")

</div>

I am trying to control multiple LEDs but I am not quite sure on how to adjust my code accordingly. I have a master code that runs an RTC clock module and a light sensor to an LED. I have separated both my codes. I was ab…

---

## [Click event on 3D primitive](https://discourse.processing.org/t/click-event-on-3d-primitive/18426)

<div class="topic-metadata">

**Author:** [@samWolf](https://discourse.processing.org/u/samWolf)\
**Replies:** 4\
**Last updated:** [March 5, 2020, 6:14pm UTC](https://discourse.processing.org/t/click-event-on-3d-primitive/18426 "2020-03-05T18:14:28Z")

</div>

Hey all, any idea how to fire an event when a 3D primitive is clicked. In my case, I’m trying to click on a rotating box and link to another html page. Please help meeh. let cnv; let brand; let clientH; let clientW; le…

---

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

<div class="topic-metadata">

**Author:** [@Vickydcl](https://discourse.processing.org/u/Vickydcl)\
**Replies:** 2\
**Last updated:** [March 5, 2020, 9:53pm UTC](https://discourse.processing.org/t/processing-js-html-and-php-issue/18372 "2020-03-05T21:53:12Z")

</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…

---

## [External cameras available for capture?](https://discourse.processing.org/t/external-cameras-available-for-capture/17875)

<div class="topic-metadata">

**Author:** [@mortap](https://discourse.processing.org/u/mortap)\
**Replies:** 5\
**Last updated:** [March 5, 2020, 9:35pm UTC](https://discourse.processing.org/t/external-cameras-available-for-capture/17875 "2020-03-05T21:35:34Z")

</div>

I am planning to purchase a new camera soon (possibly the Sony DSC-RX mark IV, for example). How can I tell ahead of time if Processing will recognize it when I attach it over USB to the computer?

---

## [Speed of calculations](https://discourse.processing.org/t/speed-of-calculations/17862)

<div class="topic-metadata">

**Author:** [@SurfWise](https://discourse.processing.org/u/SurfWise)\
**Replies:** 5\
**Last updated:** [March 5, 2020, 9:28pm UTC](https://discourse.processing.org/t/speed-of-calculations/17862 "2020-03-05T21:28:27Z")

</div>

Hi there! Does anybody know how many calculation is done in processing per second? I would like to create a simple aeroplane simulator and I am wondering if processing would manage with real-time calculations including:…

---

## [Initializing values in the ControlP5 button library](https://discourse.processing.org/t/initializing-values-in-the-controlp5-button-library/17578)

<div class="topic-metadata">

**Author:** [@spflanze](https://discourse.processing.org/u/spflanze)\
**Replies:** 5\
**Last updated:** [March 5, 2020, 9:20pm UTC](https://discourse.processing.org/t/initializing-values-in-the-controlp5-button-library/17578 "2020-03-05T21:20:55Z")

</div>

In the below code snippet I find the “.setValue(0)” line triggers the “BrowseOpenOutputFile()” event handler.This caused an undesired file browser dialog (called in the event handler code) to appear at sketch startup. Is…

---

## [Pixel sorting (time and pixel increment)](https://discourse.processing.org/t/pixel-sorting-time-and-pixel-increment/18321)

<div class="topic-metadata">

**Author:** [@Alexx](https://discourse.processing.org/u/Alexx)\
**Replies:** 1\
**Last updated:** [March 5, 2020, 7:42pm UTC](https://discourse.processing.org/t/pixel-sorting-time-and-pixel-increment/18321 "2020-03-05T19:42:14Z")

</div>

Hi! In this sketch by Kim Asendorf a pixel sorting is performed only once. Is it possible to give movement to this pixel sorting? And most importantly, how can you increase this pixel sorting? int mode = 1; PImage b…

---

## [Sending value through osc](https://discourse.processing.org/t/sending-value-through-osc/18390)

<div class="topic-metadata">

**Author:** [@chakkourism](https://discourse.processing.org/u/chakkourism)\
**Replies:** 5\
**Last updated:** [March 5, 2020, 7:41pm UTC](https://discourse.processing.org/t/sending-value-through-osc/18390 "2020-03-05T19:41:56Z")

</div>

Hello everyone, I am working on a project and i would like to understand how to write if value = 0, don’t send osc message, or instead send another value. if anyone could help me with this, it would mean a lot . Have …

---

## [Animated prototype of interface](https://discourse.processing.org/t/animated-prototype-of-interface/18409)

<div class="topic-metadata">

**Author:** [@eugenie](https://discourse.processing.org/u/eugenie)\
**Replies:** 5\
**Last updated:** [March 5, 2020, 6:49pm UTC](https://discourse.processing.org/t/animated-prototype-of-interface/18409 "2020-03-05T18:49:18Z")

</div>

Hello everybody :slight\_smile: Sory for my English For my internship, I have to try to present different animated prototypes interface. I was advised to use “processing” to design these prototypes. The point is that I …

---

## [About Python-based libraries for Processing](https://discourse.processing.org/t/about-python-based-libraries-for-processing/18142)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 9\
**Last updated:** [March 5, 2020, 6:48pm UTC](https://discourse.processing.org/t/about-python-based-libraries-for-processing/18142 "2020-03-05T18:48:16Z")

</div>

Hi all, I have a few questions regarding the feasibility and the viability of a library/module that would be implemented in Python but operable in both Java and Python mode. Do you know about such library ? Could …

---

## [Prevent Unfolding Map from panning off screen](https://discourse.processing.org/t/prevent-unfolding-map-from-panning-off-screen/18328)

<div class="topic-metadata">

**Author:** [@wcneill](https://discourse.processing.org/u/wcneill)\
**Replies:** 6\
**Last updated:** [March 5, 2020, 6:24pm UTC](https://discourse.processing.org/t/prevent-unfolding-map-from-panning-off-screen/18328 "2020-03-05T18:24:12Z")

</div>

When I using unfolding maps, there is no limit on how far you can pan. When you pan too far, however, this happens: I have tried restricting panning via the method setPanningRestriction(center, maxdistance), however t…

---

## [ControlP5 - Button's Transparency?](https://discourse.processing.org/t/controlp5-buttons-transparency/18393)

<div class="topic-metadata">

**Author:** [@iamjustcurious](https://discourse.processing.org/u/iamjustcurious)\
**Replies:** 1\
**Last updated:** [March 5, 2020, 2:48pm UTC](https://discourse.processing.org/t/controlp5-buttons-transparency/18393 "2020-03-05T14:48:50Z")

</div>

Hello, How can I change the transparency of a button in ControlP5 library?

---

## [P5.sound.js with p5.svg.js](https://discourse.processing.org/t/p5-sound-js-with-p5-svg-js/18382)

<div class="topic-metadata">

**Author:** [@everyman](https://discourse.processing.org/u/everyman)\
**Replies:** 2\
**Last updated:** [March 5, 2020, 2:48pm UTC](https://discourse.processing.org/t/p5-sound-js-with-p5-svg-js/18382 "2020-03-05T14:48:48Z")

</div>

Hello. I’ve been using the p5.svg.js library that I downloaded from here: https://github.com/zenozeng/p5.js-svg/releases with a compatible version of p5.js that was supplied. I’d like to now use the p5.sound.js library …

---

## [oscP5:TcpClient IOException while trying to create a new socket](https://discourse.processing.org/t/oscp5-tcpclient-ioexception-while-trying-to-create-a-new-socket/18277)

<div class="topic-metadata">

**Author:** [@RoboTonzo](https://discourse.processing.org/u/RoboTonzo)\
**Replies:** 13\
**Last updated:** [March 5, 2020, 11:18am UTC](https://discourse.processing.org/t/oscp5-tcpclient-ioexception-while-trying-to-create-a-new-socket/18277 "2020-03-05T11:18:07Z")

</div>

Good morning. It is the first time that I try to write a topic and therefore I apologize if the form is not entirely correct I write as I am trying to make my tablet (HUAWEI MEDIA PAD T5) communicate with an arduino MK…

---

## [Reset frameRate()](https://discourse.processing.org/t/reset-framerate/18359)

<div class="topic-metadata">

**Author:** [@Mamboleoo](https://discourse.processing.org/u/Mamboleoo)\
**Replies:** 9\
**Last updated:** [March 5, 2020, 10:04am UTC](https://discourse.processing.org/t/reset-framerate/18359 "2020-03-05T10:04:13Z")

</div>

Hey there, I’m having a demo where I need the frameRate to be set to 5. But later on the demo I need to reset the frameRate to the default one. I don’t want to set a fixed value frameRate(30) as I want my frameRate to…

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

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