# Latest

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

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

**Page:** 192

---

## [SVG Canvas performance](https://discourse.processing.org/t/svg-canvas-performance/32347)

<div class="topic-metadata">

**Author:** [@philspitler](https://discourse.processing.org/u/philspitler)\
**Replies:** 1\
**Last updated:** [September 22, 2021, 10:10pm UTC](https://discourse.processing.org/t/svg-canvas-performance/32347 "2021-09-22T22:10:05Z")

</div>

Hi, I need to save an SVG from my p5 sketch, it works great but as soon as I change my canvas to SVG the performance of my sketch really drops. I have a few sliders to change settings in the sketch and when I use and SV…

---

## [How to stop random color in animation?](https://discourse.processing.org/t/how-to-stop-random-color-in-animation/32355)

<div class="topic-metadata">

**Author:** [@Mica](https://discourse.processing.org/u/Mica)\
**Replies:** 2\
**Last updated:** [September 22, 2021, 9:56pm UTC](https://discourse.processing.org/t/how-to-stop-random-color-in-animation/32355 "2021-09-22T21:56:18Z")

</div>

let colors = \["#ed3441", "#ffb03b", "#36acf5", "#ffd630", "#084e86", "#fcfeff"\]; function setup() { createCanvas(500,500); } function draw() { background(200); let offset = -width / 10; noFill(); let xStep = …

---

## [Hardware solutions for long renders](https://discourse.processing.org/t/hardware-solutions-for-long-renders/32370)

<div class="topic-metadata">

**Author:** [@goldorak](https://discourse.processing.org/u/goldorak)\
**Replies:** 2\
**Last updated:** [September 22, 2021, 8:19pm UTC](https://discourse.processing.org/t/hardware-solutions-for-long-renders/32370 "2021-09-22T20:19:52Z")

</div>

Hi, I’m struggling with some artworks I create which require a very long rendering time. Beyond refactoring and code optimization I’d like to know what would be the best hardware I could use to speed things up? Thanks …

---

## [Math behind logical operators on 3D boxes / cuboids](https://discourse.processing.org/t/math-behind-logical-operators-on-3d-boxes-cuboids/32318)

<div class="topic-metadata">

**Author:** [@Lukasz](https://discourse.processing.org/u/Lukasz)\
**Replies:** 5\
**Last updated:** [September 22, 2021, 10:41am UTC](https://discourse.processing.org/t/math-behind-logical-operators-on-3d-boxes-cuboids/32318 "2021-09-22T10:41:05Z")

</div>

Cheers. Recently I’ve been coding a lot 3D isometric projections of complex structures rendered as cuboids (like this render of 2D k-d tree into 3D space: Imgur: The magic of the Internet). Standard Processing libraries…

---

## [Upload image to p5 via a dialog box](https://discourse.processing.org/t/upload-image-to-p5-via-a-dialog-box/32291)

<div class="topic-metadata">

**Author:** [@philspitler](https://discourse.processing.org/u/philspitler)\
**Replies:** 8\
**Last updated:** [September 22, 2021, 5:41am UTC](https://discourse.processing.org/t/upload-image-to-p5-via-a-dialog-box/32291 "2021-09-22T05:41:25Z")

</div>

Hi, I am thinking of moving one of my Processing projects over to p5 and would like to have the user upload their own image to get processed. Is there a way to have a dialog box prompt a file upload? Thanks Phil

---

## [P5 serial port not closing](https://discourse.processing.org/t/p5-serial-port-not-closing/32366)

<div class="topic-metadata">

**Author:** [@processing\_user](https://discourse.processing.org/u/processing_user)\
**Replies:** 0\
**Last updated:** [September 22, 2021, 3:49am UTC](https://discourse.processing.org/t/p5-serial-port-not-closing/32366 "2021-09-22T03:49:12Z")

</div>

hi, I am using p5 serial library, everything works fine but the only thing is I am unable to close the port once done using it. The browser once opened will not close the port so I wanted to use keypressed() function to…

---

## [noLoop not working as expected in v3.5.4](https://discourse.processing.org/t/noloop-not-working-as-expected-in-v3-5-4/32342)

<div class="topic-metadata">

**Author:** [@RosesAreBlue](https://discourse.processing.org/u/RosesAreBlue)\
**Replies:** 5\
**Last updated:** [September 22, 2021, 2:17am UTC](https://discourse.processing.org/t/noloop-not-working-as-expected-in-v3-5-4/32342 "2021-09-22T02:17:19Z")

</div>

void setup() { // Set the size of the window and background color size(1024, 1024); background(0, 0, 0); noLoop(); } float plotFromNormalized(float x, float y) { // Takes inputs in range \[-1, 1\] where it must al…

---

## [Seeking hired project help from p5js developer](https://discourse.processing.org/t/seeking-hired-project-help-from-p5js-developer/32360)

<div class="topic-metadata">

**Author:** [@sethpkendall](https://discourse.processing.org/u/sethpkendall)\
**Replies:** 2\
**Last updated:** [September 21, 2021, 10:04pm UTC](https://discourse.processing.org/t/seeking-hired-project-help-from-p5js-developer/32360 "2021-09-21T22:04:03Z")

</div>

I have posted a contract job to guru.com: I have currently only received quotes from freelance developers without p5JS experience but what I need really is someone who has experience creating user interfaces with p5JS…

---

## [How to fix this ControlEvent issue](https://discourse.processing.org/t/how-to-fix-this-controlevent-issue/32351)

<div class="topic-metadata">

**Author:** [@seym](https://discourse.processing.org/u/seym)\
**Replies:** 1\
**Last updated:** [September 21, 2021, 10:02pm UTC](https://discourse.processing.org/t/how-to-fix-this-controlevent-issue/32351 "2021-09-21T22:02:56Z")

</div>

I am using Processing IDE with Java language. There are serial port writings for lighting some LEDs and my aim was; send the c (Color) from cp (colorpicker) to the corresponding LEDs. Since I have too many LED areas, I…

---

## [Make minim listen to what is send to speaker](https://discourse.processing.org/t/make-minim-listen-to-what-is-send-to-speaker/32339)

<div class="topic-metadata">

**Author:** [@gitanerie](https://discourse.processing.org/u/gitanerie)\
**Replies:** 2\
**Last updated:** [September 21, 2021, 4:06pm UTC](https://discourse.processing.org/t/make-minim-listen-to-what-is-send-to-speaker/32339 "2021-09-21T16:06:30Z")

</div>

Hi! (I’m really not sure about the topic’s category) Some times ago, I made a little script that would use minim to listen to your sound card, and have an animation base on the sound your computer is playing. While it …

---

## [Exported my program in Processing 4, but it won't work on Raspberry 4](https://discourse.processing.org/t/exported-my-program-in-processing-4-but-it-wont-work-on-raspberry-4/32263)

<div class="topic-metadata">

**Author:** [@Piipperi](https://discourse.processing.org/u/Piipperi)\
**Replies:** 3\
**Last updated:** [September 21, 2021, 3:32pm UTC](https://discourse.processing.org/t/exported-my-program-in-processing-4-but-it-wont-work-on-raspberry-4/32263 "2021-09-21T15:32:17Z")

</div>

Exporting the program on Processing 3 works, I was hoping to use Processing 4 instead as my program had some issues on the Raspberry where it didn’t use any system resources and it was very laggy.

---

## [Autocomplete and documentation for "imported" p5js](https://discourse.processing.org/t/autocomplete-and-documentation-for-imported-p5js/31927)

<div class="topic-metadata">

**Author:** [@atcold](https://discourse.processing.org/u/atcold)\
**Replies:** 17\
**Last updated:** [September 20, 2021, 11:57pm UTC](https://discourse.processing.org/t/autocomplete-and-documentation-for-imported-p5js/31927 "2021-09-20T23:57:11Z")

</div>

I spent countless hours to get my editor (VSC) to autocomplete P5JS. This worked only after adding this line to the main script: import "./p5" Now everything is accessible only if prefixed by p5, and the editor autoco…

---

## [Twisted quads vs. Expressive quads](https://discourse.processing.org/t/twisted-quads-vs-expressive-quads/32292)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 6\
**Last updated:** [September 20, 2021, 9:28pm UTC](https://discourse.processing.org/t/twisted-quads-vs-expressive-quads/32292 "2021-09-20T21:28:10Z")

</div>

Hi there! These days i have been working with quads and some Users have gave me different solutions for my problems. One of my biggest problems is that some of my random quads are twisted. With new ways of drawing quad…

---

## [Resize Image question](https://discourse.processing.org/t/resize-image-question/32327)

<div class="topic-metadata">

**Author:** [@philspitler](https://discourse.processing.org/u/philspitler)\
**Replies:** 2\
**Last updated:** [September 20, 2021, 6:46pm UTC](https://discourse.processing.org/t/resize-image-question/32327 "2021-09-20T18:46:33Z")

</div>

Hi, I’m using the resize() function to resize my P5 image and want to loop through all the resized pixels, sample them and draw a circle with the color values to basically create a dot pattern style image. It seems like…

---

## [How to add a font in the list](https://discourse.processing.org/t/how-to-add-a-font-in-the-list/22805)

<div class="topic-metadata">

**Author:** [@fotosettore](https://discourse.processing.org/u/fotosettore)\
**Replies:** 7\
**Last updated:** [September 20, 2021, 6:13pm UTC](https://discourse.processing.org/t/how-to-add-a-font-in-the-list/22805 "2021-09-20T18:13:34Z")

</div>

Hi i need to add a font in the list that is given by TOOL --\> CREATE FONT That font is already installed in windows10 and it is a true-type (it is seen by photoshop), but it does not appear in the Processing list. An…

---

## [Simulate mouse action](https://discourse.processing.org/t/simulate-mouse-action/32312)

<div class="topic-metadata">

**Author:** [@potter3366](https://discourse.processing.org/u/potter3366)\
**Replies:** 4\
**Last updated:** [September 20, 2021, 6:01pm UTC](https://discourse.processing.org/t/simulate-mouse-action/32312 "2021-09-20T18:01:56Z")

</div>

I have to simulate this mouse action. Instead of a mouse I can use the space button or with the jumps in front of the kinect. How can I control these actions over time or the frequency of repeating something at a certain…

---

## [Problem loading screen](https://discourse.processing.org/t/problem-loading-screen/32272)

<div class="topic-metadata">

**Author:** [@tati1202](https://discourse.processing.org/u/tati1202)\
**Replies:** 7\
**Last updated:** [September 20, 2021, 2:49pm UTC](https://discourse.processing.org/t/problem-loading-screen/32272 "2021-09-20T14:49:29Z")

</div>

hey, I have a problem executing my screen, it takes a second for the screen to run (it appears grey for a second), why could that be? I´m using array of images, text and some functions with buttons. The structure of the…

---

## [Has createCheckbox() always made a checkbox with a div or is it a bug?](https://discourse.processing.org/t/has-createcheckbox-always-made-a-checkbox-with-a-div-or-is-it-a-bug/24610)

<div class="topic-metadata">

**Author:** [@toad](https://discourse.processing.org/u/toad)\
**Replies:** 4\
**Last updated:** [September 20, 2021, 8:24am UTC](https://discourse.processing.org/t/has-createcheckbox-always-made-a-checkbox-with-a-div-or-is-it-a-bug/24610 "2021-09-20T08:24:11Z")

</div>

i have a for loop that creates 20 checkboxes, however they are all in there own individual divs, which makes them all display: block which is not what i want. any suggestions?

---

## [Register a key press while working outside the sketch window?](https://discourse.processing.org/t/register-a-key-press-while-working-outside-the-sketch-window/32036)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 1\
**Last updated:** [September 20, 2021, 6:04am UTC](https://discourse.processing.org/t/register-a-key-press-while-working-outside-the-sketch-window/32036 "2021-09-20T06:04:59Z")

</div>

I’m currently working on a program to assist me in a game but I’d like to add a few other controlls including when to shut the program down. However the keyPressed method only is called when the window is currently acti…

---

## [What's the equivalent of using cos() and sin() to find points on the edge of a circle to find points on a sphere?](https://discourse.processing.org/t/whats-the-equivalent-of-using-cos-and-sin-to-find-points-on-the-edge-of-a-circle-to-find-points-on-a-sphere/31407)

<div class="topic-metadata">

**Author:** [@olaf000olaf](https://discourse.processing.org/u/olaf000olaf)\
**Replies:** 10\
**Last updated:** [September 20, 2021, 5:33am UTC](https://discourse.processing.org/t/whats-the-equivalent-of-using-cos-and-sin-to-find-points-on-the-edge-of-a-circle-to-find-points-on-a-sphere/31407 "2021-09-20T05:33:25Z")

</div>

When putting points on the edge of a 2D circle you can do the following. let r = 50; for(i = 0; i \< 360; i ++){ ellipse(cos(i) \* r, sin(i) \* r,3); } There has to be an equivalent for spheres without cheating it right?

---

## [Need help making my code display random set of images](https://discourse.processing.org/t/need-help-making-my-code-display-random-set-of-images/32316)

<div class="topic-metadata">

**Author:** [@colehodl](https://discourse.processing.org/u/colehodl)\
**Replies:** 7\
**Last updated:** [September 20, 2021, 3:37am UTC](https://discourse.processing.org/t/need-help-making-my-code-display-random-set-of-images/32316 "2021-09-20T03:37:41Z")

</div>

I am trying to make a code that will display random images, I wanted to create a RandomCatGenerator that would have a random value between 1 and 3, and a random picture of a cat would show up depending on which number R…

---

## [How to make object shoot in Processing](https://discourse.processing.org/t/how-to-make-object-shoot-in-processing/32087)

<div class="topic-metadata">

**Author:** [@NewCoder1](https://discourse.processing.org/u/NewCoder1)\
**Replies:** 11\
**Last updated:** [September 20, 2021, 3:18am UTC](https://discourse.processing.org/t/how-to-make-object-shoot-in-processing/32087 "2021-09-20T03:18:01Z")

</div>

Hi everyone, I’m doing my Processing homework and I’ve got my object but I can’t get it to shoot. Can someone tell me the correct code please? I have the following so far: int x = 30; int y = 30; void setup(){ size(50…

---

## [How to make bullet shoot only when the previous bullet is off the screen](https://discourse.processing.org/t/how-to-make-bullet-shoot-only-when-the-previous-bullet-is-off-the-screen/32314)

<div class="topic-metadata">

**Author:** [@MarkShaker](https://discourse.processing.org/u/MarkShaker)\
**Replies:** 2\
**Last updated:** [September 20, 2021, 2:20am UTC](https://discourse.processing.org/t/how-to-make-bullet-shoot-only-when-the-previous-bullet-is-off-the-screen/32314 "2021-09-20T02:20:17Z")

</div>

Hi everyone, I’m having trouble with shooting another bullet only when the previous bullet fired is off the screen. This is my current code. int x = 30; int y = 60; float gunX = x+20; float gunY = y+20; float circl…

---

## [Is it possible to do a HTTP post from a Processing program?](https://discourse.processing.org/t/is-it-possible-to-do-a-http-post-from-a-processing-program/32224)

<div class="topic-metadata">

**Author:** [@TeppoTee](https://discourse.processing.org/u/TeppoTee)\
**Replies:** 3\
**Last updated:** [September 19, 2021, 9:55pm UTC](https://discourse.processing.org/t/is-it-possible-to-do-a-http-post-from-a-processing-program/32224 "2021-09-19T21:55:50Z")

</div>

I’ve been a Processing heavy user for years. Among other things have used loadString() quite a lot to fetch information from web server(s) . Is there a counterpart to loadStrings() which would allow me to do a HTTP post …

---

## [A Voxel game using Processing](https://discourse.processing.org/t/a-voxel-game-using-processing/32286)

<div class="topic-metadata">

**Author:** [@SNICKRS](https://discourse.processing.org/u/SNICKRS)\
**Replies:** 1\
**Last updated:** [September 19, 2021, 2:02pm UTC](https://discourse.processing.org/t/a-voxel-game-using-processing/32286 "2021-09-19T14:02:47Z")

</div>

I’ve been working on a voxel game recently, because I wanted to learn about P3D and 3d game development. Coding this game was really fun, and I learned a lot about 3d game development in the process. Features: Infini…

---

## [Access sub classes static final variable from superclass](https://discourse.processing.org/t/access-sub-classes-static-final-variable-from-superclass/32297)

<div class="topic-metadata">

**Author:** [@gitanerie](https://discourse.processing.org/u/gitanerie)\
**Replies:** 5\
**Last updated:** [September 19, 2021, 12:16pm UTC](https://discourse.processing.org/t/access-sub-classes-static-final-variable-from-superclass/32297 "2021-09-19T12:16:46Z")

</div>

Hi everyone, I’m currently working on a project in which I have different types of “bullets”. I have a superclass called Projectile to handle all the needed functions that are common to all types of bullets. In fact, th…

---

## [Invalid File... library has already been installed, but can't find the HTTP Requests library](https://discourse.processing.org/t/invalid-file-library-has-already-been-installed-but-cant-find-the-http-requests-library/32300)

<div class="topic-metadata">

**Author:** [@bigboss97](https://discourse.processing.org/u/bigboss97)\
**Replies:** 1\
**Last updated:** [September 19, 2021, 11:59am UTC](https://discourse.processing.org/t/invalid-file-library-has-already-been-installed-but-cant-find-the-http-requests-library/32300 "2021-09-19T11:59:38Z")

</div>

I’m using Processing 3.5.4 on Windows 10. I’ve created a script using HTTP Requests library. Everything works fine. Now I’m trying to run the script on my Android phone with APDE v0.5.1. When I tried to install compress…

---

## [Render without displaying for performance](https://discourse.processing.org/t/render-without-displaying-for-performance/32307)

<div class="topic-metadata">

**Author:** [@shishironeal](https://discourse.processing.org/u/shishironeal)\
**Replies:** 1\
**Last updated:** [September 19, 2021, 10:26am UTC](https://discourse.processing.org/t/render-without-displaying-for-performance/32307 "2021-09-19T10:26:01Z")

</div>

Is it possible to render frames without having to display them? Would this be faster than normal rendering (with JAVA2D or P2D)? (i.e. with saveFrame)

---

## [Commissioning a script?](https://discourse.processing.org/t/commissioning-a-script/32306)

<div class="topic-metadata">

**Author:** [@benr](https://discourse.processing.org/u/benr)\
**Replies:** 1\
**Last updated:** [September 19, 2021, 1:22am UTC](https://discourse.processing.org/t/commissioning-a-script/32306 "2021-09-19T01:22:37Z")

</div>

Would it be appropriate to commission a processing script via this forum? It would be for a generative image border script with a random seed. Paid. Thanks

---

## [Print-Based Project Using Processing](https://discourse.processing.org/t/print-based-project-using-processing/32299)

<div class="topic-metadata">

**Author:** [@Craig](https://discourse.processing.org/u/Craig)\
**Replies:** 2\
**Last updated:** [September 18, 2021, 11:54pm UTC](https://discourse.processing.org/t/print-based-project-using-processing/32299 "2021-09-18T23:54:55Z")

</div>

Here’s a link to a video about print-based project titled Explanations and Clarifications. While most of the work was done in Photoshop, I use Processing as sort of a Swiss Army Knife and use it everywhere. In the video …

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

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