# Latest

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

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

**Page:** 134

---

## [How to make per box the lightest to darkest color in a Nested loop?](https://discourse.processing.org/t/how-to-make-per-box-the-lightest-to-darkest-color-in-a-nested-loop/37200)

<div class="topic-metadata">

**Author:** [@Stoya](https://discourse.processing.org/u/Stoya)\
**Replies:** 2\
**Last updated:** [May 29, 2022, 5:30am UTC](https://discourse.processing.org/t/how-to-make-per-box-the-lightest-to-darkest-color-in-a-nested-loop/37200 "2022-05-29T05:30:53Z")

</div>

Hello! I’m asking for advice. I’m experimenting on how can one make the first box the lightest value then it gradually goes darker per box. So if I input the color blue, it’ll show the lightest blue at the first box of t…

---

## [Maybe there's an unclosed paren or quote mark somewhere before this line?](https://discourse.processing.org/t/maybe-theres-an-unclosed-paren-or-quote-mark-somewhere-before-this-line/37172)

<div class="topic-metadata">

**Author:** [@Sourabh1801](https://discourse.processing.org/u/Sourabh1801)\
**Replies:** 1\
**Last updated:** [May 28, 2022, 9:55pm UTC](https://discourse.processing.org/t/maybe-theres-an-unclosed-paren-or-quote-mark-somewhere-before-this-line/37172 "2022-05-28T21:55:09Z")

</div>

Problem: I am using below code in python processing ,but it giving me this error “Maybe there’s an unclosed paren or quote mark somewhere before this line?” please tell why this error come in this. code: add\_library…

---

## [Any way to add a single word attribute to a dom element?](https://discourse.processing.org/t/any-way-to-add-a-single-word-attribute-to-a-dom-element/37173)

<div class="topic-metadata">

**Author:** [@bluemoon](https://discourse.processing.org/u/bluemoon)\
**Replies:** 1\
**Last updated:** [May 28, 2022, 9:35pm UTC](https://discourse.processing.org/t/any-way-to-add-a-single-word-attribute-to-a-dom-element/37173 "2022-05-28T21:35:39Z")

</div>

For instance, if I wanted to add the ‘autofocus’ attribute to an ‘input’, the normal html would be: \<input type="text" autofocus\> Is there a way to add such a tag in p5js? The following does not work because ‘.attribu…

---

## [How do I make my score for the game increase by 1 and have it displayed on the bottom corner?](https://discourse.processing.org/t/how-do-i-make-my-score-for-the-game-increase-by-1-and-have-it-displayed-on-the-bottom-corner/37160)

<div class="topic-metadata">

**Author:** [@itisti21](https://discourse.processing.org/u/itisti21)\
**Replies:** 25\
**Last updated:** [May 28, 2022, 4:06pm UTC](https://discourse.processing.org/t/how-do-i-make-my-score-for-the-game-increase-by-1-and-have-it-displayed-on-the-bottom-corner/37160 "2022-05-28T16:06:30Z")

</div>

Hi! I am stuggling with a project I have. I have a game whereby the pedestrian has to pass through lanes without hitting the vehicle and once it does, I need for the scores to go up by 1. I am unsure as to how to do the …

---

## [Making multiple lanes using arrays](https://discourse.processing.org/t/making-multiple-lanes-using-arrays/37161)

<div class="topic-metadata">

**Author:** [@itisti21](https://discourse.processing.org/u/itisti21)\
**Replies:** 19\
**Last updated:** [May 28, 2022, 2:25pm UTC](https://discourse.processing.org/t/making-multiple-lanes-using-arrays/37161 "2022-05-28T14:25:46Z")

</div>

Hi ! I am having issues trying to make multiple lanes for a project. I have made one lane using a loop as it is a dashed lane. I am struggling to make multiple of those lanes in my game using an array. Can someone please…

---

## [Best practice regarding visibility](https://discourse.processing.org/t/best-practice-regarding-visibility/37113)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 4\
**Last updated:** [May 27, 2022, 11:43am UTC](https://discourse.processing.org/t/best-practice-regarding-visibility/37113 "2022-05-27T11:43:53Z")

</div>

I currently am publishing a library for using swing with Processing. I declared almost everything in my library public with the motivation that if someone knows what they’re doing one can use these methods. However this …

---

## [Code for foreground window](https://discourse.processing.org/t/code-for-foreground-window/37148)

<div class="topic-metadata">

**Author:** [@Andry](https://discourse.processing.org/u/Andry)\
**Replies:** 10\
**Last updated:** [May 28, 2022, 11:31am UTC](https://discourse.processing.org/t/code-for-foreground-window/37148 "2022-05-28T11:31:24Z")

</div>

Hi there is a code to put window in the foreground, like: SetWindowsPos (0)?

---

## [How can I make my character jump (python)(complete beginner)](https://discourse.processing.org/t/how-can-i-make-my-character-jump-python-complete-beginner/37146)

<div class="topic-metadata">

**Author:** [@bruhmoment14](https://discourse.processing.org/u/bruhmoment14)\
**Replies:** 7\
**Last updated:** [May 28, 2022, 11:26am UTC](https://discourse.processing.org/t/how-can-i-make-my-character-jump-python-complete-beginner/37146 "2022-05-28T11:26:39Z")

</div>

When I move my character they have complete freedom. I want the game to control similarly to Mario, I don’t know how to make it so when you hit the up arrow key, the character moves up once instead of constantly moving u…

---

## [Drawing context and p5.Graphics](https://discourse.processing.org/t/drawing-context-and-p5-graphics/37158)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 1\
**Last updated:** [May 28, 2022, 11:08am UTC](https://discourse.processing.org/t/drawing-context-and-p5-graphics/37158 "2022-05-28T11:08:34Z")

</div>

Hello! I was using this function to generate quick shadows: drawingContext.shadowColor = color(0, 0, 0, 0.6); drawingContext.shadowBlur = 50; drawingContext.shadowOffsetX = -25; drawingContext.shadowOffsetY = -…

---

## [Nested Loop 3 Colors, How do I set them their colors in uniform column order?](https://discourse.processing.org/t/nested-loop-3-colors-how-do-i-set-them-their-colors-in-uniform-column-order/37153)

<div class="topic-metadata">

**Author:** [@Stoya](https://discourse.processing.org/u/Stoya)\
**Replies:** 5\
**Last updated:** [May 28, 2022, 4:49am UTC](https://discourse.processing.org/t/nested-loop-3-colors-how-do-i-set-them-their-colors-in-uniform-column-order/37153 "2022-05-28T04:49:23Z")

</div>

Hello! I’ve finished the “6.6: Nested Loops - Processing Tutorial” from the Coding Train and I’ve been wondering about how to set the colours uniformly. Currently, I want the colours to be red, then blue, then green in c…

---

## [Halftone dots patterns](https://discourse.processing.org/t/halftone-dots-patterns/36948)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 12\
**Last updated:** [May 28, 2022, 2:33am UTC](https://discourse.processing.org/t/halftone-dots-patterns/36948 "2022-05-28T02:33:49Z")

</div>

Hi there! I am experimenting with pointillism as you can see on my code. I have done a pattern with random sizes of dots but I actually would like to imitate a halftone patterns, where size of dots depends on nears dots…

---

## [Variations of color on a loop](https://discourse.processing.org/t/variations-of-color-on-a-loop/37069)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 12\
**Last updated:** [May 28, 2022, 2:31am UTC](https://discourse.processing.org/t/variations-of-color-on-a-loop/37069 "2022-05-28T02:31:52Z")

</div>

Hi there! I have been working on this loop recently and it is almost perfect, but I want to make little variations between points and when I use random on hue, or saturation or brightness all of them are the same. Could …

---

## [Help! Problem with Sound Library not playing properly](https://discourse.processing.org/t/help-problem-with-sound-library-not-playing-properly/37142)

<div class="topic-metadata">

**Author:** [@Flor\_st](https://discourse.processing.org/u/Flor_st)\
**Replies:** 2\
**Last updated:** [May 27, 2022, 11:38pm UTC](https://discourse.processing.org/t/help-problem-with-sound-library-not-playing-properly/37142 "2022-05-27T23:38:04Z")

</div>

I am very new with this so please bare with me I am doing an exercise which involves using two libraries, so the idea is doing something with a video and them play a song. I starts fine but when it gets to the song it p…

---

## [How to make my code better? (completely beginner)](https://discourse.processing.org/t/how-to-make-my-code-better-completely-beginner/35980)

<div class="topic-metadata">

**Author:** [@Jane\_Dau](https://discourse.processing.org/u/Jane_Dau)\
**Replies:** 11\
**Last updated:** [May 27, 2022, 3:20pm UTC](https://discourse.processing.org/t/how-to-make-my-code-better-completely-beginner/35980 "2022-05-27T15:20:12Z")

</div>

Hello, I am new here and have just started learning Processing sketch from this month. I wonder if the code I wrote below can be better. Thank you for your guidelines x=50 y=50 move=3 def setup(): size(600,600) d…

---

## [Tutorial: Using p5.Geometry to create fast 3D graphics](https://discourse.processing.org/t/tutorial-using-p5-geometry-to-create-fast-3d-graphics/32359)

<div class="topic-metadata">

**Author:** [@KumuPaul](https://discourse.processing.org/u/KumuPaul)\
**Replies:** 11\
**Last updated:** [May 27, 2022, 3:08pm UTC](https://discourse.processing.org/t/tutorial-using-p5-geometry-to-create-fast-3d-graphics/32359 "2022-05-27T15:08:45Z")

</div>

I’ve answered a number of questions recently about the performance of complex 3D shapes in p5.js (@J\_Silva and @salmans911 in particular), and I promised a more in depth explanation of how to use p5.Geometry. Without fur…

---

## [Please bring back red colored errors!](https://discourse.processing.org/t/please-bring-back-red-colored-errors/36157)

<div class="topic-metadata">

**Author:** [@kevinschlei](https://discourse.processing.org/u/kevinschlei)\
**Replies:** 2\
**Last updated:** [May 27, 2022, 11:40am UTC](https://discourse.processing.org/t/please-bring-back-red-colored-errors/36157 "2022-05-27T11:40:04Z")

</div>

Teacher here, and I’m begging you to bring back red squigly lines and red background error messages. The new, sleek black lines are not drawing any attention, and are really hard for beginners to notice. So what happens…

---

## [8GB or 16GB RAM recommended?](https://discourse.processing.org/t/8gb-or-16gb-ram-recommended/11321)

<div class="topic-metadata">

**Author:** [@AlDickins](https://discourse.processing.org/u/AlDickins)\
**Replies:** 6\
**Last updated:** [May 27, 2022, 11:43am UTC](https://discourse.processing.org/t/8gb-or-16gb-ram-recommended/11321 "2022-05-27T11:43:41Z")

</div>

Hi. I’m buying a laptop for Processing and possibly Android studio. It’s not possible to install additional RAM in this laptop after purchase. I can buy it with 8 or 16 GB RAM. Which would you recommend? I’m someone who…

---

## [Combining textToPoints with Daniel Shiffman’s Space Colonization Algorithm to create leaves](https://discourse.processing.org/t/combining-texttopoints-with-daniel-shiffman-s-space-colonization-algorithm-to-create-leaves/37138)

<div class="topic-metadata">

**Author:** [@\_tt\_tt](https://discourse.processing.org/u/_tt_tt)\
**Replies:** 1\
**Last updated:** [May 27, 2022, 12:40pm UTC](https://discourse.processing.org/t/combining-texttopoints-with-daniel-shiffman-s-space-colonization-algorithm-to-create-leaves/37138 "2022-05-27T12:40:50Z")

</div>

Hello! I am trying to create a project where i want to combine Daniel Shiffmans code from his Coding Challenge and a textToPoints Function. I want to use the points from the texttopoints array as leaves instead of his ra…

---

## [MySQL with Beziersql](https://discourse.processing.org/t/mysql-with-beziersql/37129)

<div class="topic-metadata">

**Author:** [@AdmiralPenguin2](https://discourse.processing.org/u/AdmiralPenguin2)\
**Replies:** 1\
**Last updated:** [May 27, 2022, 11:23am UTC](https://discourse.processing.org/t/mysql-with-beziersql/37129 "2022-05-27T11:23:37Z")

</div>

Hi, I’m trying to use Processing with MySQL using the BezierSQL library but it isn’t working. I entered the password, user, database, and host correctly and it still says SQL.connect(): Could not connect to the database …

---

## [GUI for controlling sketches from separate windows/places](https://discourse.processing.org/t/gui-for-controlling-sketches-from-separate-windows-places/37027)

<div class="topic-metadata">

**Author:** [@jaschanarveson](https://discourse.processing.org/u/jaschanarveson)\
**Replies:** 2\
**Last updated:** [May 27, 2022, 10:12am UTC](https://discourse.processing.org/t/gui-for-controlling-sketches-from-separate-windows-places/37027 "2022-05-27T10:12:01Z")

</div>

How do people run interactive full-screen p5js sketches while also being able to see controls? do people pipe OSC around? is there an easy way to create a second window so that you can have controls on one window and t…

---

## [Sketch stops working when I switch to P2D](https://discourse.processing.org/t/sketch-stops-working-when-i-switch-to-p2d/37120)

<div class="topic-metadata">

**Author:** [@friedadedoncker](https://discourse.processing.org/u/friedadedoncker)\
**Replies:** 7\
**Last updated:** [May 26, 2022, 9:06pm UTC](https://discourse.processing.org/t/sketch-stops-working-when-i-switch-to-p2d/37120 "2022-05-26T21:06:30Z")

</div>

Hi, I’m making a grid that would later be interactive. I wanted to try out some things with shaders so switched my sketch to P2D. The second I do this I get a NullPointerException and I’m wondering why. I’m thinking t…

---

## [Need help w/ infinite world w/ random numbers](https://discourse.processing.org/t/need-help-w-infinite-world-w-random-numbers/37086)

<div class="topic-metadata">

**Author:** [@Voleia](https://discourse.processing.org/u/Voleia)\
**Replies:** 18\
**Last updated:** [May 26, 2022, 5:05pm UTC](https://discourse.processing.org/t/need-help-w-infinite-world-w-random-numbers/37086 "2022-05-26T17:05:22Z")

</div>

Hello. So, I am trying to make a program that generates an infinite world where each block has a 50% chance of being either blue or red. The program I have works fine when I move side to side, but when I move up and down…

---

## [P2D/P3D causes image flickering and disappearing from draw() loop?!](https://discourse.processing.org/t/p2d-p3d-causes-image-flickering-and-disappearing-from-draw-loop/36877)

<div class="topic-metadata">

**Author:** [@AstroPeng](https://discourse.processing.org/u/AstroPeng)\
**Replies:** 4\
**Last updated:** [May 26, 2022, 5:27pm UTC](https://discourse.processing.org/t/p2d-p3d-causes-image-flickering-and-disappearing-from-draw-loop/36877 "2022-05-26T17:27:16Z")

</div>

void setup(){ PImage flower = loadImage("bloom.jpg"); size(897, 565, P2D); //Line in Question image(flower, 472+26,86, 189,189); } causes flickering but the second does not, however my main project uses createGrap…

---

## [How to improve the performance of Processing?](https://discourse.processing.org/t/how-to-improve-the-performance-of-processing/36577)

<div class="topic-metadata">

**Author:** [@IpNeNaEcRe](https://discourse.processing.org/u/IpNeNaEcRe)\
**Replies:** 9\
**Last updated:** [May 26, 2022, 5:02pm UTC](https://discourse.processing.org/t/how-to-improve-the-performance-of-processing/36577 "2022-05-26T17:02:27Z")

</div>

Recently I code the reaction-diffusion algorithm, following Daniel Shiffman’s tutorial. I use processing to code instead of P5.js in the tutorial. When I run the sketch, I found the frame rate is so low when the sketch …

---

## [I need help with the background music](https://discourse.processing.org/t/i-need-help-with-the-background-music/37115)

<div class="topic-metadata">

**Author:** [@Katharina](https://discourse.processing.org/u/Katharina)\
**Replies:** 3\
**Last updated:** [May 26, 2022, 2:25pm UTC](https://discourse.processing.org/t/i-need-help-with-the-background-music/37115 "2022-05-26T14:25:34Z")

</div>

Hello, so I made a game but the background music isn’t working.( I’ve only copied the sound problem tho) I’ve used another sound before and it works perfectly fine but the background music won’t work. If I play my progra…

---

## [3D flocking simulation with two types of boids and octree optimization](https://discourse.processing.org/t/3d-flocking-simulation-with-two-types-of-boids-and-octree-optimization/36992)

<div class="topic-metadata">

**Author:** [@m.codeeee](https://discourse.processing.org/u/m.codeeee)\
**Replies:** 6\
**Last updated:** [May 26, 2022, 1:29pm UTC](https://discourse.processing.org/t/3d-flocking-simulation-with-two-types-of-boids-and-octree-optimization/36992 "2022-05-26T13:29:08Z")

</div>

Hiii, I’m trying to do a 3D flocking simulation with two types of boids and octree optimization. I would like to have two octrees one for each flock in order to then insert an interaction between the two flocks as a met…

---

## [Multiple objs distorting (perspective?)](https://discourse.processing.org/t/multiple-objs-distorting-perspective/37045)

<div class="topic-metadata">

**Author:** [@jimjimmer](https://discourse.processing.org/u/jimjimmer)\
**Replies:** 3\
**Last updated:** [May 26, 2022, 12:36pm UTC](https://discourse.processing.org/t/multiple-objs-distorting-perspective/37045 "2022-05-26T12:36:02Z")

</div>

Hi I’m curious. I adapted the obj example to try and show 10 rockets in a row… The code works but the width of the rockets seem uneven… They are fatter towards the edges can anyone help?\`\` /\*\* \* Load and Display an OBJ…

---

## [My Pictures disapear when using other commands](https://discourse.processing.org/t/my-pictures-disapear-when-using-other-commands/36996)

<div class="topic-metadata">

**Author:** [@Katharina](https://discourse.processing.org/u/Katharina)\
**Replies:** 3\
**Last updated:** [May 26, 2022, 11:46am UTC](https://discourse.processing.org/t/my-pictures-disapear-when-using-other-commands/36996 "2022-05-26T11:46:46Z")

</div>

Before giving the Problem + code let me tell you my Programm. Im trying to create a dress up game for my schoolwork. You click on a bar and the game starts. I’ve created 3 lines of arrows (pfeil) for that: \<–(left) a…

---

## [Extension made with p5.js blurred out](https://discourse.processing.org/t/extension-made-with-p5-js-blurred-out/37099)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 0\
**Last updated:** [May 26, 2022, 7:54am UTC](https://discourse.processing.org/t/extension-made-with-p5-js-blurred-out/37099 "2022-05-26T07:54:00Z")

</div>

I fixed all the errors that chrome extensions gave when I loaded the folder in but it is grayed out. Is it a problem with my code?

---

## [Question for PeasyCam: Auto positioning](https://discourse.processing.org/t/question-for-peasycam-auto-positioning/23867)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 2\
**Last updated:** [May 26, 2022, 4:55am UTC](https://discourse.processing.org/t/question-for-peasycam-auto-positioning/23867 "2022-05-26T04:55:19Z")

</div>

Hello all, I have a question to Peasycam I‘d like to zoom and pan the cam during an animation to the area where something happens. Think of an animation of a game of chess where the board is so big that the camera wand…

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

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