# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=119

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

**Page:** 120

---

## [Advice regarding reading .mat file in p5.js](https://discourse.processing.org/t/advice-regarding-reading-mat-file-in-p5-js/38437)

<div class="topic-metadata">

**Author:** [@ramith](https://discourse.processing.org/u/ramith)\
**Replies:** 5\
**Last updated:** [August 21, 2022, 6:40pm UTC](https://discourse.processing.org/t/advice-regarding-reading-mat-file-in-p5-js/38437 "2022-08-21T18:40:21Z")

</div>

Hi ! A js newbie here… I’m trying to read a .mat file through p5.js I found this library, but cannot quite integrate it with p5.js Any pointers would be really helpful. Thanks!!

---

## [Bristled Onions](https://discourse.processing.org/t/bristled-onions/38433)

<div class="topic-metadata">

**Author:** [@javagar](https://discourse.processing.org/u/javagar)\
**Replies:** 3\
**Last updated:** [August 21, 2022, 3:23pm UTC](https://discourse.processing.org/t/bristled-onions/38433 "2022-08-21T15:23:59Z")

</div>

Original image from: p5.js code: // instance mode new p5((p) =\> { let img; p.preload = () =\> { // mixed onions image from Wikipedia: Onion // https://en.m.wikipedia.org/wiki/Onion img = p.loadImage…

---

## [Processing Cheat Sheet](https://discourse.processing.org/t/processing-cheat-sheet/13297)

<div class="topic-metadata">

**Author:** [@glv](https://discourse.processing.org/u/glv)\
**Replies:** 3\
**Last updated:** [August 21, 2022, 2:26pm UTC](https://discourse.processing.org/t/processing-cheat-sheet/13297 "2022-08-21T14:26:24Z")

</div>

This may be of interest to some: :slight\_smile:

---

## [Check key for Pos1, End, Ctrl-1, Ctrl-Pos1, Ctrl-End](https://discourse.processing.org/t/check-key-for-pos1-end-ctrl-1-ctrl-pos1-ctrl-end/38413)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 10\
**Last updated:** [August 21, 2022, 11:52am UTC](https://discourse.processing.org/t/check-key-for-pos1-end-ctrl-1-ctrl-pos1-ctrl-end/38413 "2022-08-21T11:52:28Z")

</div>

Hello all, how can I check the aforementioned keys please? Cheers! Chrisir

---

## [Processing camera](https://discourse.processing.org/t/processing-camera/38415)

<div class="topic-metadata">

**Author:** [@madtolla](https://discourse.processing.org/u/madtolla)\
**Replies:** 7\
**Last updated:** [August 21, 2022, 9:36am UTC](https://discourse.processing.org/t/processing-camera/38415 "2022-08-21T09:36:13Z")

</div>

Hello guys I’m trying to run the code below for 2 days to open the camera by using processing and literally tried every single method but I didn’t solve it, plz need your help import processing.video.\*; Capture video; …

---

## [TRIANGLE\_STRIP lighting problem](https://discourse.processing.org/t/triangle-strip-lighting-problem/38348)

<div class="topic-metadata">

**Author:** [@Tsskyx](https://discourse.processing.org/u/Tsskyx)\
**Replies:** 9\
**Last updated:** [August 21, 2022, 3:31am UTC](https://discourse.processing.org/t/triangle-strip-lighting-problem/38348 "2022-08-21T03:31:12Z")

</div>

I want to add some simple lighting to my 3D terrain that I’m generating using beginShape with TRIANGLE\_STRIP like this: for (int i = 0; i \< count - 1; i++) { beginShape(TRIANGLE\_STRIP); for (int j = 0; j \< count; j+…

---

## [How to toggle airplane mode on android device programatically using android mode](https://discourse.processing.org/t/how-to-toggle-airplane-mode-on-android-device-programatically-using-android-mode/38430)

<div class="topic-metadata">

**Author:** [@katesfb](https://discourse.processing.org/u/katesfb)\
**Replies:** 3\
**Last updated:** [August 21, 2022, 1:14am UTC](https://discourse.processing.org/t/how-to-toggle-airplane-mode-on-android-device-programatically-using-android-mode/38430 "2022-08-21T01:14:45Z")

</div>

Hi, I have a project that takes images, logs those images to the SD card and uploads the images to an FTP server. This happens during the day only so i want the system to go into airplane mode at night. Is there a way t…

---

## [Creating Stills](https://discourse.processing.org/t/creating-stills/38284)

<div class="topic-metadata">

**Author:** [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Replies:** 16\
**Last updated:** [August 19, 2022, 4:51pm UTC](https://discourse.processing.org/t/creating-stills/38284 "2022-08-19T16:51:58Z")

</div>

Hi, I used the following code under void draw(); in order to save images of my code rather than a screenshot. When I do so, I receive an error message saying Error “void”? void keyPressed(){ if(keyCode == ENTER){ …

---

## [createShader with texture not working](https://discourse.processing.org/t/createshader-with-texture-not-working/38407)

<div class="topic-metadata">

**Author:** [@PauRosello](https://discourse.processing.org/u/PauRosello)\
**Replies:** 0\
**Last updated:** [August 18, 2022, 1:58pm UTC](https://discourse.processing.org/t/createshader-with-texture-not-working/38407 "2022-08-18T13:58:10Z")

</div>

Hi, the following example works if instead of using createShader() in setup() I use loadShader() in preload(), but I need to use createShader because I need the shader code to be in the script file. Is there something I’…

---

## [Checkbox style size](https://discourse.processing.org/t/checkbox-style-size/38406)

<div class="topic-metadata">

**Author:** [@Sunt](https://discourse.processing.org/u/Sunt)\
**Replies:** 2\
**Last updated:** [August 18, 2022, 1:18pm UTC](https://discourse.processing.org/t/checkbox-style-size/38406 "2022-08-18T13:18:51Z")

</div>

Hi, I am trying to change the size of the checkbox. The font size property works but not the box size. Thanks in advance. checkbox = createCheckbox('label', true); checkbox.style("font-size", '46px'); checkbox.s…

---

## [Network module help](https://discourse.processing.org/t/network-module-help/38368)

<div class="topic-metadata">

**Author:** [@Broadcaster](https://discourse.processing.org/u/Broadcaster)\
**Replies:** 5\
**Last updated:** [August 17, 2022, 9:03pm UTC](https://discourse.processing.org/t/network-module-help/38368 "2022-08-17T21:03:29Z")

</div>

Hi! I know this is vage but i have problems using network to get a pastebin post. I tried this: import processing.net.\*; Client myClient; int dataIn; void setup() { size(200, 200); myClient = new Client(this…

---

## [Programmatically uncheck a check box](https://discourse.processing.org/t/programmatically-uncheck-a-check-box/38393)

<div class="topic-metadata">

**Author:** [@Sunt](https://discourse.processing.org/u/Sunt)\
**Replies:** 3\
**Last updated:** [August 17, 2022, 4:39pm UTC](https://discourse.processing.org/t/programmatically-uncheck-a-check-box/38393 "2022-08-17T16:39:36Z")

</div>

Hi. How can I programmatically uncheck a check box.? I’ve searched and tried a lot of things like checkbox.elt.disabled = false; But nothing works. Thanks in advance.

---

## [How to create a low resolution video with data received from UART?](https://discourse.processing.org/t/how-to-create-a-low-resolution-video-with-data-received-from-uart/38376)

<div class="topic-metadata">

**Author:** [@onelectron](https://discourse.processing.org/u/onelectron)\
**Replies:** 4\
**Last updated:** [August 17, 2022, 12:55pm UTC](https://discourse.processing.org/t/how-to-create-a-low-resolution-video-with-data-received-from-uart/38376 "2022-08-17T12:55:37Z")

</div>

Hello, I am planning to send data through the COM port to Processing to construct a low-resolution image based on the collected data. As it is being sent over UART, I assume that the refresh rate will be very low. My id…

---

## [Hi ,who can tell me the way to upload a pic in P5.js editor? I am a beginner!](https://discourse.processing.org/t/hi-who-can-tell-me-the-way-to-upload-a-pic-in-p5-js-editor-i-am-a-beginner/38389)

<div class="topic-metadata">

**Author:** [@sallyzhai](https://discourse.processing.org/u/sallyzhai)\
**Replies:** 1\
**Last updated:** [August 17, 2022, 6:37am UTC](https://discourse.processing.org/t/hi-who-can-tell-me-the-way-to-upload-a-pic-in-p5-js-editor-i-am-a-beginner/38389 "2022-08-17T06:37:12Z")

</div>

Sorry, who can tell me the way to upload a picture in p5.js editor? They have changed the upload way from the previous one!

---

## [Help with video mixer logic](https://discourse.processing.org/t/help-with-video-mixer-logic/38386)

<div class="topic-metadata">

**Author:** [@JSGauthier](https://discourse.processing.org/u/JSGauthier)\
**Replies:** 1\
**Last updated:** [August 16, 2022, 8:13pm UTC](https://discourse.processing.org/t/help-with-video-mixer-logic/38386 "2022-08-16T20:13:24Z")

</div>

I am having a problem with the implementation of a project which uses the video library as well as the serial library and could really use some help. HELP!! If you like I can also provide a private zoom link and screen …

---

## [Image Change with Microphone in Image Processing](https://discourse.processing.org/t/image-change-with-microphone-in-image-processing/38387)

<div class="topic-metadata">

**Author:** [@searchingforananswer](https://discourse.processing.org/u/searchingforananswer)\
**Replies:** 0\
**Last updated:** [August 16, 2022, 6:33pm UTC](https://discourse.processing.org/t/image-change-with-microphone-in-image-processing/38387 "2022-08-16T18:33:02Z")

</div>

Hello, I want to change the image already in the code below with another one I have depend on microphone. How can I do this? /\*\* \* Extrusion. \* \* Converts a flat image into spatial data points and rotates the poin…

---

## [UDP Video streaming?](https://discourse.processing.org/t/udp-video-streaming/9094)

<div class="topic-metadata">

**Author:** [@f42ter](https://discourse.processing.org/u/f42ter)\
**Replies:** 2\
**Last updated:** [August 16, 2022, 6:36pm UTC](https://discourse.processing.org/t/udp-video-streaming/9094 "2022-08-16T18:36:06Z")

</div>

Any ideas to implement this on the Windows based Processing It is based on Georg Haiders GLVideo Lib for processing. I played a little bit to decode the video stream from Tello by myself. Aim is to have it on a Window…

---

## [P5.js personal website](https://discourse.processing.org/t/p5-js-personal-website/38385)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 0\
**Last updated:** [August 16, 2022, 2:47pm UTC](https://discourse.processing.org/t/p5-js-personal-website/38385 "2022-08-16T14:47:30Z")

</div>

Hi, here’s my personnal website made with P5.js and jekyll : https://matheplica.github.io/ Articles are in french but some content don’t need translation. Enjoy !

---

## [Circulo con loop](https://discourse.processing.org/t/circulo-con-loop/38373)

<div class="topic-metadata">

**Author:** [@Eghost](https://discourse.processing.org/u/Eghost)\
**Replies:** 3\
**Last updated:** [August 16, 2022, 6:55am UTC](https://discourse.processing.org/t/circulo-con-loop/38373 "2022-08-16T06:55:44Z")

</div>

please format code with \</\> button \* homework policy \* asking questions quiero que el circulo interior y el loop tengan color

---

## [Image quality with line(); & (TRIANGLE\_STRIP);](https://discourse.processing.org/t/image-quality-with-line-triangle-strip/38267)

<div class="topic-metadata">

**Author:** [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Replies:** 5\
**Last updated:** [August 15, 2022, 8:41pm UTC](https://discourse.processing.org/t/image-quality-with-line-triangle-strip/38267 "2022-08-15T20:41:24Z")

</div>

Hi there! I’m wondering how I can create a higher resolution image in processing. Currently, I am creating very pixelated nets. How can I make crisper nets? // a class to representing a point on our grid. // This s…

---

## [P5 in WEBGL crashes Chrome](https://discourse.processing.org/t/p5-in-webgl-crashes-chrome/38369)

<div class="topic-metadata">

**Author:** [@patakk](https://discourse.processing.org/u/patakk)\
**Replies:** 5\
**Last updated:** [August 15, 2022, 11:36pm UTC](https://discourse.processing.org/t/p5-in-webgl-crashes-chrome/38369 "2022-08-15T23:36:27Z")

</div>

Hello, let me first give you a minimal example that will crash Chrome on my PC (Windows 10, RTX 3080Ti, Ryzen 9 5950x). function setup(){ createCanvas(windowWidth, windowHeight, WEBGL); } function draw(){ back…

---

## [How to make score only go up by one when pressing spacebar?](https://discourse.processing.org/t/how-to-make-score-only-go-up-by-one-when-pressing-spacebar/38247)

<div class="topic-metadata">

**Author:** [@Mathamagic](https://discourse.processing.org/u/Mathamagic)\
**Replies:** 1\
**Last updated:** [August 15, 2022, 10:47pm UTC](https://discourse.processing.org/t/how-to-make-score-only-go-up-by-one-when-pressing-spacebar/38247 "2022-08-15T22:47:16Z")

</div>

I am trying to make a flappy bird clone and i was woundering how do i make it so that whenever you press the spacebar it increases the score by 1 and doesnt and more than 1 if you hold the space bar? let y = 200 ; let …

---

## [Rasterize Image/ Flowfield with Noise values from image Two --- the answer](https://discourse.processing.org/t/rasterize-image-flowfield-with-noise-values-from-image-two-the-answer/38316)

<div class="topic-metadata">

**Author:** [@f42ter](https://discourse.processing.org/u/f42ter)\
**Replies:** 1\
**Last updated:** [August 15, 2022, 4:38pm UTC](https://discourse.processing.org/t/rasterize-image-flowfield-with-noise-values-from-image-two-the-answer/38316 "2022-08-15T16:38:55Z")

</div>

Here is an other solution https://discourse.processing.org/t/rasterize-image-flowfield-with-noise-values-from-image/38176/4 This is for a single video (noLoop) or a video stream. Will be simple to adopt it for pictures…

---

## [Delaying/Changing the speed of a section of code without delaying the entire code](https://discourse.processing.org/t/delaying-changing-the-speed-of-a-section-of-code-without-delaying-the-entire-code/38357)

<div class="topic-metadata">

**Author:** [@Isobelcameron](https://discourse.processing.org/u/Isobelcameron)\
**Replies:** 4\
**Last updated:** [August 15, 2022, 1:26pm UTC](https://discourse.processing.org/t/delaying-changing-the-speed-of-a-section-of-code-without-delaying-the-entire-code/38357 "2022-08-15T13:26:25Z")

</div>

Hi! I am trying to delay expanding ball 2 so that it starts expanding after expanding ball 1. I have tried the pushMatrix(); and popMatrix(); which made my program crash and I also tried the delay example on the process…

---

## [How can I break textToPoints into lines according to canvas width](https://discourse.processing.org/t/how-can-i-break-texttopoints-into-lines-according-to-canvas-width/38341)

<div class="topic-metadata">

**Author:** [@pedrocoelho](https://discourse.processing.org/u/pedrocoelho)\
**Replies:** 2\
**Last updated:** [August 15, 2022, 12:18pm UTC](https://discourse.processing.org/t/how-can-i-break-texttopoints-into-lines-according-to-canvas-width/38341 "2022-08-15T12:18:20Z")

</div>

I’m trying to adapt the Steering Behavior tutorial from the Coding Train and make it more responsive. I’m wondering how can I divide the text into lines according to some width value, like canvas width. I thought about…

---

## [Enable all java built-in libraries?](https://discourse.processing.org/t/enable-all-java-built-in-libraries/38358)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 3\
**Last updated:** [August 15, 2022, 12:16pm UTC](https://discourse.processing.org/t/enable-all-java-built-in-libraries/38358 "2022-08-15T12:16:11Z")

</div>

I’m currently trying to use a bit of the com.sun libraries. However processing seems to be lacking these libraries. Is there a way to make these libraries work with Processing? In the source code of the app I saw them …

---

## [Python Windows 11 problem](https://discourse.processing.org/t/python-windows-11-problem/38360)

<div class="topic-metadata">

**Author:** [@gustav](https://discourse.processing.org/u/gustav)\
**Replies:** 0\
**Last updated:** [August 15, 2022, 9:27am UTC](https://discourse.processing.org/t/python-windows-11-problem/38360 "2022-08-15T09:27:14Z")

</div>

I want to use processing mith python mode, but I have a few problems. Version 4 doesn’t seem to work on windows 11. The program simply wont start. Version 3 works with java, but when I switch to python mode I get “Cann…

---

## [Processing 4 on Raspberry Pi 4B - problems with Run, Present and Compile](https://discourse.processing.org/t/processing-4-on-raspberry-pi-4b-problems-with-run-present-and-compile/38304)

<div class="topic-metadata">

**Author:** [@pbat](https://discourse.processing.org/u/pbat)\
**Replies:** 9\
**Last updated:** [August 13, 2022, 10:57pm UTC](https://discourse.processing.org/t/processing-4-on-raspberry-pi-4b-problems-with-run-present-and-compile/38304 "2022-08-13T22:57:55Z")

</div>

I have been using my Mac version of Processing to compile executables for a new Raspberry Pi 4B. They work fine though a little slowly. So I installed Processing on my Pi following the instructions on the Processing D…

---

## [Altering global variables of a processing code running via processing.js within an html page](https://discourse.processing.org/t/altering-global-variables-of-a-processing-code-running-via-processing-js-within-an-html-page/38330)

<div class="topic-metadata">

**Author:** [@anrui71](https://discourse.processing.org/u/anrui71)\
**Replies:** 0\
**Last updated:** [August 12, 2022, 8:53pm UTC](https://discourse.processing.org/t/altering-global-variables-of-a-processing-code-running-via-processing-js-within-an-html-page/38330 "2022-08-12T20:53:33Z")

</div>

Hello everyone, I am currently trying to find a way to alter the values of some global variables of a processing code running in an html page through user value input on the html page. Generally, when importing an sepa…

---

## [Extracting SVG from URI](https://discourse.processing.org/t/extracting-svg-from-uri/38335)

<div class="topic-metadata">

**Author:** [@almostsci](https://discourse.processing.org/u/almostsci)\
**Replies:** 0\
**Last updated:** [August 13, 2022, 12:56am UTC](https://discourse.processing.org/t/extracting-svg-from-uri/38335 "2022-08-13T00:56:49Z")

</div>

Hello! I have a URI sting with data:image/svg+xml;base64 format, I need to display the SVG encoded in this URI. Is there an easy way to do this in Processing? Thanks in advance

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=118)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=120)
