# Latest

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

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

**Page:** 113

---

## [Library suggestions for making text look nice](https://discourse.processing.org/t/library-suggestions-for-making-text-look-nice/39007)

<div class="topic-metadata">

**Author:** [@dorad](https://discourse.processing.org/u/dorad)\
**Replies:** 2\
**Last updated:** [September 29, 2022, 1:09am UTC](https://discourse.processing.org/t/library-suggestions-for-making-text-look-nice/39007 "2022-09-29T01:09:00Z")

</div>

I’m making a program that will have lots of images and text embedded, and I was wondering if there are any libraries anyone could suggest to make paragraphs of text display as nicely as possible. I know how to use text w…

---

## [Need Help With keyTyped in P5](https://discourse.processing.org/t/need-help-with-keytyped-in-p5/39006)

<div class="topic-metadata">

**Author:** [@killacam](https://discourse.processing.org/u/killacam)\
**Replies:** 1\
**Last updated:** [September 28, 2022, 7:47pm UTC](https://discourse.processing.org/t/need-help-with-keytyped-in-p5/39006 "2022-09-28T19:47:28Z")

</div>

Hi! I’m having an issue with my code. I’m making a dress up game and her hair and outfits are supposed to change whenever you press a key, but it’s not working! Here’s the code: let dg1; let dghair1; let dghair2; le…

---

## [canvasGUI a new library for p5.js](https://discourse.processing.org/t/canvasgui-a-new-library-for-p5-js/39001)

<div class="topic-metadata">

**Author:** [@quark](https://discourse.processing.org/u/quark)\
**Replies:** 1\
**Last updated:** [September 28, 2022, 3:15pm UTC](https://discourse.processing.org/t/canvasgui-a-new-library-for-p5-js/39001 "2022-09-28T15:15:02Z")

</div>

There are several libraries that support GUI creation for p5.js but I think canvasGUI provides a different user experience that might suit many. A big plus is that the GUI is drawn directly on top of the canvas making it…

---

## [Trying to create a gradient color of orange](https://discourse.processing.org/t/trying-to-create-a-gradient-color-of-orange/38996)

<div class="topic-metadata">

**Author:** [@Shu](https://discourse.processing.org/u/Shu)\
**Replies:** 4\
**Last updated:** [September 28, 2022, 1:04am UTC](https://discourse.processing.org/t/trying-to-create-a-gradient-color-of-orange/38996 "2022-09-28T01:04:52Z")

</div>

color c; void setup() { size(1000, 1000); c = color(237, 115, 12); strokeWeight(4); rectMode(CENTER); noLoop(); } void draw() { background(220); for(int i=0;i\<=20;i++){ circle(500,500,300-i\*15); } f…

---

## [Reproduce this with vector math... or not? - solved :)](https://discourse.processing.org/t/reproduce-this-with-vector-math-or-not-solved/38997)

<div class="topic-metadata">

**Author:** [@vkbr](https://discourse.processing.org/u/vkbr)\
**Replies:** 1\
**Last updated:** [September 27, 2022, 10:33pm UTC](https://discourse.processing.org/t/reproduce-this-with-vector-math-or-not-solved/38997 "2022-09-27T22:33:30Z")

</div>

Hello. I’m using scalar math to keep track of points relations to one another. It’s fine. I’m bad at vector math, but it looks to me that this would be really easier and cleaner using vectors. They are already all aroun…

---

## [Pixel array length unexpected](https://discourse.processing.org/t/pixel-array-length-unexpected/38963)

<div class="topic-metadata">

**Author:** [@Yra](https://discourse.processing.org/u/Yra)\
**Replies:** 7\
**Last updated:** [September 28, 2022, 12:26am UTC](https://discourse.processing.org/t/pixel-array-length-unexpected/38963 "2022-09-28T00:26:00Z")

</div>

Hello everybody! :slight\_smile: I’m currently having some unexpected problems with the pixels array. I have a canvas of 600x300, so I expect the array length to be 600x300x4=720 000. Instead if I log it I get 4 times …

---

## [G4P: how to prevent ESC-Key](https://discourse.processing.org/t/g4p-how-to-prevent-esc-key/3240)

<div class="topic-metadata">

**Author:** [@MxFxM](https://discourse.processing.org/u/MxFxM)\
**Replies:** 4\
**Last updated:** [September 28, 2022, 12:23am UTC](https://discourse.processing.org/t/g4p-how-to-prevent-esc-key/3240 "2022-09-28T00:23:55Z")

</div>

Hi, I recently discovered that you can stop the ESC-key from closing your program with this code: void keyPressed() { if (key == ESC) { key = 0; } } However when I open a second window with G4P this only works…

---

## [Translate, Scale, or Random is causing a display hiccup](https://discourse.processing.org/t/translate-scale-or-random-is-causing-a-display-hiccup/38988)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 10\
**Last updated:** [September 27, 2022, 6:35pm UTC](https://discourse.processing.org/t/translate-scale-or-random-is-causing-a-display-hiccup/38988 "2022-09-27T18:35:47Z")

</div>

Hello!! This is probably a simple oversight but I’m trying to flip the orientation of random blocks in a grid. I have put the random number generator in all possible locations – above setup, in setup, in draw, in neste…

---

## [Problema de movimiento con clases](https://discourse.processing.org/t/problema-de-movimiento-con-clases/38992)

<div class="topic-metadata">

**Author:** [@Jony16](https://discourse.processing.org/u/Jony16)\
**Replies:** 1\
**Last updated:** [September 27, 2022, 6:25pm UTC](https://discourse.processing.org/t/problema-de-movimiento-con-clases/38992 "2022-09-27T18:25:14Z")

</div>

hola, estoy teniendo problemas con el movimiento para subir y bajar 3 imagenes… no se me ocurre que puede ser.

---

## [Simple js arrow funtion and ternary operator question](https://discourse.processing.org/t/simple-js-arrow-funtion-and-ternary-operator-question/38993)

<div class="topic-metadata">

**Author:** [@vkbr](https://discourse.processing.org/u/vkbr)\
**Replies:** 4\
**Last updated:** [September 27, 2022, 6:18pm UTC](https://discourse.processing.org/t/simple-js-arrow-funtion-and-ternary-operator-question/38993 "2022-09-27T18:18:11Z")

</div>

What I’m doing wrong with my atempt to use an arrow function here? function setup() { createCanvas(400, 400); const x = 0; const y = 10; const t1 = x \> y ? x : () =\> console.log("nono from arrow"); const t2 = …

---

## [Cp5 library enables and disables textfields](https://discourse.processing.org/t/cp5-library-enables-and-disables-textfields/38979)

<div class="topic-metadata">

**Author:** [@maro](https://discourse.processing.org/u/maro)\
**Replies:** 6\
**Last updated:** [September 27, 2022, 3:45pm UTC](https://discourse.processing.org/t/cp5-library-enables-and-disables-textfields/38979 "2022-09-27T15:45:30Z")

</div>

I am trying to make a textfield with Cp5. I want the user to be able to edit the textfield, only when a button is pressed. If the button is unpressed the user cannot edit the textfield. Is there a method in Textfield th…

---

## [How to export p5 canvas in React](https://discourse.processing.org/t/how-to-export-p5-canvas-in-react/38991)

<div class="topic-metadata">

**Author:** [@amorin](https://discourse.processing.org/u/amorin)\
**Replies:** 1\
**Last updated:** [September 27, 2022, 1:51pm UTC](https://discourse.processing.org/t/how-to-export-p5-canvas-in-react/38991 "2022-09-27T13:51:42Z")

</div>

Hi. I’m using p5 with react typescript. I need to use ‘canva\_image’ value displayed in ‘saveFiles’ function in the Inpaint component to diplay it (for exemple). How I can I do that ? export function Inpaint(props: In…

---

## [Strange error message with mousePressed() -- Processing 4.0b8, macOS 11.4](https://discourse.processing.org/t/strange-error-message-with-mousepressed-processing-4-0b8-macos-11-4/38984)

<div class="topic-metadata">

**Author:** [@sophist42](https://discourse.processing.org/u/sophist42)\
**Replies:** 0\
**Last updated:** [September 26, 2022, 6:59pm UTC](https://discourse.processing.org/t/strange-error-message-with-mousepressed-processing-4-0b8-macos-11-4/38984 "2022-09-26T18:59:39Z")

</div>

Sorry if this question has already been asked – my programs are working just fine but I get a strange error message like this every time I try to press the mouse button in my sketch window. Currently running Processing 4…

---

## [Heroic Robotics PixelPusher](https://discourse.processing.org/t/heroic-robotics-pixelpusher/17720)

<div class="topic-metadata">

**Author:** [@tmasylum](https://discourse.processing.org/u/tmasylum)\
**Replies:** 2\
**Last updated:** [September 26, 2022, 4:23pm UTC](https://discourse.processing.org/t/heroic-robotics-pixelpusher/17720 "2022-09-26T16:23:49Z")

</div>

Hi all, I understand this is probably a question for a PixelPusher Forum but there doesn’t seem to be one I can access. So I’ve purchased a bunch of PixelPushers for a project but I’m struggling to get them to work with…

---

## [Watchdog timer possibility? serial COM is broken and reconnected](https://discourse.processing.org/t/watchdog-timer-possibility-serial-com-is-broken-and-reconnected/29037)

<div class="topic-metadata">

**Author:** [@zumdar](https://discourse.processing.org/u/zumdar)\
**Replies:** 7\
**Last updated:** [September 26, 2022, 1:27pm UTC](https://discourse.processing.org/t/watchdog-timer-possibility-serial-com-is-broken-and-reconnected/29037 "2022-09-26T13:27:36Z")

</div>

hey yall! is there any kind of watchdog timer kind of thing in processing that will restart your code from the beginning? like rerun setup and everything if the serial communication isnt happening? I am making a kiosk …

---

## [Modbus IEE754 Float convert from Arduino](https://discourse.processing.org/t/modbus-iee754-float-convert-from-arduino/38971)

<div class="topic-metadata">

**Author:** [@Holle](https://discourse.processing.org/u/Holle)\
**Replies:** 2\
**Last updated:** [September 26, 2022, 7:34am UTC](https://discourse.processing.org/t/modbus-iee754-float-convert-from-arduino/38971 "2022-09-26T07:34:40Z")

</div>

Hello, I’m new here. I am trying to read an Eastron smart meter with Modbus IEE754 I sent the modbus string to Smartmeter and received the bytes. But this is the IEE75 with floating point. I found an Arduino code tha…

---

## [Tester for the PAppletFinder in Processing 4 required](https://discourse.processing.org/t/tester-for-the-pappletfinder-in-processing-4-required/38914)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 5\
**Last updated:** [September 25, 2022, 7:15pm UTC](https://discourse.processing.org/t/tester-for-the-pappletfinder-in-processing-4-required/38914 "2022-09-25T19:15:18Z")

</div>

I am currently writing a library to provide Utility to others writing processing libraries. A core feature is the detection of all PApplet instances. After 4 months of development I finally found a possibility that shou…

---

## [Get the current instance of PApplet from a library](https://discourse.processing.org/t/get-the-current-instance-of-papplet-from-a-library/36925)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 27\
**Last updated:** [September 25, 2022, 7:36pm UTC](https://discourse.processing.org/t/get-the-current-instance-of-papplet-from-a-library/36925 "2022-09-25T19:36:04Z")

</div>

In the library I’m currently writing I have to give my classes the current instance of the PApplet to e.g. register Methods. If you use the Library you therefore have to call a lot of methods just with this from the sket…

---

## [Simplified my question: Array - 2 movers from circle border should move through circle center but they move parallel](https://discourse.processing.org/t/simplified-my-question-array-2-movers-from-circle-border-should-move-through-circle-center-but-they-move-parallel/38960)

<div class="topic-metadata">

**Author:** [@Tilman](https://discourse.processing.org/u/Tilman)\
**Replies:** 3\
**Last updated:** [September 25, 2022, 3:26pm UTC](https://discourse.processing.org/t/simplified-my-question-array-2-movers-from-circle-border-should-move-through-circle-center-but-they-move-parallel/38960 "2022-09-25T15:26:26Z")

</div>

I posted this before but made the code simpler so I can explain my problem. When I call two individual movers it works but as soon as I use an array not: I have a circle and with an array define two points on that circl…

---

## [\[p5\] I am curious about the Excel conversion source code / array declaration](https://discourse.processing.org/t/p5-i-am-curious-about-the-excel-conversion-source-code-array-declaration/38965)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 4\
**Last updated:** [September 25, 2022, 8:02am UTC](https://discourse.processing.org/t/p5-i-am-curious-about-the-excel-conversion-source-code-array-declaration/38965 "2022-09-25T08:02:53Z")

</div>

\[p5\] I am curious about the Excel conversion source code / array declaration. 1. How to declare array like ‘java’ in ‘p5’? example) 10x10 array make String\[\]\[\] randoms = new String\[10\]\[10\]; How do I do ‘p5’ to do the…

---

## [Animated gradient blur](https://discourse.processing.org/t/animated-gradient-blur/38956)

<div class="topic-metadata">

**Author:** [@dragodiv](https://discourse.processing.org/u/dragodiv)\
**Replies:** 6\
**Last updated:** [September 24, 2022, 7:00pm UTC](https://discourse.processing.org/t/animated-gradient-blur/38956 "2022-09-24T19:00:43Z")

</div>

Hi How can we do the below animated gradient blur?? how can we get the gradient effect animated. Any pointers will be of great help.

---

## [Creating a small 3D model (House)](https://discourse.processing.org/t/creating-a-small-3d-model-house/38891)

<div class="topic-metadata">

**Author:** [@a\_random\_cat](https://discourse.processing.org/u/a_random_cat)\
**Replies:** 5\
**Last updated:** [September 24, 2022, 12:52pm UTC](https://discourse.processing.org/t/creating-a-small-3d-model-house/38891 "2022-09-24T12:52:27Z")

</div>

Hello. Can someone help me with a small 3d model? I want to make a small “area” with only a street, a basic house and a street lamp. I tried to create the basic template, but for a reason all the objects gets pushed i…

---

## [Why should the preview images in the libraries directory be grayscale?](https://discourse.processing.org/t/why-should-the-preview-images-in-the-libraries-directory-be-grayscale/38958)

<div class="topic-metadata">

**Author:** [@meezwhite](https://discourse.processing.org/u/meezwhite)\
**Replies:** 1\
**Last updated:** [September 24, 2022, 1:16pm UTC](https://discourse.processing.org/t/why-should-the-preview-images-in-the-libraries-directory-be-grayscale/38958 "2022-09-24T13:16:03Z")

</div>

I always wondered why the preview images for libraries in the libraries directory should be grayscale and I didn’t find a discussion about this. What were the foundations thoughts behind this decision? Just a wondermen…

---

## [Headlines arrays with line break](https://discourse.processing.org/t/headlines-arrays-with-line-break/38918)

<div class="topic-metadata">

**Author:** [@yves](https://discourse.processing.org/u/yves)\
**Replies:** 5\
**Last updated:** [September 24, 2022, 10:13am UTC](https://discourse.processing.org/t/headlines-arrays-with-line-break/38918 "2022-09-24T10:13:07Z")

</div>

Hi every one, I’m working on that example of scrolling headlines from : scrollingtext | Learning Processing 2nd Edition how can I “play” headlines vertically with a line break at the end of each headline something lik…

---

## [\[p5\] cycle of work order](https://discourse.processing.org/t/p5-cycle-of-work-order/38955)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 5\
**Last updated:** [September 24, 2022, 7:29am UTC](https://discourse.processing.org/t/p5-cycle-of-work-order/38955 "2022-09-24T07:29:01Z")

</div>

\[p5\] cycle of work order In ‘p5’, ‘preload()’ function is provided to prepare in advance. However, there are cases where priority is needed even within the ‘preload()’ function. So, the order was given through t…

---

## [Processing.py sound library causing Java errors?](https://discourse.processing.org/t/processing-py-sound-library-causing-java-errors/38954)

<div class="topic-metadata">

**Author:** [@amb](https://discourse.processing.org/u/amb)\
**Replies:** 2\
**Last updated:** [September 24, 2022, 1:48am UTC](https://discourse.processing.org/t/processing-py-sound-library-causing-java-errors/38954 "2022-09-24T01:48:58Z")

</div>

Setup: Windows 10 / Processing 4.0.1 / Python Mode for Processing 4 4001 / Sound 2.3.1 I’ve been trying unsuccessfully to use the Sound library in Python mode. This sketch just tries to load the sound library and call…

---

## [Processing on Raspberry pi 4 very slow?](https://discourse.processing.org/t/processing-on-raspberry-pi-4-very-slow/15008)

<div class="topic-metadata">

**Author:** [@NaniAromix](https://discourse.processing.org/u/NaniAromix)\
**Replies:** 22\
**Last updated:** [September 23, 2022, 5:00pm UTC](https://discourse.processing.org/t/processing-on-raspberry-pi-4-very-slow/15008 "2022-09-23T17:00:47Z")

</div>

Hi there. I’m having lots of performance issues with processing in my raspberry pi 4. On some pretty basic sketches i’m not getting more than 5 or 6 frames per second, which to me seems odd for a brand new raspberry pi 4…

---

## [Playing vr 360 video (or even load simple video) from remote location possible?](https://discourse.processing.org/t/playing-vr-360-video-or-even-load-simple-video-from-remote-location-possible/38944)

<div class="topic-metadata">

**Author:** [@dimpapadop](https://discourse.processing.org/u/dimpapadop)\
**Replies:** 0\
**Last updated:** [September 23, 2022, 11:29am UTC](https://discourse.processing.org/t/playing-vr-360-video-or-even-load-simple-video-from-remote-location-possible/38944 "2022-09-23T11:29:44Z")

</div>

Hallo. Is it possible to play vr 360 videos hosted in a remote location, cloud, or even from youtube, vimeo? through processing android VR library or even by manually texturing the video to a sphere like … Viewing 360…

---

## [Gradually change the sprite of an object](https://discourse.processing.org/t/gradually-change-the-sprite-of-an-object/38851)

<div class="topic-metadata">

**Author:** [@dmlong](https://discourse.processing.org/u/dmlong)\
**Replies:** 3\
**Last updated:** [September 23, 2022, 1:25pm UTC](https://discourse.processing.org/t/gradually-change-the-sprite-of-an-object/38851 "2022-09-23T13:25:56Z")

</div>

Hi, so I’m working on a homework project, with a character shooting fireballs at walls to destroy them. I’ve been doing well with creating the characters and their projectiles, as well as detecting the collision between …

---

## [\[JAVA\] AES security algorithm related - Why do I get different result values?](https://discourse.processing.org/t/java-aes-security-algorithm-related-why-do-i-get-different-result-values/38947)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [September 23, 2022, 1:01pm UTC](https://discourse.processing.org/t/java-aes-security-algorithm-related-why-do-i-get-different-result-values/38947 "2022-09-23T13:01:58Z")

</div>

\[JAVA\] AES security algorithm related - Why do I get different result values? hello. I’m trying to test the AES256 algorithm. \[1. Type of test\] WEB SITE JAVA Program \[2. Test information\] KEY : sdfhjiodfjisd231s…

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

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