# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=98

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

**Page:** 99

---

## [Basic white triangle grid homework pls help](https://discourse.processing.org/t/basic-white-triangle-grid-homework-pls-help/34178)

<div class="topic-metadata">

**Author:** [@myhatzulu](https://discourse.processing.org/u/myhatzulu)\
**Replies:** 3\
**Last updated:** [December 22, 2021, 5:57am UTC](https://discourse.processing.org/t/basic-white-triangle-grid-homework-pls-help/34178 "2021-12-22T05:57:30Z")

</div>

could anyone sort me out with this I’m trying to make a grid of upside down white triangles exactly like \[Album\] imgur.com …

---

## [Gaming Questions (levels and states/screens)](https://discourse.processing.org/t/gaming-questions-levels-and-states-screens/34201)

<div class="topic-metadata">

**Author:** [@lily186](https://discourse.processing.org/u/lily186)\
**Replies:** 5\
**Last updated:** [December 21, 2021, 8:27pm UTC](https://discourse.processing.org/t/gaming-questions-levels-and-states-screens/34201 "2021-12-21T20:27:50Z")

</div>

Hi I was wondering how someone can create levels for a game in processing?? ,Thank you!

---

## [A question regarding depth sorting in raytracers](https://discourse.processing.org/t/a-question-regarding-depth-sorting-in-raytracers/34231)

<div class="topic-metadata">

**Author:** [@heawn](https://discourse.processing.org/u/heawn)\
**Replies:** 0\
**Last updated:** [December 21, 2021, 5:27pm UTC](https://discourse.processing.org/t/a-question-regarding-depth-sorting-in-raytracers/34231 "2021-12-21T17:27:55Z")

</div>

How do properly depth sort in raytracers So this is more or less a debugging kind of problem, which im unable to solve. My problem is that the rays for some reason dont return the color of the closest intersection, alld…

---

## [Can I use Processing to search a site for very specific results?](https://discourse.processing.org/t/can-i-use-processing-to-search-a-site-for-very-specific-results/34052)

<div class="topic-metadata">

**Author:** [@Teljemo](https://discourse.processing.org/u/Teljemo)\
**Replies:** 10\
**Last updated:** [December 20, 2021, 11:52pm UTC](https://discourse.processing.org/t/can-i-use-processing-to-search-a-site-for-very-specific-results/34052 "2021-12-20T23:52:08Z")

</div>

Hi, I collect old books about industry, technology, construction, engineering and so on. Mostly books in my native language, Swedish. We have a great site where people sell and buy books but there is no way to search …

---

## [How to check if a key exists within a JSON file](https://discourse.processing.org/t/how-to-check-if-a-key-exists-within-a-json-file/34214)

<div class="topic-metadata">

**Author:** [@ybr](https://discourse.processing.org/u/ybr)\
**Replies:** 1\
**Last updated:** [December 20, 2021, 11:20pm UTC](https://discourse.processing.org/t/how-to-check-if-a-key-exists-within-a-json-file/34214 "2021-12-20T23:20:51Z")

</div>

Hi, I’m importing a JSON file using an API. For most elements within the array the key “rating” exists, for some it doesn’t. At that point my code stops with a null pointer exception. I’m trying to do a check whether a k…

---

## [Little stuck on a concept](https://discourse.processing.org/t/little-stuck-on-a-concept/34173)

<div class="topic-metadata">

**Author:** [@Jamii](https://discourse.processing.org/u/Jamii)\
**Replies:** 6\
**Last updated:** [December 20, 2021, 6:28pm UTC](https://discourse.processing.org/t/little-stuck-on-a-concept/34173 "2021-12-20T18:28:14Z")

</div>

I’m really new to processing and I have an idea I want to execute but I’m not too sure where to start in general. I haven’t started just I’m just wondering if anyone has tips on how to do it. I want to create a maze-lik…

---

## [Store Tree data and Show on TreeView Control](https://discourse.processing.org/t/store-tree-data-and-show-on-treeview-control/34210)

<div class="topic-metadata">

**Author:** [@RichardDL](https://discourse.processing.org/u/RichardDL)\
**Replies:** 0\
**Last updated:** [December 20, 2021, 10:01pm UTC](https://discourse.processing.org/t/store-tree-data-and-show-on-treeview-control/34210 "2021-12-20T22:01:34Z")

</div>

Hi, Now and then I have data which would be ideal to store and show with a TreeView control. Searching the forum finds almost nothing (surprising). A few references to “g4p.tool.gui.treeview” but GP4, ControlP5, Guido…

---

## [Processing Eclipse Java P3D Problem](https://discourse.processing.org/t/processing-eclipse-java-p3d-problem/34076)

<div class="topic-metadata">

**Author:** [@Herr\_Nerdstrom](https://discourse.processing.org/u/Herr_Nerdstrom)\
**Replies:** 11\
**Last updated:** [December 20, 2021, 4:34pm UTC](https://discourse.processing.org/t/processing-eclipse-java-p3d-problem/34076 "2021-12-20T16:34:04Z")

</div>

I’m trying to learn how to use the Processing library with Eclipse to solve a puzzle (Rubik’s Cube) my son challenged me with. The main problem seems to be with using P3D in Eclipse. Here is the test code: import proces…

---

## [Processing mousePressed twice](https://discourse.processing.org/t/processing-mousepressed-twice/34194)

<div class="topic-metadata">

**Author:** [@Kristina](https://discourse.processing.org/u/Kristina)\
**Replies:** 4\
**Last updated:** [December 19, 2021, 3:25pm UTC](https://discourse.processing.org/t/processing-mousepressed-twice/34194 "2021-12-19T15:25:28Z")

</div>

Hi, I wanted to make a code where an Object appears when you press the mouse, which works out fine. But if you press again it should disappear again. Also I have two Objects, and it should always be one that appears. Whi…

---

## [Starting out with Shaders](https://discourse.processing.org/t/starting-out-with-shaders/34164)

<div class="topic-metadata">

**Author:** [@bcabc](https://discourse.processing.org/u/bcabc)\
**Replies:** 3\
**Last updated:** [December 18, 2021, 10:21pm UTC](https://discourse.processing.org/t/starting-out-with-shaders/34164 "2021-12-18T22:21:58Z")

</div>

Hi all - I’ve looked through the forum and documentation for information about using Shaders in Processing - but the results have been pretty mixed. Examples from the Book of Shaders and Shadertoy don’t seem to play ve…

---

## [Just a bit lost](https://discourse.processing.org/t/just-a-bit-lost/34179)

<div class="topic-metadata">

**Author:** [@Jamii](https://discourse.processing.org/u/Jamii)\
**Replies:** 4\
**Last updated:** [December 18, 2021, 2:03pm UTC](https://discourse.processing.org/t/just-a-bit-lost/34179 "2021-12-18T14:03:57Z")

</div>

I’ve been working on this for god knows how long, but I’m just not that sure how to make this better. Thoughts or comments? I couldn’t figure out how to make the lines not touch each other, so it constantly looks so mess…

---

## [Bug: After typing in the code window, mouse cursor no longer aligns with typed text](https://discourse.processing.org/t/bug-after-typing-in-the-code-window-mouse-cursor-no-longer-aligns-with-typed-text/34177)

<div class="topic-metadata">

**Author:** [@ltolenti](https://discourse.processing.org/u/ltolenti)\
**Replies:** 2\
**Last updated:** [December 18, 2021, 9:03am UTC](https://discourse.processing.org/t/bug-after-typing-in-the-code-window-mouse-cursor-no-longer-aligns-with-typed-text/34177 "2021-12-18T09:03:40Z")

</div>

When I type into the coding window, after typing 12 or more characters, the spacing between the (flashing) typing cursor and the typed text gets so wide that I can no longer correctly put my cursor between letters I want…

---

## [Startup keeps running](https://discourse.processing.org/t/startup-keeps-running/34088)

<div class="topic-metadata">

**Author:** [@hacketet](https://discourse.processing.org/u/hacketet)\
**Replies:** 2\
**Last updated:** [December 18, 2021, 3:35am UTC](https://discourse.processing.org/t/startup-keeps-running/34088 "2021-12-18T03:35:42Z")

</div>

This is some code from a bigger project. This is startup code that is supposed to run only once. Howeve, it keeps resetting stuff. So I added the two lines that have the global variable ‘run’ . Now it performs as it…

---

## [Drawing an faulty advent calendar](https://discourse.processing.org/t/drawing-an-faulty-advent-calendar/34171)

<div class="topic-metadata">

**Author:** [@thorbensson](https://discourse.processing.org/u/thorbensson)\
**Replies:** 4\
**Last updated:** [December 18, 2021, 12:16am UTC](https://discourse.processing.org/t/drawing-an-faulty-advent-calendar/34171 "2021-12-18T00:16:23Z")

</div>

Hey guys, I hope you are having a nice pre-christmas time… For my university homework I’ll have to draw an advent calendar which (in the first step) has to be drawn by a loop and a draw\_advent\_calendar\_door(float x, flo…

---

## [How to decrease GPU load when displaying an image in the window?](https://discourse.processing.org/t/how-to-decrease-gpu-load-when-displaying-an-image-in-the-window/34152)

<div class="topic-metadata">

**Author:** [@BenjaminColligan](https://discourse.processing.org/u/BenjaminColligan)\
**Replies:** 4\
**Last updated:** [December 17, 2021, 4:41pm UTC](https://discourse.processing.org/t/how-to-decrease-gpu-load-when-displaying-an-image-in-the-window/34152 "2021-12-17T16:41:42Z")

</div>

Hi there, My first question so please dismiss any silly mistakes with my wording. I am developing a knock off of Photoshop, suitably named ‘Fotoshop’, as a part of my 2nd year university graphics coursework. I am doing …

---

## [A general question from a code novice](https://discourse.processing.org/t/a-general-question-from-a-code-novice/34163)

<div class="topic-metadata">

**Author:** [@AudioBabble](https://discourse.processing.org/u/AudioBabble)\
**Replies:** 7\
**Last updated:** [December 17, 2021, 4:16pm UTC](https://discourse.processing.org/t/a-general-question-from-a-code-novice/34163 "2021-12-17T16:16:04Z")

</div>

hey all, this is not specifically a processing question, but I have found folks here to be very helpful in the past so would like to see if anyone can help me out… I’m wondering where would be a good place to ask total …

---

## [Split-Screen Mouse click Interaction](https://discourse.processing.org/t/split-screen-mouse-click-interaction/34124)

<div class="topic-metadata">

**Author:** [@JayT808s](https://discourse.processing.org/u/JayT808s)\
**Replies:** 2\
**Last updated:** [December 17, 2021, 12:39am UTC](https://discourse.processing.org/t/split-screen-mouse-click-interaction/34124 "2021-12-17T00:39:59Z")

</div>

Hi, I’m super new to programming and I’ve just been stuck on the same problem for the past few days and I couldn’t find anything on the forums that could help me out. I’m trying to split the screen in two, so that when y…

---

## [Processing on M1 / Pro / Max; how to go about optimising performance?](https://discourse.processing.org/t/processing-on-m1-pro-max-how-to-go-about-optimising-performance/34032)

<div class="topic-metadata">

**Author:** [@rapatski](https://discourse.processing.org/u/rapatski)\
**Replies:** 2\
**Last updated:** [December 16, 2021, 11:59pm UTC](https://discourse.processing.org/t/processing-on-m1-pro-max-how-to-go-about-optimising-performance/34032 "2021-12-16T23:59:11Z")

</div>

Hi friends, I guess we could see this one coming, but what is your experience running Processing on the new chipsets? I’ve recently taken receipt of a new 16" MacBook Pro with the 32 core M1 Max, but must admit that I’m…

---

## [Processing New GStreamer Error](https://discourse.processing.org/t/processing-new-gstreamer-error/33975)

<div class="topic-metadata">

**Author:** [@jwolkon](https://discourse.processing.org/u/jwolkon)\
**Replies:** 8\
**Last updated:** [December 16, 2021, 7:57pm UTC](https://discourse.processing.org/t/processing-new-gstreamer-error/33975 "2021-12-16T19:57:59Z")

</div>

Hello! It’s been a while since I’ve used Processing, but I just fired back up some old sketches that are no longer working. It appears the issue is with processing.video.Movie objects, and in particular the underlying G…

---

## [I need help with Processing (objects are cut off the screen)](https://discourse.processing.org/t/i-need-help-with-processing-objects-are-cut-off-the-screen/34128)

<div class="topic-metadata">

**Author:** [@rwong5102](https://discourse.processing.org/u/rwong5102)\
**Replies:** 4\
**Last updated:** [December 16, 2021, 3:58am UTC](https://discourse.processing.org/t/i-need-help-with-processing-objects-are-cut-off-the-screen/34128 "2021-12-16T03:58:15Z")

</div>

\[Hello! I am new to processing and this forum, srry if I’m messing up the format. I am trying to have an array of 100 random objects on my canvas but I don’t want the objects to be cut off the screen. Can someone help me…

---

## [StrokeWeight growing with loop](https://discourse.processing.org/t/strokeweight-growing-with-loop/34042)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 17\
**Last updated:** [December 14, 2021, 10:07pm UTC](https://discourse.processing.org/t/strokeweight-growing-with-loop/34042 "2021-12-14T22:07:01Z")

</div>

Hi there! I have made a loop with rectangles and I am trying to Increase gradually the Stroke , so have made another loop for that, but It does not work. Could you please help me? Thanks! size(1000,1000); background(25…

---

## [Submit Library to Processing Contributed Libraries](https://discourse.processing.org/t/submit-library-to-processing-contributed-libraries/34105)

<div class="topic-metadata">

**Author:** [@micycle](https://discourse.processing.org/u/micycle)\
**Replies:** 4\
**Last updated:** [December 14, 2021, 8:10pm UTC](https://discourse.processing.org/t/submit-library-to-processing-contributed-libraries/34105 "2021-12-14T20:10:30Z")

</div>

How do I submit a library to the Processing Contributed libraries? I’ve searched for an answer but can’t find anything anywhere…

---

## [Loading a .wav file into memory](https://discourse.processing.org/t/loading-a-wav-file-into-memory/34114)

<div class="topic-metadata">

**Author:** [@rebeccajkaye](https://discourse.processing.org/u/rebeccajkaye)\
**Replies:** 0\
**Last updated:** [December 14, 2021, 5:49pm UTC](https://discourse.processing.org/t/loading-a-wav-file-into-memory/34114 "2021-12-14T17:49:17Z")

</div>

Hello Apologies for posting this - it’s probably a simple question but my online search has failed (although even just a pointer to anywhere I could read about this online would be massively helpful). So, I’m wanting t…

---

## [Help with sound analysis code](https://discourse.processing.org/t/help-with-sound-analysis-code/34113)

<div class="topic-metadata">

**Author:** [@nata4596](https://discourse.processing.org/u/nata4596)\
**Replies:** 0\
**Last updated:** [December 14, 2021, 5:49pm UTC](https://discourse.processing.org/t/help-with-sound-analysis-code/34113 "2021-12-14T17:49:09Z")

</div>

I need help with this code. This is a program that measures rythm, it works fine. But i need that people lose or win when they reach the bpms of the song. In the last if i tried to do that but it only ends up in people…

---

## [Serial connection between Processing and Arduino doesn't work](https://discourse.processing.org/t/serial-connection-between-processing-and-arduino-doesnt-work/34054)

<div class="topic-metadata">

**Author:** [@grudovz](https://discourse.processing.org/u/grudovz)\
**Replies:** 7\
**Last updated:** [December 14, 2021, 1:14pm UTC](https://discourse.processing.org/t/serial-connection-between-processing-and-arduino-doesnt-work/34054 "2021-12-14T13:14:30Z")

</div>

I’m trying to connect an Arduino Nano Every and Processing via serial. I’m getting no errors on either side, and the arduino serial functionality works otherwise on the arduino IDE. I’m connecting on the right port, and…

---

## [Sending Processing canvas to addressable LEDs](https://discourse.processing.org/t/sending-processing-canvas-to-addressable-leds/34050)

<div class="topic-metadata">

**Author:** [@zumdar](https://discourse.processing.org/u/zumdar)\
**Replies:** 6\
**Last updated:** [December 14, 2021, 3:03am UTC](https://discourse.processing.org/t/sending-processing-canvas-to-addressable-leds/34050 "2021-12-14T03:03:13Z")

</div>

I want an easy way to send the processing canvas to addressable LEDs. I know about Fadecandy, but I dont have the hardware for that right now, I just have some Teensy’s and random Arduino’s lying around. I know i could b…

---

## [Loop inside another loop](https://discourse.processing.org/t/loop-inside-another-loop/33957)

<div class="topic-metadata">

**Author:** [@aya](https://discourse.processing.org/u/aya)\
**Replies:** 3\
**Last updated:** [December 14, 2021, 1:14am UTC](https://discourse.processing.org/t/loop-inside-another-loop/33957 "2021-12-14T01:14:12Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I was able to create the tree in the image but the code consists of two loops one for the trunk and one and branches, and I could not combine …

---

## [Looking for help on the motion sensor problems](https://discourse.processing.org/t/looking-for-help-on-the-motion-sensor-problems/34090)

<div class="topic-metadata">

**Author:** [@kathy123td](https://discourse.processing.org/u/kathy123td)\
**Replies:** 2\
**Last updated:** [December 13, 2021, 11:10am UTC](https://discourse.processing.org/t/looking-for-help-on-the-motion-sensor-problems/34090 "2021-12-13T11:10:04Z")

</div>

Hello, I replace a PIR Motion Sensor according to the 6 steps in my phone. I followed the schema reported of product introduction and steps in the posted url, but it does not work, it gives me values not consistent with…

---

## [Help! I'm trying to tessellate a shape with random vertices](https://discourse.processing.org/t/help-im-trying-to-tessellate-a-shape-with-random-vertices/34093)

<div class="topic-metadata">

**Author:** [@mrgrassoxen](https://discourse.processing.org/u/mrgrassoxen)\
**Replies:** 0\
**Last updated:** [December 13, 2021, 8:19am UTC](https://discourse.processing.org/t/help-im-trying-to-tessellate-a-shape-with-random-vertices/34093 "2021-12-13T08:19:32Z")

</div>

I am able to create a shape and tesselate it (using a for loop) when I have a FIXED number of vertices on the top/bottom and sides. However when I try using a random number of vertices for top/bottom and sides, when I g…

---

## [Slit scan with picture](https://discourse.processing.org/t/slit-scan-with-picture/34073)

<div class="topic-metadata">

**Author:** [@bopbopbop114](https://discourse.processing.org/u/bopbopbop114)\
**Replies:** 2\
**Last updated:** [December 13, 2021, 12:04am UTC](https://discourse.processing.org/t/slit-scan-with-picture/34073 "2021-12-13T00:04:10Z")

</div>

Hi everybody, i want to ask if processing can do slit scan with pictures thank you

[Previous page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=97)

[Next page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=99)
