# Latest

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

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

**Page:** 105

---

## [Cannot invoke red() on the primitive type int](https://discourse.processing.org/t/cannot-invoke-red-on-the-primitive-type-int/39575)

<div class="topic-metadata">

**Author:** [@nanto2016](https://discourse.processing.org/u/nanto2016)\
**Replies:** 3\
**Last updated:** [November 3, 2022, 7:47pm UTC](https://discourse.processing.org/t/cannot-invoke-red-on-the-primitive-type-int/39575 "2022-11-03T19:47:47Z")

</div>

Hello, I here have a problem I do not understand: the code below prints to the console : Cannot invoke red() on the primitive type int void mousePressed() { color m = get(mouseX, mouseY); if(m.red() == 255 && m.gree…

---

## [Trying to change font weight based on volume of sound input](https://discourse.processing.org/t/trying-to-change-font-weight-based-on-volume-of-sound-input/39562)

<div class="topic-metadata">

**Author:** [@frogyolk](https://discourse.processing.org/u/frogyolk)\
**Replies:** 2\
**Last updated:** [November 3, 2022, 2:28pm UTC](https://discourse.processing.org/t/trying-to-change-font-weight-based-on-volume-of-sound-input/39562 "2022-11-03T14:28:20Z")

</div>

sorry this is my first time posting, not sure if I’m doing this right. I’m trying to use the number of the sound input to select a font from an array but it won’t change the font even though it says the variable is chang…

---

## [Generative terrain customization](https://discourse.processing.org/t/generative-terrain-customization/39396)

<div class="topic-metadata">

**Author:** [@fijthecreator](https://discourse.processing.org/u/fijthecreator)\
**Replies:** 16\
**Last updated:** [November 3, 2022, 12:37pm UTC](https://discourse.processing.org/t/generative-terrain-customization/39396 "2022-11-03T12:37:50Z")

</div>

Hi, after following along some tutorials I created a terrain generator using perlin noise and triangle\_stripes. It is working and it runs. For further iterations I would like to slow down the speed of the generated terr…

---

## [How to directly use the class from library in my class](https://discourse.processing.org/t/how-to-directly-use-the-class-from-library-in-my-class/39564)

<div class="topic-metadata">

**Author:** [@huxx](https://discourse.processing.org/u/huxx)\
**Replies:** 2\
**Last updated:** [November 3, 2022, 10:43am UTC](https://discourse.processing.org/t/how-to-directly-use-the-class-from-library-in-my-class/39564 "2022-11-03T10:43:29Z")

</div>

//First label add\_library('box2d\_processing') add\_library('jbox2d') from gameInterface import GameInterface def setup(): global gameI box2D =Box2DProcessing(this) gameI=GameInterface(box2D) //Second label…

---

## [Why can't I access the thing in library in my class](https://discourse.processing.org/t/why-cant-i-access-the-thing-in-library-in-my-class/39554)

<div class="topic-metadata">

**Author:** [@huxx](https://discourse.processing.org/u/huxx)\
**Replies:** 2\
**Last updated:** [November 3, 2022, 3:11am UTC](https://discourse.processing.org/t/why-cant-i-access-the-thing-in-library-in-my-class/39554 "2022-11-03T03:11:01Z")

</div>

:smiling\_face\_with\_tear: If I write all things in the Main, it can work How can I treat this things, I don’t want to write all this kind objects in Main and deliver it to the class How can I directly use t…

---

## [Measuring change in X position of image](https://discourse.processing.org/t/measuring-change-in-x-position-of-image/39477)

<div class="topic-metadata">

**Author:** [@Ties2901](https://discourse.processing.org/u/Ties2901)\
**Replies:** 2\
**Last updated:** [November 2, 2022, 4:06pm UTC](https://discourse.processing.org/t/measuring-change-in-x-position-of-image/39477 "2022-11-02T16:06:11Z")

</div>

Hi all, I am creating a game in processing and arduino. The game Character is a little red fish who can move inside his pool. I would like that the fish his head moves left when he is directed to move left by the contro…

---

## [How to generate points on a line?](https://discourse.processing.org/t/how-to-generate-points-on-a-line/39551)

<div class="topic-metadata">

**Author:** [@Havi](https://discourse.processing.org/u/Havi)\
**Replies:** 1\
**Last updated:** [November 2, 2022, 1:59pm UTC](https://discourse.processing.org/t/how-to-generate-points-on-a-line/39551 "2022-11-02T13:59:21Z")

</div>

Hi. I’m trying to make 6 dots along a line(0, random(height), width, random(height)). The dots should be evenly spaced. Can someone please let me know

---

## [Does anyone know how to draw a small firework using Processing?](https://discourse.processing.org/t/does-anyone-know-how-to-draw-a-small-firework-using-processing/32794)

<div class="topic-metadata">

**Author:** [@SantosCuccia](https://discourse.processing.org/u/SantosCuccia)\
**Replies:** 8\
**Last updated:** [November 2, 2022, 1:49pm UTC](https://discourse.processing.org/t/does-anyone-know-how-to-draw-a-small-firework-using-processing/32794 "2022-11-02T13:49:04Z")

</div>

Does anyone know how to draw a small firework using processing?

---

## [Is it possible to fill color to contour part?](https://discourse.processing.org/t/is-it-possible-to-fill-color-to-contour-part/39544)

<div class="topic-metadata">

**Author:** [@nijatmursali](https://discourse.processing.org/u/nijatmursali)\
**Replies:** 1\
**Last updated:** [November 2, 2022, 11:15am UTC](https://discourse.processing.org/t/is-it-possible-to-fill-color-to-contour-part/39544 "2022-11-02T11:15:52Z")

</div>

Hello, I am working on a project to build the sweater model and I have the functionality to add an image to mask the image in the sweater. I’m using contours for this. I want to change the color of only the contoured pa…

---

## [Processing to P5.js](https://discourse.processing.org/t/processing-to-p5-js/39545)

<div class="topic-metadata">

**Author:** [@sosophia10](https://discourse.processing.org/u/sosophia10)\
**Replies:** 1\
**Last updated:** [November 2, 2022, 7:00am UTC](https://discourse.processing.org/t/processing-to-p5-js/39545 "2022-11-02T07:00:50Z")

</div>

I am trying to convert my Processing project to P5.js, however I’ve run into a bunch of errors with an object not being defined and “unexpected identifiers”. The original Processing code works fine. Would someone please…

---

## [Collision Resolution in 3D](https://discourse.processing.org/t/collision-resolution-in-3d/39493)

<div class="topic-metadata">

**Author:** [@Divitiacus](https://discourse.processing.org/u/Divitiacus)\
**Replies:** 10\
**Last updated:** [November 2, 2022, 2:17am UTC](https://discourse.processing.org/t/collision-resolution-in-3d/39493 "2022-11-02T02:17:42Z")

</div>

I try to get elastic collision of two particles calculated, that means the velocity of both particles after collision. It is based on this: The issue is, that the results are not correct. In an elastic collision, when …

---

## [Is hardware acceleration possible within the Processing program](https://discourse.processing.org/t/is-hardware-acceleration-possible-within-the-processing-program/39531)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 8\
**Last updated:** [November 1, 2022, 11:55pm UTC](https://discourse.processing.org/t/is-hardware-acceleration-possible-within-the-processing-program/39531 "2022-11-01T23:55:21Z")

</div>

Is hardware acceleration possible within the processing program? For example, when ‘exe’ file is executed, ‘CPU’ and ‘RAM’ are used. Looking at the ‘framerate()’ function, it seems that the ‘CPU’ quota change betwe…

---

## [Unable to find an explanation of repeat() or simple()](https://discourse.processing.org/t/unable-to-find-an-explanation-of-repeat-or-simple/39535)

<div class="topic-metadata">

**Author:** [@Jess97](https://discourse.processing.org/u/Jess97)\
**Replies:** 3\
**Last updated:** [November 1, 2022, 11:01pm UTC](https://discourse.processing.org/t/unable-to-find-an-explanation-of-repeat-or-simple/39535 "2022-11-01T23:01:53Z")

</div>

Dear Everyone, Thanks for the forum! In reading P5.js, I’ve come across the calls simple() and repeat(). For example repeat(100,700,2,100,500,2,landshape); But I haven’t been able to find explanations for these functi…

---

## [Creating a grid of dice representing an image](https://discourse.processing.org/t/creating-a-grid-of-dice-representing-an-image/38364)

<div class="topic-metadata">

**Author:** [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Replies:** 78\
**Last updated:** [November 1, 2022, 6:12pm UTC](https://discourse.processing.org/t/creating-a-grid-of-dice-representing-an-image/38364 "2022-11-01T18:12:04Z")

</div>

Hi, how would I go about creating a grid of random(); dice that respond to a PImage(); in 2D (like the image below) or a 3D (heightmap)?

---

## [Announcing the P5 & WEBGL server on Discord!](https://discourse.processing.org/t/announcing-the-p5-webgl-server-on-discord/29576)

<div class="topic-metadata">

**Author:** [@LeviathanProgramming](https://discourse.processing.org/u/LeviathanProgramming)\
**Replies:** 3\
**Last updated:** [November 1, 2022, 4:46pm UTC](https://discourse.processing.org/t/announcing-the-p5-webgl-server-on-discord/29576 "2022-11-01T16:46:35Z")

</div>

I was searching around on discord for a P5.js and/or WEBGL server and I couldn’t find one so I thought I’d make my own. It’s currently a slowly-growing community, still very incomplete. If you are interested in this to…

---

## [Processing P3D & P2D is not working yet on MacOS Ventura](https://discourse.processing.org/t/processing-p3d-p2d-is-not-working-yet-on-macos-ventura/39434)

<div class="topic-metadata">

**Author:** [@sableraph](https://discourse.processing.org/u/sableraph)\
**Replies:** 1\
**Last updated:** [October 31, 2022, 4:06pm UTC](https://discourse.processing.org/t/processing-p3d-p2d-is-not-working-yet-on-macos-ventura/39434 "2022-10-31T16:06:19Z")

</div>

Just a quick message to let everyone know that if you rely on P2D or P3D you might want to hold off on updating to macOS Ventura that released today. This issue has been mentioned prior by @chrish in this thread. If yo…

---

## [File explorer, if closed, opens itself again](https://discourse.processing.org/t/file-explorer-if-closed-opens-itself-again/39528)

<div class="topic-metadata">

**Author:** [@Lissie](https://discourse.processing.org/u/Lissie)\
**Replies:** 3\
**Last updated:** [November 1, 2022, 2:01pm UTC](https://discourse.processing.org/t/file-explorer-if-closed-opens-itself-again/39528 "2022-11-01T14:01:34Z")

</div>

If i try to open the file explorer on mouse click, and the try to close it, it opens itself again???

---

## [How can i put random images on random position on a grid](https://discourse.processing.org/t/how-can-i-put-random-images-on-random-position-on-a-grid/39525)

<div class="topic-metadata">

**Author:** [@yoyo](https://discourse.processing.org/u/yoyo)\
**Replies:** 1\
**Last updated:** [November 1, 2022, 12:00pm UTC](https://discourse.processing.org/t/how-can-i-put-random-images-on-random-position-on-a-grid/39525 "2022-11-01T12:00:52Z")

</div>

now I have the image on the grid with a sequence. I want to know how to put the image in a random position. Link: p5.js Web Editor let imgs = ; function preload() { for (let i = 1; i \< 10; i++) { imgs\[i\] = loadImag…

---

## [Chromakey examples in processing](https://discourse.processing.org/t/chromakey-examples-in-processing/39539)

<div class="topic-metadata">

**Author:** [@bcabc](https://discourse.processing.org/u/bcabc)\
**Replies:** 1\
**Last updated:** [November 1, 2022, 9:18am UTC](https://discourse.processing.org/t/chromakey-examples-in-processing/39539 "2022-11-01T09:18:02Z")

</div>

is there any way to do chromakey in processing? i can’t seem to find any information about it.

---

## [Trying to get number values to show](https://discourse.processing.org/t/trying-to-get-number-values-to-show/39529)

<div class="topic-metadata">

**Author:** [@JHProcess](https://discourse.processing.org/u/JHProcess)\
**Replies:** 1\
**Last updated:** [November 1, 2022, 4:18am UTC](https://discourse.processing.org/t/trying-to-get-number-values-to-show/39529 "2022-11-01T04:18:49Z")

</div>

Hello Again! i have pushed my basic design to this point. My next question is trying to make the data values show up when the mouse has hovered over the rectangles. I attached a screenshot of the code working. Table ta…

---

## [Oracle JDK, Open JDK version / I want to get program version information](https://discourse.processing.org/t/oracle-jdk-open-jdk-version-i-want-to-get-program-version-information/9284)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 2\
**Last updated:** [October 31, 2022, 11:26pm UTC](https://discourse.processing.org/t/oracle-jdk-open-jdk-version-i-want-to-get-program-version-information/9284 "2022-10-31T23:26:04Z")

</div>

I want to get program version information. I play processing program. (v3.3.7) How versions of Oracle JDK are there? How versions of Open JDK are there? I know that the processing I use is a JAVA. Oracle JDK Open J…

---

## [Text() of matches being overwritten while searching through an array](https://discourse.processing.org/t/text-of-matches-being-overwritten-while-searching-through-an-array/39527)

<div class="topic-metadata">

**Author:** [@Asclepiadae](https://discourse.processing.org/u/Asclepiadae)\
**Replies:** 0\
**Last updated:** [October 31, 2022, 6:57pm UTC](https://discourse.processing.org/t/text-of-matches-being-overwritten-while-searching-through-an-array/39527 "2022-10-31T18:57:36Z")

</div>

Hey everyone, New to Processing (and non-web programming) and having a slight issue with displaying matching values with text() on the screen as I search through an array. The search works correctly, and println(); cor…

---

## [The sketch continually fills rectangles on the window:](https://discourse.processing.org/t/the-sketch-continually-fills-rectangles-on-the-window/39511)

<div class="topic-metadata">

**Author:** [@add](https://discourse.processing.org/u/add)\
**Replies:** 3\
**Last updated:** [October 31, 2022, 9:24am UTC](https://discourse.processing.org/t/the-sketch-continually-fills-rectangles-on-the-window/39511 "2022-10-31T09:24:28Z")

</div>

hello everyone! how I can do this exercise? The rect may never leave the bounds of the window! void setup(){ size(842,480); stroke(0); frameRate(10); } void draw (){ int randomX; int randomY; int randomH; int r…

---

## [Make the rectangle move to the opposite corner](https://discourse.processing.org/t/make-the-rectangle-move-to-the-opposite-corner/39510)

<div class="topic-metadata">

**Author:** [@add](https://discourse.processing.org/u/add)\
**Replies:** 3\
**Last updated:** [October 31, 2022, 9:06am UTC](https://discourse.processing.org/t/make-the-rectangle-move-to-the-opposite-corner/39510 "2022-10-31T09:06:27Z")

</div>

hello! I need your help, please. I have to make the rectangle move to the opposite corner and after disappearing in the lower corner, it should appear again in the upper opposite corner. The condition is to use the mod…

---

## [Why background('rgba(0,255,0, 0.25)') inoperative？](https://discourse.processing.org/t/why-background-rgba-0-255-0-0-25-inoperative/39517)

<div class="topic-metadata">

**Author:** [@guanzhuyu](https://discourse.processing.org/u/guanzhuyu)\
**Replies:** 1\
**Last updated:** [October 31, 2022, 8:46am UTC](https://discourse.processing.org/t/why-background-rgba-0-255-0-0-25-inoperative/39517 "2022-10-31T08:46:03Z")

</div>

hello i us background(‘rgba(0,255,0, 0.25)’) in my code,but the Alpha inoperative? the browser is chrome (107.0.5304.88) background(‘rgba(0,255,0, 0.25)’);

---

## [Trying to visualize data](https://discourse.processing.org/t/trying-to-visualize-data/39471)

<div class="topic-metadata">

**Author:** [@JHProcess](https://discourse.processing.org/u/JHProcess)\
**Replies:** 34\
**Last updated:** [October 31, 2022, 7:51am UTC](https://discourse.processing.org/t/trying-to-visualize-data/39471 "2022-10-31T07:51:59Z")

</div>

Hi, so far this project I’m stuck on trying to set up my data and how to put the numbers on the plane. My goal is to understand what function I need to put in to make the data from my google sheets become points on the w…

---

## [OpenGL Problems with P2D and P3D](https://discourse.processing.org/t/opengl-problems-with-p2d-and-p3d/39439)

<div class="topic-metadata">

**Author:** [@Cheni](https://discourse.processing.org/u/Cheni)\
**Replies:** 4\
**Last updated:** [October 31, 2022, 6:08am UTC](https://discourse.processing.org/t/opengl-problems-with-p2d-and-p3d/39439 "2022-10-31T06:08:36Z")

</div>

I’m running Ubuntu 20.04 on Rockchip RK3588 modules with Firefly Core-3588J. I can’t run any processing sketches in an OpenGL rendering mode. I’m wondering if there’s a decent way to solve my problems so that I can run …

---

## [Collision resolution of multiple particles](https://discourse.processing.org/t/collision-resolution-of-multiple-particles/39495)

<div class="topic-metadata">

**Author:** [@Divitiacus](https://discourse.processing.org/u/Divitiacus)\
**Replies:** 4\
**Last updated:** [October 31, 2022, 12:50am UTC](https://discourse.processing.org/t/collision-resolution-of-multiple-particles/39495 "2022-10-31T00:50:31Z")

</div>

I try to resolve collision in a multiple particle system and want to check, if my approach is good or not. The goal is to resolve the collisions in the right order, so that particle that meet first collide do so (and co…

---

## [Necesito ayuda con processing](https://discourse.processing.org/t/necesito-ayuda-con-processing/39476)

<div class="topic-metadata">

**Author:** [@Pr1M3](https://discourse.processing.org/u/Pr1M3)\
**Replies:** 7\
**Last updated:** [October 31, 2022, 12:22am UTC](https://discourse.processing.org/t/necesito-ayuda-con-processing/39476 "2022-10-31T00:22:24Z")

</div>

En la pantalla se dibujan 5 botones, los 2 primeros cuando le doy click tienen que generar un cuadrado(primer boton) y un circulo(segundo boton) en pantalla pero que no se borren, pero no puedo hacer que se mantengan en …

---

## [Color lines for terrain/landscape generation](https://discourse.processing.org/t/color-lines-for-terrain-landscape-generation/39422)

<div class="topic-metadata">

**Author:** [@crv74](https://discourse.processing.org/u/crv74)\
**Replies:** 15\
**Last updated:** [October 31, 2022, 12:17am UTC](https://discourse.processing.org/t/color-lines-for-terrain-landscape-generation/39422 "2022-10-31T00:17:05Z")

</div>

Hi there and sorry if this has been answered before. I really looked on posts and solutions, but i am still so new to porcessing. I just signed in to ask for help. I followed this great tutorial as a starting point: (t…

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

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