# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?page=84

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

**Page:** 85

---

## [Visual artefact issues with shapes with stroke() versus filled shapes](https://discourse.processing.org/t/visual-artefact-issues-with-shapes-with-stroke-versus-filled-shapes/36382)

<div class="topic-metadata">

**Author:** [@Misha.studio](https://discourse.processing.org/u/Misha.studio)\
**Replies:** 0\
**Last updated:** [April 16, 2022, 6:59pm UTC](https://discourse.processing.org/t/visual-artefact-issues-with-shapes-with-stroke-versus-filled-shapes/36382 "2022-04-16T18:59:35Z")

</div>

Hi! I’m working on a generative type project based on the Mexico Olympic type. When rendering my letters with strokes I find some visual artefacts - things simply don’t seem to align properly. When exported to .pdf or wh…

---

## ["Noise colored TV" style?](https://discourse.processing.org/t/noise-colored-tv-style/36359)

<div class="topic-metadata">

**Author:** [@Lorangeverte](https://discourse.processing.org/u/Lorangeverte)\
**Replies:** 5\
**Last updated:** [April 16, 2022, 1:51pm UTC](https://discourse.processing.org/t/noise-colored-tv-style/36359 "2022-04-16T13:51:57Z")

</div>

Hello all, newbie on Processing, I check this code on the web and I would to know how could I make a “random colored noise as TV style” ? Not just black an white pixels, but random colored pixels. import com.hamoid.\*; …

---

## [How to make two joysticks on a phone](https://discourse.processing.org/t/how-to-make-two-joysticks-on-a-phone/36374)

<div class="topic-metadata">

**Author:** [@urlxd](https://discourse.processing.org/u/urlxd)\
**Replies:** 0\
**Last updated:** [April 16, 2022, 9:33am UTC](https://discourse.processing.org/t/how-to-make-two-joysticks-on-a-phone/36374 "2022-04-16T09:33:29Z")

</div>

when I make two joysticks mouse X and Y need to be divided into 4 parts. If anyone knows how please tell me. code: Player player = new Player(100, 100); InterFace face; int mapWidth = 2000; int mapHeight = 2000; i…

---

## [Adding parameter of motion to FollowMe Program](https://discourse.processing.org/t/adding-parameter-of-motion-to-followme-program/36373)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 0\
**Last updated:** [April 16, 2022, 9:22am UTC](https://discourse.processing.org/t/adding-parameter-of-motion-to-followme-program/36373 "2022-04-16T09:22:47Z")

</div>

Hi Hi, I would like to transform this program so that the movement created with the mouse can be followed but slower than in reality. I would like to have this movement in slow motion, i.e. if I make some sort of circl…

---

## [Changes to contributed libraries](https://discourse.processing.org/t/changes-to-contributed-libraries/36350)

<div class="topic-metadata">

**Author:** [@haschdl](https://discourse.processing.org/u/haschdl)\
**Replies:** 0\
**Last updated:** [April 15, 2022, 11:53am UTC](https://discourse.processing.org/t/changes-to-contributed-libraries/36350 "2022-04-15T11:53:11Z")

</div>

I’m the author of a contributed library and a major refactoring in the latest update meant also that my library was renamed. I reaching out to confirm if the current way to get in touch is by contacting the Processing li…

---

## [Strategies for metadata management](https://discourse.processing.org/t/strategies-for-metadata-management/35769)

<div class="topic-metadata">

**Author:** [@haschdl](https://discourse.processing.org/u/haschdl)\
**Replies:** 5\
**Last updated:** [April 16, 2022, 10:50am UTC](https://discourse.processing.org/t/strategies-for-metadata-management/35769 "2022-04-16T10:50:56Z")

</div>

I have probably hundreds of Processing sketches, and most of them use save() to export images. Along the years I have relied on using the filename and sometimes a “watermark” on the image itself to keep track of some of…

---

## [Change background colour with a map](https://discourse.processing.org/t/change-background-colour-with-a-map/36370)

<div class="topic-metadata">

**Author:** [@hannymymy](https://discourse.processing.org/u/hannymymy)\
**Replies:** 4\
**Last updated:** [April 16, 2022, 10:46am UTC](https://discourse.processing.org/t/change-background-colour-with-a-map/36370 "2022-04-16T10:46:33Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi everyone! I have a code where the abckground color right now changes ray values when I move my mouse. I want it to change in colour though, …

---

## [MIDI(TheMidiBus) + Variable Fonts](https://discourse.processing.org/t/midi-themidibus-variable-fonts/36335)

<div class="topic-metadata">

**Author:** [@Giaco](https://discourse.processing.org/u/Giaco)\
**Replies:** 3\
**Last updated:** [April 15, 2022, 12:08pm UTC](https://discourse.processing.org/t/midi-themidibus-variable-fonts/36335 "2022-04-15T12:08:52Z")

</div>

Hello everyone, I’m a type design student and for my diploma project I’m looking into possibilities of combining processing with variable fonts. In this specific case, I’m working with the interaction between sound (MID…

---

## [Why Always report errors](https://discourse.processing.org/t/why-always-report-errors/36342)

<div class="topic-metadata">

**Author:** [@jiajia](https://discourse.processing.org/u/jiajia)\
**Replies:** 2\
**Last updated:** [April 15, 2022, 11:05am UTC](https://discourse.processing.org/t/why-always-report-errors/36342 "2022-04-15T11:05:01Z")

</div>

please format code with \</\> button \* homework policy \* asking questions \</\>Mover movers = new Mover\[100\]; 液体; void setup（）{ size（640，320）; smooth（）; for（int i =0;i\<movers.length;i++）{ movers\[i\] = new Mover（rand…

---

## [Method to 'fill' a non rectangular shape with a pattern](https://discourse.processing.org/t/method-to-fill-a-non-rectangular-shape-with-a-pattern/35946)

<div class="topic-metadata">

**Author:** [@GoodJuJu](https://discourse.processing.org/u/GoodJuJu)\
**Replies:** 2\
**Last updated:** [April 14, 2022, 7:32pm UTC](https://discourse.processing.org/t/method-to-fill-a-non-rectangular-shape-with-a-pattern/35946 "2022-04-14T19:32:45Z")

</div>

I want to fill a non-rectangular shape with a pattern. Filling a rectangular shape is not a problem… all I need to do is to find the top left, bottom right coordinates and then not exceed them in my loop placing the pat…

---

## [This is the third chapter of the book "The Nature of Code" about friction and resistance, I don't know what the problem is, as a beginner this is my first problem I can't solve, so I ask you for help.THANKS！](https://discourse.processing.org/t/this-is-the-third-chapter-of-the-book-the-nature-of-code-about-friction-and-resistance-i-dont-know-what-the-problem-is-as-a-beginner-this-is-my-first-problem-i-cant-solve-so-i-ask-you-for-help-thanks/36331)

<div class="topic-metadata">

**Author:** [@jiajia](https://discourse.processing.org/u/jiajia)\
**Replies:** 1\
**Last updated:** [April 14, 2022, 10:10am UTC](https://discourse.processing.org/t/this-is-the-third-chapter-of-the-book-the-nature-of-code-about-friction-and-resistance-i-dont-know-what-the-problem-is-as-a-beginner-this-is-my-first-problem-i-cant-solve-so-i-ask-you-for-help-thanks/36331 "2022-04-14T10:10:05Z")

</div>

please format code with \</\> button \* homework policy \* asking questions 这是《The Nature of Code》书中第三章关于摩擦力与阻力的作业，我不知道哪里有问题，作为初学者这是我的第一个问题我没有办法去解决所以在这里求助大家。谢谢大家！ Mover movers = new Mover\[100\]; Liquid liquid; void…

---

## [StringList : sort by custom algorithm](https://discourse.processing.org/t/stringlist-sort-by-custom-algorithm/36312)

<div class="topic-metadata">

**Author:** [@f.damien12](https://discourse.processing.org/u/f.damien12)\
**Replies:** 4\
**Last updated:** [April 14, 2022, 7:45am UTC](https://discourse.processing.org/t/stringlist-sort-by-custom-algorithm/36312 "2022-04-14T07:45:21Z")

</div>

Hello In my sketch, a StringList stores some paths to files. I want to sort this StringList not by alphabetical order, but by file modification date. Is there a way to implement a custom sort algorithm ? Thanks.

---

## [Time as float values](https://discourse.processing.org/t/time-as-float-values/36327)

<div class="topic-metadata">

**Author:** [@arcadeperfect](https://discourse.processing.org/u/arcadeperfect)\
**Replies:** 3\
**Last updated:** [April 14, 2022, 6:45am UTC](https://discourse.processing.org/t/time-as-float-values/36327 "2022-04-14T06:45:46Z")

</div>

hello! I’m making an ‘analog’ clock, but I want the hands of the clock to move smoothly between values, rather than snapping to the int values returned by hour(), minute(), and second() I know I could implement somethi…

---

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

<div class="topic-metadata">

**Author:** [@Leonid](https://discourse.processing.org/u/Leonid)\
**Replies:** 11\
**Last updated:** [April 14, 2022, 5:22am UTC](https://discourse.processing.org/t/processing-arduino/36295 "2022-04-14T05:22:04Z")

</div>

Hello everyone Please help. I connected processing and arduino. Sending some data from arduno for processing. Everything seems to be in order. But. At the same time, I want to activate the LED (for example) on the ardu…

---

## [Pixel sorting an image with mouseMoved()](https://discourse.processing.org/t/pixel-sorting-an-image-with-mousemoved/36159)

<div class="topic-metadata">

**Author:** [@240garage](https://discourse.processing.org/u/240garage)\
**Replies:** 5\
**Last updated:** [April 13, 2022, 11:12pm UTC](https://discourse.processing.org/t/pixel-sorting-an-image-with-mousemoved/36159 "2022-04-13T23:12:21Z")

</div>

I am new to Processing and I found this code on the internet to pixel sort images. Now what I want to do is change the int brightnessValue when I move my mouse across the screen. The value needs to go from 240 to 0. How …

---

## [Increment within class](https://discourse.processing.org/t/increment-within-class/36261)

<div class="topic-metadata">

**Author:** [@Whell](https://discourse.processing.org/u/Whell)\
**Replies:** 5\
**Last updated:** [April 13, 2022, 11:40am UTC](https://discourse.processing.org/t/increment-within-class/36261 "2022-04-13T11:40:18Z")

</div>

Hi, i’m trying to draw a button as an exercise, with hover effect, this button i’m doing have a dot close to each corner of the button, on the outside and this dot is supposed to animate entering the button, the problem …

---

## [Getting Messages from Telegram API](https://discourse.processing.org/t/getting-messages-from-telegram-api/36315)

<div class="topic-metadata">

**Author:** [@ivanlucas](https://discourse.processing.org/u/ivanlucas)\
**Replies:** 0\
**Last updated:** [April 13, 2022, 11:37am UTC](https://discourse.processing.org/t/getting-messages-from-telegram-api/36315 "2022-04-13T11:37:48Z")

</div>

Good day to you community! I want to build an interface that display text and audio messages received in a certain Telegram account. Did anyone already work with Telegram API? How could I get text and audio messages in…

---

## [Reading a register value from PLC](https://discourse.processing.org/t/reading-a-register-value-from-plc/36303)

<div class="topic-metadata">

**Author:** [@herdal](https://discourse.processing.org/u/herdal)\
**Replies:** 4\
**Last updated:** [April 13, 2022, 9:40am UTC](https://discourse.processing.org/t/reading-a-register-value-from-plc/36303 "2022-04-13T09:40:46Z")

</div>

Hi , I am conducting a study on reading PLC variables remotely for data processing. I am looking for a way to read register data from a PLC by examining Server and Client examples. How can I read a variable without mak…

---

## [Coordinate ranges from CreateShape (customized shape)](https://discourse.processing.org/t/coordinate-ranges-from-createshape-customized-shape/36306)

<div class="topic-metadata">

**Author:** [@DianaG](https://discourse.processing.org/u/DianaG)\
**Replies:** 1\
**Last updated:** [April 12, 2022, 9:33pm UTC](https://discourse.processing.org/t/coordinate-ranges-from-createshape-customized-shape/36306 "2022-04-12T21:33:10Z")

</div>

Hello Everyone, I am trying to recreate a basic poster with some randomness on the triangles and arcs (on key pressed). The range in which the shapes can move is the full length of the screen’s width and height/2. Howe…

---

## [Sketch seems laggy on primary display but not on secondary one](https://discourse.processing.org/t/sketch-seems-laggy-on-primary-display-but-not-on-secondary-one/35623)

<div class="topic-metadata">

**Author:** [@nicolaskellum](https://discourse.processing.org/u/nicolaskellum)\
**Replies:** 6\
**Last updated:** [April 12, 2022, 8:54pm UTC](https://discourse.processing.org/t/sketch-seems-laggy-on-primary-display-but-not-on-secondary-one/35623 "2022-04-12T20:54:50Z")

</div>

This is something I’ve noticed recently while working on a game with Processing. I plug in my second monitor (1440p) and run my sketch at full screen and it’s smooth, no problem. I try to run the same program on my prim…

---

## [Reset by pressing key](https://discourse.processing.org/t/reset-by-pressing-key/35953)

<div class="topic-metadata">

**Author:** [@DomH](https://discourse.processing.org/u/DomH)\
**Replies:** 2\
**Last updated:** [April 12, 2022, 3:30pm UTC](https://discourse.processing.org/t/reset-by-pressing-key/35953 "2022-04-12T15:30:38Z")

</div>

Hello, I am trying to reset my canvas if pressing a key but cannot get it to work. Any ideas? int boxsize = 80; int cols, rows; ArrayList\<Box\> boxes = new ArrayList\<Box\>(); Box active; public enum Shape { TRIANGLE, …

---

## [How to load the PNG spritesheet properly? (Processing 3.5.4)](https://discourse.processing.org/t/how-to-load-the-png-spritesheet-properly-processing-3-5-4/35190)

<div class="topic-metadata">

**Author:** [@RafaDuarte](https://discourse.processing.org/u/RafaDuarte)\
**Replies:** 3\
**Last updated:** [April 12, 2022, 2:47pm UTC](https://discourse.processing.org/t/how-to-load-the-png-spritesheet-properly-processing-3-5-4/35190 "2022-04-12T14:47:20Z")

</div>

I have been coding a simple 2D game in Processing 3.5.4 for university purposes, however I’m stuck in the part in which I should make the PNG spritesheet load in screen with all its colours and moves. What I see when I r…

---

## [Exported Processing4 to Windows Error](https://discourse.processing.org/t/exported-processing4-to-windows-error/36298)

<div class="topic-metadata">

**Author:** [@abrawhite](https://discourse.processing.org/u/abrawhite)\
**Replies:** 0\
**Last updated:** [April 12, 2022, 12:20pm UTC](https://discourse.processing.org/t/exported-processing4-to-windows-error/36298 "2022-04-12T12:20:27Z")

</div>

I have a processing 4 app that I built and exported to Windows .exe file. When I run it I’m getting an error saying I need JavaRuntime Environment 17. I was under the impression JRE is at version 8 and JDK is at version…

---

## [Find new Destination Point (rotate PVector)](https://discourse.processing.org/t/find-new-destination-point-rotate-pvector/22585)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 4\
**Last updated:** [April 12, 2022, 8:37am UTC](https://discourse.processing.org/t/find-new-destination-point-rotate-pvector/22585 "2022-04-12T08:37:10Z")

</div>

Hi everyone. I ve this silly problem that i cant figure out. Im creating an object that has an origin point and destination point. When i create a new object, i swap the coordinate and the destination vector is now the…

---

## [Java Processing find matching text in a table and get the value from next to it](https://discourse.processing.org/t/java-processing-find-matching-text-in-a-table-and-get-the-value-from-next-to-it/36268)

<div class="topic-metadata">

**Author:** [@oZeppy](https://discourse.processing.org/u/oZeppy)\
**Replies:** 2\
**Last updated:** [April 11, 2022, 2:44pm UTC](https://discourse.processing.org/t/java-processing-find-matching-text-in-a-table-and-get-the-value-from-next-to-it/36268 "2022-04-11T14:44:56Z")

</div>

I have a table and am trying to find a specific string within it, once found I’m trying to get a string from next to it. How would I go about doing that?

---

## [Get value from specific column in last row](https://discourse.processing.org/t/get-value-from-specific-column-in-last-row/36250)

<div class="topic-metadata">

**Author:** [@oZeppy](https://discourse.processing.org/u/oZeppy)\
**Replies:** 5\
**Last updated:** [April 11, 2022, 10:23am UTC](https://discourse.processing.org/t/get-value-from-specific-column-in-last-row/36250 "2022-04-11T10:23:42Z")

</div>

Hi. I’m trying to find the last value in a column and print it. I’ve tried table.getRowCount.getString but can’t get it to work, it says getRowCount doesn’t exist. Sorry if this is very basic.

---

## [How would I make a point and click shooter game in processing?](https://discourse.processing.org/t/how-would-i-make-a-point-and-click-shooter-game-in-processing/36204)

<div class="topic-metadata">

**Author:** [@RyanLovesPlanes](https://discourse.processing.org/u/RyanLovesPlanes)\
**Replies:** 4\
**Last updated:** [April 11, 2022, 4:11am UTC](https://discourse.processing.org/t/how-would-i-make-a-point-and-click-shooter-game-in-processing/36204 "2022-04-11T04:11:15Z")

</div>

Hey ya’ll! This is my first post here as I am new to processing in general. I need to make a game for a project I am working on, in which a gun mounted In a fixed position shoots projectiles at incoming targets. I need t…

---

## [Audio that loops and distorts](https://discourse.processing.org/t/audio-that-loops-and-distorts/36266)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.processing.org/u/mary)\
**Replies:** 0\
**Last updated:** [April 10, 2022, 9:46pm UTC](https://discourse.processing.org/t/audio-that-loops-and-distorts/36266 "2022-04-10T21:46:04Z")

</div>

I’m having trouble finding the correct parameters to make a button that produces a sound so I went with if key == x do this. When the audio plays it doesn’t stop and gets distorted. How do I fix it? The code in /\* \*/ is …

---

## [I need to make a reset timer in my Tic Tac Toe game](https://discourse.processing.org/t/i-need-to-make-a-reset-timer-in-my-tic-tac-toe-game/36149)

<div class="topic-metadata">

**Author:** [@Mori](https://discourse.processing.org/u/Mori)\
**Replies:** 16\
**Last updated:** [April 10, 2022, 2:40pm UTC](https://discourse.processing.org/t/i-need-to-make-a-reset-timer-in-my-tic-tac-toe-game/36149 "2022-04-10T14:40:34Z")

</div>

homework policy \* asking questions int\[\] Felder = new int\[9\]; int spielerFlag = 0; int x = 0; int y = 0; int win = 0; int tp = 0; boolean reset = false; void setup() { size(displayWidth, displayHeight); strokeWeig…

---

## [How send multiple values from Processing to Arduino](https://discourse.processing.org/t/how-send-multiple-values-from-processing-to-arduino/36167)

<div class="topic-metadata">

**Author:** [@yohan](https://discourse.processing.org/u/yohan)\
**Replies:** 3\
**Last updated:** [April 8, 2022, 3:51pm UTC](https://discourse.processing.org/t/how-send-multiple-values-from-processing-to-arduino/36167 "2022-04-08T15:51:33Z")

</div>

I’m using shiftr to receive data into processing and I want to send it to Arduino. I’ve stored 8 values into an array and sent it to Arduino as a string. I’m having trouble with receiving the string in Arduino from proce…

[Previous page](https://discourse.processing.org/c/processing/6.md?page=83)

[Next page](https://discourse.processing.org/c/processing/6.md?page=85)
