# Latest

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

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

**Page:** 140

---

## [Issues with Game Control Plus/Processing & Arduino](https://discourse.processing.org/t/issues-with-game-control-plus-processing-arduino/36691)

<div class="topic-metadata">

**Author:** [@Dewski](https://discourse.processing.org/u/Dewski)\
**Replies:** 3\
**Last updated:** [May 3, 2022, 5:16pm UTC](https://discourse.processing.org/t/issues-with-game-control-plus-processing-arduino/36691 "2022-05-03T17:16:44Z")

</div>

Hello, Newbie to Processing, and coding in general here. I am working on a project to control a 12v motor from a button on a sim racing steering wheel. The motor will be powered off most of the time, but I want it to …

---

## [Translating and scaling for better zoom](https://discourse.processing.org/t/translating-and-scaling-for-better-zoom/36689)

<div class="topic-metadata">

**Author:** [@Ckyiu](https://discourse.processing.org/u/Ckyiu)\
**Replies:** 3\
**Last updated:** [May 3, 2022, 2:51pm UTC](https://discourse.processing.org/t/translating-and-scaling-for-better-zoom/36689 "2022-05-03T14:51:49Z")

</div>

In this project I’m working on, I’ve implemented panning and zooming around. Panning works great, and the zoom works, but it’s unnatural, as it zooms in on the origin instead of where your mouse cursor is. I’ve created …

---

## [Modify elements in a for loop separately using PGraphics](https://discourse.processing.org/t/modify-elements-in-a-for-loop-separately-using-pgraphics/36636)

<div class="topic-metadata">

**Author:** [@belen.s](https://discourse.processing.org/u/belen.s)\
**Replies:** 1\
**Last updated:** [May 3, 2022, 10:57am UTC](https://discourse.processing.org/t/modify-elements-in-a-for-loop-separately-using-pgraphics/36636 "2022-05-03T10:57:15Z")

</div>

Hello!! I have made a figure with a for loop inside a class, and I want to make each element made in the loop have different colors. Here is my code. Any help would be great… float x; float y; Madre c; //MadreLider d; …

---

## [LoadShape() not working correctly](https://discourse.processing.org/t/loadshape-not-working-correctly/36681)

<div class="topic-metadata">

**Author:** [@Alpaib](https://discourse.processing.org/u/Alpaib)\
**Replies:** 1\
**Last updated:** [May 2, 2022, 5:17pm UTC](https://discourse.processing.org/t/loadshape-not-working-correctly/36681 "2022-05-02T17:17:15Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hello everyone, First of all, I am new using processing. I am just trying to see a 3D model in the screen using loadShape(); I used blender to…

---

## [The library "Test" cannot be used because it contains the processing.core libraries](https://discourse.processing.org/t/the-library-test-cannot-be-used-because-it-contains-the-processing-core-libraries/36669)

<div class="topic-metadata">

**Author:** [@Misha.studio](https://discourse.processing.org/u/Misha.studio)\
**Replies:** 4\
**Last updated:** [May 2, 2022, 5:33am UTC](https://discourse.processing.org/t/the-library-test-cannot-be-used-because-it-contains-the-processing-core-libraries/36669 "2022-05-02T05:33:35Z")

</div>

Hi there! Over the years I’ve created a lot of helper functions that I constantly copy between projects. This doesn’t feel very bullet proof of course so I wanted to merge all those functions inside a java library. Pro…

---

## [Seeking information about applying in GSOD'22](https://discourse.processing.org/t/seeking-information-about-applying-in-gsod22/36678)

<div class="topic-metadata">

**Author:** [@mhmohona](https://discourse.processing.org/u/mhmohona)\
**Replies:** 1\
**Last updated:** [May 2, 2022, 10:25am UTC](https://discourse.processing.org/t/seeking-information-about-applying-in-gsod22/36678 "2022-05-02T10:25:47Z")

</div>

Hello, I have come through the Season of Docs 2022 Organization Application p5.js and I am interested in applying for it. But in the wiki page there is no contact information or instruction about how I shall submit my ap…

---

## [Processing.sound SoundFile in Android](https://discourse.processing.org/t/processing-sound-soundfile-in-android/36625)

<div class="topic-metadata">

**Author:** [@JamesLEE](https://discourse.processing.org/u/JamesLEE)\
**Replies:** 1\
**Last updated:** [May 1, 2022, 11:30pm UTC](https://discourse.processing.org/t/processing-sound-soundfile-in-android/36625 "2022-05-01T23:30:43Z")

</div>

Hello Guys I am very new both processing and android. I would use an example “beat detection” using processing.sound in android. I want to vibrate my phone when beat is detected as shown below code. Can anyone help m…

---

## [Is there a text to speech for Android?](https://discourse.processing.org/t/is-there-a-text-to-speech-for-android/26777)

<div class="topic-metadata">

**Author:** [@Rogo](https://discourse.processing.org/u/Rogo)\
**Replies:** 22\
**Last updated:** [May 1, 2022, 10:24pm UTC](https://discourse.processing.org/t/is-there-a-text-to-speech-for-android/26777 "2022-05-01T22:24:54Z")

</div>

is there a text to speech for Android?

---

## [P5.js to GCODE: canvas drawing calls](https://discourse.processing.org/t/p5-js-to-gcode-canvas-drawing-calls/22969)

<div class="topic-metadata">

**Author:** [@emnullfuenf](https://discourse.processing.org/u/emnullfuenf)\
**Replies:** 7\
**Last updated:** [May 1, 2022, 9:31am UTC](https://discourse.processing.org/t/p5-js-to-gcode-canvas-drawing-calls/22969 "2022-05-01T09:31:49Z")

</div>

Hello all, i would like to write a library that translates p5’s drawing calls of shape primitives and text to GCODE for plotters. Is there maybe a simpler way to hook p5’s drawing calls than extending p5.Renderer2D.js? …

---

## [GSOC 22 Proposal - Internalization improvements](https://discourse.processing.org/t/gsoc-22-proposal-internalization-improvements/36287)

<div class="topic-metadata">

**Author:** [@javiert01](https://discourse.processing.org/u/javiert01)\
**Replies:** 5\
**Last updated:** [April 28, 2022, 3:26am UTC](https://discourse.processing.org/t/gsoc-22-proposal-internalization-improvements/36287 "2022-04-28T03:26:28Z")

</div>

Greetings to everyone in the Processing community I would love to participate in this year’s GSOC and I thought of improving the internalization a bit further. We all know that functions, methods and constants for p5.j…

---

## [Using Thai in the program](https://discourse.processing.org/t/using-thai-in-the-program/36595)

<div class="topic-metadata">

**Author:** [@sys10m](https://discourse.processing.org/u/sys10m)\
**Replies:** 1\
**Last updated:** [May 1, 2022, 2:12am UTC](https://discourse.processing.org/t/using-thai-in-the-program/36595 "2022-05-01T02:12:27Z")

</div>

I am currently working on a super short program which just takes a one word string input (in Thai) and then pass on the python program which has been written. I have a problem with dealing with Thai text. everything from…

---

## [Change background color when mousePressed](https://discourse.processing.org/t/change-background-color-when-mousepressed/36660)

<div class="topic-metadata">

**Author:** [@luciaromancanivell](https://discourse.processing.org/u/luciaromancanivell)\
**Replies:** 1\
**Last updated:** [April 30, 2022, 7:48pm UTC](https://discourse.processing.org/t/change-background-color-when-mousepressed/36660 "2022-04-30T19:48:11Z")

</div>

Hello, I am trying to make the background change when pressing each circle here, but I cannot get it to work, it is always white, any help? The circles are supposed to grow and be black when rolling over and the backgrou…

---

## [Arrange images in the order they are clicked in](https://discourse.processing.org/t/arrange-images-in-the-order-they-are-clicked-in/36653)

<div class="topic-metadata">

**Author:** [@snakey](https://discourse.processing.org/u/snakey)\
**Replies:** 3\
**Last updated:** [April 30, 2022, 10:26am UTC](https://discourse.processing.org/t/arrange-images-in-the-order-they-are-clicked-in/36653 "2022-04-30T10:26:50Z")

</div>

Hi! I’m a beginner and need help with this small project. Right now I have a row of images (really just coloured boxes). When I click an image, it moves to a new location above the “collection point”. However, each imag…

---

## [Working with 48bit image formats. How to load, process, save?](https://discourse.processing.org/t/working-with-48bit-image-formats-how-to-load-process-save/36652)

<div class="topic-metadata">

**Author:** [@phillipstearns](https://discourse.processing.org/u/phillipstearns)\
**Replies:** 2\
**Last updated:** [April 30, 2022, 2:21am UTC](https://discourse.processing.org/t/working-with-48bit-image-formats-how-to-load-process-save/36652 "2022-04-30T02:21:46Z")

</div>

I’m working on a project where I’ve been asked to work with 48bit (16bits per channel RGB) .PNG files. I’ll need to open, read and manipulate pixel data, and save to 48bit .PNG. Is this possible with Processing 4?

---

## [I have several issues with my else if and if structures](https://discourse.processing.org/t/i-have-several-issues-with-my-else-if-and-if-structures/36650)

<div class="topic-metadata">

**Author:** [@nalk](https://discourse.processing.org/u/nalk)\
**Replies:** 2\
**Last updated:** [April 29, 2022, 11:06pm UTC](https://discourse.processing.org/t/i-have-several-issues-with-my-else-if-and-if-structures/36650 "2022-04-29T23:06:17Z")

</div>

My mousePressed if else structure seems to be skipping some “estado” and not working at all int estado = 0; // Establezco las imagenes que van a usarse. PImage img0, img1, img2, img3, img4, img5, img6; // Establezco …

---

## [Having stroke highlight quad edges in 3D .obj?](https://discourse.processing.org/t/having-stroke-highlight-quad-edges-in-3d-obj/36648)

<div class="topic-metadata">

**Author:** [@BandelierTapes](https://discourse.processing.org/u/BandelierTapes)\
**Replies:** 2\
**Last updated:** [April 29, 2022, 8:36pm UTC](https://discourse.processing.org/t/having-stroke-highlight-quad-edges-in-3d-obj/36648 "2022-04-29T20:36:00Z")

</div>

Hello there! I’m working on a project to display some simple geometries on a canvas. I have a 3D hexagonal prism I’ve made in Blender and I’d like to pretty it up a bit… The left side of the image is how the hexagon …

---

## [Use Mouse-funktions in classes](https://discourse.processing.org/t/use-mouse-funktions-in-classes/29673)

<div class="topic-metadata">

**Author:** [@TimeLex](https://discourse.processing.org/u/TimeLex)\
**Replies:** 7\
**Last updated:** [April 29, 2022, 5:09pm UTC](https://discourse.processing.org/t/use-mouse-funktions-in-classes/29673 "2022-04-29T17:09:11Z")

</div>

I want to write a class that is able to use Mouse-funktions like mousePressed() but the funktion is not triggered in a class: myClass c; void setup() { size(500, 500); c = new myClass(); } void draw() { c.upd…

---

## [Creating a static variable from a non-static method (like color())](https://discourse.processing.org/t/creating-a-static-variable-from-a-non-static-method-like-color/36641)

<div class="topic-metadata">

**Author:** [@GuyInFridge](https://discourse.processing.org/u/GuyInFridge)\
**Replies:** 6\
**Last updated:** [April 29, 2022, 4:02pm UTC](https://discourse.processing.org/t/creating-a-static-variable-from-a-non-static-method-like-color/36641 "2022-04-29T16:02:15Z")

</div>

I would like to create a class which has a static field “c\_DEFAULT” that stores a default color for all objects of that class. The problem is that I can’t do the following: static final color c\_DEFAULT = color(175); //…

---

## [Arduino Firmata wont register Arduino](https://discourse.processing.org/t/arduino-firmata-wont-register-arduino/31358)

<div class="topic-metadata">

**Author:** [@TitanNikola](https://discourse.processing.org/u/TitanNikola)\
**Replies:** 24\
**Last updated:** [April 29, 2022, 3:06pm UTC](https://discourse.processing.org/t/arduino-firmata-wont-register-arduino/31358 "2022-04-29T15:06:21Z")

</div>

Hello, I’m actually not very experienced with coding but my friend who wrote this is out of town and i was hoping i could find a solution soon. So the basic part of the issue is that this code has always been problemati…

---

## [Cannot find a class or type named "Box"](https://discourse.processing.org/t/cannot-find-a-class-or-type-named-box/36587)

<div class="topic-metadata">

**Author:** [@jiajia](https://discourse.processing.org/u/jiajia)\
**Replies:** 4\
**Last updated:** [April 29, 2022, 2:20pm UTC](https://discourse.processing.org/t/cannot-find-a-class-or-type-named-box/36587 "2022-04-29T14:20:49Z")

</div>

import shiffman.box2d.\*; ArrayList\<Box\>boxes; PBox2D box2d; void setup(){ size(400,300); boxes = new ArrayList\<Box\>(); box2d = new PBox2D(this); box2d.createWorld(); } void draw(){ box2d.step(); background…

---

## [Is it possible to 'offset' an object, e.g concentric circles?](https://discourse.processing.org/t/is-it-possible-to-offset-an-object-e-g-concentric-circles/36586)

<div class="topic-metadata">

**Author:** [@GoodJuJu](https://discourse.processing.org/u/GoodJuJu)\
**Replies:** 2\
**Last updated:** [April 29, 2022, 1:18pm UTC](https://discourse.processing.org/t/is-it-possible-to-offset-an-object-e-g-concentric-circles/36586 "2022-04-29T13:18:49Z")

</div>

In AutoCAD, there is a command to ‘offset’ an object. You select the object (line, circle, rectangle, arc etc.), specify either a positive or a negative value and the object will be ‘offset’ according to the entered val…

---

## [Does Processing have a system random type](https://discourse.processing.org/t/does-processing-have-a-system-random-type/36642)

<div class="topic-metadata">

**Author:** [@AntiViral\_Builder](https://discourse.processing.org/u/AntiViral_Builder)\
**Replies:** 3\
**Last updated:** [April 29, 2022, 8:15am UTC](https://discourse.processing.org/t/does-processing-have-a-system-random-type/36642 "2022-04-29T08:15:36Z")

</div>

Is there anything that is secure enough to generate encryption codes?

---

## [Processing and leapmotion](https://discourse.processing.org/t/processing-and-leapmotion/36643)

<div class="topic-metadata">

**Author:** [@Parinaz](https://discourse.processing.org/u/Parinaz)\
**Replies:** 0\
**Last updated:** [April 28, 2022, 11:30pm UTC](https://discourse.processing.org/t/processing-and-leapmotion/36643 "2022-04-28T23:30:37Z")

</div>

Dear I want to attach leap motion to my code and replace the function of mouse with the leap ,however I couldn’t.May I kindly ask you to help me This is my code without leap motion: google drive link : my problem thr…

---

## [PGraphics freezing when rendering to second PGraphics](https://discourse.processing.org/t/pgraphics-freezing-when-rendering-to-second-pgraphics/36616)

<div class="topic-metadata">

**Author:** [@lack\_ofa\_better\_name](https://discourse.processing.org/u/lack_ofa_better_name)\
**Replies:** 1\
**Last updated:** [April 26, 2022, 10:58pm UTC](https://discourse.processing.org/t/pgraphics-freezing-when-rendering-to-second-pgraphics/36616 "2022-04-26T22:58:29Z")

</div>

I have a piece of code that requires two offscreen buffers. When i draw the first buffer into the second one with image(), the first buffer “freezes”. I draw both graphics to the window in main, void draw() { updateB…

---

## [Function KeyTyped () and draw function](https://discourse.processing.org/t/function-keytyped-and-draw-function/36633)

<div class="topic-metadata">

**Author:** [@JessJess](https://discourse.processing.org/u/JessJess)\
**Replies:** 1\
**Last updated:** [April 28, 2022, 7:16pm UTC](https://discourse.processing.org/t/function-keytyped-and-draw-function/36633 "2022-04-28T19:16:17Z")

</div>

Hi, I want to create a code where when I click a key on the keyboard it will play music and draw a rectangle. I have managed to add music using the keyTyped() function but I am not sure how to add a rectangle to the canv…

---

## [Fullscreen() choice of return values](https://discourse.processing.org/t/fullscreen-choice-of-return-values/36618)

<div class="topic-metadata">

**Author:** [@fabiopettinati](https://discourse.processing.org/u/fabiopettinati)\
**Replies:** 4\
**Last updated:** [April 28, 2022, 5:53pm UTC](https://discourse.processing.org/t/fullscreen-choice-of-return-values/36618 "2022-04-28T17:53:58Z")

</div>

I was playing with fullscreen() in p5.js and the prototypical way of toggling state in the reference: let fs = fullscreen(); fullscreen(!fs); The values returned for fs depend on the state: Windowed mode… undefined F…

---

## [Circles with polar coordinates](https://discourse.processing.org/t/circles-with-polar-coordinates/36593)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 13\
**Last updated:** [April 28, 2022, 8:51am UTC](https://discourse.processing.org/t/circles-with-polar-coordinates/36593 "2022-04-28T08:51:40Z")

</div>

Hi there! I am really interested on Katharina Brunner’s work with circles made with thousand of points. I have read that she made them using a polar coordinate system. I think that she has a package to create them with R…

---

## [Why cannot find a class or type named "Box"](https://discourse.processing.org/t/why-cannot-find-a-class-or-type-named-box/36596)

<div class="topic-metadata">

**Author:** [@jiajia](https://discourse.processing.org/u/jiajia)\
**Replies:** 1\
**Last updated:** [April 28, 2022, 4:23am UTC](https://discourse.processing.org/t/why-cannot-find-a-class-or-type-named-box/36596 "2022-04-28T04:23:59Z")

</div>

import shiffman.box2d.\*; ArrayList\<Box\>boxes; PBox2D box2d; void setup(){ size(400,300); boxes = new ArrayList\<Box\>(); box2d = new PBox2D(this); box2d.createWorld(); } void draw(){ box2d.step(); background…

---

## [Use "Ctrl+A" After Run](https://discourse.processing.org/t/use-ctrl-a-after-run/36627)

<div class="topic-metadata">

**Author:** [@king\_B99](https://discourse.processing.org/u/king_B99)\
**Replies:** 1\
**Last updated:** [April 27, 2022, 7:34pm UTC](https://discourse.processing.org/t/use-ctrl-a-after-run/36627 "2022-04-27T19:34:31Z")

</div>

How can I use Ctrl+A to highlight everything in my code String typing = “”; void setup() { textSize(16); fill(#12F9FF); size(700, 900); } void draw() { background(255, 255, 255); text(typing, 20, 20); } void k…

---

## [How to contribute a new library for Processing 4?](https://discourse.processing.org/t/how-to-contribute-a-new-library-for-processing-4/36617)

<div class="topic-metadata">

**Author:** [@GuilhermeSilveira](https://discourse.processing.org/u/GuilhermeSilveira)\
**Replies:** 3\
**Last updated:** [April 27, 2022, 3:56pm UTC](https://discourse.processing.org/t/how-to-contribute-a-new-library-for-processing-4/36617 "2022-04-27T15:56:06Z")

</div>

I have extracted a library with support for easy timed events suchs as, “invoke hello every 1 second, 10 times”. void setup() { new Timers(this).add(1000, 10, this::hello); } void hello(int k) { println("Hello " + k)…

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

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