# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=60

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

**Page:** 61

---

## [Creating a world map of where it's nighttime or daytime](https://discourse.processing.org/t/creating-a-world-map-of-where-its-nighttime-or-daytime/39584)

<div class="topic-metadata">

**Author:** [@David1](https://discourse.processing.org/u/David1)\
**Replies:** 3\
**Last updated:** [November 4, 2022, 10:55pm UTC](https://discourse.processing.org/t/creating-a-world-map-of-where-its-nighttime-or-daytime/39584 "2022-11-04T22:55:20Z")

</div>

Hello all, I am fairly new to Processing, and I would like to create a world map of where it’s daytime and where it’s nighttime on the planet. Essentially, trying to emulate this: Day and Night World Map I have code to…

---

## [Fonts from Adobe Creative Cloud are not useable](https://discourse.processing.org/t/fonts-from-adobe-creative-cloud-are-not-useable/39582)

<div class="topic-metadata">

**Author:** [@gguidati](https://discourse.processing.org/u/gguidati)\
**Replies:** 2\
**Last updated:** [November 4, 2022, 7:43pm UTC](https://discourse.processing.org/t/fonts-from-adobe-creative-cloud-are-not-useable/39582 "2022-11-04T19:43:54Z")

</div>

Hello, I work with Windows 11, and I try to use a font, which I took from the Adobe Creative Cloud. I can use it in Powerpoint, Word, etc. Also, when I use the PFont.list() function the font appears properly. But when I…

---

## [Image keeps being redrawn after 'deleted'](https://discourse.processing.org/t/image-keeps-being-redrawn-after-deleted/39542)

<div class="topic-metadata">

**Author:** [@Ties2901](https://discourse.processing.org/u/Ties2901)\
**Replies:** 9\
**Last updated:** [November 4, 2022, 9:45am UTC](https://discourse.processing.org/t/image-keeps-being-redrawn-after-deleted/39542 "2022-11-04T09:45:46Z")

</div>

Hi all, I am working on a game in processing where a Fish needs to eat some food. I used object collision detection to know when the fish collided with a food object, and then want to delete that object. For this I use…

---

## [How to DIY a 3D scanner APP？](https://discourse.processing.org/t/how-to-diy-a-3d-scanner-app/39573)

<div class="topic-metadata">

**Author:** [@adam](https://discourse.processing.org/u/adam)\
**Replies:** 1\
**Last updated:** [November 4, 2022, 9:36am UTC](https://discourse.processing.org/t/how-to-diy-a-3d-scanner-app/39573 "2022-11-04T09:36:58Z")

</div>

I want to develop a 3D Scanner APP that can call the mobile phone LIDAR. Wish it can be used to 3D scan cars or rooms, even a house. Does anyone give me some suggestions?

---

## [Does anyone know how to fix the background color?](https://discourse.processing.org/t/does-anyone-know-how-to-fix-the-background-color/39553)

<div class="topic-metadata">

**Author:** [@learningprocessing23](https://discourse.processing.org/u/learningprocessing23)\
**Replies:** 11\
**Last updated:** [November 4, 2022, 2:30am UTC](https://discourse.processing.org/t/does-anyone-know-how-to-fix-the-background-color/39553 "2022-11-04T02:30:02Z")

</div>

Hello! I setup the color could be changed from 2 pink colors. I hope after dragging to a color that I like (between color A and color B), I can decide and make the color as background color (maybe by mousePressed()) And …

---

## [PDF export doesn't work with Hyper framework](https://discourse.processing.org/t/pdf-export-doesnt-work-with-hyper-framework/6747)

<div class="topic-metadata">

**Author:** [@buraquex](https://discourse.processing.org/u/buraquex)\
**Replies:** 8\
**Last updated:** [November 3, 2022, 8:48pm UTC](https://discourse.processing.org/t/pdf-export-doesnt-work-with-hyper-framework/6747 "2022-11-03T20:48:13Z")

</div>

Hello, I recently used Joshua Davis’ fantastic hype framework for a poster design. It worked great, until I decided to export to a pdf as a vector. All I get is an empty pdf with no graphics. Pls help me if there any on…

---

## [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…

---

## [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?

---

## [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…

---

## [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)?

---

## [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???

---

## [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…

---

## [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…

---

## [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…

---

## [How to create multiple object](https://discourse.processing.org/t/how-to-create-multiple-object/39504)

<div class="topic-metadata">

**Author:** [@tiredperson](https://discourse.processing.org/u/tiredperson)\
**Replies:** 5\
**Last updated:** [October 30, 2022, 6:01pm UTC](https://discourse.processing.org/t/how-to-create-multiple-object/39504 "2022-10-30T18:01:06Z")

</div>

I am trying to make a program that creates 10 circles and 10 squares that jiggles randomly in the canvas area my code generates 10 squares and 10 circles, however, they are extremely clustered, ( I’m sure that my usage …

---

## [Problem with 'for' loops and geometric shapes](https://discourse.processing.org/t/problem-with-for-loops-and-geometric-shapes/39387)

<div class="topic-metadata">

**Author:** [@lemoney](https://discourse.processing.org/u/lemoney)\
**Replies:** 4\
**Last updated:** [October 30, 2022, 5:53pm UTC](https://discourse.processing.org/t/problem-with-for-loops-and-geometric-shapes/39387 "2022-10-30T17:53:55Z")

</div>

Hi Everyone. I’m stuck with a homework assignment. I need to draw a geometric shape (I’ve chosen the rhodonea curve), show the use of an interative “for” loop and use a mouse command. (we have to show all the math). I c…

---

## [Calling simultaneous functions in draw()](https://discourse.processing.org/t/calling-simultaneous-functions-in-draw/39497)

<div class="topic-metadata">

**Author:** [@bcabc](https://discourse.processing.org/u/bcabc)\
**Replies:** 7\
**Last updated:** [October 30, 2022, 5:30pm UTC](https://discourse.processing.org/t/calling-simultaneous-functions-in-draw/39497 "2022-10-30T17:30:24Z")

</div>

Hi there - I’m struggling with a problem that I was hoping someone here could help with. I wrote some code - provided below - where the “a” key on the keyboard makes some rectangles and the “b” key makes some circles. …

---

## [How to make a game over statement after object is being collided to a player](https://discourse.processing.org/t/how-to-make-a-game-over-statement-after-object-is-being-collided-to-a-player/39499)

<div class="topic-metadata">

**Author:** [@Lyca](https://discourse.processing.org/u/Lyca)\
**Replies:** 5\
**Last updated:** [October 30, 2022, 5:39pm UTC](https://discourse.processing.org/t/how-to-make-a-game-over-statement-after-object-is-being-collided-to-a-player/39499 "2022-10-30T17:39:32Z")

</div>

Hi badly need your help. Im just a beginner and I coundn’t run my application as Im doing a game. where in if falling object from above hits the player game will end with a message “game over”

---

## [Text Prompt and Response](https://discourse.processing.org/t/text-prompt-and-response/39452)

<div class="topic-metadata">

**Author:** [@panko](https://discourse.processing.org/u/panko)\
**Replies:** 10\
**Last updated:** [October 30, 2022, 4:17pm UTC](https://discourse.processing.org/t/text-prompt-and-response/39452 "2022-10-30T16:17:38Z")

</div>

Hi there - I’d like to create a text prompt in Processing, where a user can input a string and get a “response” - similar to how a text-based adventure would work - does anyone have an example of how something like that…

[Previous page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=59)

[Next page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=61)
