# Latest

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

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

**Page:** 314

---

## [Movie Maker Tool not Using Last Images](https://discourse.processing.org/t/movie-maker-tool-not-using-last-images/23251)

<div class="topic-metadata">

**Author:** [@playinmyblues](https://discourse.processing.org/u/playinmyblues)\
**Replies:** 3\
**Last updated:** [August 21, 2020, 5:20am UTC](https://discourse.processing.org/t/movie-maker-tool-not-using-last-images/23251 "2020-08-21T05:20:28Z")

</div>

There is a series of photos that I am using with the Movie Maker Tool. I used it with the first set of images and found that the video was too fast. I copied each file and pasted back in the same folder so that the the o…

---

## [How to start 2 node servers](https://discourse.processing.org/t/how-to-start-2-node-servers/23390)

<div class="topic-metadata">

**Author:** [@stephanschulz](https://discourse.processing.org/u/stephanschulz)\
**Replies:** 3\
**Last updated:** [August 21, 2020, 1:46am UTC](https://discourse.processing.org/t/how-to-start-2-node-servers/23390 "2020-08-21T01:46:55Z")

</div>

I am using p5js and ml5js to run a local project that tracks a person and saves images to a local folder. For this to work I have to use https://github.com/ml5js/ml5-data-and-models-server to serve the ml models locally…

---

## [p5.Image is fuzzy](https://discourse.processing.org/t/p5-image-is-fuzzy/23395)

<div class="topic-metadata">

**Author:** [@Hapiel](https://discourse.processing.org/u/Hapiel)\
**Replies:** 10\
**Last updated:** [August 20, 2020, 11:42pm UTC](https://discourse.processing.org/t/p5-image-is-fuzzy/23395 "2020-08-20T23:42:05Z")

</div>

As soon as a p5.Graphics element gets stored in a p5.Image element, it gets a bit fuzzier. Some smoother anti alias I think. The effect is subtle, but visible to me. Is there a way to prevent this? I’m trying to make …

---

## [How do I make the snake's tail add on when i hit the apple?](https://discourse.processing.org/t/how-do-i-make-the-snakes-tail-add-on-when-i-hit-the-apple/23322)

<div class="topic-metadata">

**Author:** [@cdixo82](https://discourse.processing.org/u/cdixo82)\
**Replies:** 3\
**Last updated:** [August 20, 2020, 9:14pm UTC](https://discourse.processing.org/t/how-do-i-make-the-snakes-tail-add-on-when-i-hit-the-apple/23322 "2020-08-20T21:14:47Z")

</div>

ArrayList\<Integer\> x = new ArrayList\<Integer\>(); ArrayList\<Integer\> y = new ArrayList\<Integer\>(); int gridSize = 20; int h = height; int w = height; int xdir = 0; int ydir = 0; boolean eaten = false; int applex; int app…

---

## [How to get familiar with the p5.js codebase](https://discourse.processing.org/t/how-to-get-familiar-with-the-p5-js-codebase/23387)

<div class="topic-metadata">

**Author:** [@Swapnil](https://discourse.processing.org/u/Swapnil)\
**Replies:** 1\
**Last updated:** [August 20, 2020, 8:19pm UTC](https://discourse.processing.org/t/how-to-get-familiar-with-the-p5-js-codebase/23387 "2020-08-20T20:19:52Z")

</div>

I’m a beginner in open source contribution and I would love to contribute to the p5.js repository. But the codebase is pretty massive and I don’t really know which is the best place to start. I would thoroughly appreciat…

---

## [Putting Java Sketches online](https://discourse.processing.org/t/putting-java-sketches-online/4571)

<div class="topic-metadata">

**Author:** [@henri](https://discourse.processing.org/u/henri)\
**Replies:** 2\
**Last updated:** [August 20, 2020, 4:41pm UTC](https://discourse.processing.org/t/putting-java-sketches-online/4571 "2020-08-20T16:41:50Z")

</div>

Hi, I have managed to get a few Java sketches embedded on my website but I’m stuck with one and would appreciate any ideas, or things I’m missing about converting to p5.js. So I found this helpful link a few days ago s…

---

## [Slow performance when passing multiple PGraphics into each other as shader textures](https://discourse.processing.org/t/slow-performance-when-passing-multiple-pgraphics-into-each-other-as-shader-textures/23384)

<div class="topic-metadata">

**Author:** [@neel](https://discourse.processing.org/u/neel)\
**Replies:** 2\
**Last updated:** [August 20, 2020, 1:10pm UTC](https://discourse.processing.org/t/slow-performance-when-passing-multiple-pgraphics-into-each-other-as-shader-textures/23384 "2020-08-20T13:10:48Z")

</div>

Hey all, I’m attempting to use multiple pgraphics objects for my code. I want to draw some shapes on the first pgraphics. I then want to use a shader on the second pgraphics object to apply blur to the red channel and t…

---

## [Any way to write to just the R, G, or B channel of the canvas? blendMode(ADD) is not working as expected](https://discourse.processing.org/t/any-way-to-write-to-just-the-r-g-or-b-channel-of-the-canvas-blendmode-add-is-not-working-as-expected/23347)

<div class="topic-metadata">

**Author:** [@neel](https://discourse.processing.org/u/neel)\
**Replies:** 7\
**Last updated:** [August 20, 2020, 1:09pm UTC](https://discourse.processing.org/t/any-way-to-write-to-just-the-r-g-or-b-channel-of-the-canvas-blendmode-add-is-not-working-as-expected/23347 "2020-08-20T13:09:30Z")

</div>

Hey all. I’m trying to use blendMode() in a pretty specific way, but I’m getting results I wouldn’t expect. I would like to draw random red rectangles (255,0,0) and green rectangles (0,255,0) and then use a fragment shad…

---

## [Code issue\\ A bug that killed me (P5)](https://discourse.processing.org/t/code-issue-a-bug-that-killed-me-p5/23363)

<div class="topic-metadata">

**Author:** [@Royjan](https://discourse.processing.org/u/Royjan)\
**Replies:** 2\
**Last updated:** [August 20, 2020, 5:54am UTC](https://discourse.processing.org/t/code-issue-a-bug-that-killed-me-p5/23363 "2020-08-20T05:54:58Z")

</div>

Hello friends, I created a simple game that has an annoying bug that I can not solve / may be simple for some of you but my brain has become mashed and I can no longer think of a logical solution. So the goal in the g…

---

## [Integrate P5.js canvas into bootstrap template](https://discourse.processing.org/t/integrate-p5-js-canvas-into-bootstrap-template/23371)

<div class="topic-metadata">

**Author:** [@chanof](https://discourse.processing.org/u/chanof)\
**Replies:** 1\
**Last updated:** [August 20, 2020, 12:10am UTC](https://discourse.processing.org/t/integrate-p5-js-canvas-into-bootstrap-template/23371 "2020-08-20T00:10:52Z")

</div>

Im trying to insert a P5.js sketch inside a bootstrap div as you can see in the code below, with an empty sketch canvas it works properly, but with the sketch that I want to add I’m unable to get it into div, centered …

---

## [Is it possible to fill pixel information with an array of images?](https://discourse.processing.org/t/is-it-possible-to-fill-pixel-information-with-an-array-of-images/23325)

<div class="topic-metadata">

**Author:** [@jesspayne](https://discourse.processing.org/u/jesspayne)\
**Replies:** 2\
**Last updated:** [August 19, 2020, 5:22pm UTC](https://discourse.processing.org/t/is-it-possible-to-fill-pixel-information-with-an-array-of-images/23325 "2020-08-19T17:22:57Z")

</div>

Hi all, I’m working on a uni project and wondered whether Processing could help. I’m looking to fill the pixels of an image with an array of photographs. I have come across this tutorial but not sure how to substitute t…

---

## [Translate Processing sketch into P5 issue](https://discourse.processing.org/t/translate-processing-sketch-into-p5-issue/23344)

<div class="topic-metadata">

**Author:** [@chanof](https://discourse.processing.org/u/chanof)\
**Replies:** 15\
**Last updated:** [August 19, 2020, 3:40pm UTC](https://discourse.processing.org/t/translate-processing-sketch-into-p5-issue/23344 "2020-08-19T15:40:56Z")

</div>

HI, im trying to translate this processing sketch into P5, P5 is currently unable to give me an error that I can understand. below I posted the original processing sketch, and my wild guess on p5. P5: class CubeClass …

---

## [Key repeat function](https://discourse.processing.org/t/key-repeat-function/23358)

<div class="topic-metadata">

**Author:** [@rasheeda](https://discourse.processing.org/u/rasheeda)\
**Replies:** 3\
**Last updated:** [August 19, 2020, 4:43pm UTC](https://discourse.processing.org/t/key-repeat-function/23358 "2020-08-19T16:43:17Z")

</div>

I have implemented ball bouncing by boundary. Keypressed function accept arrow key. How to process keyrepeat when key is kept pressed. Keypressed is generated only when key is released and pressed again. Appreciate an…

---

## [One app sending keystrokes to another?](https://discourse.processing.org/t/one-app-sending-keystrokes-to-another/23281)

<div class="topic-metadata">

**Author:** [@ottenm](https://discourse.processing.org/u/ottenm)\
**Replies:** 2\
**Last updated:** [August 19, 2020, 2:23pm UTC](https://discourse.processing.org/t/one-app-sending-keystrokes-to-another/23281 "2020-08-19T14:23:49Z")

</div>

I need to write a p5js app that can communicate with another p5js app. It could be a copy of itself running somewhere else, or two different apps. Direct peer-to-peer would be awesome, but probably easiest to go throug…

---

## [Geomerative questions](https://discourse.processing.org/t/geomerative-questions/23272)

<div class="topic-metadata">

**Author:** [@yhlaskerimov](https://discourse.processing.org/u/yhlaskerimov)\
**Replies:** 17\
**Last updated:** [August 19, 2020, 1:49pm UTC](https://discourse.processing.org/t/geomerative-questions/23272 "2020-08-19T13:49:56Z")

</div>

Hello everyone ! Nowadays I’m trying to learn geomerative library and i have questions. 1st question: “How to load fonts ?”. I can load only FreeSans.ttf. If I put another font it says “Null Pointer Exception”. I loade…

---

## [How can I set a move while hold a key?](https://discourse.processing.org/t/how-can-i-set-a-move-while-hold-a-key/23346)

<div class="topic-metadata">

**Author:** [@viniciusbrbio](https://discourse.processing.org/u/viniciusbrbio)\
**Replies:** 6\
**Last updated:** [August 19, 2020, 12:05pm UTC](https://discourse.processing.org/t/how-can-i-set-a-move-while-hold-a-key/23346 "2020-08-19T12:05:52Z")

</div>

Hi everyone, I made this little code and I want to hold the ‘d’ key to make the ball move to the right. I want to move the ball until the edge of the screen just holding ‘d’ key. In the way that the code is, I need to …

---

## [Controlp5 - dragging controls?](https://discourse.processing.org/t/controlp5-dragging-controls/23349)

<div class="topic-metadata">

**Author:** [@Impossible\_code](https://discourse.processing.org/u/Impossible_code)\
**Replies:** 0\
**Last updated:** [August 19, 2020, 4:23am UTC](https://discourse.processing.org/t/controlp5-dragging-controls/23349 "2020-08-19T04:23:59Z")

</div>

It appears at some point controlP5 had an option to drag controls around. I can’t seem to get that working. The library doesn’t seem to have been updated for a number of years. Maybe changes to processing over the years …

---

## [How to mouseclicked()](https://discourse.processing.org/t/how-to-mouseclicked/23316)

<div class="topic-metadata">

**Author:** [@greenknight71](https://discourse.processing.org/u/greenknight71)\
**Replies:** 2\
**Last updated:** [August 19, 2020, 3:36am UTC](https://discourse.processing.org/t/how-to-mouseclicked/23316 "2020-08-19T03:36:50Z")

</div>

How does mouseClicked() work? Im trying to make it so that when a mouse is clicked, it ends. void mouseClicked(){ if(shot){ end(); } else{ return; } }

---

## [Help needed to build a Shape Classifier](https://discourse.processing.org/t/help-needed-to-build-a-shape-classifier/23341)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 0\
**Last updated:** [August 18, 2020, 6:19pm UTC](https://discourse.processing.org/t/help-needed-to-build-a-shape-classifier/23341 "2020-08-18T18:19:13Z")

</div>

Dear all, I am trying to implement this paper (Skeleton-based shape classification using path similarity) in Processing but have difficulties understanding formulas 5 and 7 on page 7. The goal is to find a shape (name…

---

## [P5.Score: Cannot read property 'start' of undefined](https://discourse.processing.org/t/p5-score-cannot-read-property-start-of-undefined/15305)

<div class="topic-metadata">

**Author:** [@m4rinos](https://discourse.processing.org/u/m4rinos)\
**Replies:** 8\
**Last updated:** [August 18, 2020, 6:25pm UTC](https://discourse.processing.org/t/p5-score-cannot-read-property-start-of-undefined/15305 "2020-08-18T18:25:53Z")

</div>

Hi, I’m new to this community and p5 so forgive me if I ask something silly, but here is my problem. I have a part with a phrase and I’m now trying to add the part to a score because I want to be able to play more parts…

---

## [CPU Optimization - Mobile & Servers: Loading Times](https://discourse.processing.org/t/cpu-optimization-mobile-servers-loading-times/23280)

<div class="topic-metadata">

**Author:** [@mnoble](https://discourse.processing.org/u/mnoble)\
**Replies:** 15\
**Last updated:** [August 18, 2020, 5:30pm UTC](https://discourse.processing.org/t/cpu-optimization-mobile-servers-loading-times/23280 "2020-08-18T17:30:05Z")

</div>

Hello Forum, I am working on a series of audio visual projects that I want people to access from a variety of mobile devices. I really love using the p5js Open Processing website in full screen mode (because it is ready…

---

## [Webgl Rendering Much Slower on Desktop than Mac Pro](https://discourse.processing.org/t/webgl-rendering-much-slower-on-desktop-than-mac-pro/23339)

<div class="topic-metadata">

**Author:** [@sgebrial](https://discourse.processing.org/u/sgebrial)\
**Replies:** 0\
**Last updated:** [August 18, 2020, 5:01pm UTC](https://discourse.processing.org/t/webgl-rendering-much-slower-on-desktop-than-mac-pro/23339 "2020-08-18T17:01:55Z")

</div>

I’m working on an n-body simulation and drawing hundreds of small spheres to the screen. On my mac pro I can draw about a thousand smoothly but on my desktop with a gtx 1080 it very jittery (~5fps). Anyone know how I can…

---

## [Help with launch()](https://discourse.processing.org/t/help-with-launch/23323)

<div class="topic-metadata">

**Author:** [@CaseyJ](https://discourse.processing.org/u/CaseyJ)\
**Replies:** 7\
**Last updated:** [August 18, 2020, 4:44pm UTC](https://discourse.processing.org/t/help-with-launch/23323 "2020-08-18T16:44:19Z")

</div>

Looking into how to trigger a task, script, or executable in Processing. Basically I want Processing to run a script that deletes all files if there are any files in a folder during startup. I found this script works g…

---

## [Webcam freezing issue in Safari (iOS and OSX)](https://discourse.processing.org/t/webcam-freezing-issue-in-safari-ios-and-osx/21598)

<div class="topic-metadata">

**Author:** [@crafah](https://discourse.processing.org/u/crafah)\
**Replies:** 1\
**Last updated:** [August 18, 2020, 4:28pm UTC](https://discourse.processing.org/t/webcam-freezing-issue-in-safari-ios-and-osx/21598 "2020-08-18T16:28:12Z")

</div>

Hi, Experiencing a weird issue trying to run a facetracking sketch across platforms. In Chrome and Firefox the project works perfectly. In Safari (both desktop and mobile versions), however, the webcam sometimes refuses…

---

## [How to render an overlay window within a Processing sketch?](https://discourse.processing.org/t/how-to-render-an-overlay-window-within-a-processing-sketch/23326)

<div class="topic-metadata">

**Author:** [@benvining](https://discourse.processing.org/u/benvining)\
**Replies:** 5\
**Last updated:** [August 18, 2020, 2:11pm UTC](https://discourse.processing.org/t/how-to-render-an-overlay-window-within-a-processing-sketch/23326 "2020-08-18T14:11:59Z")

</div>

Hello everyone, I’m working on creating a (relatively) simple Pokemon-like game in Processing – but it is complex enough that there are several different screens the user can be viewing. For example, there’s a user prof…

---

## [Target VM failed to initialize on Mac](https://discourse.processing.org/t/target-vm-failed-to-initialize-on-mac/23329)

<div class="topic-metadata">

**Author:** [@benvining](https://discourse.processing.org/u/benvining)\
**Replies:** 1\
**Last updated:** [August 18, 2020, 11:41am UTC](https://discourse.processing.org/t/target-vm-failed-to-initialize-on-mac/23329 "2020-08-18T11:41:05Z")

</div>

Hello all, I know there have been discussions about this issue in the past, but most of the solutions I can find online are dealing with Windows computers with Nvidia graphics cards. I am on a MacBook Pro, running OSX 1…

---

## [Table .sort() function not working?](https://discourse.processing.org/t/table-sort-function-not-working/23283)

<div class="topic-metadata">

**Author:** [@benvining](https://discourse.processing.org/u/benvining)\
**Replies:** 3\
**Last updated:** [August 18, 2020, 7:43am UTC](https://discourse.processing.org/t/table-sort-function-not-working/23283 "2020-08-18T07:43:15Z")

</div>

Hi everyone, I have a Table that I’ve loaded from an external .csv file, and I’d like to sort the table rows by numeric values in a certain column. However, when I run Table.sort() or Table.sortReverse(), it keeps givi…

---

## [Seven Nation Army effect](https://discourse.processing.org/t/seven-nation-army-effect/23293)

<div class="topic-metadata">

**Author:** [@senior-byte](https://discourse.processing.org/u/senior-byte)\
**Replies:** 0\
**Last updated:** [August 16, 2020, 3:22pm UTC](https://discourse.processing.org/t/seven-nation-army-effect/23293 "2020-08-16T15:22:43Z")

</div>

Hey guys, I need some help. I try to create a real live version of the „Seven Nation Army - The White Stripes“ music clip with a webcam. So, the small video in the front which is getting bigger should have a transparen…

---

## [Get the vertical axis of object's array](https://discourse.processing.org/t/get-the-vertical-axis-of-objects-array/23319)

<div class="topic-metadata">

**Author:** [@chanof](https://discourse.processing.org/u/chanof)\
**Replies:** 4\
**Last updated:** [August 18, 2020, 3:40am UTC](https://discourse.processing.org/t/get-the-vertical-axis-of-objects-array/23319 "2020-08-18T03:40:05Z")

</div>

Im trying to center this cluster of cubes, to be able to rotate them on the vertical axis, currently it rotate by using the corner as axis, i tried a lot instruments, translate, ortho, rotate, i really need a hand to fi…

---

## [Gravity in a solar system](https://discourse.processing.org/t/gravity-in-a-solar-system/23299)

<div class="topic-metadata">

**Author:** [@Cybernet](https://discourse.processing.org/u/Cybernet)\
**Replies:** 5\
**Last updated:** [August 17, 2020, 2:36pm UTC](https://discourse.processing.org/t/gravity-in-a-solar-system/23299 "2020-08-17T14:36:11Z")

</div>

I’m trying to simulate a solar system type thing where on planet orbits around a sun. The planet has an initial velocity of x+2. However, it always seems to follow this long elliptical orbit. I’m trying to get it so tha…

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

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