# Latest

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

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

**Page:** 284

---

## [How I can create a physical line using material.js?](https://discourse.processing.org/t/how-i-can-create-a-physical-line-using-material-js/25623)

<div class="topic-metadata">

**Author:** [@kokosic](https://discourse.processing.org/u/kokosic)\
**Replies:** 1\
**Last updated:** [November 23, 2020, 7:11am UTC](https://discourse.processing.org/t/how-i-can-create-a-physical-line-using-material-js/25623 "2020-11-23T07:11:28Z")

</div>

I have a simple p5.js code and I need add collision using matter.js. One of the options is to draw rectangles instead of lines and then hang the necessary component on them, but I don’t know how to rotate and place these…

---

## [Bulk preload images with different variable name from JSON - p5.js web](https://discourse.processing.org/t/bulk-preload-images-with-different-variable-name-from-json-p5-js-web/25610)

<div class="topic-metadata">

**Author:** [@patkosd](https://discourse.processing.org/u/patkosd)\
**Replies:** 1\
**Last updated:** [November 23, 2020, 2:15am UTC](https://discourse.processing.org/t/bulk-preload-images-with-different-variable-name-from-json-p5-js-web/25610 "2020-11-23T02:15:48Z")

</div>

Hi, I have a JSON file populated with “brandName” and “brandLogo” fields. I’m trying to preload 30ish logos to my project so I can display them when needed later on in the code. I’d also like to assign the images to va…

---

## [Pedestrian behavior simulation](https://discourse.processing.org/t/pedestrian-behavior-simulation/25588)

<div class="topic-metadata">

**Author:** [@emyou](https://discourse.processing.org/u/emyou)\
**Replies:** 5\
**Last updated:** [November 22, 2020, 11:46pm UTC](https://discourse.processing.org/t/pedestrian-behavior-simulation/25588 "2020-11-22T23:46:43Z")

</div>

Hi, I have a project to simulate the pedestrian behavior based on the social force model. I have started with creating the pedestrian class. the pedestrian behavior is controlled by certain forces, accelerate toward targ…

---

## [Python syntax highlighting](https://discourse.processing.org/t/python-syntax-highlighting/22173)

<div class="topic-metadata">

**Author:** [@tabreturn](https://discourse.processing.org/u/tabreturn)\
**Replies:** 1\
**Last updated:** [November 22, 2020, 11:45pm UTC](https://discourse.processing.org/t/python-syntax-highlighting/22173 "2020-11-22T23:45:07Z")

</div>

I suspect that some recent update to the forum has thrown-off the Python syntax highlighting. It seems to more often ‘default’ to Java (or some other language?). You can get it to highlight Python by coaxing it – writing…

---

## [Having trouble slowing my screen display](https://discourse.processing.org/t/having-trouble-slowing-my-screen-display/25453)

<div class="topic-metadata">

**Author:** [@luigipasto](https://discourse.processing.org/u/luigipasto)\
**Replies:** 15\
**Last updated:** [November 22, 2020, 10:52pm UTC](https://discourse.processing.org/t/having-trouble-slowing-my-screen-display/25453 "2020-11-22T22:52:17Z")

</div>

Hi, this is my first attempt at writing code. The goal seemed quite modest but I’m getting bogged down. I’m reading tabular data from a csv file, and writing to the screen one row of the table at the time. What I’d like …

---

## [Formula to calculate vector components proportional to distance (hairy circle)](https://discourse.processing.org/t/formula-to-calculate-vector-components-proportional-to-distance-hairy-circle/25613)

<div class="topic-metadata">

**Author:** [@fiveyearplan](https://discourse.processing.org/u/fiveyearplan)\
**Replies:** 0\
**Last updated:** [November 22, 2020, 6:00pm UTC](https://discourse.processing.org/t/formula-to-calculate-vector-components-proportional-to-distance-hairy-circle/25613 "2020-11-22T18:00:56Z")

</div>

Following my previous thread, what I need to find is a formula that calculates the vector components according to its distance from the centre of the circle. Looking at the image above, you see that the hairs move in …

---

## [G4P - Checkbox grid](https://discourse.processing.org/t/g4p-checkbox-grid/25585)

<div class="topic-metadata">

**Author:** [@RenanRabelo](https://discourse.processing.org/u/RenanRabelo)\
**Replies:** 12\
**Last updated:** [November 22, 2020, 5:46pm UTC](https://discourse.processing.org/t/g4p-checkbox-grid/25585 "2020-11-22T17:46:52Z")

</div>

Is possible to easily create a Check box grid? Like 8x8 or bigger. Thanks!

---

## [Anyone possible make project](https://discourse.processing.org/t/anyone-possible-make-project/25109)

<div class="topic-metadata">

**Author:** [@r0x15](https://discourse.processing.org/u/r0x15)\
**Replies:** 29\
**Last updated:** [November 22, 2020, 4:29pm UTC](https://discourse.processing.org/t/anyone-possible-make-project/25109 "2020-11-22T16:29:29Z")

</div>

Hello to All this my project ; this working fine on java mode from serial (run on window 10) i need run same project on android app phone via bluetooth and from usb connect output encoder. i test on windows it work …

---

## [Using p5js with Angular 5](https://discourse.processing.org/t/using-p5js-with-angular-5/1971)

<div class="topic-metadata">

**Author:** [@mopy](https://discourse.processing.org/u/mopy)\
**Replies:** 3\
**Last updated:** [November 22, 2020, 3:56pm UTC](https://discourse.processing.org/t/using-p5js-with-angular-5/1971 "2020-11-22T15:56:11Z")

</div>

Could someone explain how to use p5.js in my Angular 5 project? I am pretty new to both and was unable to import and use p5js in my Angular component. I see that the type definition file exists in the p5js lib folder, bu…

---

## [Independently translate and rotate](https://discourse.processing.org/t/independently-translate-and-rotate/25606)

<div class="topic-metadata">

**Author:** [@Ginopalombi](https://discourse.processing.org/u/Ginopalombi)\
**Replies:** 2\
**Last updated:** [November 22, 2020, 2:39pm UTC](https://discourse.processing.org/t/independently-translate-and-rotate/25606 "2020-11-22T14:39:05Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi, how can I translate and rotate object independetly? I don’t want to translate the object after a translated object…

---

## [Drawing atomic orbitals](https://discourse.processing.org/t/drawing-atomic-orbitals/25601)

<div class="topic-metadata">

**Author:** [@Ginopalombi](https://discourse.processing.org/u/Ginopalombi)\
**Replies:** 1\
**Last updated:** [November 22, 2020, 12:01pm UTC](https://discourse.processing.org/t/drawing-atomic-orbitals/25601 "2020-11-22T12:01:03Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi everyone, I would like to code something like in this application, but that react to some external input, like microphone or other, is it pos…

---

## [Mac OS Catalina won't open exported applications](https://discourse.processing.org/t/mac-os-catalina-wont-open-exported-applications/25581)

<div class="topic-metadata">

**Author:** [@PhilHaw](https://discourse.processing.org/u/PhilHaw)\
**Replies:** 5\
**Last updated:** [November 22, 2020, 12:51am UTC](https://discourse.processing.org/t/mac-os-catalina-wont-open-exported-applications/25581 "2020-11-22T00:51:19Z")

</div>

I have a couple of Processing applications exported with embedded java from Processing 3.5.4 on a Mac. I upload these in a zip file to a website for users to download on their Macs. Unfortunately on Mac OS Catalina, doub…

---

## [How to make an object disappear on collision](https://discourse.processing.org/t/how-to-make-an-object-disappear-on-collision/25593)

<div class="topic-metadata">

**Author:** [@TheGullible1](https://discourse.processing.org/u/TheGullible1)\
**Replies:** 21\
**Last updated:** [November 21, 2020, 10:04pm UTC](https://discourse.processing.org/t/how-to-make-an-object-disappear-on-collision/25593 "2020-11-21T22:04:17Z")

</div>

i have a very simple code as I’m tryna learn collision detection as I want to use it in the future. //Falling Game Faller player; //declare instance variable Obstacle thing; void setup() { size(400, 600); player…

---

## [Encryption of username pipeline](https://discourse.processing.org/t/encryption-of-username-pipeline/25541)

<div class="topic-metadata">

**Author:** [@papaboo](https://discourse.processing.org/u/papaboo)\
**Replies:** 3\
**Last updated:** [November 21, 2020, 6:32pm UTC](https://discourse.processing.org/t/encryption-of-username-pipeline/25541 "2020-11-21T18:32:20Z")

</div>

Here’s the scheme for a desktop app that works only when the user is online, registered and has an active license. So basically, what I want to achieve is, when a user clicks the log-in button in the sketch window, I’d …

---

## [I want pass to next step when the video stop](https://discourse.processing.org/t/i-want-pass-to-next-step-when-the-video-stop/25570)

<div class="topic-metadata">

**Author:** [@josetai](https://discourse.processing.org/u/josetai)\
**Replies:** 2\
**Last updated:** [November 21, 2020, 5:53pm UTC](https://discourse.processing.org/t/i-want-pass-to-next-step-when-the-video-stop/25570 "2020-11-21T17:53:35Z")

</div>

Hi, i´m beginner writing code, and I can´t resolve somthing. When the video stop, i want it to pass to other step. I know that “if (movie1.stop()){step = 10;}” doesn´t exist, but i don´t know how to write it right. Any…

---

## [Letting a loop run forth and back](https://discourse.processing.org/t/letting-a-loop-run-forth-and-back/25552)

<div class="topic-metadata">

**Author:** [@serg](https://discourse.processing.org/u/serg)\
**Replies:** 2\
**Last updated:** [November 21, 2020, 5:40pm UTC](https://discourse.processing.org/t/letting-a-loop-run-forth-and-back/25552 "2020-11-21T17:40:27Z")

</div>

Currently I am trying to get a loop “running forth and back” in a Processing sketch. I can do it with mouseY for example – but I want to have it automatically: the rect(); should appear horizontally line by line… like 1…

---

## [Where is svg.zip?](https://discourse.processing.org/t/where-is-svg-zip/25564)

<div class="topic-metadata">

**Author:** [@nxmusic](https://discourse.processing.org/u/nxmusic)\
**Replies:** 4\
**Last updated:** [November 21, 2020, 3:43pm UTC](https://discourse.processing.org/t/where-is-svg-zip/25564 "2020-11-21T15:43:45Z")

</div>

Hi! I want to try to use the svg library in APDE but I can’t find the zip (with the proper format) to import it. Does anyone know? Thanks!

---

## [Problem with alpha channel - editing photos and use parts to multiply](https://discourse.processing.org/t/problem-with-alpha-channel-editing-photos-and-use-parts-to-multiply/25574)

<div class="topic-metadata">

**Author:** [@Kylle](https://discourse.processing.org/u/Kylle)\
**Replies:** 11\
**Last updated:** [November 21, 2020, 12:25pm UTC](https://discourse.processing.org/t/problem-with-alpha-channel-editing-photos-and-use-parts-to-multiply/25574 "2020-11-21T12:25:45Z")

</div>

Hi I am quite new and rather unexperienced with Processing. I am trying to pick out a picture of a maple leaf from a photo and create a new image without the grass background in order to multiply the leaf image in a new…

---

## [How do I move this train?](https://discourse.processing.org/t/how-do-i-move-this-train/25560)

<div class="topic-metadata">

**Author:** [@Crimson-The-Saiyan](https://discourse.processing.org/u/Crimson-The-Saiyan)\
**Replies:** 9\
**Last updated:** [November 21, 2020, 12:03pm UTC](https://discourse.processing.org/t/how-do-i-move-this-train/25560 "2020-11-21T12:03:46Z")

</div>

Ok, so basically, I’m a begginer to Processing, I’m trying to make a train move for a school project, but I don’t know how, can anyone help me? Code: //Setting up the background void setup(){ size(1000,1000); } voi…

---

## [How will you approach this picture?](https://discourse.processing.org/t/how-will-you-approach-this-picture/24837)

<div class="topic-metadata">

**Author:** [@Huno](https://discourse.processing.org/u/Huno)\
**Replies:** 23\
**Last updated:** [November 21, 2020, 10:15am UTC](https://discourse.processing.org/t/how-will-you-approach-this-picture/24837 "2020-11-21T10:15:20Z")

</div>

Like a lot of us, I’ve been a fan of Autechre since 2001 (I was 11) and I’ve been always amazed by their covers. There are a couple of covers that always make me think of raw code. So my question is, how will you appro…

---

## [Calculate distance from point to (closest point of) shape](https://discourse.processing.org/t/calculate-distance-from-point-to-closest-point-of-shape/7201)

<div class="topic-metadata">

**Author:** [@grshch](https://discourse.processing.org/u/grshch)\
**Replies:** 9\
**Last updated:** [January 5, 2019, 2:22pm UTC](https://discourse.processing.org/t/calculate-distance-from-point-to-closest-point-of-shape/7201 "2019-01-05T14:22:00Z")

</div>

Hi everyone! Please help me to solve this thing. How to calculate distance from point to (closest point of) shape/curve/type?

---

## [Comment inserer et visualiser une image?](https://discourse.processing.org/t/comment-inserer-et-visualiser-une-image/25582)

<div class="topic-metadata">

**Author:** [@nina](https://discourse.processing.org/u/nina)\
**Replies:** 1\
**Last updated:** [November 21, 2020, 1:32am UTC](https://discourse.processing.org/t/comment-inserer-et-visualiser-une-image/25582 "2020-11-21T01:32:20Z")

</div>

Bonjour à tous, Je voudrais savoir comment insérer et visualiser une image sur processing ? S’il vous plait pouvez vous m’aider . Je vous remercie d’avance. Cordialement, Nina

---

## [Functions outside draw? the midibus](https://discourse.processing.org/t/functions-outside-draw-the-midibus/25464)

<div class="topic-metadata">

**Author:** [@Eyetoof](https://discourse.processing.org/u/Eyetoof)\
**Replies:** 5\
**Last updated:** [November 21, 2020, 12:23am UTC](https://discourse.processing.org/t/functions-outside-draw-the-midibus/25464 "2020-11-21T00:23:43Z")

</div>

Hello I have a very basic question but would love some clarification. I have a project that will utilize Midi, I have installed theMidiBus and it is all working, I found a tutorial that helped me but I am confused about…

---

## [IOException in ProcessBuilder.start method during compile](https://discourse.processing.org/t/ioexception-in-processbuilder-start-method-during-compile/25578)

<div class="topic-metadata">

**Author:** [@srwlive](https://discourse.processing.org/u/srwlive)\
**Replies:** 1\
**Last updated:** [November 20, 2020, 8:21pm UTC](https://discourse.processing.org/t/ioexception-in-processbuilder-start-method-during-compile/25578 "2020-11-20T20:21:50Z")

</div>

Process runProgram(List\<String\> args) { ProcessBuilder pb = new ProcessBuilder(args); return pb.start(); } When I try to compile and run with processi…

---

## [Replace the current text with new text](https://discourse.processing.org/t/replace-the-current-text-with-new-text/25565)

<div class="topic-metadata">

**Author:** [@cornedb2](https://discourse.processing.org/u/cornedb2)\
**Replies:** 2\
**Last updated:** [November 20, 2020, 7:47pm UTC](https://discourse.processing.org/t/replace-the-current-text-with-new-text/25565 "2020-11-20T19:47:50Z")

</div>

Hello, How can I update the current text in the text(), now every time it will make a new text() element. Code: x = 0 def setup(): size(500, 500) def draw(): global x text(str(x), 10, 10) x += 1

---

## [Server that gets image stream from spout and send it to client](https://discourse.processing.org/t/server-that-gets-image-stream-from-spout-and-send-it-to-client/25563)

<div class="topic-metadata">

**Author:** [@phaidon](https://discourse.processing.org/u/phaidon)\
**Replies:** 2\
**Last updated:** [November 20, 2020, 6:05pm UTC](https://discourse.processing.org/t/server-that-gets-image-stream-from-spout-and-send-it-to-client/25563 "2020-11-20T18:05:38Z")

</div>

hello all, i try to get a texture from spout and send it thought server and client, the data flow seems working but i can reconvert the bytes into an image the scripts are here server with spout: import java.nio.Byte…

---

## [Using mask to reveal background image](https://discourse.processing.org/t/using-mask-to-reveal-background-image/25528)

<div class="topic-metadata">

**Author:** [@andypurbrick](https://discourse.processing.org/u/andypurbrick)\
**Replies:** 2\
**Last updated:** [November 20, 2020, 4:22pm UTC](https://discourse.processing.org/t/using-mask-to-reveal-background-image/25528 "2020-11-20T16:22:06Z")

</div>

Hi, I’m trying to write a sketch that uses mask to temporarily reveal a background/bottom image when the mouse pointer moves but does not permanently draw over it. I have a sketch written based on reading docs and looki…

---

## [Make older processing code compatible with processing 3](https://discourse.processing.org/t/make-older-processing-code-compatible-with-processing-3/25567)

<div class="topic-metadata">

**Author:** [@princess](https://discourse.processing.org/u/princess)\
**Replies:** 4\
**Last updated:** [November 20, 2020, 4:18pm UTC](https://discourse.processing.org/t/make-older-processing-code-compatible-with-processing-3/25567 "2020-11-20T16:18:56Z")

</div>

var colors; var type; function setup() { createCanvas(windowWidth, windowHeight); colors = \[ color(255, 0, 0), color(0, 255, 0), color(0, 0, 255) \]; type = 0; } function draw() { blendMode(BLEND); if(type ==…

---

## [How to make clone stamp tool as the photoshop?](https://discourse.processing.org/t/how-to-make-clone-stamp-tool-as-the-photoshop/25547)

<div class="topic-metadata">

**Author:** [@datacolor](https://discourse.processing.org/u/datacolor)\
**Replies:** 1\
**Last updated:** [November 20, 2020, 6:01am UTC](https://discourse.processing.org/t/how-to-make-clone-stamp-tool-as-the-photoshop/25547 "2020-11-20T06:01:23Z")

</div>

please format code with \</\> button \* homework policy \* asking questions The idea is with mouse pointer(as photoshop) clone pixel or pixels from the PImage1 to PImage2,please!!

---

## [When I press "run" buttom, there's no response, no warning or error. Nothing seems to have happened](https://discourse.processing.org/t/when-i-press-run-buttom-theres-no-response-no-warning-or-error-nothing-seems-to-have-happened/25504)

<div class="topic-metadata">

**Author:** [@MuTsing](https://discourse.processing.org/u/MuTsing)\
**Replies:** 2\
**Last updated:** [November 20, 2020, 4:31am UTC](https://discourse.processing.org/t/when-i-press-run-buttom-theres-no-response-no-warning-or-error-nothing-seems-to-have-happened/25504 "2020-11-20T04:31:49Z")

</div>

And when i press "pause" or "run" again, the program stucks. I'm sure that's not my programs' fault, because they ran well yesterday

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

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