# Processing

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

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

**Page:** 108

---

## [After multiple installs Processing wont start, independent of version](https://discourse.processing.org/t/after-multiple-installs-processing-wont-start-independent-of-version/32325)

<div class="topic-metadata">

**Author:** [@Arago](https://discourse.processing.org/u/Arago)\
**Replies:** 0\
**Last updated:** [September 20, 2021, 4:06am UTC](https://discourse.processing.org/t/after-multiple-installs-processing-wont-start-independent-of-version/32325 "2021-09-20T04:06:01Z")

</div>

Context Im in college and for a class my teacher is using processing, everything was going fine until we needed to use the contributions manager to download a library for some assingments. At first I couldn’t use any of…

---

## [The get() function returns NullPointerException](https://discourse.processing.org/t/the-get-function-returns-nullpointerexception/33039)

<div class="topic-metadata">

**Author:** [@s31](https://discourse.processing.org/u/s31)\
**Replies:** 5\
**Last updated:** [October 24, 2021, 4:06pm UTC](https://discourse.processing.org/t/the-get-function-returns-nullpointerexception/33039 "2021-10-24T16:06:00Z")

</div>

Hello, I’ve been trying to use the get() function inside my sketch to get the colour of a pixel at a specific position. However, when I attempt to do this inside the sketch it returns NullPointerException, I think I’ve …

---

## [How to make another ball after a click](https://discourse.processing.org/t/how-to-make-another-ball-after-a-click/33038)

<div class="topic-metadata">

**Author:** [@Kenga123456](https://discourse.processing.org/u/Kenga123456)\
**Replies:** 5\
**Last updated:** [October 24, 2021, 1:06pm UTC](https://discourse.processing.org/t/how-to-make-another-ball-after-a-click/33038 "2021-10-24T13:06:26Z")

</div>

class Ball { float x = random(0, width); float y = 100; float ySpeed = 1; void move() { y += ySpeed } void show() { ellipse(x, y, 20, 20); } } Ball\[\] balls = new Ball \[1\]; void setup() { frameRate(60); si…

---

## [Collisions and arrays on Processing Java #2](https://discourse.processing.org/t/collisions-and-arrays-on-processing-java-2/33033)

<div class="topic-metadata">

**Author:** [@Locohogo12](https://discourse.processing.org/u/Locohogo12)\
**Replies:** 1\
**Last updated:** [October 24, 2021, 10:12am UTC](https://discourse.processing.org/t/collisions-and-arrays-on-processing-java-2/33033 "2021-10-24T10:12:44Z")

</div>

I’ve built my space game, but am unable to get my bullet to break my moon, not sure what to use in order to achieve this, tried everything!!!

---

## [Trying to do light refraction and reflection](https://discourse.processing.org/t/trying-to-do-light-refraction-and-reflection/33035)

<div class="topic-metadata">

**Author:** [@ceresnia](https://discourse.processing.org/u/ceresnia)\
**Replies:** 0\
**Last updated:** [October 24, 2021, 5:42am UTC](https://discourse.processing.org/t/trying-to-do-light-refraction-and-reflection/33035 "2021-10-24T05:42:34Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I am trying to do a light refraction simulation under the waves. I got the wave code so I can make wavey surface but I don’t know how to expre…

---

## [Triangle using angles](https://discourse.processing.org/t/triangle-using-angles/32994)

<div class="topic-metadata">

**Author:** [@Tay](https://discourse.processing.org/u/Tay)\
**Replies:** 9\
**Last updated:** [October 23, 2021, 11:21pm UTC](https://discourse.processing.org/t/triangle-using-angles/32994 "2021-10-23T23:21:06Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Please if anyone can help me, i only know how to draw a triangle using triangle(x1, y1, x2, y2, x3, y3); how would one draw a triangle using a…

---

## [Org.processing.wiki.triangulate missing libary!](https://discourse.processing.org/t/org-processing-wiki-triangulate-missing-libary/32977)

<div class="topic-metadata">

**Author:** [@valeri](https://discourse.processing.org/u/valeri)\
**Replies:** 1\
**Last updated:** [October 23, 2021, 1:55pm UTC](https://discourse.processing.org/t/org-processing-wiki-triangulate-missing-libary/32977 "2021-10-23T13:55:42Z")

</div>

Hello, I\`m new into the Processing, and have a major problem for more than one scripts. Here is the error: No library found for org.processing.wiki.triangulate Libraries must be installed in a folder named ‘libraries’…

---

## [How to define custom planes in processing?](https://discourse.processing.org/t/how-to-define-custom-planes-in-processing/32918)

<div class="topic-metadata">

**Author:** [@SNICKRS](https://discourse.processing.org/u/SNICKRS)\
**Replies:** 5\
**Last updated:** [October 23, 2021, 1:00am UTC](https://discourse.processing.org/t/how-to-define-custom-planes-in-processing/32918 "2021-10-23T01:00:45Z")

</div>

I’m trying to recreate a kind of sphereical-planet like world, and when making the sky, I have to define sky and ground planes to change the sky and world colors. Using a PShape to represent the sky works, but it looks l…

---

## [Collisions and arrays on Processing Java](https://discourse.processing.org/t/collisions-and-arrays-on-processing-java/32986)

<div class="topic-metadata">

**Author:** [@Locohogo12](https://discourse.processing.org/u/Locohogo12)\
**Replies:** 4\
**Last updated:** [October 22, 2021, 11:17pm UTC](https://discourse.processing.org/t/collisions-and-arrays-on-processing-java/32986 "2021-10-22T23:17:09Z")

</div>

Need help with Collosions with moving objects, along with array backgrounds

---

## [Sound processing IN and OUT issues](https://discourse.processing.org/t/sound-processing-in-and-out-issues/33006)

<div class="topic-metadata">

**Author:** [@Travasso](https://discourse.processing.org/u/Travasso)\
**Replies:** 2\
**Last updated:** [October 22, 2021, 6:29pm UTC](https://discourse.processing.org/t/sound-processing-in-and-out-issues/33006 "2021-10-22T18:29:31Z")

</div>

Hi everyone, I am having some problems with my code, and maybe someone could help me. I am doing a code where I use sensors to start audio playback and to start some sound effects. When I separate the codes - audio play…

---

## [Shader glow effect](https://discourse.processing.org/t/shader-glow-effect/33001)

<div class="topic-metadata">

**Author:** [@Dazzid](https://discourse.processing.org/u/Dazzid)\
**Replies:** 2\
**Last updated:** [October 22, 2021, 1:11pm UTC](https://discourse.processing.org/t/shader-glow-effect/33001 "2021-10-22T13:11:17Z")

</div>

I would like to add a glow effect using shaders but I’m confused about how to implement examples from other sources in Processing. I want to test this example GLSL Sandbox precision mediump float; varying vec2 surface…

---

## [Aliasing in flow-field PShapes ♒](https://discourse.processing.org/t/aliasing-in-flow-field-pshapes/32989)

<div class="topic-metadata">

**Author:** [@Simple\_de\_concombre](https://discourse.processing.org/u/Simple_de_concombre)\
**Replies:** 2\
**Last updated:** [October 22, 2021, 12:57pm UTC](https://discourse.processing.org/t/aliasing-in-flow-field-pshapes/32989 "2021-10-22T12:57:50Z")

</div>

Hi! I’m getting aliased lines when drawing my flow field. The SVG export looks fine. Tried quite a few things already, without success: smooth()-ing, different stroke weights, changing the Windows application scaling, …

---

## [Assignment need help Due by 11:59pm](https://discourse.processing.org/t/assignment-need-help-due-by-11-59pm/32956)

<div class="topic-metadata">

**Author:** [@ineedtosleep](https://discourse.processing.org/u/ineedtosleep)\
**Replies:** 2\
**Last updated:** [October 22, 2021, 12:06am UTC](https://discourse.processing.org/t/assignment-need-help-due-by-11-59pm/32956 "2021-10-22T00:06:51Z")

</div>

Please help!!! I do not know how to make an animation with this!! what i had in mind is moving the whole thing towards the right making it a loop. I need to create a 15 sec short video.

---

## [My functions are giving me an error, wanting a semicolon somewhere](https://discourse.processing.org/t/my-functions-are-giving-me-an-error-wanting-a-semicolon-somewhere/32961)

<div class="topic-metadata">

**Author:** [@Timeless\_Mage](https://discourse.processing.org/u/Timeless_Mage)\
**Replies:** 4\
**Last updated:** [October 21, 2021, 5:44pm UTC](https://discourse.processing.org/t/my-functions-are-giving-me-an-error-wanting-a-semicolon-somewhere/32961 "2021-10-21T17:44:32Z")

</div>

These functions are giving me an error, asking for a semicolon, but when I add it, it doesn’t fix the error. \<\> int arrayTotal(int array\[\]) { int total= 0; for (int i= 0; i\<array.length; i++) { total+=array\[i\]; } …

---

## [Collsions and arrays (duplicate)](https://discourse.processing.org/t/collsions-and-arrays-duplicate/32985)

<div class="topic-metadata">

**Author:** [@Locohogo12](https://discourse.processing.org/u/Locohogo12)\
**Replies:** 0\
**Last updated:** [October 21, 2021, 12:26pm UTC](https://discourse.processing.org/t/collsions-and-arrays-duplicate/32985 "2021-10-21T12:26:41Z")

</div>

Help with collosions of objects and moving objects, with array backgrounds

---

## [Breaking up a String](https://discourse.processing.org/t/breaking-up-a-string/32939)

<div class="topic-metadata">

**Author:** [@dtools22](https://discourse.processing.org/u/dtools22)\
**Replies:** 17\
**Last updated:** [October 21, 2021, 11:34am UTC](https://discourse.processing.org/t/breaking-up-a-string/32939 "2021-10-21T11:34:34Z")

</div>

Hello All, So I’m messing around with some Fantasy Football data for a little coding project. I have a spread sheet that has the following information from a daily fantasy football contest I played in. A full lineup o…

---

## [Circles moving randomly and different to each-other + collision](https://discourse.processing.org/t/circles-moving-randomly-and-different-to-each-other-collision/32979)

<div class="topic-metadata">

**Author:** [@prada123](https://discourse.processing.org/u/prada123)\
**Replies:** 0\
**Last updated:** [October 21, 2021, 7:45am UTC](https://discourse.processing.org/t/circles-moving-randomly-and-different-to-each-other-collision/32979 "2021-10-21T07:45:27Z")

</div>

I’ve been trying to understand how the circles flowing from the right to the left can become random instead of being in the same line. the circles enter at random/different times. I’m new to processing and am stuck on th…

---

## [Making the bricks permanently disappear in Brickbreaker](https://discourse.processing.org/t/making-the-bricks-permanently-disappear-in-brickbreaker/32973)

<div class="topic-metadata">

**Author:** [@KMtz](https://discourse.processing.org/u/KMtz)\
**Replies:** 1\
**Last updated:** [October 21, 2021, 6:52am UTC](https://discourse.processing.org/t/making-the-bricks-permanently-disappear-in-brickbreaker/32973 "2021-10-21T06:52:00Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi! I am a beginner working on a Brickbreaker game, but I encountered some problems trying to make bricks permanently disappear when the ball hit…

---

## [Processing can not run any function imported from Library](https://discourse.processing.org/t/processing-can-not-run-any-function-imported-from-library/32945)

<div class="topic-metadata">

**Author:** [@Ruimao96](https://discourse.processing.org/u/Ruimao96)\
**Replies:** 4\
**Last updated:** [October 20, 2021, 9:36pm UTC](https://discourse.processing.org/t/processing-can-not-run-any-function-imported-from-library/32945 "2021-10-20T21:36:27Z")

</div>

I installed sound library to use the SoundFile function, but it always run into an error called ClassNotFoundException: processing.sound.SoundFile. I thought there was an error in my code, but soon I found out all f…

---

## [Calculate text length](https://discourse.processing.org/t/calculate-text-length/32885)

<div class="topic-metadata">

**Author:** [@yalaniv](https://discourse.processing.org/u/yalaniv)\
**Replies:** 8\
**Last updated:** [October 20, 2021, 3:46pm UTC](https://discourse.processing.org/t/calculate-text-length/32885 "2021-10-20T15:46:38Z")

</div>

Update: I found the command textAlign, but it doesn’t do what I need I want to create a loop that runs for example 50 times, And each time it write word in the center of the screen, in smaller font, Here is my code: …

---

## [Memory card game without classes](https://discourse.processing.org/t/memory-card-game-without-classes/32922)

<div class="topic-metadata">

**Author:** [@Lisanne](https://discourse.processing.org/u/Lisanne)\
**Replies:** 2\
**Last updated:** [October 20, 2021, 1:30am UTC](https://discourse.processing.org/t/memory-card-game-without-classes/32922 "2021-10-20T01:30:36Z")

</div>

Hello everyone, I’m making a memory card game in Processing. This is for a homework assignment. I’ve come pretty far with all the information online, but I’m stuck at a few problems. My game has a few requirements to m…

---

## [How to have line with a set length point towards a moving ellipse?](https://discourse.processing.org/t/how-to-have-line-with-a-set-length-point-towards-a-moving-ellipse/32860)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 16\
**Last updated:** [October 19, 2021, 10:33pm UTC](https://discourse.processing.org/t/how-to-have-line-with-a-set-length-point-towards-a-moving-ellipse/32860 "2021-10-19T22:33:32Z")

</div>

how to have the line with //this line behind it, always point towards the ellipse with // this ellipse behind it, while staying 100 pixels long? float sunx=300; float suny=60; int time=600; float begx= 300; float begy= …

---

## [Help with some Crosshairs](https://discourse.processing.org/t/help-with-some-crosshairs/32925)

<div class="topic-metadata">

**Author:** [@Blaze](https://discourse.processing.org/u/Blaze)\
**Replies:** 1\
**Last updated:** [October 19, 2021, 8:26pm UTC](https://discourse.processing.org/t/help-with-some-crosshairs/32925 "2021-10-19T20:26:48Z")

</div>

please format code with \</\> button \* homework policy \* asking questions So, as part of a class assessment I need to make a spooky halloween scene, so far my code is this / if((mouseX \>= 100) && (mouseX \<= 700) && (…

---

## [Make a formula from a String into a number](https://discourse.processing.org/t/make-a-formula-from-a-string-into-a-number/32452)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 6\
**Last updated:** [October 19, 2021, 4:43pm UTC](https://discourse.processing.org/t/make-a-formula-from-a-string-into-a-number/32452 "2021-10-19T16:43:44Z")

</div>

I’m currently trying to make a problem to calculate a Expression in a String. Until now I used a code like this: final ScriptEngine js=new ScriptEngineManager().getEngineByName("js"); String eq="5\*(2+1)"; try{ double e…

---

## [Make overlapping objects use transparency to blend colours, like a Venn Diagram](https://discourse.processing.org/t/make-overlapping-objects-use-transparency-to-blend-colours-like-a-venn-diagram/32930)

<div class="topic-metadata">

**Author:** [@GoodJuJu](https://discourse.processing.org/u/GoodJuJu)\
**Replies:** 4\
**Last updated:** [October 19, 2021, 3:20pm UTC](https://discourse.processing.org/t/make-overlapping-objects-use-transparency-to-blend-colours-like-a-venn-diagram/32930 "2021-10-19T15:20:45Z")

</div>

I have created a Venn diagram using Processing, however, I can either make solid RGB colours, or use an alpha value (RGBA) to give the objects transparency, but I wondered if there was an existing function inside Process…

---

## [Can anybody help me with the my assignment please](https://discourse.processing.org/t/can-anybody-help-me-with-the-my-assignment-please/32929)

<div class="topic-metadata">

**Author:** [@Chandan](https://discourse.processing.org/u/Chandan)\
**Replies:** 1\
**Last updated:** [October 19, 2021, 11:54am UTC](https://discourse.processing.org/t/can-anybody-help-me-with-the-my-assignment-please/32929 "2021-10-19T11:54:24Z")

</div>

Please send me the processing code as soon as possible. Here are my questions. There are 5 questions.

---

## [PGraphics with "for"](https://discourse.processing.org/t/pgraphics-with-for/32917)

<div class="topic-metadata">

**Author:** [@Karrajo](https://discourse.processing.org/u/Karrajo)\
**Replies:** 6\
**Last updated:** [October 19, 2021, 1:29am UTC](https://discourse.processing.org/t/pgraphics-with-for/32917 "2021-10-19T01:29:53Z")

</div>

Hi, I’m trying to convert some code to PGraphics because I want to save the result in a bigger size, but I’m using a “for” part, and I can’t find the right way to make that everything works like in the code without PGrap…

---

## [Stop player from going out of board](https://discourse.processing.org/t/stop-player-from-going-out-of-board/32858)

<div class="topic-metadata">

**Author:** [@kiddish](https://discourse.processing.org/u/kiddish)\
**Replies:** 10\
**Last updated:** [October 18, 2021, 5:36pm UTC](https://discourse.processing.org/t/stop-player-from-going-out-of-board/32858 "2021-10-18T17:36:32Z")

</div>

After a few tries, it still won’t get to work. Somewhat created a game in which the object collides with multiple stuff on the map. I have created a player, which is the image I can move with the cursor. What I actuall…

---

## [Gradient interpolation with 3+ points](https://discourse.processing.org/t/gradient-interpolation-with-3-points/32832)

<div class="topic-metadata">

**Author:** [@dirknbr](https://discourse.processing.org/u/dirknbr)\
**Replies:** 6\
**Last updated:** [October 18, 2021, 11:14am UTC](https://discourse.processing.org/t/gradient-interpolation-with-3-points/32832 "2021-10-18T11:14:09Z")

</div>

We have a n x n canvas and m (say 3) points in it. The m points/nodes all have different fixed RGB colors. The color of each dot in n x n is defined by the distance from any of the color nodes. So each dot is a mixture (…

---

## [Hidden Markov Models in Processing](https://discourse.processing.org/t/hidden-markov-models-in-processing/32880)

<div class="topic-metadata">

**Author:** [@Dazzid](https://discourse.processing.org/u/Dazzid)\
**Replies:** 3\
**Last updated:** [October 18, 2021, 10:26am UTC](https://discourse.processing.org/t/hidden-markov-models-in-processing/32880 "2021-10-18T10:26:50Z")

</div>

Has someone implemented Hierarchical Hidden Markov Models in processing before?

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

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