# Latest

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

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

**Page:** 195

---

## [Pixelated lines](https://discourse.processing.org/t/pixelated-lines/32186)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 3\
**Last updated:** [September 11, 2021, 3:03pm UTC](https://discourse.processing.org/t/pixelated-lines/32186 "2021-09-11T15:03:37Z")

</div>

Hi there! As you can see here, this lines are so pixelated, can you tell me why and how can I avoid it? Thank you so much! size(1000,1000); strokeWeight(20); background (255); for(int x=0;x\<1000;x=x+60){ stroke(0,0,0…

---

## [Square Space Fractal](https://discourse.processing.org/t/square-space-fractal/32123)

<div class="topic-metadata">

**Author:** [@javagar](https://discourse.processing.org/u/javagar)\
**Replies:** 1\
**Last updated:** [September 11, 2021, 1:19pm UTC](https://discourse.processing.org/t/square-space-fractal/32123 "2021-09-11T13:19:38Z")

</div>

This sketch is composed of black and white square spaces, with each space, except at the lowest level, containing four spaces of one quarter its width and height, placed in randomized positions. The spaces are reconf…

---

## [Can't run code due to syntax errors](https://discourse.processing.org/t/cant-run-code-due-to-syntax-errors/32193)

<div class="topic-metadata">

**Author:** [@mayyu](https://discourse.processing.org/u/mayyu)\
**Replies:** 3\
**Last updated:** [September 11, 2021, 9:32am UTC](https://discourse.processing.org/t/cant-run-code-due-to-syntax-errors/32193 "2021-09-11T09:32:57Z")

</div>

\< public class Person{ float x; float y; float xspeed; float yspeed; } Person (float tempX, float tempY) { x=tempX; y=tempY; xspeed = 4; yspeed = 4; } void move() { x = x+xspeed; if (x\>1000||x\<0){ xspeed=…

---

## [Specific Icon Generator for Processing Android Project](https://discourse.processing.org/t/specific-icon-generator-for-processing-android-project/31989)

<div class="topic-metadata">

**Author:** [@Rupesh\_Kumar](https://discourse.processing.org/u/Rupesh_Kumar)\
**Replies:** 7\
**Last updated:** [September 11, 2021, 5:27am UTC](https://discourse.processing.org/t/specific-icon-generator-for-processing-android-project/31989 "2021-09-11T05:27:48Z")

</div>

Sharing some work that lets you create required icons from an image source specifically to include in Processing Android Project to create signed and aligned packages to distribute on Google Play Console. More about g…

---

## [Bezier Glitch in certain point combinations](https://discourse.processing.org/t/bezier-glitch-in-certain-point-combinations/32169)

<div class="topic-metadata">

**Author:** [@andreiantonescu](https://discourse.processing.org/u/andreiantonescu)\
**Replies:** 4\
**Last updated:** [September 10, 2021, 3:54pm UTC](https://discourse.processing.org/t/bezier-glitch-in-certain-point-combinations/32169 "2021-09-10T15:54:01Z")

</div>

Hi, I’ve reached some weird behaviour for bezier curves between browsers. There are some combinations of anchors and control points that produce a glitch like this: (right is the correct curve) If I slightly change t…

---

## [How can I fix stuttering. Is it due to unoptimized code?](https://discourse.processing.org/t/how-can-i-fix-stuttering-is-it-due-to-unoptimized-code/32160)

<div class="topic-metadata">

**Author:** [@DJx](https://discourse.processing.org/u/DJx)\
**Replies:** 13\
**Last updated:** [September 9, 2021, 10:51pm UTC](https://discourse.processing.org/t/how-can-i-fix-stuttering-is-it-due-to-unoptimized-code/32160 "2021-09-09T22:51:32Z")

</div>

Hi, so I’m making a game in Processing but unfortunately, I can’t seem to get the program to run smoothly. Sometimes it will stutter while running, while the next time be completely fine even though it is running the sam…

---

## [Text bar not lining up with text](https://discourse.processing.org/t/text-bar-not-lining-up-with-text/32171)

<div class="topic-metadata">

**Author:** [@Tbotics](https://discourse.processing.org/u/Tbotics)\
**Replies:** 2\
**Last updated:** [September 9, 2021, 9:39pm UTC](https://discourse.processing.org/t/text-bar-not-lining-up-with-text/32171 "2021-09-09T21:39:33Z")

</div>

Hello As I begin typing, the text bar does not line up with what I am typing. Please take a look at the attached image. After the first few letters the bar becomes further away from the last character I have typed. …

---

## [Array of images](https://discourse.processing.org/t/array-of-images/32120)

<div class="topic-metadata">

**Author:** [@tati1202](https://discourse.processing.org/u/tati1202)\
**Replies:** 6\
**Last updated:** [September 9, 2021, 8:48pm UTC](https://discourse.processing.org/t/array-of-images/32120 "2021-09-09T20:48:20Z")

</div>

PImage \[\] fotos= new PImage \[1\]; int nroImg; void setup(){ nroImg=0; size(700,700); for (int i=0; i\<fotos.length; i++){ fotos\[i\]=loadImage(“mr”+i+".jpg"); } } void draw(){ background(0); image(fotos\[nroImg\],0,…

---

## [Is there a way to read out code from old pde file?](https://discourse.processing.org/t/is-there-a-way-to-read-out-code-from-old-pde-file/32143)

<div class="topic-metadata">

**Author:** [@tlow001](https://discourse.processing.org/u/tlow001)\
**Replies:** 2\
**Last updated:** [September 9, 2021, 4:47pm UTC](https://discourse.processing.org/t/is-there-a-way-to-read-out-code-from-old-pde-file/32143 "2021-09-09T16:47:16Z")

</div>

Hello I want to pick up processing again after years of inactivity, but when I open an old file I get an error: I already tried to install an old veriosn of processing but I get the same result. Is there a way to g…

---

## [Individualize functions in P5.js](https://discourse.processing.org/t/individualize-functions-in-p5-js/32051)

<div class="topic-metadata">

**Author:** [@Kevincroos](https://discourse.processing.org/u/Kevincroos)\
**Replies:** 5\
**Last updated:** [September 9, 2021, 2:46pm UTC](https://discourse.processing.org/t/individualize-functions-in-p5-js/32051 "2021-09-09T14:46:15Z")

</div>

homework policy \* asking questions Hello programmers i have a question about my program, i created a program who draw a ball, add animation to her and a text. I only need call one function to make all it. But now, i n…

---

## [Not using Classes or Translate](https://discourse.processing.org/t/not-using-classes-or-translate/32161)

<div class="topic-metadata">

**Author:** [@UnsureNeedHelp](https://discourse.processing.org/u/UnsureNeedHelp)\
**Replies:** 2\
**Last updated:** [September 9, 2021, 10:48am UTC](https://discourse.processing.org/t/not-using-classes-or-translate/32161 "2021-09-09T10:48:46Z")

</div>

Hey all! I’ve got code here but we’ve not been allowed to use classes or transformations such as rotate, translate, scale etc. I really need help making this code work with these rules. Not sure where to even start, any…

---

## [Processing for Flutter](https://discourse.processing.org/t/processing-for-flutter/27899)

<div class="topic-metadata">

**Author:** [@dajayk12](https://discourse.processing.org/u/dajayk12)\
**Replies:** 4\
**Last updated:** [September 9, 2021, 5:35am UTC](https://discourse.processing.org/t/processing-for-flutter/27899 "2021-09-09T05:35:58Z")

</div>

Processing for Flutter I am new to Processing and have been reading extensively about it and have been so very amazed at what a great work every member of this community has done and is doing. I also read the Processing…

---

## [Why does PApplet fail silently when you don't implement draw()?](https://discourse.processing.org/t/why-does-papplet-fail-silently-when-you-dont-implement-draw/31906)

<div class="topic-metadata">

**Author:** [@codeWorth](https://discourse.processing.org/u/codeWorth)\
**Replies:** 6\
**Last updated:** [September 9, 2021, 4:45am UTC](https://discourse.processing.org/t/why-does-papplet-fail-silently-when-you-dont-implement-draw/31906 "2021-09-09T04:45:41Z")

</div>

Looking at the source, this is draw’s implementation in PApplet: public void draw() { // if no draw method, then shut things down //System.out.println("no draw method, goodbye"); finished = true; } What’s t…

---

## [Storing positions on an array and then calling the value (grid)](https://discourse.processing.org/t/storing-positions-on-an-array-and-then-calling-the-value-grid/32119)

<div class="topic-metadata">

**Author:** [@Kenga123456](https://discourse.processing.org/u/Kenga123456)\
**Replies:** 8\
**Last updated:** [September 8, 2021, 10:36pm UTC](https://discourse.processing.org/t/storing-positions-on-an-array-and-then-calling-the-value-grid/32119 "2021-09-08T22:36:43Z")

</div>

float xOffset = 0.0; float yOffset = 0.0; int rectSize = 30; int ellipseX = 90; int ellipseY = 320; int ellipseSize = 30; int boxPosX = 250; int boxPosY = 130; int spacingX = 45; int spacingY = 45; int i; int l; bo…

---

## [Audio doesn't stop when closing my game on android](https://discourse.processing.org/t/audio-doesnt-stop-when-closing-my-game-on-android/32144)

<div class="topic-metadata">

**Author:** [@Marco0030](https://discourse.processing.org/u/Marco0030)\
**Replies:** 5\
**Last updated:** [September 8, 2021, 9:23pm UTC](https://discourse.processing.org/t/audio-doesnt-stop-when-closing-my-game-on-android/32144 "2021-09-08T21:23:24Z")

</div>

Hi. I’m working on an android game but i have a problem: In the game there is a soundtrack. when you exit from the game using the exit botton that i created, i don’t have problem but if you close the app using home butt…

---

## [Problem with the volume. Minim Library](https://discourse.processing.org/t/problem-with-the-volume-minim-library/32128)

<div class="topic-metadata">

**Author:** [@kylu](https://discourse.processing.org/u/kylu)\
**Replies:** 1\
**Last updated:** [September 8, 2021, 8:47pm UTC](https://discourse.processing.org/t/problem-with-the-volume-minim-library/32128 "2021-09-08T20:47:25Z")

</div>

Hey there! I’m working in a game proyect, using minim and Fisica libraries. I put the sound tracks but i can change the volume, i try using setVolume() and setGain() but there’s no way to modified it I let the entery c…

---

## [Help with noise map (terrain map)](https://discourse.processing.org/t/help-with-noise-map-terrain-map/32131)

<div class="topic-metadata">

**Author:** [@figle](https://discourse.processing.org/u/figle)\
**Replies:** 3\
**Last updated:** [September 8, 2021, 8:42pm UTC](https://discourse.processing.org/t/help-with-noise-map-terrain-map/32131 "2021-09-08T20:42:31Z")

</div>

Hi there, I’m trying to find a way to make an animated graphic similar in appearance to a poster I found online. Is there a way to programmatically make this noise map have more clustered areas and less noisy like here?…

---

## [Would like help with Chrome](https://discourse.processing.org/t/would-like-help-with-chrome/32147)

<div class="topic-metadata">

**Author:** [@BigBigRed](https://discourse.processing.org/u/BigBigRed)\
**Replies:** 2\
**Last updated:** [September 8, 2021, 1:24pm UTC](https://discourse.processing.org/t/would-like-help-with-chrome/32147 "2021-09-08T13:24:36Z")

</div>

I know that this not a p5js problem but … over weeks, days, and months the Print Preview Window on my p5js Editor has gotten smaller and smaller. When I first started with p5js, the Print Preview Window would go 650…

---

## [How to delete a G4P GTextField](https://discourse.processing.org/t/how-to-delete-a-g4p-gtextfield/31897)

<div class="topic-metadata">

**Author:** [@Jos](https://discourse.processing.org/u/Jos)\
**Replies:** 2\
**Last updated:** [September 8, 2021, 9:30am UTC](https://discourse.processing.org/t/how-to-delete-a-g4p-gtextfield/31897 "2021-09-08T09:30:26Z")

</div>

I want to use an G4P object just temporarily. For example a text field. But once created I can’t delete it any more. Is there a solution? import g4p\_controls.\*; void setup() { fill(200); size(400,200); fill(255); rec…

---

## [What is the traditional sign for square root?](https://discourse.processing.org/t/what-is-the-traditional-sign-for-square-root/32148)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 5\
**Last updated:** [September 8, 2021, 8:09am UTC](https://discourse.processing.org/t/what-is-the-traditional-sign-for-square-root/32148 "2021-09-08T08:09:45Z")

</div>

This is not necessarily a processing question, but I understand that in coding we can make use of operands such as / for divide, \* for multiply, ^ for power, is there a predefined operand for squareroot, or is it just t…

---

## [How can my Chromebook students download Processing](https://discourse.processing.org/t/how-can-my-chromebook-students-download-processing/32151)

<div class="topic-metadata">

**Author:** [@lnoss](https://discourse.processing.org/u/lnoss)\
**Replies:** 1\
**Last updated:** [September 8, 2021, 7:59am UTC](https://discourse.processing.org/t/how-can-my-chromebook-students-download-processing/32151 "2021-09-08T07:59:46Z")

</div>

My students are new to programming and I use Processing in my CSP course. How can they download Processing to their Chromebooks?

---

## [Separating effects](https://discourse.processing.org/t/separating-effects/32139)

<div class="topic-metadata">

**Author:** [@achip30](https://discourse.processing.org/u/achip30)\
**Replies:** 5\
**Last updated:** [September 8, 2021, 7:47am UTC](https://discourse.processing.org/t/separating-effects/32139 "2021-09-08T07:47:39Z")

</div>

This is a snippet from my main code. I have two separate ellipses. I only want the central ellipse to have a shadowing effect. How do I limit the shadowing effect specifically to the central ellipse, and not to the small…

---

## [ReLU is half a cookie](https://discourse.processing.org/t/relu-is-half-a-cookie/32134)

<div class="topic-metadata">

**Author:** [@seanc4s](https://discourse.processing.org/u/seanc4s)\
**Replies:** 0\
**Last updated:** [September 7, 2021, 10:58am UTC](https://discourse.processing.org/t/relu-is-half-a-cookie/32134 "2021-09-07T10:58:45Z")

</div>

The ReLU activation function: f(x)=x when x\>=0 f(x)=0 when x\<0 is widely used in current artificial neural networks. It is the final step in an artificial neuron and connects to n (forward) weights in the next layer …

---

## [How to get Movie sound value?](https://discourse.processing.org/t/how-to-get-movie-sound-value/32149)

<div class="topic-metadata">

**Author:** [@lindx](https://discourse.processing.org/u/lindx)\
**Replies:** 0\
**Last updated:** [September 8, 2021, 2:22am UTC](https://discourse.processing.org/t/how-to-get-movie-sound-value/32149 "2021-09-08T02:22:53Z")

</div>

I can Play a MP4 of movie file, the movie sound can play in speakers. I want get movie sound value for display, My question is how to get movie numerical value of sound for make a value meter.

---

## [Ketai bluetooth Error in reading connect data.:null](https://discourse.processing.org/t/ketai-bluetooth-error-in-reading-connect-data-null/32125)

<div class="topic-metadata">

**Author:** [@TheGoldenHammer](https://discourse.processing.org/u/TheGoldenHammer)\
**Replies:** 1\
**Last updated:** [September 7, 2021, 9:11pm UTC](https://discourse.processing.org/t/ketai-bluetooth-error-in-reading-connect-data-null/32125 "2021-09-07T21:11:29Z")

</div>

I am having trouble with my bluetooth app, I am sending data from a raspberry pi over bluetooth to my phone, but an error comes out saying " Error in reading connect data.:null", when I try to send that data. It doesn’t …

---

## [Confine the wind in the screen without changing speed or degree](https://discourse.processing.org/t/confine-the-wind-in-the-screen-without-changing-speed-or-degree/32124)

<div class="topic-metadata">

**Author:** [@Arabesque0210](https://discourse.processing.org/u/Arabesque0210)\
**Replies:** 3\
**Last updated:** [September 7, 2021, 8:56pm UTC](https://discourse.processing.org/t/confine-the-wind-in-the-screen-without-changing-speed-or-degree/32124 "2021-09-07T20:56:28Z")

</div>

Hi there, I am new to processing and trying to create a floating text following wind data for my art project. I want to make sure this string is always in the screen like bouncing ball, however maybe cuz I use the real…

---

## [Terminate android program](https://discourse.processing.org/t/terminate-android-program/5114)

<div class="topic-metadata">

**Author:** [@gonadgranny](https://discourse.processing.org/u/gonadgranny)\
**Replies:** 20\
**Last updated:** [September 7, 2021, 8:49pm UTC](https://discourse.processing.org/t/terminate-android-program/5114 "2021-09-07T20:49:49Z")

</div>

Hi there. I have used the exit() function to exit the program but it only closes the window. is there a command which will terminate the program completely? thanks.

---

## [How to completely reset processing](https://discourse.processing.org/t/how-to-completely-reset-processing/32140)

<div class="topic-metadata">

**Author:** [@EinsMalteHH](https://discourse.processing.org/u/EinsMalteHH)\
**Replies:** 1\
**Last updated:** [September 7, 2021, 8:38pm UTC](https://discourse.processing.org/t/how-to-completely-reset-processing/32140 "2021-09-07T20:38:24Z")

</div>

I want to reset processing because yeah, why not. Where are ale the files I need to delete?

---

## [Saving data in Processing](https://discourse.processing.org/t/saving-data-in-processing/32136)

<div class="topic-metadata">

**Author:** [@nyeas001](https://discourse.processing.org/u/nyeas001)\
**Replies:** 6\
**Last updated:** [September 7, 2021, 7:24pm UTC](https://discourse.processing.org/t/saving-data-in-processing/32136 "2021-09-07T19:24:57Z")

</div>

Hi, I am trying to save data in a table in processing. Data is pressure sensor data collected through serial monitor of Arduino. I am getting a error message which I could not resolve. Code import processing.serial.\*;…

---

## [ControlP5, How to set the maximum number of characters in a Text Field?](https://discourse.processing.org/t/controlp5-how-to-set-the-maximum-number-of-characters-in-a-text-field/32062)

<div class="topic-metadata">

**Author:** [@jhsa](https://discourse.processing.org/u/jhsa)\
**Replies:** 19\
**Last updated:** [September 7, 2021, 5:34pm UTC](https://discourse.processing.org/t/controlp5-how-to-set-the-maximum-number-of-characters-in-a-text-field/32062 "2021-09-07T17:34:56Z")

</div>

I would like to allow a user to insert a maximum of 10 characters in the text field… Been looking and cannot find any option for that. Researched online, found nothing. Thank you for your help.

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

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