# Latest

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

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

**Page:** 186

---

## [Color changing flower screen saver](https://discourse.processing.org/t/color-changing-flower-screen-saver/32824)

<div class="topic-metadata">

**Author:** [@williammannisto](https://discourse.processing.org/u/williammannisto)\
**Replies:** 4\
**Last updated:** [October 14, 2021, 3:11pm UTC](https://discourse.processing.org/t/color-changing-flower-screen-saver/32824 "2021-10-14T15:11:46Z")

</div>

im trying to make a color changing flower screen saver for my mom as a assignment i have to do but im using ellipses and cant figure out how to make the ellipse rotate more than once in the exact same spot it was in last…

---

## [Guys how to make random rainbow colors in this script](https://discourse.processing.org/t/guys-how-to-make-random-rainbow-colors-in-this-script/32801)

<div class="topic-metadata">

**Author:** [@desciato](https://discourse.processing.org/u/desciato)\
**Replies:** 6\
**Last updated:** [October 14, 2021, 3:00pm UTC](https://discourse.processing.org/t/guys-how-to-make-random-rainbow-colors-in-this-script/32801 "2021-10-14T15:00:16Z")

</div>

Hello Guys can anyone help me how to make random rainbow colors in this script const margin = 25; function setup() { createCanvas(300, 400); noLoop(); strokeWeight(2); } function draw() { background(0); s…

---

## [Is possible to know if my mouse is on an svg?](https://discourse.processing.org/t/is-possible-to-know-if-my-mouse-is-on-an-svg/32825)

<div class="topic-metadata">

**Author:** [@TomLeVeritable](https://discourse.processing.org/u/TomLeVeritable)\
**Replies:** 2\
**Last updated:** [October 14, 2021, 2:48pm UTC](https://discourse.processing.org/t/is-possible-to-know-if-my-mouse-is-on-an-svg/32825 "2021-10-14T14:48:37Z")

</div>

Hello I would just like to know if it is possible to know when the mouse is on an SVG? For example as above is it possible to know when our mouse is over Michigan and when it is over Ohio, And how do we do the detection…

---

## [Question about creating a particle text animation](https://discourse.processing.org/t/question-about-creating-a-particle-text-animation/32743)

<div class="topic-metadata">

**Author:** [@Rindoom](https://discourse.processing.org/u/Rindoom)\
**Replies:** 2\
**Last updated:** [October 14, 2021, 3:12am UTC](https://discourse.processing.org/t/question-about-creating-a-particle-text-animation/32743 "2021-10-14T03:12:25Z")

</div>

Hey guys! I recently created a font for my typography class and I was wondering how can I make my text consisting of smaller squarish particles/metaballs, just for the sake of better visual presentation. I am particular…

---

## [Would be very grateful for some help with this conversion!](https://discourse.processing.org/t/would-be-very-grateful-for-some-help-with-this-conversion/32815)

<div class="topic-metadata">

**Author:** [@YourLocalGrandma](https://discourse.processing.org/u/YourLocalGrandma)\
**Replies:** 2\
**Last updated:** [October 14, 2021, 1:05am UTC](https://discourse.processing.org/t/would-be-very-grateful-for-some-help-with-this-conversion/32815 "2021-10-14T01:05:18Z")

</div>

Hi guys, I am trying to get this effect going in .pde that I saw in .js, and have been struggling big time in making it work. I am pretty new at this so any help would be very much appreciated! Thanks .js code var img;…

---

## [CS 1335 Processing java script](https://discourse.processing.org/t/cs-1335-processing-java-script/32769)

<div class="topic-metadata">

**Author:** [@amna24688](https://discourse.processing.org/u/amna24688)\
**Replies:** 2\
**Last updated:** [October 12, 2021, 3:52am UTC](https://discourse.processing.org/t/cs-1335-processing-java-script/32769 "2021-10-12T03:52:26Z")

</div>

Write code for the flip tile game; here is how the game is played : Basically there are 2 images… To begin with, one of the 2 images are randomly displayed in each cell of the grid. The user clicks on a cell to toggle…

---

## [Guys any Solution how to save the work?](https://discourse.processing.org/t/guys-any-solution-how-to-save-the-work/32812)

<div class="topic-metadata">

**Author:** [@desciato](https://discourse.processing.org/u/desciato)\
**Replies:** 2\
**Last updated:** [October 13, 2021, 10:19pm UTC](https://discourse.processing.org/t/guys-any-solution-how-to-save-the-work/32812 "2021-10-13T22:19:20Z")

</div>

float g = random(256); float b = random(256); float cChange = 2; float distanceChange = .001; for (float angle = 0; angle \< 360\*100; angle += .07) { float x = width/5 + cos(radians(angle))\*distance; float y = heigh…

---

## [Circle image masks, making and positioning](https://discourse.processing.org/t/circle-image-masks-making-and-positioning/32799)

<div class="topic-metadata">

**Author:** [@kirkjerk](https://discourse.processing.org/u/kirkjerk)\
**Replies:** 0\
**Last updated:** [October 13, 2021, 1:25pm UTC](https://discourse.processing.org/t/circle-image-masks-making-and-positioning/32799 "2021-10-13T13:25:44Z")

</div>

Hi there! Just wanted to share a technique I made for putting circle masks on (rectangular) images, and then positioning the circle itself. I describe it at Kirk's UI Dev Blog: creating and positioning circle image clip…

---

## [I need help to spawn multiple objects at random moments](https://discourse.processing.org/t/i-need-help-to-spawn-multiple-objects-at-random-moments/32796)

<div class="topic-metadata">

**Author:** [@YP1702](https://discourse.processing.org/u/YP1702)\
**Replies:** 3\
**Last updated:** [October 13, 2021, 7:45pm UTC](https://discourse.processing.org/t/i-need-help-to-spawn-multiple-objects-at-random-moments/32796 "2021-10-13T19:45:51Z")

</div>

int grid = 15; Player player; Enemy enemy; float posx; float posy; void setup(){ size(1200,800); player = new Player(); frameRate(20); enemy = new Enemy(); } void draw(){ background(0); player.updat…

---

## [Processing 4.0b2 flashes splashscreen for a fraction of a second and exits; no error message, on Linux](https://discourse.processing.org/t/processing-4-0b2-flashes-splashscreen-for-a-fraction-of-a-second-and-exits-no-error-message-on-linux/32776)

<div class="topic-metadata">

**Author:** [@michaelshiloh](https://discourse.processing.org/u/michaelshiloh)\
**Replies:** 6\
**Last updated:** [October 13, 2021, 2:51pm UTC](https://discourse.processing.org/t/processing-4-0b2-flashes-splashscreen-for-a-fraction-of-a-second-and-exits-no-error-message-on-linux/32776 "2021-10-13T14:51:37Z")

</div>

Hello, I’ve been using (and teaching) Processing for years. I’ve been using Processing 4 pretty much since it came out. This afternoon I was suddenly unable to start Processing. There are no error messages, it simply ex…

---

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

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 19\
**Last updated:** [October 13, 2021, 2:08am UTC](https://discourse.processing.org/t/why-does-this-code-not-work/32696 "2021-10-13T02:08:09Z")

</div>

i tried this code in android studio and it says “cannot resolve” next to a lot of lines. package com.example.test; public class Sketch extends PApplet { // Sketch.java package tutorials.androidstudio.fragmentsv4; …

---

## [Constraining Image and Shape](https://discourse.processing.org/t/constraining-image-and-shape/32773)

<div class="topic-metadata">

**Author:** [@cartopher](https://discourse.processing.org/u/cartopher)\
**Replies:** 2\
**Last updated:** [October 13, 2021, 12:45am UTC](https://discourse.processing.org/t/constraining-image-and-shape/32773 "2021-10-13T00:45:09Z")

</div>

I need help with my JavaScript code in p5.js. I am struggling to figure out how to constrain the large image, so when you pan the screen at the max zoomed-out position (starting point), the image does not move off the s…

---

## [A simple SVG file display incompetely](https://discourse.processing.org/t/a-simple-svg-file-display-incompetely/32771)

<div class="topic-metadata">

**Author:** [@Load](https://discourse.processing.org/u/Load)\
**Replies:** 1\
**Last updated:** [October 12, 2021, 6:11pm UTC](https://discourse.processing.org/t/a-simple-svg-file-display-incompetely/32771 "2021-10-12T18:11:51Z")

</div>

Hello everyone! I am trying to write a simple SVG file which is a rounded rectangle,I use the PShape method to switch the SVG file to a PShape Object. Through the SVG can be displayed by Edge browser,in the Processing…

---

## [Letters WEBGL letterbox bug](https://discourse.processing.org/t/letters-webgl-letterbox-bug/32757)

<div class="topic-metadata">

**Author:** [@samroud](https://discourse.processing.org/u/samroud)\
**Replies:** 3\
**Last updated:** [October 12, 2021, 5:32pm UTC](https://discourse.processing.org/t/letters-webgl-letterbox-bug/32757 "2021-10-12T17:32:08Z")

</div>

Hello, With WEBGL and type, I have sometimes a bug \> a black background appear in the letterbox (the «M» in my print screen).

---

## [How to display files column by column?](https://discourse.processing.org/t/how-to-display-files-column-by-column/18299)

<div class="topic-metadata">

**Author:** [@littleprince84](https://discourse.processing.org/u/littleprince84)\
**Replies:** 9\
**Last updated:** [October 12, 2021, 4:01pm UTC](https://discourse.processing.org/t/how-to-display-files-column-by-column/18299 "2021-10-12T16:01:35Z")

</div>

Hi, I’m very beginner. I really need your help. (Eventhough I used a library, the question is not about the library itself. The main question is a code regarding how to read files (column by column)and display it in seq…

---

## [Can Android mode do timelapse image capture and FTP upload](https://discourse.processing.org/t/can-android-mode-do-timelapse-image-capture-and-ftp-upload/28213)

<div class="topic-metadata">

**Author:** [@katesfb](https://discourse.processing.org/u/katesfb)\
**Replies:** 33\
**Last updated:** [October 12, 2021, 4:48am UTC](https://discourse.processing.org/t/can-android-mode-do-timelapse-image-capture-and-ftp-upload/28213 "2021-10-12T04:48:50Z")

</div>

HI, I have an upcoming project where i would like to: capture an image, store the image to on-board storage (SD card or internal), upload the image to an FTP server, wait till next image capture time then repeat. I h…

---

## [Marker error in processing IDE 4.0b1](https://discourse.processing.org/t/marker-error-in-processing-ide-4-0b1/32765)

<div class="topic-metadata">

**Author:** [@talfred](https://discourse.processing.org/u/talfred)\
**Replies:** 2\
**Last updated:** [October 12, 2021, 1:02am UTC](https://discourse.processing.org/t/marker-error-in-processing-ide-4-0b1/32765 "2021-10-12T01:02:21Z")

</div>

On my computer (Windows 10) there’s an error in the IDE: when writing code, the marker shows up 2 - 3 positions to the right of where it actually is. This makes it hard to write code in the new IDE. No problems like this…

---

## [Trying to wrangle serial data from an Arduino](https://discourse.processing.org/t/trying-to-wrangle-serial-data-from-an-arduino/32720)

<div class="topic-metadata">

**Author:** [@pl4sma2389](https://discourse.processing.org/u/pl4sma2389)\
**Replies:** 17\
**Last updated:** [October 12, 2021, 12:13am UTC](https://discourse.processing.org/t/trying-to-wrangle-serial-data-from-an-arduino/32720 "2021-10-12T00:13:55Z")

</div>

Hello all, I’ve been working on a project for the last few days. It’s a very simple LiDAR scanner turret. It scans from right to left, steps up, and then scans right to left again, repeating this for a set amount of sca…

---

## [Raspberry Pi 4 'Windows 10' Does the 'Processing program' work?](https://discourse.processing.org/t/raspberry-pi-4-windows-10-does-the-processing-program-work/32646)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 2\
**Last updated:** [October 11, 2021, 10:55pm UTC](https://discourse.processing.org/t/raspberry-pi-4-windows-10-does-the-processing-program-work/32646 "2021-10-11T22:55:37Z")

</div>

Raspberry Pi 4 ‘Windows 10’ Does the ‘processing program’ work? Have any of you tried it? Site url : https://www.google.com/search?q=Raspberry+Pi+4+windows+10+processing&newwindow=1&sxsrf=AOaemvKqz2z-5BjDHCmQkVNm-QB9…

---

## [Solution: Remove duplicates from ArrayList](https://discourse.processing.org/t/solution-remove-duplicates-from-arraylist/32742)

<div class="topic-metadata">

**Author:** [@ubuntu-in-a-nutshell](https://discourse.processing.org/u/ubuntu-in-a-nutshell)\
**Replies:** 2\
**Last updated:** [October 11, 2021, 9:59pm UTC](https://discourse.processing.org/t/solution-remove-duplicates-from-arraylist/32742 "2021-10-11T21:59:05Z")

</div>

I have found a solution to removing duplicates from ArrayList. I have built a custom function that returns an ArrayList and cleans up all duplicates. Here is my code for the custom function. ArrayList removeDuplicates(A…

---

## [How can you avoid the same outcome twice when using random()?](https://discourse.processing.org/t/how-can-you-avoid-the-same-outcome-twice-when-using-random/32760)

<div class="topic-metadata">

**Author:** [@colehodl](https://discourse.processing.org/u/colehodl)\
**Replies:** 1\
**Last updated:** [October 11, 2021, 9:27pm UTC](https://discourse.processing.org/t/how-can-you-avoid-the-same-outcome-twice-when-using-random/32760 "2021-10-11T21:27:12Z")

</div>

So I created a random profile picture generator with a bunch of attributes, basically it creates a random number generator between 1 and 75, and decides which attribute to display based on which number is randomly chosen…

---

## [How can I make some random things less common then others?](https://discourse.processing.org/t/how-can-i-make-some-random-things-less-common-then-others/32747)

<div class="topic-metadata">

**Author:** [@colehodl](https://discourse.processing.org/u/colehodl)\
**Replies:** 4\
**Last updated:** [October 11, 2021, 4:16pm UTC](https://discourse.processing.org/t/how-can-i-make-some-random-things-less-common-then-others/32747 "2021-10-11T16:16:56Z")

</div>

hey! So I’ve been working on a random profile picture generator as an exercise trying to get better with processing. the character consists of 7 random attribute, and I want some attributes to be more common then others…

---

## [Processing Voxel Game: Update 1](https://discourse.processing.org/t/processing-voxel-game-update-1/32744)

<div class="topic-metadata">

**Author:** [@SNICKRS](https://discourse.processing.org/u/SNICKRS)\
**Replies:** 0\
**Last updated:** [October 11, 2021, 11:33am UTC](https://discourse.processing.org/t/processing-voxel-game-update-1/32744 "2021-10-11T11:33:11Z")

</div>

New features in the Voxel game: More accurate raycasting Better memory usage (mesh optimizations) A sky, clouds, day to night transitions, and a sun and moon~ New biomes added into the game (still have to fig…

---

## [Udp packet lost when multiple network interfaces](https://discourse.processing.org/t/udp-packet-lost-when-multiple-network-interfaces/32684)

<div class="topic-metadata">

**Author:** [@shuptuu](https://discourse.processing.org/u/shuptuu)\
**Replies:** 2\
**Last updated:** [October 11, 2021, 8:00am UTC](https://discourse.processing.org/t/udp-packet-lost-when-multiple-network-interfaces/32684 "2021-10-11T08:00:37Z")

</div>

Hi, I made an app with processing, listening for udp packets on a specific port. I was using hypermedia.net. but moved to java udp DatagramSocket and DatagramPacket hoping it will fix my problem, but not, it’s the same… …

---

## [Support for Dark Theme on p5.org website](https://discourse.processing.org/t/support-for-dark-theme-on-p5-org-website/28537)

<div class="topic-metadata">

**Author:** [@prateek93a](https://discourse.processing.org/u/prateek93a)\
**Replies:** 5\
**Last updated:** [October 11, 2021, 6:38am UTC](https://discourse.processing.org/t/support-for-dark-theme-on-p5-org-website/28537 "2021-10-11T06:38:05Z")

</div>

Hey everyone, I am not sure if it is the right place to ask this, but I would like to know if it is a good idea for the p5js.org website to support dark theme. If it is, I would like to raise this feature request on the …

---

## [Clipping path in .svg file ignored in Processing](https://discourse.processing.org/t/clipping-path-in-svg-file-ignored-in-processing/32450)

<div class="topic-metadata">

**Author:** [@strfry](https://discourse.processing.org/u/strfry)\
**Replies:** 1\
**Last updated:** [October 10, 2021, 9:29pm UTC](https://discourse.processing.org/t/clipping-path-in-svg-file-ignored-in-processing/32450 "2021-10-10T21:29:26Z")

</div>

Hi everyone, I’m having yet another issue with svg files in processing (though I’m making progress). My current problem is that using my .svg file in processing ignores the clipping path. The clipping path does appear i…

---

## [Trig with triangles](https://discourse.processing.org/t/trig-with-triangles/920)

<div class="topic-metadata">

**Author:** [@Gbhinder](https://discourse.processing.org/u/Gbhinder)\
**Replies:** 5\
**Last updated:** [June 14, 2018, 1:38am UTC](https://discourse.processing.org/t/trig-with-triangles/920 "2018-06-14T01:38:39Z")

</div>

Hi, I’m trying to figure out how I would make a triangle rotate 360 degrees around a center point, I have it working for a circle that can spin around a central location at any given radius, but I cannot seem to figure o…

---

## [Fill text color with the same color of preload image](https://discourse.processing.org/t/fill-text-color-with-the-same-color-of-preload-image/32716)

<div class="topic-metadata">

**Author:** [@tropicalpoison](https://discourse.processing.org/u/tropicalpoison)\
**Replies:** 3\
**Last updated:** [October 10, 2021, 10:46am UTC](https://discourse.processing.org/t/fill-text-color-with-the-same-color-of-preload-image/32716 "2021-10-10T10:46:41Z")

</div>

Hello all, I want to fill a text’s (avg 450 words or more) color with the same color of preload image on canvas in P5js. Actually, I am trying to recreate this image with the same colors as the text I wrote. Is anybod…

---

## [How create a filled ArrayList](https://discourse.processing.org/t/how-create-a-filled-arraylist/32721)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 2\
**Last updated:** [October 10, 2021, 10:21am UTC](https://discourse.processing.org/t/how-create-a-filled-arraylist/32721 "2021-10-10T10:21:12Z")

</div>

Hi! I am trying to make a game for fun. It is about exploring rooms and fighting enemies (similar to ‘enter the gungeon’, but completely 2D, rooms require teleportation to switch and way less mechanics) What I am tryin…

---

## [Beginner needs help: unclear behaviour of a self written function (Minimax)](https://discourse.processing.org/t/beginner-needs-help-unclear-behaviour-of-a-self-written-function-minimax/32511)

<div class="topic-metadata">

**Author:** [@arathorn76](https://discourse.processing.org/u/arathorn76)\
**Replies:** 9\
**Last updated:** [October 10, 2021, 9:48am UTC](https://discourse.processing.org/t/beginner-needs-help-unclear-behaviour-of-a-self-written-function-minimax/32511 "2021-10-10T09:48:34Z")

</div>

Hi all, I´m just beginning to try out Javascript and after watching some Coding Train videos decided to give p5js and its online editor a try. Now I made a mistake and can´t figure it out. Detailed questions at the en…

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

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