# Latest

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

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

**Page:** 202

---

## [Sound and Acceleration](https://discourse.processing.org/t/sound-and-acceleration/31710)

<div class="topic-metadata">

**Author:** [@G03TH3](https://discourse.processing.org/u/G03TH3)\
**Replies:** 3\
**Last updated:** [August 14, 2021, 4:36pm UTC](https://discourse.processing.org/t/sound-and-acceleration/31710 "2021-08-14T16:36:47Z")

</div>

I have been bombarding this post with many questions and I’m sorry that I have to rely so much on the help of you guys, I may assure that everything I’m asking it took me at least 1-2 hours of attempt and failure by myse…

---

## [Playing multiple videos with transparent backgrounds](https://discourse.processing.org/t/playing-multiple-videos-with-transparent-backgrounds/8990)

<div class="topic-metadata">

**Author:** [@blue](https://discourse.processing.org/u/blue)\
**Replies:** 4\
**Last updated:** [August 14, 2021, 12:58pm UTC](https://discourse.processing.org/t/playing-multiple-videos-with-transparent-backgrounds/8990 "2021-08-14T12:58:38Z")

</div>

Hi, I would like to layer multiple videos that I’ve made in processing sketches on top of each other. They all have black backgrounds, which is necessary to create the initial sketch but when i play them back on top of …

---

## [How to create a line in a grid using Bresenham's line algorithm](https://discourse.processing.org/t/how-to-create-a-line-in-a-grid-using-bresenhams-line-algorithm/31721)

<div class="topic-metadata">

**Author:** [@Rafsing](https://discourse.processing.org/u/Rafsing)\
**Replies:** 1\
**Last updated:** [August 14, 2021, 12:43am UTC](https://discourse.processing.org/t/how-to-create-a-line-in-a-grid-using-bresenhams-line-algorithm/31721 "2021-08-14T00:43:20Z")

</div>

I want to create a line using Bresenham’s algorithm , but the only line that works is a horizontal line from left to right, lines pointing upwards do not work at all and lines drawn diagonally downwards appear in the wro…

---

## [How to save frames with many transparent images?](https://discourse.processing.org/t/how-to-save-frames-with-many-transparent-images/30522)

<div class="topic-metadata">

**Author:** [@noodleSystem](https://discourse.processing.org/u/noodleSystem)\
**Replies:** 10\
**Last updated:** [August 13, 2021, 7:45pm UTC](https://discourse.processing.org/t/how-to-save-frames-with-many-transparent-images/30522 "2021-08-13T19:45:35Z")

</div>

This is kind of a weird question, please forgive the longwinded explanation: There must be an easier way to do this. I’m trying to save each frame (as it appears on the screen) and make a movie, but the frame captures t…

---

## [I need random shapes to appear in a random order](https://discourse.processing.org/t/i-need-random-shapes-to-appear-in-a-random-order/31716)

<div class="topic-metadata">

**Author:** [@maroslan](https://discourse.processing.org/u/maroslan)\
**Replies:** 2\
**Last updated:** [August 13, 2021, 6:17pm UTC](https://discourse.processing.org/t/i-need-random-shapes-to-appear-in-a-random-order/31716 "2021-08-13T18:17:36Z")

</div>

Hi everyone For an assignment I am trying to make two shapes (ellipse and rectangle) appear in a random order (with random color and position). The color and position I got down, but I cannot seem to seperate the ellip…

---

## [Would you call this way to measure velocity "correct"?](https://discourse.processing.org/t/would-you-call-this-way-to-measure-velocity-correct/31697)

<div class="topic-metadata">

**Author:** [@G03TH3](https://discourse.processing.org/u/G03TH3)\
**Replies:** 3\
**Last updated:** [August 13, 2021, 9:27am UTC](https://discourse.processing.org/t/would-you-call-this-way-to-measure-velocity-correct/31697 "2021-08-13T09:27:50Z")

</div>

float x; float playbackSpeed; float x\_po, pr\_x, pa\_x, x\_d; float prevTime = 0; float dt, velocity = 1; float currTime; void setup() { size(640, 360); background(255); } void draw() { x\_po+=10; // X1-POSITION if…

---

## [Writing Processing in Kotlin](https://discourse.processing.org/t/writing-processing-in-kotlin/3957)

<div class="topic-metadata">

**Author:** [@hamoid](https://discourse.processing.org/u/hamoid)\
**Replies:** 48\
**Last updated:** [August 12, 2021, 8:32pm UTC](https://discourse.processing.org/t/writing-processing-in-kotlin/3957 "2021-08-12T20:32:00Z")

</div>

Hi there, I just tried running a Processing program written in the Kotlin language, and I thought I would share here the steps in case anyone wants to try. This may not be very interesting if you are happy using the Pro…

---

## [Making my float increase then decrease so that my ellipses grows and then shrinks](https://discourse.processing.org/t/making-my-float-increase-then-decrease-so-that-my-ellipses-grows-and-then-shrinks/31701)

<div class="topic-metadata">

**Author:** [@Kenga123456](https://discourse.processing.org/u/Kenga123456)\
**Replies:** 7\
**Last updated:** [August 13, 2021, 8:00am UTC](https://discourse.processing.org/t/making-my-float-increase-then-decrease-so-that-my-ellipses-grows-and-then-shrinks/31701 "2021-08-13T08:00:51Z")

</div>

Here is the code I use to make ellipses grow and then shrink. I have already declared vision as a float with the starting value 0; if (circleIsShrinking) vision = vision -0,2; else vision = vision +0,2; if (…

---

## [Show country names in a p5 worldmap](https://discourse.processing.org/t/show-country-names-in-a-p5-worldmap/31519)

<div class="topic-metadata">

**Author:** [@Zqrni](https://discourse.processing.org/u/Zqrni)\
**Replies:** 10\
**Last updated:** [August 12, 2021, 9:14pm UTC](https://discourse.processing.org/t/show-country-names-in-a-p5-worldmap/31519 "2021-08-12T21:14:29Z")

</div>

Hi there, I need to show the country name when we have the pointer over a country position on a world map. Could you guys please help me? Don’t even know from where to start with this. The code is in this codepen: T…

---

## [Area of triangle](https://discourse.processing.org/t/area-of-triangle/31652)

<div class="topic-metadata">

**Author:** [@peterson](https://discourse.processing.org/u/peterson)\
**Replies:** 5\
**Last updated:** [August 12, 2021, 7:46pm UTC](https://discourse.processing.org/t/area-of-triangle/31652 "2021-08-12T19:46:42Z")

</div>

type or paste code here \`\</\>button\*/t/2147askingquestionshowtogetareaoftriangle\`\`

---

## [Can I safely install both Processing 4 and Processing 3.5.4?](https://discourse.processing.org/t/can-i-safely-install-both-processing-4-and-processing-3-5-4/31700)

<div class="topic-metadata">

**Author:** [@PhilHaw](https://discourse.processing.org/u/PhilHaw)\
**Replies:** 2\
**Last updated:** [August 12, 2021, 5:52pm UTC](https://discourse.processing.org/t/can-i-safely-install-both-processing-4-and-processing-3-5-4/31700 "2021-08-12T17:52:41Z")

</div>

Can Processing 4 and Processing 3.5.4 co-exist on the same PC (Windows 10)? I know I should create a new sketchbook folder for Processing 4 to avoid making unwanted changes to older sketches but what about Java 11 versu…

---

## [Give sound to AI paths](https://discourse.processing.org/t/give-sound-to-ai-paths/31660)

<div class="topic-metadata">

**Author:** [@markelloskolofotias](https://discourse.processing.org/u/markelloskolofotias)\
**Replies:** 4\
**Last updated:** [August 12, 2021, 5:48pm UTC](https://discourse.processing.org/t/give-sound-to-ai-paths/31660 "2021-08-12T17:48:43Z")

</div>

Dear community, I am a postgraduate fine art student from Greece and I have a question for you. I designed the following symbols in Adobe Illustrator and I would like to give them sound. So, could you please tell me i…

---

## [OpenGL and Big Sur](https://discourse.processing.org/t/opengl-and-big-sur/30045)

<div class="topic-metadata">

**Author:** [@Christian](https://discourse.processing.org/u/Christian)\
**Replies:** 4\
**Last updated:** [August 12, 2021, 2:07pm UTC](https://discourse.processing.org/t/opengl-and-big-sur/30045 "2021-08-12T14:07:19Z")

</div>

Hello! I realised that the P2D and P3D renderers don’t work on Big Sur, however some users suggested to add frameRate(XX) to make the Sketch run. Thanks a lot for that! As an exported application it still crashes thoug…

---

## [Migrated Processing to new MacBook Pro - OSX 11.1 - sketches fail](https://discourse.processing.org/t/migrated-processing-to-new-macbook-pro-osx-11-1-sketches-fail/27105)

<div class="topic-metadata">

**Author:** [@RetProf](https://discourse.processing.org/u/RetProf)\
**Replies:** 1\
**Last updated:** [August 12, 2021, 1:31pm UTC](https://discourse.processing.org/t/migrated-processing-to-new-macbook-pro-osx-11-1-sketches-fail/27105 "2021-08-12T13:31:10Z")

</div>

Still no responses - but I have discovered that the problem/failure indicated below appears to be the result of using either the P2D or P3D renderers. When using the default (i.e. no renderer indicated), sketches functio…

---

## [Broken website tutorials](https://discourse.processing.org/t/broken-website-tutorials/31683)

<div class="topic-metadata">

**Author:** [@username2](https://discourse.processing.org/u/username2)\
**Replies:** 7\
**Last updated:** [August 12, 2021, 1:19pm UTC](https://discourse.processing.org/t/broken-website-tutorials/31683 "2021-08-12T13:19:13Z")

</div>

hello, after the website has migrated, most of the tutorial links don’t work anymore and it’s really difficult to look up reference and examples (for example https://processing.org/learning/pshape/ or https://processin…

---

## [P4 on Pi4 (is not a joke)](https://discourse.processing.org/t/p4-on-pi4-is-not-a-joke/31497)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 6\
**Last updated:** [August 12, 2021, 11:19am UTC](https://discourse.processing.org/t/p4-on-pi4-is-not-a-joke/31497 "2021-08-12T11:19:11Z")

</div>

Hi, I’m trying the last alpha release on raspberry pi 4. I’ve got this error in bash shell : ./processing: 117 java: Exec format error There is a solution ? Google give me nothing interesting.

---

## [Processing 4.0 uses more Memory](https://discourse.processing.org/t/processing-4-0-uses-more-memory/31672)

<div class="topic-metadata">

**Author:** [@CosmicCrowMC](https://discourse.processing.org/u/CosmicCrowMC)\
**Replies:** 2\
**Last updated:** [August 12, 2021, 10:31am UTC](https://discourse.processing.org/t/processing-4-0-uses-more-memory/31672 "2021-08-12T10:31:01Z")

</div>

Today I updated to Processing 4.0. In 3.5.4, my Dev Environment averaged at around 450 MB of usage and its corresponding program averaged at around 1500 MB. In 4.0, the environment averages 600 MB and the program average…

---

## [Trying to make a animation where it gradually grows and then shrinks but it bugs](https://discourse.processing.org/t/trying-to-make-a-animation-where-it-gradually-grows-and-then-shrinks-but-it-bugs/31690)

<div class="topic-metadata">

**Author:** [@Kenga123456](https://discourse.processing.org/u/Kenga123456)\
**Replies:** 3\
**Last updated:** [August 12, 2021, 8:20am UTC](https://discourse.processing.org/t/trying-to-make-a-animation-where-it-gradually-grows-and-then-shrinks-but-it-bugs/31690 "2021-08-12T08:20:54Z")

</div>

if (vision \< 150) { vision\_speed = 1; } if (vision \> 250) { vision\_speed = -1; } vision = vision + vision\_speed; //////////////////////////////////////////// The growing and shrinking par…

---

## [Can't use the original functions in processing 4.0's class?](https://discourse.processing.org/t/cant-use-the-original-functions-in-processing-4-0s-class/31694)

<div class="topic-metadata">

**Author:** [@LOOOOOOOOP](https://discourse.processing.org/u/LOOOOOOOOP)\
**Replies:** 2\
**Last updated:** [August 12, 2021, 7:06am UTC](https://discourse.processing.org/t/cant-use-the-original-functions-in-processing-4-0s-class/31694 "2021-08-12T07:06:41Z")

</div>

When I use rect(),or line() in classes, it works in processing 3. But I don’t know what is going on in processing 4. class t{ t(){} void test(){ rect(0,0,30,50); } } The function rect(int, int, int, int) do…

---

## [Join the new p5.js Discord](https://discourse.processing.org/t/join-the-new-p5-js-discord/31692)

<div class="topic-metadata">

**Author:** [@qianqian\_ye](https://discourse.processing.org/u/qianqian_ye)\
**Replies:** 0\
**Last updated:** [August 12, 2021, 1:19am UTC](https://discourse.processing.org/t/join-the-new-p5-js-discord/31692 "2021-08-12T01:19:24Z")

</div>

Hi, p5.js is starting a new Discord server (https://discord.gg/SHQ8dH25r9). Look forward to seeing you there! :tada:

---

## [Designed coding cards with type-in programs](https://discourse.processing.org/t/designed-coding-cards-with-type-in-programs/31691)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 0\
**Last updated:** [August 11, 2021, 11:56pm UTC](https://discourse.processing.org/t/designed-coding-cards-with-type-in-programs/31691 "2021-08-11T23:56:46Z")

</div>

I want to show you a few greeting cards / coding cards that I designed using Processing API and the codeguppy.com platform: For the moment, I uploaded just a few designs on zazzle, a print-on-demand service: https://ww…

---

## [Keep RGB Alive!](https://discourse.processing.org/t/keep-rgb-alive/31676)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 0\
**Last updated:** [August 11, 2021, 12:45am UTC](https://discourse.processing.org/t/keep-rgb-alive/31676 "2021-08-11T00:45:28Z")

</div>

Hello, The objective is to keep the sketch window populated with an even mix of R, G and B circles. Start by moving your mouse over the initial colours and then try to keep up with any of the new circles to select the …

---

## [Bug with DOM createInput()](https://discourse.processing.org/t/bug-with-dom-createinput/31686)

<div class="topic-metadata">

**Author:** [@Lynceus](https://discourse.processing.org/u/Lynceus)\
**Replies:** 1\
**Last updated:** [August 11, 2021, 7:36pm UTC](https://discourse.processing.org/t/bug-with-dom-createinput/31686 "2021-08-11T19:36:17Z")

</div>

Hi guys, I think I may of found an issue with createInput() more specifically The example given in the reference document: createInput() It is perfectly lined up and looks flush with the canvas in the example. However…

---

## [Custom button class that can call given function](https://discourse.processing.org/t/custom-button-class-that-can-call-given-function/31670)

<div class="topic-metadata">

**Author:** [@Sayochi](https://discourse.processing.org/u/Sayochi)\
**Replies:** 3\
**Last updated:** [August 11, 2021, 8:02pm UTC](https://discourse.processing.org/t/custom-button-class-that-can-call-given-function/31670 "2021-08-11T20:02:27Z")

</div>

Im trying to make a custom buttons for fun. i want to be able to give him functions and run the functions when I click it. I already completed the clicking detection part. how can I somehow pass the function information …

---

## [New Processing Website](https://discourse.processing.org/t/new-processing-website/31674)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 0\
**Last updated:** [August 10, 2021, 10:50pm UTC](https://discourse.processing.org/t/new-processing-website/31674 "2021-08-10T22:50:12Z")

</div>

Oh my! Update: And now it’s gone… back to original. Maybe they were testing… no spoilers from me. Keep on checking it! Something official: :)

---

## [Close the full screen second window through keyboard or through parent window?](https://discourse.processing.org/t/close-the-full-screen-second-window-through-keyboard-or-through-parent-window/10571)

<div class="topic-metadata">

**Author:** [@stan\_11](https://discourse.processing.org/u/stan_11)\
**Replies:** 3\
**Last updated:** [August 11, 2021, 8:55am UTC](https://discourse.processing.org/t/close-the-full-screen-second-window-through-keyboard-or-through-parent-window/10571 "2021-08-11T08:55:08Z")

</div>

Here is my code PWindow win; public void settings() { size(320, 240); } void setup() { surface.setLocation(20,20); //win = new PWindow(); } void draw() { background(255, 0, 0); fill(255); rect(10, 10…

---

## [Get-the-average-rgb-from-pixels (revisited)](https://discourse.processing.org/t/get-the-average-rgb-from-pixels-revisited/31661)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 4\
**Last updated:** [August 11, 2021, 12:48am UTC](https://discourse.processing.org/t/get-the-average-rgb-from-pixels-revisited/31661 "2021-08-11T00:48:25Z")

</div>

@GoToLoop answered this but which of the two methods is better? Is there a reason to change the int for each of the three RGB channels to color??? Both methods work, I just want to understand. get-the-average-rgb-from-…

---

## [Android 3d scanner](https://discourse.processing.org/t/android-3d-scanner/31671)

<div class="topic-metadata">

**Author:** [@jafal](https://discourse.processing.org/u/jafal)\
**Replies:** 0\
**Last updated:** [August 10, 2021, 8:19pm UTC](https://discourse.processing.org/t/android-3d-scanner/31671 "2021-08-10T20:19:24Z")

</div>

This is my Android version of laser pointer 3d scanner What I have done in this project 1 connect Arduino via OTG 2 save image in android :open\_file\_folder::open\_file\_folder::open\_file\_folder: folder 3 load images…

---

## [Detect shapes split by intersecting lines](https://discourse.processing.org/t/detect-shapes-split-by-intersecting-lines/31641)

<div class="topic-metadata">

**Author:** [@hkjung](https://discourse.processing.org/u/hkjung)\
**Replies:** 4\
**Last updated:** [August 10, 2021, 6:47pm UTC](https://discourse.processing.org/t/detect-shapes-split-by-intersecting-lines/31641 "2021-08-10T18:47:00Z")

</div>

I want to detect separate shapes as lines split the canvas. I saved line intersection points in the list of PVectors, but don’t know how to connect points that complete split shapes separately. Here’s a sample image tha…

---

## [Processing for Android](https://discourse.processing.org/t/processing-for-android/31668)

<div class="topic-metadata">

**Author:** [@markcosmic](https://discourse.processing.org/u/markcosmic)\
**Replies:** 0\
**Last updated:** [August 10, 2021, 6:32pm UTC](https://discourse.processing.org/t/processing-for-android/31668 "2021-08-10T18:32:57Z")

</div>

Can anyone tell me when Processing for Android will be compatible with Processing 4? Thanks

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

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