# Latest

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

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

**Page:** 84

---

## [How to set an area of pixels in an if statement?](https://discourse.processing.org/t/how-to-set-an-area-of-pixels-in-an-if-statement/41006)

<div class="topic-metadata">

**Author:** [@MaxU89](https://discourse.processing.org/u/MaxU89)\
**Replies:** 3\
**Last updated:** [February 23, 2023, 8:45am UTC](https://discourse.processing.org/t/how-to-set-an-area-of-pixels-in-an-if-statement/41006 "2023-02-23T08:45:15Z")

</div>

Hello. I need help with setting an area of pixels in an if statement. I am still kind of new here so please don’t pay attention to any wrong terminology I use. In an if statement I need to use not only the one position …

---

## [Use Vim commands in the Processing Development Environment (PDE)?](https://discourse.processing.org/t/use-vim-commands-in-the-processing-development-environment-pde/41000)

<div class="topic-metadata">

**Author:** [@DougT](https://discourse.processing.org/u/DougT)\
**Replies:** 1\
**Last updated:** [February 22, 2023, 11:27pm UTC](https://discourse.processing.org/t/use-vim-commands-in-the-processing-development-environment-pde/41000 "2023-02-22T23:27:43Z")

</div>

I would like to use vim commands (and perhaps syntax highlighting) in the PDE editor. I searched the documentation, but didn’t find much. If this is possible, please provide detailed instructions (or a reference). Tha…

---

## [Logging strategies](https://discourse.processing.org/t/logging-strategies/39108)

<div class="topic-metadata">

**Author:** [@renaudfv](https://discourse.processing.org/u/renaudfv)\
**Replies:** 2\
**Last updated:** [February 22, 2023, 3:10pm UTC](https://discourse.processing.org/t/logging-strategies/39108 "2023-02-22T15:10:58Z")

</div>

Hi everyone! I was exploring logging strategies for projects that need to run all the time. It mainly comes out of a need to find if any errors are thrown by Processing/PApplet. Here’s a gist/snippet of what I came up …

---

## [Binary Search algorithm](https://discourse.processing.org/t/binary-search-algorithm/40996)

<div class="topic-metadata">

**Author:** [@neon124](https://discourse.processing.org/u/neon124)\
**Replies:** 1\
**Last updated:** [February 22, 2023, 2:30pm UTC](https://discourse.processing.org/t/binary-search-algorithm/40996 "2023-02-22T14:30:38Z")

</div>

To find a record, I’m using binary search. My question is not about whether or not the data is present. My questions are listed here. if data are in following order 1 2 3 4 4 5 5 5 6 7 8 8 9 10 11 If I look for 5 whe…

---

## [Processing Foundation participating in GSoC 2022](https://discourse.processing.org/t/processing-foundation-participating-in-gsoc-2022/35617)

<div class="topic-metadata">

**Author:** [@saberkhan](https://discourse.processing.org/u/saberkhan)\
**Replies:** 23\
**Last updated:** [February 22, 2023, 12:16pm UTC](https://discourse.processing.org/t/processing-foundation-participating-in-gsoc-2022/35617 "2023-02-22T12:16:42Z")

</div>

Hi folks, Excited to share that PF will be participating as a mentor organization in Google Summer of Code 2022, a program to bring in new contributors to open source development - https://summerofcode.withgoogle.com/. …

---

## [How to export Processing sketch with embedded Java that can be launched via double click on Raspberry Pi OS 32 bit?](https://discourse.processing.org/t/how-to-export-processing-sketch-with-embedded-java-that-can-be-launched-via-double-click-on-raspberry-pi-os-32-bit/40984)

<div class="topic-metadata">

**Author:** [@MGDSStudio](https://discourse.processing.org/u/MGDSStudio)\
**Replies:** 1\
**Last updated:** [February 22, 2023, 9:55am UTC](https://discourse.processing.org/t/how-to-export-processing-sketch-with-embedded-java-that-can-be-launched-via-double-click-on-raspberry-pi-os-32-bit/40984 "2023-02-22T09:55:16Z")

</div>

I try to send for my custommer the game that I created using processing 3.5.4. But processing doesn’t export the embedded java with the game for the linux distributions (only for windows). I can manual add the java from …

---

## [\[Android\] How can I create an event (notification) after a set time in 'background'?](https://discourse.processing.org/t/android-how-can-i-create-an-event-notification-after-a-set-time-in-background/40982)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [February 22, 2023, 6:24am UTC](https://discourse.processing.org/t/android-how-can-i-create-an-event-notification-after-a-set-time-in-background/40982 "2023-02-22T06:24:31Z")

</div>

(example url : The Best 7 Alarm Clock Apps of 2023 ) Run the APP and set the alarm time. Press the Home button and the smartphone goes to the ‘background’ state. Use other APPs. I want to make an alarm sound in ‘10 …

---

## [Function within mousePressed function doesn't work](https://discourse.processing.org/t/function-within-mousepressed-function-doesnt-work/40981)

<div class="topic-metadata">

**Author:** [@MaxU89](https://discourse.processing.org/u/MaxU89)\
**Replies:** 3\
**Last updated:** [February 21, 2023, 8:55pm UTC](https://discourse.processing.org/t/function-within-mousepressed-function-doesnt-work/40981 "2023-02-21T20:55:50Z")

</div>

Hello. I am still kind of new to processing. I have been trying to create a game with moving platform(I called it plank), balls which shoot down bricks. I am currently creating the platform and I want it to move on the x…

---

## ['move() function is a reserved name' warning](https://discourse.processing.org/t/move-function-is-a-reserved-name-warning/40953)

<div class="topic-metadata">

**Author:** [@Laurent](https://discourse.processing.org/u/Laurent)\
**Replies:** 2\
**Last updated:** [February 21, 2023, 5:55pm UTC](https://discourse.processing.org/t/move-function-is-a-reserved-name-warning/40953 "2023-02-21T17:55:19Z")

</div>

Hi everyone, I’ve been defining and using in one of my sketch for year a move() function as this one: function move(){ print('hello'); } I’ve just updated p5js library used by this sketch (the previous one was…

---

## [Navigation links in PDF](https://discourse.processing.org/t/navigation-links-in-pdf/40973)

<div class="topic-metadata">

**Author:** [@Mattax\_ger](https://discourse.processing.org/u/Mattax_ger)\
**Replies:** 3\
**Last updated:** [February 21, 2023, 5:06pm UTC](https://discourse.processing.org/t/navigation-links-in-pdf/40973 "2023-02-21T17:06:37Z")

</div>

Hello everyone, i am using processing since 2015 and just registered for the forum. i would like to know if you guys can tell me how to put a page/chapter hypertext-link inside a generated pdf file, if this is even pos…

---

## [Illegal modifier for the local class player; only abstract or final is permitted](https://discourse.processing.org/t/illegal-modifier-for-the-local-class-player-only-abstract-or-final-is-permitted/40970)

<div class="topic-metadata">

**Author:** [@shoux2](https://discourse.processing.org/u/shoux2)\
**Replies:** 4\
**Last updated:** [February 21, 2023, 10:22am UTC](https://discourse.processing.org/t/illegal-modifier-for-the-local-class-player-only-abstract-or-final-is-permitted/40970 "2023-02-21T10:22:32Z")

</div>

void player() { public class player { private int dx; private int dy; private int x = 40; private int y = 60; private int w; private int h; private Image image; public player() { …

---

## [Code was working not anymore](https://discourse.processing.org/t/code-was-working-not-anymore/40974)

<div class="topic-metadata">

**Author:** [@Mem](https://discourse.processing.org/u/Mem)\
**Replies:** 0\
**Last updated:** [February 21, 2023, 10:58am UTC](https://discourse.processing.org/t/code-was-working-not-anymore/40974 "2023-02-21T10:58:50Z")

</div>

Hi Guys, my code was working perfectly in p5js editor since 3 days ago, not sure why ? I was recording mouvement several time and save as preset, but it’s recording only the last record and and what ever preset play the …

---

## [How do you import a class](https://discourse.processing.org/t/how-do-you-import-a-class/40971)

<div class="topic-metadata">

**Author:** [@shoux2](https://discourse.processing.org/u/shoux2)\
**Replies:** 3\
**Last updated:** [February 21, 2023, 10:53am UTC](https://discourse.processing.org/t/how-do-you-import-a-class/40971 "2023-02-21T10:53:15Z")

</div>

Main import java.awt.Image; import java.awt.event.KeyEvent; import javax.swing.ImageIcon; PImage gawd; PImage god; PImage lt33; void setup() { size(500, 500); background(50); scene1(); gawd = loadImage("gawd.p…

---

## [Character ArrayList (with small Editor for one line of text)](https://discourse.processing.org/t/character-arraylist-with-small-editor-for-one-line-of-text/40967)

<div class="topic-metadata">

**Author:** [@nanto2016](https://discourse.processing.org/u/nanto2016)\
**Replies:** 2\
**Last updated:** [February 20, 2023, 9:52pm UTC](https://discourse.processing.org/t/character-arraylist-with-small-editor-for-one-line-of-text/40967 "2023-02-20T21:52:07Z")

</div>

I want to create an ArrayList of chars, how would I do this? ArrayList\<char\> a = new ArrayList\<char\>(); doesn’t work. Same for all primitive types, but int and some others have their own list datatypes. so I could use a…

---

## [Random Select Images and Fade in / fade out according to variable / Blend](https://discourse.processing.org/t/random-select-images-and-fade-in-fade-out-according-to-variable-blend/40960)

<div class="topic-metadata">

**Author:** [@JonnieNightTime](https://discourse.processing.org/u/JonnieNightTime)\
**Replies:** 1\
**Last updated:** [February 20, 2023, 9:12am UTC](https://discourse.processing.org/t/random-select-images-and-fade-in-fade-out-according-to-variable-blend/40960 "2023-02-20T09:12:21Z")

</div>

Hi All, can’t see the wood for the trees here!! I"m trying to randomly move through an image directory, and fade in and out according to a variable imgA\_Duration. Eventually I want to blend multiple layers of images fro…

---

## [New childs added to PShape after being displayed once won't show](https://discourse.processing.org/t/new-childs-added-to-pshape-after-being-displayed-once-wont-show/40963)

<div class="topic-metadata">

**Author:** [@sem](https://discourse.processing.org/u/sem)\
**Replies:** 1\
**Last updated:** [February 19, 2023, 7:02pm UTC](https://discourse.processing.org/t/new-childs-added-to-pshape-after-being-displayed-once-wont-show/40963 "2023-02-19T19:02:45Z")

</div>

Hello, in my sketch i continuesly add PShape childs to a group, but once i draw the group the newly added childs wont show up anymore, does anyone have a solution for this, or a workaround. I’d be very much appreciated. …

---

## [Simplist way to have a high score server across multiple locations?](https://discourse.processing.org/t/simplist-way-to-have-a-high-score-server-across-multiple-locations/40957)

<div class="topic-metadata">

**Author:** [@EliTheIceMan](https://discourse.processing.org/u/EliTheIceMan)\
**Replies:** 2\
**Last updated:** [February 19, 2023, 11:52am UTC](https://discourse.processing.org/t/simplist-way-to-have-a-high-score-server-across-multiple-locations/40957 "2023-02-19T11:52:43Z")

</div>

I feel I am pretty competent with Processing (java) but have no experience with servers and the like. What would be the best/easiest way to implement a “server/broker” that could allow multiple instances of a sketch sim…

---

## [Video library for Processing not found](https://discourse.processing.org/t/video-library-for-processing-not-found/40956)

<div class="topic-metadata">

**Author:** [@Kylle](https://discourse.processing.org/u/Kylle)\
**Replies:** 2\
**Last updated:** [February 18, 2023, 1:20pm UTC](https://discourse.processing.org/t/video-library-for-processing-not-found/40956 "2023-02-18T13:20:15Z")

</div>

I just tried the suggestion from Processing to get access to the webcam: However, the program does not recognize: import processing.video.\*; And I can not find the Library anywhere. Error message: The package proces…

---

## [Multiplying small numbers in shader causes strange behaviour](https://discourse.processing.org/t/multiplying-small-numbers-in-shader-causes-strange-behaviour/40949)

<div class="topic-metadata">

**Author:** [@jvolker](https://discourse.processing.org/u/jvolker)\
**Replies:** 4\
**Last updated:** [February 18, 2023, 10:30am UTC](https://discourse.processing.org/t/multiplying-small-numbers-in-shader-causes-strange-behaviour/40949 "2023-02-18T10:30:08Z")

</div>

Hi, I’m trying to create a fading effect on a masked image/graphics. I’ve implemented it here: p5.js Web Editor I’m trying to slow down the effect even more. Unfortunately, the shader behaves a little strangely when in…

---

## [Sketch crashing as soon as it starts playing](https://discourse.processing.org/t/sketch-crashing-as-soon-as-it-starts-playing/40955)

<div class="topic-metadata">

**Author:** [@bdooley](https://discourse.processing.org/u/bdooley)\
**Replies:** 5\
**Last updated:** [February 17, 2023, 9:39pm UTC](https://discourse.processing.org/t/sketch-crashing-as-soon-as-it-starts-playing/40955 "2023-02-17T21:39:25Z")

</div>

Hi, I am trying to make a sketch with falling squares and circles that collide with each other as well as the right and left wall and ground, but am having trouble with the sketch crashing as soon as pressing play, with…

---

## [Changing Stroke and Fill of a PShape in realtime](https://discourse.processing.org/t/changing-stroke-and-fill-of-a-pshape-in-realtime/40944)

<div class="topic-metadata">

**Author:** [@animalfrommars](https://discourse.processing.org/u/animalfrommars)\
**Replies:** 5\
**Last updated:** [February 16, 2023, 9:42pm UTC](https://discourse.processing.org/t/changing-stroke-and-fill-of-a-pshape-in-realtime/40944 "2023-02-16T21:42:28Z")

</div>

Hello, Could any one explain me how to change the Stroke and the Fill of a PShape in realtime ? See the code below. Thank you very much for your help. PShape D; void setup() { size(400, 400, P3D); D = createShape…

---

## [How to create a 3D geometry with faceted reflection of light (sphere)](https://discourse.processing.org/t/how-to-create-a-3d-geometry-with-faceted-reflection-of-light-sphere/40932)

<div class="topic-metadata">

**Author:** [@peskythisdot](https://discourse.processing.org/u/peskythisdot)\
**Replies:** 7\
**Last updated:** [February 16, 2023, 1:10pm UTC](https://discourse.processing.org/t/how-to-create-a-3d-geometry-with-faceted-reflection-of-light-sphere/40932 "2023-02-16T13:10:04Z")

</div>

My goal is to create a 3d geometry with many facets, where each facet reflects light differently–a disco ball may be a good visual for what I want to say. I created a primitive 3d sphere with low numbers of detailX and …

---

## [Create class in Processing (error message)](https://discourse.processing.org/t/create-class-in-processing-error-message/40922)

<div class="topic-metadata">

**Author:** [@kmll](https://discourse.processing.org/u/kmll)\
**Replies:** 7\
**Last updated:** [February 16, 2023, 11:53am UTC](https://discourse.processing.org/t/create-class-in-processing-error-message/40922 "2023-02-16T11:53:47Z")

</div>

I created a class in a separate TAB but I still get the “The class Test does not exist”. If I move the class code into the main tab it works fine. What do I need to do to import the class? In main tab: Test t1 = new Te…

---

## [Why Processing still only supports float precision coordinates?](https://discourse.processing.org/t/why-processing-still-only-supports-float-precision-coordinates/40948)

<div class="topic-metadata">

**Author:** [@istinn](https://discourse.processing.org/u/istinn)\
**Replies:** 2\
**Last updated:** [February 16, 2023, 12:44am UTC](https://discourse.processing.org/t/why-processing-still-only-supports-float-precision-coordinates/40948 "2023-02-16T00:44:22Z")

</div>

Why processing still only supports float precision coordinates? Is there an obvious reason why not to support double data type alongside with float? If there was a reason back in the early days, this was hardware specs, …

---

## [OpenCV facial expressions mapping](https://discourse.processing.org/t/opencv-facial-expressions-mapping/21133)

<div class="topic-metadata">

**Author:** [@rkk16](https://discourse.processing.org/u/rkk16)\
**Replies:** 2\
**Last updated:** [February 15, 2023, 11:04pm UTC](https://discourse.processing.org/t/opencv-facial-expressions-mapping/21133 "2023-02-15T23:04:00Z")

</div>

What would be the best way to detect facial expressions from a live video on processing and map the different expressions into values?

---

## [Transitions for Fading and Zooming](https://discourse.processing.org/t/transitions-for-fading-and-zooming/40927)

<div class="topic-metadata">

**Author:** [@ajaynischal1](https://discourse.processing.org/u/ajaynischal1)\
**Replies:** 1\
**Last updated:** [February 15, 2023, 5:57pm UTC](https://discourse.processing.org/t/transitions-for-fading-and-zooming/40927 "2023-02-15T17:57:54Z")

</div>

ArrayList\<PImage\> images; int lastImageIndex = -1; int nextImageIndex = 0; float alphaValue = 0; float alphaShift = 0.004; // adjust speed, smaller = slower //Parabolic Zoom void setup() { fullScreen(P2…

---

## [Sound library does not work in Processing 4 - Python Mode](https://discourse.processing.org/t/sound-library-does-not-work-in-processing-4-python-mode/40936)

<div class="topic-metadata">

**Author:** [@guojian.ryan](https://discourse.processing.org/u/guojian.ryan)\
**Replies:** 1\
**Last updated:** [February 15, 2023, 5:21pm UTC](https://discourse.processing.org/t/sound-library-does-not-work-in-processing-4-python-mode/40936 "2023-02-15T17:21:51Z")

</div>

Hi, I just updated to Processing 4 and found the sound library stopped working with Python Mode. The Java mode worked fine. Any help is much appreciated. add\_library("sound") sf = None def setup(): global sf sf…

---

## [Language Server For Processing (LS4P) contribution (not GSoc related)](https://discourse.processing.org/t/language-server-for-processing-ls4p-contribution-not-gsoc-related/36212)

<div class="topic-metadata">

**Author:** [@Efratror](https://discourse.processing.org/u/Efratror)\
**Replies:** 4\
**Last updated:** [February 15, 2023, 5:12pm UTC](https://discourse.processing.org/t/language-server-for-processing-ls4p-contribution-not-gsoc-related/36212 "2023-02-15T17:12:14Z")

</div>

Hey i’m Efratror a coding enthusiast from the Netherlands. I became acquainted with Processing and the foundation through “the coding train” youtube channel. I’ve been using it on and off since then. On thing that bugge…

---

## [Library for Processing](https://discourse.processing.org/t/library-for-processing/40901)

<div class="topic-metadata">

**Author:** [@OverLord](https://discourse.processing.org/u/OverLord)\
**Replies:** 4\
**Last updated:** [February 15, 2023, 5:08pm UTC](https://discourse.processing.org/t/library-for-processing/40901 "2023-02-15T17:08:44Z")

</div>

Is it possible to create a library for Processing on Processing? If yes: What knowledge do I need to make a library for Processing.

---

## [Why the exported to desktop (.exe) Processing app with Java classes can not work run properly?](https://discourse.processing.org/t/why-the-exported-to-desktop-exe-processing-app-with-java-classes-can-not-work-run-properly/40933)

<div class="topic-metadata">

**Author:** [@MGDSStudio](https://discourse.processing.org/u/MGDSStudio)\
**Replies:** 2\
**Last updated:** [February 15, 2023, 3:22pm UTC](https://discourse.processing.org/t/why-the-exported-to-desktop-exe-processing-app-with-java-classes-can-not-work-run-properly/40933 "2023-02-15T15:22:50Z")

</div>

I try to export my processing app as the “ready to use” application with exe launch file for desktop. My code is pretty simple. Proccessing code: private io.itch.mgdsstudio.airfight.connecteddevices.Controller controlle…

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

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