# Latest

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

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

**Page:** 185

---

## [PGraphics with "for"](https://discourse.processing.org/t/pgraphics-with-for/32917)

<div class="topic-metadata">

**Author:** [@Karrajo](https://discourse.processing.org/u/Karrajo)\
**Replies:** 6\
**Last updated:** [October 19, 2021, 1:29am UTC](https://discourse.processing.org/t/pgraphics-with-for/32917 "2021-10-19T01:29:53Z")

</div>

Hi, I’m trying to convert some code to PGraphics because I want to save the result in a bigger size, but I’m using a “for” part, and I can’t find the right way to make that everything works like in the code without PGrap…

---

## [Is there a way to use an external canvas as the canvas p5 uses](https://discourse.processing.org/t/is-there-a-way-to-use-an-external-canvas-as-the-canvas-p5-uses/32910)

<div class="topic-metadata">

**Author:** [@Errorbot1122](https://discourse.processing.org/u/Errorbot1122)\
**Replies:** 4\
**Last updated:** [October 18, 2021, 9:18pm UTC](https://discourse.processing.org/t/is-there-a-way-to-use-an-external-canvas-as-the-canvas-p5-uses/32910 "2021-10-18T21:18:12Z")

</div>

Is there a way to use the \<canvas\> tag as the p5 canvas? Background Non really, I just want to create a premade canvas in my HTML What I’ve tried I try looking at the doc and searching on google, I could not find anyth…

---

## [Stop player from going out of board](https://discourse.processing.org/t/stop-player-from-going-out-of-board/32858)

<div class="topic-metadata">

**Author:** [@kiddish](https://discourse.processing.org/u/kiddish)\
**Replies:** 10\
**Last updated:** [October 18, 2021, 5:36pm UTC](https://discourse.processing.org/t/stop-player-from-going-out-of-board/32858 "2021-10-18T17:36:32Z")

</div>

After a few tries, it still won’t get to work. Somewhat created a game in which the object collides with multiple stuff on the map. I have created a player, which is the image I can move with the cursor. What I actuall…

---

## [PiCrate on RaspbianOS and ManjaroARM](https://discourse.processing.org/t/picrate-on-raspbianos-and-manjaroarm/32908)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 0\
**Last updated:** [October 18, 2021, 2:43pm UTC](https://discourse.processing.org/t/picrate-on-raspbianos-and-manjaroarm/32908 "2021-10-18T14:43:11Z")

</div>

Contrary to my expectations OpenJDK17 is available for arm32 (from adoptium.net). I installed it in the /opt folder on my RaspberryPI4 (RaspbianOS), and created symbolic links using the debian update-alternatives tool:- …

---

## [Gradient interpolation with 3+ points](https://discourse.processing.org/t/gradient-interpolation-with-3-points/32832)

<div class="topic-metadata">

**Author:** [@dirknbr](https://discourse.processing.org/u/dirknbr)\
**Replies:** 6\
**Last updated:** [October 18, 2021, 11:14am UTC](https://discourse.processing.org/t/gradient-interpolation-with-3-points/32832 "2021-10-18T11:14:09Z")

</div>

We have a n x n canvas and m (say 3) points in it. The m points/nodes all have different fixed RGB colors. The color of each dot in n x n is defined by the distance from any of the color nodes. So each dot is a mixture (…

---

## [Why default Black color in chrome](https://discourse.processing.org/t/why-default-black-color-in-chrome/32888)

<div class="topic-metadata">

**Author:** [@Cere1998](https://discourse.processing.org/u/Cere1998)\
**Replies:** 5\
**Last updated:** [October 18, 2021, 10:48am UTC](https://discourse.processing.org/t/why-default-black-color-in-chrome/32888 "2021-10-18T10:48:18Z")

</div>

New to p5.js how come my default color is black when i run it in chrome? using brackets function setup() { createCanvas(480,120); } function draw() { rect(180, 60, 220, 40); }

---

## [Hidden Markov Models in Processing](https://discourse.processing.org/t/hidden-markov-models-in-processing/32880)

<div class="topic-metadata">

**Author:** [@Dazzid](https://discourse.processing.org/u/Dazzid)\
**Replies:** 3\
**Last updated:** [October 18, 2021, 10:26am UTC](https://discourse.processing.org/t/hidden-markov-models-in-processing/32880 "2021-10-18T10:26:50Z")

</div>

Has someone implemented Hierarchical Hidden Markov Models in processing before?

---

## [Can I load 3dmodels from local?](https://discourse.processing.org/t/can-i-load-3dmodels-from-local/32350)

<div class="topic-metadata">

**Author:** [@yang](https://discourse.processing.org/u/yang)\
**Replies:** 7\
**Last updated:** [October 18, 2021, 4:25am UTC](https://discourse.processing.org/t/can-i-load-3dmodels-from-local/32350 "2021-10-18T04:25:52Z")

</div>

I’ve loaded a model using loadModel(), but it requires a path from the website. And because I can’t upload a file larger than 5M，I wonder if there is a way to load a model just from local (maybe createFileInput)? Thank …

---

## [What does the 'sqrt' equation mean?](https://discourse.processing.org/t/what-does-the-sqrt-equation-mean/32875)

<div class="topic-metadata">

**Author:** [@blopplop](https://discourse.processing.org/u/blopplop)\
**Replies:** 5\
**Last updated:** [October 17, 2021, 11:13am UTC](https://discourse.processing.org/t/what-does-the-sqrt-equation-mean/32875 "2021-10-17T11:13:47Z")

</div>

What does the sqrt equation mean?

---

## [Processing quiz](https://discourse.processing.org/t/processing-quiz/32784)

<div class="topic-metadata">

**Author:** [@Rayenblue](https://discourse.processing.org/u/Rayenblue)\
**Replies:** 11\
**Last updated:** [October 17, 2021, 3:10pm UTC](https://discourse.processing.org/t/processing-quiz/32784 "2021-10-17T15:10:26Z")

</div>

Hello Everyone ! I have a project with my university, i have to create à quizz which you can chose the answer by using Arduino button. For the moment i can’t send the stat of my button to processing and i dont know why. …

---

## [Chrome performance issues](https://discourse.processing.org/t/chrome-performance-issues/32892)

<div class="topic-metadata">

**Author:** [@mortimr](https://discourse.processing.org/u/mortimr)\
**Replies:** 1\
**Last updated:** [October 17, 2021, 7:30pm UTC](https://discourse.processing.org/t/chrome-performance-issues/32892 "2021-10-17T19:30:01Z")

</div>

Hi ! I’ve got an animation with not that much entities drawn on the screen. Each entity is a set of vertices that draw some shapes with beginShape and endShape (tesseract mode). For some reason, on chrome the animation …

---

## [Detect keypress while in a loop](https://discourse.processing.org/t/detect-keypress-while-in-a-loop/32850)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 2\
**Last updated:** [October 17, 2021, 6:00pm UTC](https://discourse.processing.org/t/detect-keypress-while-in-a-loop/32850 "2021-10-17T18:00:14Z")

</div>

I am making a program to make music. However the playfunction has the problem, that I can’t interrupt it. So I wanted to implement a key to abort the play function. Here is a example to show the problem. It also has the…

---

## [Feedback examples](https://discourse.processing.org/t/feedback-examples/32843)

<div class="topic-metadata">

**Author:** [@bcabc](https://discourse.processing.org/u/bcabc)\
**Replies:** 4\
**Last updated:** [October 17, 2021, 5:12pm UTC](https://discourse.processing.org/t/feedback-examples/32843 "2021-10-17T17:12:56Z")

</div>

Hi there - I’m interested in experimenting a bit with feedback in Processing. Is Processing good for video feedback? I haven’t seen any examples and it’s been tough to figure out how to approach it. I’m curious if I’m …

---

## [Front-End Framework for Artists (blog post)](https://discourse.processing.org/t/front-end-framework-for-artists-blog-post/32889)

<div class="topic-metadata">

**Author:** [@micuat](https://discourse.processing.org/u/micuat)\
**Replies:** 1\
**Last updated:** [October 17, 2021, 5:07pm UTC](https://discourse.processing.org/t/front-end-framework-for-artists-blog-post/32889 "2021-10-17T17:07:29Z")

</div>

I wrote an article about web front-end frameworks :gear: It might sound a bit out of the place, but I believe, if you are already familiar with p5.js and willing to extend the practice to do web stuff in general, lear…

---

## [Recognize/handle pinch gesture](https://discourse.processing.org/t/recognize-handle-pinch-gesture/11867)

<div class="topic-metadata">

**Author:** [@ottenm](https://discourse.processing.org/u/ottenm)\
**Replies:** 3\
**Last updated:** [October 17, 2021, 1:18pm UTC](https://discourse.processing.org/t/recognize-handle-pinch-gesture/11867 "2021-10-17T13:18:26Z")

</div>

Any short/easy path to handling a pinch gesture (zoom in/zoom out)? Java mode, Processing 3.3.7, running on a Windows 10 laptop with a touch screen. Tried: Rolling my own. But mousePressed/Dragged/Released doesn’t g…

---

## [Applying Reverb to Oscillator](https://discourse.processing.org/t/applying-reverb-to-oscillator/32862)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 2\
**Last updated:** [October 17, 2021, 5:37am UTC](https://discourse.processing.org/t/applying-reverb-to-oscillator/32862 "2021-10-17T05:37:32Z")

</div>

I am trying to make the sound made by the Oscillator sound less annoying and one idea woulb be adding a dampaning effect. I currently use this code: import processing.sound.\*; void setup() { SinOsc s=new SinOsc(this)…

---

## [Webgl scaling interaction can be improved](https://discourse.processing.org/t/webgl-scaling-interaction-can-be-improved/32863)

<div class="topic-metadata">

**Author:** [@yang](https://discourse.processing.org/u/yang)\
**Replies:** 2\
**Last updated:** [October 17, 2021, 2:09am UTC](https://discourse.processing.org/t/webgl-scaling-interaction-can-be-improved/32863 "2021-10-17T02:09:27Z")

</div>

Currently you can only scale between large and small. I suggest changing code like this in order to scale smoothly in interaction.js. “\_pmouseWheelDeltaY” may be removed. const scaleFactor = 50; // ZOOM if there is a …

---

## [Shader texture sample wrap on x axis?](https://discourse.processing.org/t/shader-texture-sample-wrap-on-x-axis/32717)

<div class="topic-metadata">

**Author:** [@mercurus](https://discourse.processing.org/u/mercurus)\
**Replies:** 1\
**Last updated:** [October 16, 2021, 11:58pm UTC](https://discourse.processing.org/t/shader-texture-sample-wrap-on-x-axis/32717 "2021-10-16T23:58:08Z")

</div>

I’ve created a shader that computes/draws a Conway’s Game of Life. It takes in an image (CGoL data encoded as pixels), reads the current state, and draws the next state. And it works fine… except that I want the pixels/c…

---

## [Processing errors with macOS Catalina](https://discourse.processing.org/t/processing-errors-with-macos-catalina/32865)

<div class="topic-metadata">

**Author:** [@sacrisenka](https://discourse.processing.org/u/sacrisenka)\
**Replies:** 1\
**Last updated:** [October 16, 2021, 4:40pm UTC](https://discourse.processing.org/t/processing-errors-with-macos-catalina/32865 "2021-10-16T16:40:17Z")

</div>

Good afternoon, I have problems to run Processing at a MacOs system with Catalina. The program returns errors when you send simple sentences as print(“Hello World!”); It returns syntax errors. ¿Do you know why occur…

---

## [Why this does not work?](https://discourse.processing.org/t/why-this-does-not-work/32786)

<div class="topic-metadata">

**Author:** [@creepercrack](https://discourse.processing.org/u/creepercrack)\
**Replies:** 3\
**Last updated:** [October 16, 2021, 5:14pm UTC](https://discourse.processing.org/t/why-this-does-not-work/32786 "2021-10-16T17:14:45Z")

</div>

I’m trying to visualize openstreetmap data but when I go to render it to the screen, if I change the noFill and stroke it wont render anything. The weird thing is that it works perfectly with those two lines commented. M…

---

## [Looking forward to JDK17](https://discourse.processing.org/t/looking-forward-to-jdk17/32867)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 0\
**Last updated:** [October 16, 2021, 4:08pm UTC](https://discourse.processing.org/t/looking-forward-to-jdk17/32867 "2021-10-16T16:08:41Z")

</div>

Recently I’ve been looking at some cool features brought in for JDK14 that are now solid since JDK17. Particularly useful for my ruby-processing project is Instance Of Pattern Matching, but the switch expression could b…

---

## [Rotate a PShape](https://discourse.processing.org/t/rotate-a-pshape/32859)

<div class="topic-metadata">

**Author:** [@zack10](https://discourse.processing.org/u/zack10)\
**Replies:** 4\
**Last updated:** [October 16, 2021, 2:45pm UTC](https://discourse.processing.org/t/rotate-a-pshape/32859 "2021-10-16T14:45:53Z")

</div>

void setup() { size(600,600,P3D); smooth(); background(0); cam = new QueasyCam(this); cam.position.x = 3; cam.position.y = -20; cam.position.z = 0; obj = loadShape("mysterious\_object.obj"); } void draw() …

---

## [Help with complex homework(Solved)](https://discourse.processing.org/t/help-with-complex-homework-solved/32837)

<div class="topic-metadata">

**Author:** [@Onipunch777](https://discourse.processing.org/u/Onipunch777)\
**Replies:** 26\
**Last updated:** [October 16, 2021, 11:23am UTC](https://discourse.processing.org/t/help-with-complex-homework-solved/32837 "2021-10-16T11:23:19Z")

</div>

Hi everyone, I would really appreciate the help trying to figure out this code. I have been working at it for hours and I haven’t gotten any progress on it at all. I hope that you are able to help in any kind of way. T…

---

## [How can I make a Boolean button, where I can click anywhere and an additional overlay will appear on top of my pattern?](https://discourse.processing.org/t/how-can-i-make-a-boolean-button-where-i-can-click-anywhere-and-an-additional-overlay-will-appear-on-top-of-my-pattern/32821)

<div class="topic-metadata">

**Author:** [@Anjiyuuki](https://discourse.processing.org/u/Anjiyuuki)\
**Replies:** 2\
**Last updated:** [October 15, 2021, 6:05pm UTC](https://discourse.processing.org/t/how-can-i-make-a-boolean-button-where-i-can-click-anywhere-and-an-additional-overlay-will-appear-on-top-of-my-pattern/32821 "2021-10-15T18:05:40Z")

</div>

int x= 0; int y= 0; int ov =60; boolean b= true; void setup(){ size(500,500); if (b){ for (x= 0; x\< width; x= x+ov) { for (y=0; y\< height; y=y+ov){ fill(random(255), random(0), random(0),50); ellipse( x,y, ov,…

---

## [keyPressed(event) usage](https://discourse.processing.org/t/keypressed-event-usage/32847)

<div class="topic-metadata">

**Author:** [@mhamilt](https://discourse.processing.org/u/mhamilt)\
**Replies:** 6\
**Last updated:** [October 15, 2021, 6:20pm UTC](https://discourse.processing.org/t/keypressed-event-usage/32847 "2021-10-15T18:20:46Z")

</div>

In the keyPressed documentation one of the usages listed under Syntax is keyPressed(event). My expectation is that you could write the function as keyPressed(Event event), but that doesn’t seem to be correct. I anyone …

---

## [JRubyArt Help Required](https://discourse.processing.org/t/jrubyart-help-required/32849)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 0\
**Last updated:** [October 15, 2021, 3:26pm UTC](https://discourse.processing.org/t/jrubyart-help-required/32849 "2021-10-15T15:26:27Z")

</div>

I have just released a new version of JRubyArt as a rubygem, it is confirmed as working on Debian and ArchLinux with OpenJDK 11 and OpenJDK17, it is intended to work with JRuby-9.3.1.0 (but also works with JRuby-9.3.0.0 …

---

## [Rainbow Hippo Sketch](https://discourse.processing.org/t/rainbow-hippo-sketch/32682)

<div class="topic-metadata">

**Author:** [@javagar](https://discourse.processing.org/u/javagar)\
**Replies:** 2\
**Last updated:** [October 15, 2021, 11:46am UTC](https://discourse.processing.org/t/rainbow-hippo-sketch/32682 "2021-10-15T11:46:48Z")

</div>

Meet the Rainbow Hippo. Prior to August, 2021, the Street View imagery of Google Maps included a view of a Party Rental, Ltd. truck parked across the street from the Public Theater at 425 Lafayette Street in the Manha…

---

## [Full screen issue, white canvas - keyPressed](https://discourse.processing.org/t/full-screen-issue-white-canvas-keypressed/32795)

<div class="topic-metadata">

**Author:** [@u\_ro](https://discourse.processing.org/u/u_ro)\
**Replies:** 5\
**Last updated:** [October 15, 2021, 11:13am UTC](https://discourse.processing.org/t/full-screen-issue-white-canvas-keypressed/32795 "2021-10-15T11:13:39Z")

</div>

Hi guys, I am an absolutely newbie of p5js. I am having trouble when I play my sketch in full screen, I attach an example I set function setup() { createCanvas(windowWidth, windowHeight); background(0); and then …

---

## [Help with if statements](https://discourse.processing.org/t/help-with-if-statements/32839)

<div class="topic-metadata">

**Author:** [@Onipunch777](https://discourse.processing.org/u/Onipunch777)\
**Replies:** 2\
**Last updated:** [October 15, 2021, 7:20am UTC](https://discourse.processing.org/t/help-with-if-statements/32839 "2021-10-15T07:20:29Z")

</div>

Hello, I was hoping to get step-by-step help to get this homework assignment done. My teacher is asking the class to have the processing code print out odds numbers between 100 to 200 that can not be divided by 3. From w…

---

## [How to create a clickable list of files?](https://discourse.processing.org/t/how-to-create-a-clickable-list-of-files/32797)

<div class="topic-metadata">

**Author:** [@bigboss97](https://discourse.processing.org/u/bigboss97)\
**Replies:** 6\
**Last updated:** [October 15, 2021, 3:50am UTC](https://discourse.processing.org/t/how-to-create-a-clickable-list-of-files/32797 "2021-10-15T03:50:19Z")

</div>

I want to allow user to select files from a fixed directory. I don’t want user to navigate to other places. How can I make a list of files where user can tap on a file to select? The list should be dynamic and can be up…

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

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