# Latest

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

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

**Page:** 95

---

## [How to display Microbit's orientation as a 3D model in Processing?](https://discourse.processing.org/t/how-to-display-microbits-orientation-as-a-3d-model-in-processing/40248)

<div class="topic-metadata">

**Author:** [@neospace](https://discourse.processing.org/u/neospace)\
**Replies:** 5\
**Last updated:** [December 22, 2022, 12:05am UTC](https://discourse.processing.org/t/how-to-display-microbits-orientation-as-a-3d-model-in-processing/40248 "2022-12-22T00:05:16Z")

</div>

I am working on a project with my rocketry club. I want to have a microbit control the orientation of the fins to auto-stabilize the rocket. But first, I tried to make a processing code to display in real-time my micro-b…

---

## [controlP5 slider + PeasyCam issue](https://discourse.processing.org/t/controlp5-slider-peasycam-issue/40199)

<div class="topic-metadata">

**Author:** [@hallow255win](https://discourse.processing.org/u/hallow255win)\
**Replies:** 2\
**Last updated:** [December 22, 2022, 9:07pm UTC](https://discourse.processing.org/t/controlp5-slider-peasycam-issue/40199 "2022-12-22T21:07:53Z")

</div>

When I’m using ControlP5 slider I need the mouse to drag the slider left and right, but this action also triggers the camera to rotate in PeasyCam. Is there any way to use the slider without rotating the camera?

---

## [Porting Prim’s Algorithm notebook from JavaScript to Java](https://discourse.processing.org/t/porting-prim-s-algorithm-notebook-from-javascript-to-java/26840)

<div class="topic-metadata">

**Author:** [@micycle](https://discourse.processing.org/u/micycle)\
**Replies:** 6\
**Last updated:** [December 22, 2022, 9:04pm UTC](https://discourse.processing.org/t/porting-prim-s-algorithm-notebook-from-javascript-to-java/26840 "2022-12-22T21:04:06Z")

</div>

I came across this funky color-cycling Prim’s Algorithm Observable notebook and I’m trying to port it to Processing Java. But surprise surprise it’s not working. So I’ve annotated the ported code with my interpretatio…

---

## [Help with examples from "Rapid Android Development"](https://discourse.processing.org/t/help-with-examples-from-rapid-android-development/40257)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 9\
**Last updated:** [December 22, 2022, 3:26pm UTC](https://discourse.processing.org/t/help-with-examples-from-rapid-android-development/40257 "2022-12-22T15:26:24Z")

</div>

I’m trying to run some of the sketches from “Rapid Android Development” by Daniel Sauter, one of the books recommended on the “Processing for Android” site (Processing for Android), but I’m not having much luck. I suspec…

---

## [New Install 4.1.1 - No Modes](https://discourse.processing.org/t/new-install-4-1-1-no-modes/40252)

<div class="topic-metadata">

**Author:** [@rcriley](https://discourse.processing.org/u/rcriley)\
**Replies:** 5\
**Last updated:** [December 22, 2022, 12:49pm UTC](https://discourse.processing.org/t/new-install-4-1-1-no-modes/40252 "2022-12-22T12:49:28Z")

</div>

Hello - I work in the IT Dept at a University. One of our faculty members plans to use Processing in the coming semester. I’m working to install it in a few computer labs for our students. They would also like to use th…

---

## [Reading serial data from Arduino - big delays](https://discourse.processing.org/t/reading-serial-data-from-arduino-big-delays/40229)

<div class="topic-metadata">

**Author:** [@scottbouch](https://discourse.processing.org/u/scottbouch)\
**Replies:** 3\
**Last updated:** [December 22, 2022, 10:25am UTC](https://discourse.processing.org/t/reading-serial-data-from-arduino-big-delays/40229 "2022-12-22T10:25:35Z")

</div>

Hi all first post here, and new to Processing, this is my first project. I am trying to read a stream of serial data from an Arduino board, and have it set the angle of a pointer in processing on my screen. I have foll…

---

## [Video library GStreamer Ubuntu](https://discourse.processing.org/t/video-library-gstreamer-ubuntu/40255)

<div class="topic-metadata">

**Author:** [@pointless](https://discourse.processing.org/u/pointless)\
**Replies:** 0\
**Last updated:** [December 21, 2022, 10:55pm UTC](https://discourse.processing.org/t/video-library-gstreamer-ubuntu/40255 "2022-12-21T22:55:27Z")

</div>

Hi I’m out of ideas, I’m having an issue with the video library in processing 4.1.1. On a new computer running ubuntu studio 22.04. The weird thing is, I had the exact same issue on my old laptop running ubuntu studio…

---

## [Can I self-host the p5 editor in the same computer as my browser?](https://discourse.processing.org/t/can-i-self-host-the-p5-editor-in-the-same-computer-as-my-browser/40220)

<div class="topic-metadata">

**Author:** [@proxor](https://discourse.processing.org/u/proxor)\
**Replies:** 1\
**Last updated:** [December 21, 2022, 10:30pm UTC](https://discourse.processing.org/t/can-i-self-host-the-p5-editor-in-the-same-computer-as-my-browser/40220 "2022-12-21T22:30:08Z")

</div>

Hi, I see that I can edit p5 code locally with my favorite editor, and run it locally with a local server and my browser, or edit online with the online p5 editor. I have “deployed” applets using processing.js on my web…

---

## [Animating 3D models (Quake MD2 format)](https://discourse.processing.org/t/animating-3d-models-quake-md2-format/40245)

<div class="topic-metadata">

**Author:** [@quark](https://discourse.processing.org/u/quark)\
**Replies:** 0\
**Last updated:** [December 21, 2022, 3:44pm UTC](https://discourse.processing.org/t/animating-3d-models-quake-md2-format/40245 "2022-12-21T15:44:25Z")

</div>

I have been working on a Javascript MD2 model loader and animator. These videos show the result. If you want to try the demos out yourself click here.

---

## [Rasterizing Image with grid of dice](https://discourse.processing.org/t/rasterizing-image-with-grid-of-dice/40176)

<div class="topic-metadata">

**Author:** [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Replies:** 9\
**Last updated:** [December 21, 2022, 6:01pm UTC](https://discourse.processing.org/t/rasterizing-image-with-grid-of-dice/40176 "2022-12-21T18:01:17Z")

</div>

Hi! I am trying to rasterize an image with dice connected to each pixel value, but I am running into a wall with sizing the dice appropriately. Goal: Current output: Input image: Current code: PImage img; …

---

## [Processing 4.0.2 and above giving "Cannot find a class or type named 'PApplet'" error](https://discourse.processing.org/t/processing-4-0-2-and-above-giving-cannot-find-a-class-or-type-named-papplet-error/40110)

<div class="topic-metadata">

**Author:** [@mirek](https://discourse.processing.org/u/mirek)\
**Replies:** 2\
**Last updated:** [December 21, 2022, 2:13pm UTC](https://discourse.processing.org/t/processing-4-0-2-and-above-giving-cannot-find-a-class-or-type-named-papplet-error/40110 "2022-12-21T14:13:00Z")

</div>

I’m maintaining an open-source Processing app — GitHub - FOSStriangulator/FOSStriangulator: A tool for making triangulated illustrations out of photos . It used to compile just fine with every Processing version I’ve tri…

---

## [G4P new windows. How to change the icon in'P2D Mode'?](https://discourse.processing.org/t/g4p-new-windows-how-to-change-the-icon-inp2d-mode/24535)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 5\
**Last updated:** [December 21, 2022, 1:59pm UTC](https://discourse.processing.org/t/g4p-new-windows-how-to-change-the-icon-inp2d-mode/24535 "2022-12-21T13:59:46Z")

</div>

import g4p\_controls.\*; GWindow window; import javax.swing.JFrame; import java.awt.Font; import com.jogamp.newt.opengl.GLWindow; public void setup() { size(256, 128); createWindows(); } public void draw() { bac…

---

## [Help processing GIF](https://discourse.processing.org/t/help-processing-gif/40207)

<div class="topic-metadata">

**Author:** [@polllynarium](https://discourse.processing.org/u/polllynarium)\
**Replies:** 3\
**Last updated:** [December 19, 2022, 11:45pm UTC](https://discourse.processing.org/t/help-processing-gif/40207 "2022-12-19T23:45:22Z")

</div>

Hi! It does not work to saddle the gif, the balls disappear because it is not necessary, and the radius does not decrease, I attach the code, please see what is wrong! }Preformatted text float angle; float w = 36; …

---

## [p5.Oscillator frequency not changing with the value contained in the index of an array](https://discourse.processing.org/t/p5-oscillator-frequency-not-changing-with-the-value-contained-in-the-index-of-an-array/40233)

<div class="topic-metadata">

**Author:** [@zgaus](https://discourse.processing.org/u/zgaus)\
**Replies:** 1\
**Last updated:** [December 21, 2022, 4:25am UTC](https://discourse.processing.org/t/p5-oscillator-frequency-not-changing-with-the-value-contained-in-the-index-of-an-array/40233 "2022-12-21T04:25:44Z")

</div>

Trying to convert the user input into char code/ascii code. Trying to use a for loop to continuously parse through the array containing the char code numbers 1 by 1 and use those numbers to change the oscillator frequenc…

---

## [Creating variation in grid with random(); & image](https://discourse.processing.org/t/creating-variation-in-grid-with-random-image/40135)

<div class="topic-metadata">

**Author:** [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Replies:** 27\
**Last updated:** [December 19, 2022, 7:05pm UTC](https://discourse.processing.org/t/creating-variation-in-grid-with-random-image/40135 "2022-12-19T19:05:02Z")

</div>

I’m interested in morphing the grid with randomness while also having an image interact with the grid. How do I go about designing varying cells and joining them together as a grid image? Can I use the random(); with (TR…

---

## [Error while running Processing with Maven](https://discourse.processing.org/t/error-while-running-processing-with-maven/26420)

<div class="topic-metadata">

**Author:** [@bugaj](https://discourse.processing.org/u/bugaj)\
**Replies:** 16\
**Last updated:** [December 20, 2022, 6:40pm UTC](https://discourse.processing.org/t/error-while-running-processing-with-maven/26420 "2022-12-20T18:40:35Z")

</div>

I’m trying to run an app build with maven with processing-core dependency. As far as I can tell there is problem with one of the internal dependencies in library’s POM file that prevents program from recognizing processi…

---

## [True and false keycodes for game (Quiz / true or false game)](https://discourse.processing.org/t/true-and-false-keycodes-for-game-quiz-true-or-false-game/15884)

<div class="topic-metadata">

**Author:** [@Zayba](https://discourse.processing.org/u/Zayba)\
**Replies:** 40\
**Last updated:** [December 20, 2022, 2:21pm UTC](https://discourse.processing.org/t/true-and-false-keycodes-for-game-quiz-true-or-false-game/15884 "2022-12-20T14:21:29Z")

</div>

I am a new learner in coding, and i can’t figure out how to make this true and false game work. if it is possible can someone help me with making a keycode ‘t’ for true and keycode ‘f’ for false? thanks! String myText; …

---

## [Question about android.view.Gravity](https://discourse.processing.org/t/question-about-android-view-gravity/40225)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 1\
**Last updated:** [December 20, 2022, 12:02pm UTC](https://discourse.processing.org/t/question-about-android-view-gravity/40225 "2022-12-20T12:02:11Z")

</div>

I’m trying to center some text at the top of the screen using android.view.Gravity, but it looks like it’s just getting ignored. I’m not getting any error message, either at compile time or run time, but the text is stil…

---

## [COMPARE DATAS to know if at least one data has the same value as another](https://discourse.processing.org/t/compare-datas-to-know-if-at-least-one-data-has-the-same-value-as-another/40133)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 21\
**Last updated:** [December 19, 2022, 2:38pm UTC](https://discourse.processing.org/t/compare-datas-to-know-if-at-least-one-data-has-the-same-value-as-another/40133 "2022-12-19T14:38:25Z")

</div>

Dear you :wink: I’m trying to find a way to compare two datas or more, in order to know if they has the same value. For exemple if the data TrigmodPos\[10\]=0 && TrigmodPos\[7\]=0, I would like to switch only theses datas…

---

## [Buttons and mousePressed](https://discourse.processing.org/t/buttons-and-mousepressed/40201)

<div class="topic-metadata">

**Author:** [@vrtx](https://discourse.processing.org/u/vrtx)\
**Replies:** 5\
**Last updated:** [December 19, 2022, 11:29pm UTC](https://discourse.processing.org/t/buttons-and-mousepressed/40201 "2022-12-19T23:29:18Z")

</div>

Hi, I did two kind of buttons, one is over the ET head, and link to other web page. Then i find a way to add 4 other button on the rigth side. When i click from top to bottom in each one, each of them turn into white, o…

---

## [Buttons play and pause](https://discourse.processing.org/t/buttons-play-and-pause/40215)

<div class="topic-metadata">

**Author:** [@vrtx](https://discourse.processing.org/u/vrtx)\
**Replies:** 3\
**Last updated:** [December 19, 2022, 9:55pm UTC](https://discourse.processing.org/t/buttons-play-and-pause/40215 "2022-12-19T21:55:32Z")

</div>

Hi there! I got to this point on my project. Add some buttons on right side wich play a sound/music. But i not handle how to play the button again and pause the sound. What is happening is that the sound goes playing o…

---

## [Sometimes when the bullet touch the zombie, i receive an error!](https://discourse.processing.org/t/sometimes-when-the-bullet-touch-the-zombie-i-receive-an-error/40053)

<div class="topic-metadata">

**Author:** [@C2014](https://discourse.processing.org/u/C2014)\
**Replies:** 2\
**Last updated:** [December 19, 2022, 9:14pm UTC](https://discourse.processing.org/t/sometimes-when-the-bullet-touch-the-zombie-i-receive-an-error/40053 "2022-12-19T21:14:00Z")

</div>

IndexOutOfBoundsException: Index 1 out of bounds for length 1 This is my code, if someone can help me : Enemy\[\] zombie; int maxzombie=8; //Enemy zombie,zombie2,zombie3; boolean enemyspawn=false; PImage background,gif…

---

## [Why the button which was located in a specific place in Processing is now on all the page/work?](https://discourse.processing.org/t/why-the-button-which-was-located-in-a-specific-place-in-processing-is-now-on-all-the-page-work/40170)

<div class="topic-metadata">

**Author:** [@vrtx](https://discourse.processing.org/u/vrtx)\
**Replies:** 1\
**Last updated:** [December 19, 2022, 8:57pm UTC](https://discourse.processing.org/t/why-the-button-which-was-located-in-a-specific-place-in-processing-is-now-on-all-the-page-work/40170 "2022-12-19T20:57:18Z")

</div>

i wrote a skech in Processing and it was working. I toke the soud out off the first page and add a button to play it. I working on where and how to display a sound with a new button, BUT, the thing is, why the ET head b…

---

## [Buttons how to play and pause sound/music](https://discourse.processing.org/t/buttons-how-to-play-and-pause-sound-music/40205)

<div class="topic-metadata">

**Author:** [@vrtx](https://discourse.processing.org/u/vrtx)\
**Replies:** 4\
**Last updated:** [December 19, 2022, 8:48pm UTC](https://discourse.processing.org/t/buttons-how-to-play-and-pause-sound-music/40205 "2022-12-19T20:48:43Z")

</div>

Hi there, I am building this code and i just fixed 4 button on rigth side. When clicked turns white. I Would like to make them play a sound when cliked and pause, diferent sounds for each one of them. What should i do…

---

## [SelectInput: I like to tell it the folder to use?](https://discourse.processing.org/t/selectinput-i-like-to-tell-it-the-folder-to-use/13703)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 9\
**Last updated:** [December 19, 2022, 7:47pm UTC](https://discourse.processing.org/t/selectinput-i-like-to-tell-it-the-folder-to-use/13703 "2022-12-19T19:47:13Z")

</div>

Hello all, I‘d like to tell selectInput() which folder and file extension to use: File file1= new File( sketchPath(”“) + ”\*.txt“); selectInput(”...“, ”...“, file1); Doesn’t work. It starts with the Desktop Folder ins…

---

## [Help on how to do a text chart: string and buttons (Professor Layton’s game)](https://discourse.processing.org/t/help-on-how-to-do-a-text-chart-string-and-buttons-professor-layton-s-game/40198)

<div class="topic-metadata">

**Author:** [@FaySword](https://discourse.processing.org/u/FaySword)\
**Replies:** 2\
**Last updated:** [December 19, 2022, 6:17pm UTC](https://discourse.processing.org/t/help-on-how-to-do-a-text-chart-string-and-buttons-professor-layton-s-game/40198 "2022-12-19T18:17:26Z")

</div>

Hi, I’m a begginer at processing and I have to do some kind of videogame for university. I wanted to make a text chart, with a rect, and write on it some phrases with String. I wanted to make the phrases change when you …

---

## [Processing 4 stopped play sound, audio even with the native examples](https://discourse.processing.org/t/processing-4-stopped-play-sound-audio-even-with-the-native-examples/40157)

<div class="topic-metadata">

**Author:** [@vrtx](https://discourse.processing.org/u/vrtx)\
**Replies:** 3\
**Last updated:** [December 19, 2022, 6:02pm UTC](https://discourse.processing.org/t/processing-4-stopped-play-sound-audio-even-with-the-native-examples/40157 "2022-12-19T18:02:27Z")

</div>

hello there, My Processing just stopped playing any kind off sound, eaven the ones from native exemples. All others sofwares and music, videos are plays sounds normally. Only Processing has stoped. I do not know and …

---

## [How to set warning level when compiling](https://discourse.processing.org/t/how-to-set-warning-level-when-compiling/40212)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 0\
**Last updated:** [December 19, 2022, 4:43pm UTC](https://discourse.processing.org/t/how-to-set-warning-level-when-compiling/40212 "2022-12-19T16:43:40Z")

</div>

I’m getting a warning message on my sketch, but it doesn’t say what line is getting the warning (!). Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. You can use '--warning-mo…

---

## [TRIANGLE\_FAN not behaving as expected on WEBGL?](https://discourse.processing.org/t/triangle-fan-not-behaving-as-expected-on-webgl/40180)

<div class="topic-metadata">

**Author:** [@wageDu](https://discourse.processing.org/u/wageDu)\
**Replies:** 10\
**Last updated:** [December 19, 2022, 2:57pm UTC](https://discourse.processing.org/t/triangle-fan-not-behaving-as-expected-on-webgl/40180 "2022-12-19T14:57:19Z")

</div>

Hi all, I just noticed that when trying to draw a Triangle Fan on WEBGL, I don’t get the expected behavior ie. ALL lines stroked. On WEBGL only the outlines + last radial line (point1 to center) appear stroked, while a…

---

## [Processing 4 Core Maven Artifact](https://discourse.processing.org/t/processing-4-core-maven-artifact/27334)

<div class="topic-metadata">

**Author:** [@micycle](https://discourse.processing.org/u/micycle)\
**Replies:** 12\
**Last updated:** [December 19, 2022, 2:38pm UTC](https://discourse.processing.org/t/processing-4-core-maven-artifact/27334 "2022-12-19T14:38:41Z")

</div>

I’ve set up a Github repo that hosts Processing 4’s core library as a Maven dependency/artifact via JitPack. Now you can easily use the newer Processing core in a Maven project (the last version on mvnrepository.com is …

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

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