# Latest

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

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

**Page:** 464

---

## [P5.js Online Chat](https://discourse.processing.org/t/p5-js-online-chat/12852)

<div class="topic-metadata">

**Author:** [@berfin](https://discourse.processing.org/u/berfin)\
**Replies:** 0\
**Last updated:** [July 21, 2019, 2:36am UTC](https://discourse.processing.org/t/p5-js-online-chat/12852 "2019-07-21T02:36:20Z")

</div>

Join our online get together to talk about p5.js on July 31st. We will be going over what p5 is and the new features of the software and hear from a couple creatives on why they use it and hear about their projects. We …

---

## [Dreamweaver preview stuck on loading](https://discourse.processing.org/t/dreamweaver-preview-stuck-on-loading/12833)

<div class="topic-metadata">

**Author:** [@epignosis567](https://discourse.processing.org/u/epignosis567)\
**Replies:** 1\
**Last updated:** [July 21, 2019, 3:51am UTC](https://discourse.processing.org/t/dreamweaver-preview-stuck-on-loading/12833 "2019-07-21T03:51:41Z")

</div>

Hi. Dreamweaver’s preview window seems to work fine for the most to see previews while I’m coding, however if I add a preload() the preview window just hangs on “Loading…” Any idea why that would be?

---

## [Webpage slides around in mobile browser](https://discourse.processing.org/t/webpage-slides-around-in-mobile-browser/12832)

<div class="topic-metadata">

**Author:** [@epignosis567](https://discourse.processing.org/u/epignosis567)\
**Replies:** 5\
**Last updated:** [July 21, 2019, 3:05am UTC](https://discourse.processing.org/t/webpage-slides-around-in-mobile-browser/12832 "2019-07-21T03:05:58Z")

</div>

Hi. I’ve made my first P5 webpage but it slides around a lot. It’s a big problem on the Chrome mobile browser because dragging down causes the page to refresh. I’ve tried researching ways to prevent it from sliding aroun…

---

## [Simple example of 3D movement following a point?](https://discourse.processing.org/t/simple-example-of-3d-movement-following-a-point/12361)

<div class="topic-metadata">

**Author:** [@erkosone](https://discourse.processing.org/u/erkosone)\
**Replies:** 20\
**Last updated:** [July 4, 2019, 7:05pm UTC](https://discourse.processing.org/t/simple-example-of-3d-movement-following-a-point/12361 "2019-07-04T19:05:27Z")

</div>

hi, i need a simple example to how folllow in 3d a object. anybody can help me? The objective is simple, object a follow the object b in 3d space. My problem is the way to “orientation a to b” and “move” in orientatio…

---

## [Stupid Question about Libraries😂](https://discourse.processing.org/t/stupid-question-about-libraries/12842)

<div class="topic-metadata">

**Author:** [@JLHAtienza](https://discourse.processing.org/u/JLHAtienza)\
**Replies:** 2\
**Last updated:** [July 20, 2019, 5:10pm UTC](https://discourse.processing.org/t/stupid-question-about-libraries/12842 "2019-07-20T17:10:18Z")

</div>

I’m actually new to libraries and already done a lot of researches but still can’t understand it very well. So my question is, Does Processing’s Network library need to be installed or is it a Processing’s built in libra…

---

## [Equation-defined shapes - created from sampling lines or SVG import... or....?](https://discourse.processing.org/t/equation-defined-shapes-created-from-sampling-lines-or-svg-import-or/12617)

<div class="topic-metadata">

**Author:** [@MuddyGardener](https://discourse.processing.org/u/MuddyGardener)\
**Replies:** 17\
**Last updated:** [July 20, 2019, 4:58pm UTC](https://discourse.processing.org/t/equation-defined-shapes-created-from-sampling-lines-or-svg-import-or/12617 "2019-07-20T16:58:25Z")

</div>

I am thinking about how I can best create equation defined shapes that can be manipulated as shapes, and am looking for advice about good ways forward for doing this. I would like to replicate these shapes in my design …

---

## [Fire again once the cannon is moved](https://discourse.processing.org/t/fire-again-once-the-cannon-is-moved/12816)

<div class="topic-metadata">

**Author:** [@wandecoal](https://discourse.processing.org/u/wandecoal)\
**Replies:** 1\
**Last updated:** [July 19, 2019, 1:34pm UTC](https://discourse.processing.org/t/fire-again-once-the-cannon-is-moved/12816 "2019-07-19T13:34:33Z")

</div>

final int OBST\_WIDTH = 100; int targetWidth = OBST\_WIDTH; final int BARREL\_LENGTH = 45; int cloudDiam=50; /\* CHECK THIS LATER \*/ int spacing = cloudDiam; float cannonX = cloudDiam\*2; int cannonWidth = OBST\_WIDTH/2; …

---

## [Mouse position, camera and player movement](https://discourse.processing.org/t/mouse-position-camera-and-player-movement/12837)

<div class="topic-metadata">

**Author:** [@vincentstrebelle](https://discourse.processing.org/u/vincentstrebelle)\
**Replies:** 12\
**Last updated:** [July 20, 2019, 2:57pm UTC](https://discourse.processing.org/t/mouse-position-camera-and-player-movement/12837 "2019-07-20T14:57:36Z")

</div>

Hi, i started working on my player movements and i realise that i have a issue with the the coordinates of my mouse when i’m using a camera method. Here is my code: Player player; LimitOfTheWorld limitoftheworld; PVect…

---

## [Sound not playing on mouseMoved](https://discourse.processing.org/t/sound-not-playing-on-mousemoved/12802)

<div class="topic-metadata">

**Author:** [@epignosis567](https://discourse.processing.org/u/epignosis567)\
**Replies:** 8\
**Last updated:** [July 19, 2019, 9:41pm UTC](https://discourse.processing.org/t/sound-not-playing-on-mousemoved/12802 "2019-07-19T21:41:21Z")

</div>

Hi. I have the following code that I edited from an example. It worked in the example window but won’t work in dreamweaver or when I upload it to my server. Everything works except the sound effect, it won’t play. Are th…

---

## [Processing for iOS](https://discourse.processing.org/t/processing-for-ios/12798)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 3\
**Last updated:** [July 20, 2019, 12:00am UTC](https://discourse.processing.org/t/processing-for-ios/12798 "2019-07-20T00:00:08Z")

</div>

If anyone reading this has used the Processing for iOS app by Frederik Riedel and knows how to get a sketch to recognize the first screen tap as mousePressed, please let me know. It seems like the first mousePressed nev…

---

## [How do I create an erasing effect with Kinect?](https://discourse.processing.org/t/how-do-i-create-an-erasing-effect-with-kinect/12828)

<div class="topic-metadata">

**Author:** [@AxeFire](https://discourse.processing.org/u/AxeFire)\
**Replies:** 1\
**Last updated:** [July 19, 2019, 8:27pm UTC](https://discourse.processing.org/t/how-do-i-create-an-erasing-effect-with-kinect/12828 "2019-07-19T20:27:53Z")

</div>

I am trying to create an erasing effect of where the top image will be erased away to reveal another image below. I am using Kinect to control the erasing effect, however it is currently just drawing an ellipse on the to…

---

## [.cue() in SoundFile seems to have suddenly stopped working properly](https://discourse.processing.org/t/cue-in-soundfile-seems-to-have-suddenly-stopped-working-properly/12801)

<div class="topic-metadata">

**Author:** [@bpeterson](https://discourse.processing.org/u/bpeterson)\
**Replies:** 7\
**Last updated:** [July 19, 2019, 8:24pm UTC](https://discourse.processing.org/t/cue-in-soundfile-seems-to-have-suddenly-stopped-working-properly/12801 "2019-07-19T20:24:53Z")

</div>

.cue() seemed to have been working exactly as intended until I saved my processing sketch in a different location. (save as… same name, different location) I thought I was just making a copy of the code so I could safely…

---

## [How to hardware decode video in Processing?](https://discourse.processing.org/t/how-to-hardware-decode-video-in-processing/12761)

<div class="topic-metadata">

**Author:** [@George](https://discourse.processing.org/u/George)\
**Replies:** 4\
**Last updated:** [July 19, 2019, 4:47pm UTC](https://discourse.processing.org/t/how-to-hardware-decode-video-in-processing/12761 "2019-07-19T16:47:09Z")

</div>

Hi, I’ve been using Processing for a while and mainly used the processing-video library to playback H.264 encoded videos. I’ve noticed playback can be quite laggy for 1080p videos: it looks like decoding is done on the…

---

## [How to fill color in chess board](https://discourse.processing.org/t/how-to-fill-color-in-chess-board/12819)

<div class="topic-metadata">

**Author:** [@maakin](https://discourse.processing.org/u/maakin)\
**Replies:** 2\
**Last updated:** [July 19, 2019, 1:47pm UTC](https://discourse.processing.org/t/how-to-fill-color-in-chess-board/12819 "2019-07-19T13:47:18Z")

</div>

How to fill color in chess board

---

## [I would you like to process at the moment when press Buttons](https://discourse.processing.org/t/i-would-you-like-to-process-at-the-moment-when-press-buttons/12813)

<div class="topic-metadata">

**Author:** [@Murphy](https://discourse.processing.org/u/Murphy)\
**Replies:** 0\
**Last updated:** [July 19, 2019, 10:13am UTC](https://discourse.processing.org/t/i-would-you-like-to-process-at-the-moment-when-press-buttons/12813 "2019-07-19T10:13:58Z")

</div>

Hey everyone, I created a System. This System has got Step Motor and Led. I added buttons with Processing on System but I want to use together all Buttons on System. My problem is here. I am pressing button. It is worki…

---

## [Exporting code/copying code/ code management](https://discourse.processing.org/t/exporting-code-copying-code-code-management/12673)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 14\
**Last updated:** [July 19, 2019, 11:02am UTC](https://discourse.processing.org/t/exporting-code-copying-code-code-management/12673 "2019-07-19T11:02:54Z")

</div>

I like to use multiple tabs to organise my code in processing, and was wandering if there was a simple way to grab all the code and paste it anywhere else, without having to check through all the tabs. Also is there a f…

---

## [Help understanding code](https://discourse.processing.org/t/help-understanding-code/12799)

<div class="topic-metadata">

**Author:** [@Jackieh111](https://discourse.processing.org/u/Jackieh111)\
**Replies:** 3\
**Last updated:** [July 19, 2019, 10:11am UTC](https://discourse.processing.org/t/help-understanding-code/12799 "2019-07-19T10:11:52Z")

</div>

Hi The code below works but I don’t understand why to check boundaries I check boxSize/2 - ballSize instead of just boxSize-ballSize. I’m clearly not understanding something here. Can anyone explain it to me please? PV…

---

## [Advices to create a player GUI and inventory](https://discourse.processing.org/t/advices-to-create-a-player-gui-and-inventory/12810)

<div class="topic-metadata">

**Author:** [@vincentstrebelle](https://discourse.processing.org/u/vincentstrebelle)\
**Replies:** 2\
**Last updated:** [July 19, 2019, 9:59am UTC](https://discourse.processing.org/t/advices-to-create-a-player-gui-and-inventory/12810 "2019-07-19T09:59:11Z")

</div>

Hi, first i would like to thanks everybody in this community for the help and advices i recieved. With your help i manage to create a little ecosystem with 10 species and their basic behavior. here a little video i mak…

---

## [\[Processing net POST request\] Error : Client got end of stream](https://discourse.processing.org/t/processing-net-post-request-error-client-got-end-of-stream/12339)

<div class="topic-metadata">

**Author:** [@Dupond](https://discourse.processing.org/u/Dupond)\
**Replies:** 12\
**Last updated:** [July 19, 2019, 7:03am UTC](https://discourse.processing.org/t/processing-net-post-request-error-client-got-end-of-stream/12339 "2019-07-19T07:03:15Z")

</div>

Hello ! I want to send data from arduino to a local server via a serial connection. I have found this example online but I have an End of stream error when I execute the code. This is follows by many java.lang.NullPoint…

---

## [Using Frames to Display a 3rd Party App?](https://discourse.processing.org/t/using-frames-to-display-a-3rd-party-app/12788)

<div class="topic-metadata">

**Author:** [@YellowGTM](https://discourse.processing.org/u/YellowGTM)\
**Replies:** 1\
**Last updated:** [July 19, 2019, 4:35am UTC](https://discourse.processing.org/t/using-frames-to-display-a-3rd-party-app/12788 "2019-07-19T04:35:29Z")

</div>

Hello All, I’m using Processing ver. 3.3x and would like to Open/Launch a 3rd Party software to run within a “contained” frame. Is this possible? Please direct me to any functions/documents for further reading, or a …

---

## [Detect direction from video motion and apply it to Particle System](https://discourse.processing.org/t/detect-direction-from-video-motion-and-apply-it-to-particle-system/9111)

<div class="topic-metadata">

**Author:** [@meniossin](https://discourse.processing.org/u/meniossin)\
**Replies:** 5\
**Last updated:** [July 19, 2019, 2:57am UTC](https://discourse.processing.org/t/detect-direction-from-video-motion-and-apply-it-to-particle-system/9111 "2019-07-19T02:57:30Z")

</div>

Greetings, Newcomer in this forum and currently an apprentice with Processing. I did a lot of research in the previous processing forums and in this one but I haven’t found a resource/answer that will apply to the curr…

---

## [REALLY basic functions problem](https://discourse.processing.org/t/really-basic-functions-problem/12794)

<div class="topic-metadata">

**Author:** [@EmptyAtoms](https://discourse.processing.org/u/EmptyAtoms)\
**Replies:** 12\
**Last updated:** [July 18, 2019, 6:59pm UTC](https://discourse.processing.org/t/really-basic-functions-problem/12794 "2019-07-18T18:59:45Z")

</div>

Hi all, So I’ve been given an assignment to produce a function that gets the lowest value of an array, then stores that value and uses it to color a circle, and write that same value onto that circle. I cannot get my f…

---

## [AUTO size() not working on createImg](https://discourse.processing.org/t/auto-size-not-working-on-createimg/12776)

<div class="topic-metadata">

**Author:** [@epignosis567](https://discourse.processing.org/u/epignosis567)\
**Replies:** 4\
**Last updated:** [July 18, 2019, 5:08pm UTC](https://discourse.processing.org/t/auto-size-not-working-on-createimg/12776 "2019-07-18T17:08:10Z")

</div>

Hi. I’m still learning coding. As far as I can tell setting one of the values of the size() when applied to createImg doesn’t work, the image just disappears. As in: button = createImg(’…/dumbo.jpg’); button.size(500,…

---

## [Why vector.nomalize() do not print 1?](https://discourse.processing.org/t/why-vector-nomalize-do-not-print-1/12770)

<div class="topic-metadata">

**Author:** [@andresobregonl](https://discourse.processing.org/u/andresobregonl)\
**Replies:** 4\
**Last updated:** [July 18, 2019, 3:53pm UTC](https://discourse.processing.org/t/why-vector-nomalize-do-not-print-1/12770 "2019-07-18T15:53:45Z")

</div>

// Ex 1.6 Normalizing a vector The Nature of Code void draw() { background(255); PVector mouse = new PVector(mouseX,mouseY); PVector center = new PVector(width/2,height/2); //sub() — subtract vectors mouse.sub(cent…

---

## [Accessing Two USB Ports in One Program](https://discourse.processing.org/t/accessing-two-usb-ports-in-one-program/12790)

<div class="topic-metadata">

**Author:** [@YellowGTM](https://discourse.processing.org/u/YellowGTM)\
**Replies:** 1\
**Last updated:** [July 18, 2019, 2:41pm UTC](https://discourse.processing.org/t/accessing-two-usb-ports-in-one-program/12790 "2019-07-18T14:41:17Z")

</div>

Hello Everyone, I’d like to perfect/enhance my ability to access data from two different USB devices. My code works fine, and I’m able to grab data from both devices, but I know it’s a novice approach. Is there a meth…

---

## [Touches.length in touchEnded() behavior in android mode](https://discourse.processing.org/t/touches-length-in-touchended-behavior-in-android-mode/12789)

<div class="topic-metadata">

**Author:** [@Wayv2019](https://discourse.processing.org/u/Wayv2019)\
**Replies:** 0\
**Last updated:** [July 18, 2019, 12:54pm UTC](https://discourse.processing.org/t/touches-length-in-touchended-behavior-in-android-mode/12789 "2019-07-18T12:54:49Z")

</div>

Hello Everyone, Im very new to programming and came along following problem while programming with Processing 3.5.3 in Android Mode for a Smartphone App. Im using the command touches.length in the void touchEnded() fun…

---

## [How to use for loops with transformations in processing?](https://discourse.processing.org/t/how-to-use-for-loops-with-transformations-in-processing/12782)

<div class="topic-metadata">

**Author:** [@phanirithvij](https://discourse.processing.org/u/phanirithvij)\
**Replies:** 5\
**Last updated:** [July 18, 2019, 12:52pm UTC](https://discourse.processing.org/t/how-to-use-for-loops-with-transformations-in-processing/12782 "2019-07-18T12:52:46Z")

</div>

So this is the code I wrote which I intend to draw n lines starting from a single point. Each separated by an angle of 2\*PI / n. int n; void setup(){ size(displayWidth, displayHeight); n = 7; } void draw(){ bac…

---

## [How to use 'import' in P5?](https://discourse.processing.org/t/how-to-use-import-in-p5/12774)

<div class="topic-metadata">

**Author:** [@HuXiaoer](https://discourse.processing.org/u/HuXiaoer)\
**Replies:** 1\
**Last updated:** [July 18, 2019, 11:35am UTC](https://discourse.processing.org/t/how-to-use-import-in-p5/12774 "2019-07-18T11:35:01Z")

</div>

In P5.js, how to use ES6’s import in top of sketch.js?

---

## [Create "random" function in processing.js?](https://discourse.processing.org/t/create-random-function-in-processing-js/12777)

<div class="topic-metadata">

**Author:** [@demsp](https://discourse.processing.org/u/demsp)\
**Replies:** 2\
**Last updated:** [July 18, 2019, 7:46am UTC](https://discourse.processing.org/t/create-random-function-in-processing-js/12777 "2019-07-18T07:46:15Z")

</div>

This function turn back a random number IntList listRand; void setup() { listRand=new IntList(); // void draw() { } int randm(int a,int b){ int y; int x=int( random(a,b) ); if (listRand.hasValue(x) == false) { …

---

## [Open Call: Laboratory Winter Residency 2019-2020 ](https://discourse.processing.org/t/open-call-laboratory-winter-residency-2019-2020/12771)

<div class="topic-metadata">

**Author:** [@laboratoryspokane](https://discourse.processing.org/u/laboratoryspokane)\
**Replies:** 0\
**Last updated:** [July 18, 2019, 2:49am UTC](https://discourse.processing.org/t/open-call-laboratory-winter-residency-2019-2020/12771 "2019-07-18T02:49:18Z")

</div>

Come spend 1 to 2 months making interactive art in beautiful Spokane, Washington! If accepted, you will receive a $200 stipend (US only), a fully furnished apartment, and access to a great art community. For more inf…

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

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