# Latest

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

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

**Page:** 124

---

## [Change the appearance of Radio Buttons in ControlP5](https://discourse.processing.org/t/change-the-appearance-of-radio-buttons-in-controlp5/38045)

<div class="topic-metadata">

**Author:** [@Ghostsss](https://discourse.processing.org/u/Ghostsss)\
**Replies:** 10\
**Last updated:** [July 25, 2022, 1:02am UTC](https://discourse.processing.org/t/change-the-appearance-of-radio-buttons-in-controlp5/38045 "2022-07-25T01:02:32Z")

</div>

By default Radio Buttons in ControlP5 are squares. (shown in following figure) In my opinion, they seems to be littile unintiutive for a new user. Is it possible to change their appearance to conventional type radio…

---

## [Inner/Outer Stroke Offset Possible?](https://discourse.processing.org/t/inner-outer-stroke-offset-possible/38075)

<div class="topic-metadata">

**Author:** [@arbo](https://discourse.processing.org/u/arbo)\
**Replies:** 7\
**Last updated:** [July 24, 2022, 11:06pm UTC](https://discourse.processing.org/t/inner-outer-stroke-offset-possible/38075 "2022-07-24T23:06:11Z")

</div>

Using P5js, is it possible to create either an inner or outer equidistant stroke line which follows the contour of the shape? Take for example the image below. if I had the capitol letter ‘E’ and wanted to draw the inn…

---

## [Fill from an array](https://discourse.processing.org/t/fill-from-an-array/38080)

<div class="topic-metadata">

**Author:** [@ablanton](https://discourse.processing.org/u/ablanton)\
**Replies:** 4\
**Last updated:** [July 24, 2022, 8:40pm UTC](https://discourse.processing.org/t/fill-from-an-array/38080 "2022-07-24T20:40:06Z")

</div>

hi all, i’m trying to input fill() from a global array and can’t see why this won’t work. it looks like a type conversion issue, but i thought this should work. any hints? let array\_main = \['0fb794', 2, 3\]; function s…

---

## [Save p5js-Script to ipfs with correct MimeType](https://discourse.processing.org/t/save-p5js-script-to-ipfs-with-correct-mimetype/38077)

<div class="topic-metadata">

**Author:** [@res56](https://discourse.processing.org/u/res56)\
**Replies:** 0\
**Last updated:** [July 24, 2022, 4:49pm UTC](https://discourse.processing.org/t/save-p5js-script-to-ipfs-with-correct-mimetype/38077 "2022-07-24T16:49:20Z")

</div>

Hello everyone, I want to save a p5js Script to ipfs with node.js It is necassary to store the script in a string value. What is the smartest way to set the Mimetype to application/javascript so the Browser is able to …

---

## [I created multiplayer online game with p5js](https://discourse.processing.org/t/i-created-multiplayer-online-game-with-p5js/854)

<div class="topic-metadata">

**Author:** [@r4nd0m](https://discourse.processing.org/u/r4nd0m)\
**Replies:** 22\
**Last updated:** [July 24, 2022, 4:22pm UTC](https://discourse.processing.org/t/i-created-multiplayer-online-game-with-p5js/854 "2022-07-24T16:22:39Z")

</div>

Hi everyone, I would like to share with community the game I created with p5js as a renderer. It is a realtime multiplayer game, similar to AgarIO and other games in that ecosystem. You can try it out on http://owom.io …

---

## [Compute PShader for both Android and Windows](https://discourse.processing.org/t/compute-pshader-for-both-android-and-windows/38033)

<div class="topic-metadata">

**Author:** [@FurryNightShade](https://discourse.processing.org/u/FurryNightShade)\
**Replies:** 3\
**Last updated:** [July 24, 2022, 3:28pm UTC](https://discourse.processing.org/t/compute-pshader-for-both-android-and-windows/38033 "2022-07-24T15:28:59Z")

</div>

Before I say anything, I code on my phone (Android) almost all the time, but sometimes I have to write something that runs on Windows as well. So, I’ve been trying to learn about shaders. There is the PShader class that…

---

## [Try to program a pointless texbox](https://discourse.processing.org/t/try-to-program-a-pointless-texbox/37921)

<div class="topic-metadata">

**Author:** [@lousshe](https://discourse.processing.org/u/lousshe)\
**Replies:** 4\
**Last updated:** [July 24, 2022, 2:21pm UTC](https://discourse.processing.org/t/try-to-program-a-pointless-texbox/37921 "2022-07-24T14:21:29Z")

</div>

Hello. this is a small mini project. I am already so far that it is a normal interpretation of a text box with mouse tracking. Now I try to modify the text if you move the red button around (textbox size). By modify…

---

## [Weird asynchronous behaviour in p5.js](https://discourse.processing.org/t/weird-asynchronous-behaviour-in-p5-js/38072)

<div class="topic-metadata">

**Author:** [@M1ke](https://discourse.processing.org/u/M1ke)\
**Replies:** 3\
**Last updated:** [July 24, 2022, 2:06pm UTC](https://discourse.processing.org/t/weird-asynchronous-behaviour-in-p5-js/38072 "2022-07-24T14:06:44Z")

</div>

In short: I’m making a programming language in p5.js as an exercise, so nothing too serious, however I have incountered a problem which seems to be unique to p5.js . For example, my compiler interprets these 3 successive…

---

## [Cannot understand PImage](https://discourse.processing.org/t/cannot-understand-pimage/38070)

<div class="topic-metadata">

**Author:** [@MSousa](https://discourse.processing.org/u/MSousa)\
**Replies:** 1\
**Last updated:** [July 24, 2022, 1:40pm UTC](https://discourse.processing.org/t/cannot-understand-pimage/38070 "2022-07-24T13:40:27Z")

</div>

//Pimage test /\* Trying to undersand Pimage created a Pimage object named img the idea is to acquire data from the Teensy microcontroller and fill the img area. line 27 fills the image with a stored jpg image line …

---

## [What is your basic stack?](https://discourse.processing.org/t/what-is-your-basic-stack/38064)

<div class="topic-metadata">

**Author:** [@NikhilPundir](https://discourse.processing.org/u/NikhilPundir)\
**Replies:** 1\
**Last updated:** [July 24, 2022, 12:18am UTC](https://discourse.processing.org/t/what-is-your-basic-stack/38064 "2022-07-24T00:18:50Z")

</div>

I am new to processing. Getting used to it and trying to find new ways to make my life easy. I am using the default processing IDE currently. Trying to make it run on VS code. I wanted to know which IDE does the communi…

---

## [Display 1 character (from a choice of 4) in an animation](https://discourse.processing.org/t/display-1-character-from-a-choice-of-4-in-an-animation/38068)

<div class="topic-metadata">

**Author:** [@E-maniak](https://discourse.processing.org/u/E-maniak)\
**Replies:** 4\
**Last updated:** [July 23, 2022, 7:50pm UTC](https://discourse.processing.org/t/display-1-character-from-a-choice-of-4-in-an-animation/38068 "2022-07-23T19:50:46Z")

</div>

Hello, I am trying to create an animation with : TV (fixed) clouds (mobile) a character (not moving) I would like the character to be random at each load (a witch, a mage, an angel and an astronaut). Unfortunately, …

---

## [How to enforce a minimum distance between curves?](https://discourse.processing.org/t/how-to-enforce-a-minimum-distance-between-curves/30875)

<div class="topic-metadata">

**Author:** [@oli](https://discourse.processing.org/u/oli)\
**Replies:** 10\
**Last updated:** [July 23, 2022, 5:51pm UTC](https://discourse.processing.org/t/how-to-enforce-a-minimum-distance-between-curves/30875 "2022-07-23T17:51:16Z")

</div>

I want to learn to draw non-overlapping random curves. I’ve written code that generates random curves on the screen but they currently overlap. In the example above, each curve is drawn by Choosing a random start …

---

## [uPIGr P5.js/Tone.js online editor](https://discourse.processing.org/t/upigr-p5-js-tone-js-online-editor/38065)

<div class="topic-metadata">

**Author:** [@nxmusic](https://discourse.processing.org/u/nxmusic)\
**Replies:** 0\
**Last updated:** [July 23, 2022, 4:07pm UTC](https://discourse.processing.org/t/upigr-p5-js-tone-js-online-editor/38065 "2022-07-23T16:07:13Z")

</div>

Hi I programmed a basic javascript editor for audiovisual livecoding. I’ve done it for my compositions and it’s in a very early stage of development. But I thought maybe it could be useful to someone in the p5.js/Tone.…

---

## [ContentDescription](https://discourse.processing.org/t/contentdescription/38003)

<div class="topic-metadata">

**Author:** [@andym](https://discourse.processing.org/u/andym)\
**Replies:** 1\
**Last updated:** [July 23, 2022, 12:48pm UTC](https://discourse.processing.org/t/contentdescription/38003 "2022-07-23T12:48:19Z")

</div>

How do i get android:ContentDescription to work in an ImageView? ive had a look in values.xml but there is no attribute ContentDescription for the default Image View:

---

## [Disable Blue Console Warnings](https://discourse.processing.org/t/disable-blue-console-warnings/38056)

<div class="topic-metadata">

**Author:** [@megrimm](https://discourse.processing.org/u/megrimm)\
**Replies:** 2\
**Last updated:** [July 22, 2022, 9:12pm UTC](https://discourse.processing.org/t/disable-blue-console-warnings/38056 "2022-07-22T21:12:33Z")

</div>

Hello, How can I disable the blue console warning that show up when I am missing a file? For example I do a check to see if an image/file exists before loading like so: if ((img = loadImage("file.jpg")) != null)…

---

## [Help not opening until PDE exits](https://discourse.processing.org/t/help-not-opening-until-pde-exits/38061)

<div class="topic-metadata">

**Author:** [@Tuxomx](https://discourse.processing.org/u/Tuxomx)\
**Replies:** 0\
**Last updated:** [July 23, 2022, 3:32am UTC](https://discourse.processing.org/t/help-not-opening-until-pde-exits/38061 "2022-07-23T03:32:23Z")

</div>

Hi all. I just updated to processing 4.0b8 some weeks ago. If I use /help/find\_in\_reference or /help/reference menu entries nothing happens. Nor firefox opens, nor window or tab in firefox opens. But if I exit PDE then …

---

## [Getting a NullPointerException when trying to simply display an image in draw()](https://discourse.processing.org/t/getting-a-nullpointerexception-when-trying-to-simply-display-an-image-in-draw/38015)

<div class="topic-metadata">

**Author:** [@amundsen](https://discourse.processing.org/u/amundsen)\
**Replies:** 2\
**Last updated:** [July 22, 2022, 5:15pm UTC](https://discourse.processing.org/t/getting-a-nullpointerexception-when-trying-to-simply-display-an-image-in-draw/38015 "2022-07-22T17:15:18Z")

</div>

Hello, I have this issue with Processing 4.0b6/Windows. This ultrasimple sketch triggers a NullPointerException when trying to display the image within draw(). Otherwise when displaying it within setup() it works fine.…

---

## [Shorthand code translation](https://discourse.processing.org/t/shorthand-code-translation/38050)

<div class="topic-metadata">

**Author:** [@Sunt](https://discourse.processing.org/u/Sunt)\
**Replies:** 11\
**Last updated:** [July 22, 2022, 7:09am UTC](https://discourse.processing.org/t/shorthand-code-translation/38050 "2022-07-22T07:09:13Z")

</div>

Hi. I found such lovely sketches on Twitter like this one below from @KomaTebe, but I can’t translate it into the usual (not shorthand) code. Could anyone do this? f=0,draw=a=\>{for(f||createCanvas(W=400,W,WEBGL),noStr…

---

## [Brackets live preview generates a 404](https://discourse.processing.org/t/brackets-live-preview-generates-a-404/38042)

<div class="topic-metadata">

**Author:** [@berndbausch](https://discourse.processing.org/u/berndbausch)\
**Replies:** 2\
**Last updated:** [July 21, 2022, 8:38pm UTC](https://discourse.processing.org/t/brackets-live-preview-generates-a-404/38042 "2022-07-21T20:38:50Z")

</div>

This is on a Windows PC. I am totally new to P5JS (and slightly less new to Processing) and try to use Brackets to edit and test my sketches. Originally, it worked. I downloaded the p5js ZIP file, unpacked it on the Des…

---

## [Unexpected behavior from a shader in p5](https://discourse.processing.org/t/unexpected-behavior-from-a-shader-in-p5/38041)

<div class="topic-metadata">

**Author:** [@neel](https://discourse.processing.org/u/neel)\
**Replies:** 2\
**Last updated:** [July 21, 2022, 12:41pm UTC](https://discourse.processing.org/t/unexpected-behavior-from-a-shader-in-p5/38041 "2022-07-21T12:41:28Z")

</div>

I’ve got a shader that I’m trying to run in p5, but it doesn’t work as expected. If I copy this fragment shader into editor.thebookofshaders.com, it generates a gradient that’s black on the left and red on the right. Whe…

---

## [Extracting pixels values from an alpha/greyscale PImage?](https://discourse.processing.org/t/extracting-pixels-values-from-an-alpha-greyscale-pimage/38038)

<div class="topic-metadata">

**Author:** [@amundsen](https://discourse.processing.org/u/amundsen)\
**Replies:** 5\
**Last updated:** [July 21, 2022, 9:13am UTC](https://discourse.processing.org/t/extracting-pixels-values-from-an-alpha-greyscale-pimage/38038 "2022-07-21T09:13:39Z")

</div>

Hello. When using a PImage in alpha/greyscale format, how can I extract individual values from pixels? Should I use alpha(myImage.pixels\[pos\])? Or red(myImage.pixels\[pos\])? Thank you in advance.

---

## [Pulsating PGraphics used as mask only updated in one direction](https://discourse.processing.org/t/pulsating-pgraphics-used-as-mask-only-updated-in-one-direction/38030)

<div class="topic-metadata">

**Author:** [@amundsen](https://discourse.processing.org/u/amundsen)\
**Replies:** 5\
**Last updated:** [July 20, 2022, 9:56pm UTC](https://discourse.processing.org/t/pulsating-pgraphics-used-as-mask-only-updated-in-one-direction/38030 "2022-07-20T21:56:18Z")

</div>

Hello, I have a PGraphics with random rectangles appearing and disappearing progressively using changing value of fill(). It functions as expected. However, when used as a mask, the rectangles appear progressively but …

---

## [Serial.list() not updating correctly](https://discourse.processing.org/t/serial-list-not-updating-correctly/38036)

<div class="topic-metadata">

**Author:** [@Ghostsss](https://discourse.processing.org/u/Ghostsss)\
**Replies:** 1\
**Last updated:** [July 20, 2022, 9:16pm UTC](https://discourse.processing.org/t/serial-list-not-updating-correctly/38036 "2022-07-20T21:16:30Z")

</div>

I have 2 original arduino nano every boards. If I run following code (CODE1): import processing.serial.\*; Serial myPort; void setup(){ } void draw(){ println(frameCount); // just to see that code is running pri…

---

## [Listening to events while Processing window is inactive](https://discourse.processing.org/t/listening-to-events-while-processing-window-is-inactive/38022)

<div class="topic-metadata">

**Author:** [@BetaHunter](https://discourse.processing.org/u/BetaHunter)\
**Replies:** 4\
**Last updated:** [July 19, 2022, 8:07pm UTC](https://discourse.processing.org/t/listening-to-events-while-processing-window-is-inactive/38022 "2022-07-19T20:07:27Z")

</div>

Hey guys, new here and relatively new to programming. I have been asked to create a small program for a friends. A program that monitors activities on the keyboard and mouse. I have however run into a problem with proces…

---

## [I Can't export pdf](https://discourse.processing.org/t/i-cant-export-pdf/38013)

<div class="topic-metadata">

**Author:** [@airobit](https://discourse.processing.org/u/airobit)\
**Replies:** 14\
**Last updated:** [July 19, 2022, 7:57pm UTC](https://discourse.processing.org/t/i-cant-export-pdf/38013 "2022-07-19T19:57:09Z")

</div>

Hi, i would like export in pdf the mycelium project “https://github.com/rspt/processing-mycelium.git” by many frames into one file, but the pde don’t start for this error in the last line of code ( } ) : Bad identifier? …

---

## [I want to set the background as the canvas](https://discourse.processing.org/t/i-want-to-set-the-background-as-the-canvas/26154)

<div class="topic-metadata">

**Author:** [@bi3her](https://discourse.processing.org/u/bi3her)\
**Replies:** 2\
**Last updated:** [July 19, 2022, 1:56pm UTC](https://discourse.processing.org/t/i-want-to-set-the-background-as-the-canvas/26154 "2022-07-19T13:56:38Z")

</div>

I’m working on a small project website where clients draw something and then they can click a button to send the canvas to the server, and then the server sends it back to other clients and the canvas image is set as th…

---

## [Processing Arduino communication](https://discourse.processing.org/t/processing-arduino-communication/38026)

<div class="topic-metadata">

**Author:** [@chrisBon8](https://discourse.processing.org/u/chrisBon8)\
**Replies:** 1\
**Last updated:** [July 19, 2022, 11:04am UTC](https://discourse.processing.org/t/processing-arduino-communication/38026 "2022-07-19T11:04:50Z")

</div>

Hi everyone, i am working with processing and arduino. I am trying to pass via serial method a String “x;y” where x and y are integers from arduino to Processing. Then i want to plot on processing the x and y separately,…

---

## [Running a script from VS code](https://discourse.processing.org/t/running-a-script-from-vs-code/38024)

<div class="topic-metadata">

**Author:** [@Daniel11](https://discourse.processing.org/u/Daniel11)\
**Replies:** 1\
**Last updated:** [July 19, 2022, 8:17am UTC](https://discourse.processing.org/t/running-a-script-from-vs-code/38024 "2022-07-19T08:17:00Z")

</div>

Hi, I have currently created a piece of code in processing and I would like to create another piece of code in VS Code, which would call and run the code I currently have, just wondering if this is possible and if so ho…

---

## [Issues with defining a frustum/perspective](https://discourse.processing.org/t/issues-with-defining-a-frustum-perspective/38019)

<div class="topic-metadata">

**Author:** [@graph100](https://discourse.processing.org/u/graph100)\
**Replies:** 3\
**Last updated:** [July 19, 2022, 5:54am UTC](https://discourse.processing.org/t/issues-with-defining-a-frustum-perspective/38019 "2022-07-19T05:54:19Z")

</div>

I’m working on a game and I’m currently trying to extend the render distance of the camera. I tried using the frustum() and perspective() functions, but they didn’t work. I tried again, this time using the default values…

---

## [Using my own data in a P5.js sketch?](https://discourse.processing.org/t/using-my-own-data-in-a-p5-js-sketch/37983)

<div class="topic-metadata">

**Author:** [@mamba76](https://discourse.processing.org/u/mamba76)\
**Replies:** 10\
**Last updated:** [July 18, 2022, 8:42pm UTC](https://discourse.processing.org/t/using-my-own-data-in-a-p5-js-sketch/37983 "2022-07-18T20:42:53Z")

</div>

How can I load my JSON file, containing an array of x / y coordinates, into my sketch program so I can draw a graph ?

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

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