# Latest

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

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

**Page:** 184

---

## [Would it be okay to the Three.Js lib as the 3d renderer and use p5 as the overlay](https://discourse.processing.org/t/would-it-be-okay-to-the-three-js-lib-as-the-3d-renderer-and-use-p5-as-the-overlay/32991)

<div class="topic-metadata">

**Author:** [@Errorbot1122](https://discourse.processing.org/u/Errorbot1122)\
**Replies:** 6\
**Last updated:** [October 22, 2021, 6:10pm UTC](https://discourse.processing.org/t/would-it-be-okay-to-the-three-js-lib-as-the-3d-renderer-and-use-p5-as-the-overlay/32991 "2021-10-22T18:10:50Z")

</div>

I want three.js to use the same canvas, as in p5 being the UI and three.js as the Renderer would that be allowed / okay or is it bad… the could look be like this… // Vars, functions and stuff... function setup() { c…

---

## [Is there a way stop the function "windowResized" to rerun the "draw"?](https://discourse.processing.org/t/is-there-a-way-stop-the-function-windowresized-to-rerun-the-draw/32995)

<div class="topic-metadata">

**Author:** [@animanoir](https://discourse.processing.org/u/animanoir)\
**Replies:** 2\
**Last updated:** [October 22, 2021, 4:23pm UTC](https://discourse.processing.org/t/is-there-a-way-stop-the-function-windowresized-to-rerun-the-draw/32995 "2021-10-22T16:23:18Z")

</div>

Each time the windows is resized, the responsive function works as intended, but redrawing the canvas so all the sketch and its variables are recalculated. I simply want to position words in a random way through out the…

---

## [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, …

---

## [Typererror message | cannot figure it out](https://discourse.processing.org/t/typererror-message-cannot-figure-it-out/33000)

<div class="topic-metadata">

**Author:** [@cartopher](https://discourse.processing.org/u/cartopher)\
**Replies:** 2\
**Last updated:** [October 22, 2021, 12:33pm UTC](https://discourse.processing.org/t/typererror-message-cannot-figure-it-out/33000 "2021-10-22T12:33:52Z")

</div>

In the HTML file, I am attempting to set up Esri Leaflet. The base map displays, however, there is a ‘typerror’ message displayed in the console. I researched for too long and still can’t figure out the error. Any sugge…

---

## [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.

---

## [Help i m beginner and i don't understand whats happend](https://discourse.processing.org/t/help-i-m-beginner-and-i-dont-understand-whats-happend/32982)

<div class="topic-metadata">

**Author:** [@Hiram-Belgium](https://discourse.processing.org/u/Hiram-Belgium)\
**Replies:** 10\
**Last updated:** [October 21, 2021, 7:38pm UTC](https://discourse.processing.org/t/help-i-m-beginner-and-i-dont-understand-whats-happend/32982 "2021-10-21T19:38:47Z")

</div>

Hello, my English is bad, I am French! I uploaded a file to openprocessing to study the mechanism of an automatic write that I need. I am under visualcode … Cannot run the program because I have an error (view in the co…

---

## [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

---

## [Canvas & Save Image output sizes](https://discourse.processing.org/t/canvas-save-image-output-sizes/32934)

<div class="topic-metadata">

**Author:** [@newreality](https://discourse.processing.org/u/newreality)\
**Replies:** 2\
**Last updated:** [October 21, 2021, 11:53am UTC](https://discourse.processing.org/t/canvas-save-image-output-sizes/32934 "2021-10-21T11:53:27Z")

</div>

Hi All, please be easy on me as this is my first post and I’m quite new to coding, in general. However I have made some amazing progress these past few weeks. I do have a question and I may be using the wrong terminolog…

---

## [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…

---

## [Canvas with semi-transparent backgrounds gets tranprenty removed in draw](https://discourse.processing.org/t/canvas-with-semi-transparent-backgrounds-gets-tranprenty-removed-in-draw/32974)

<div class="topic-metadata">

**Author:** [@Errorbot1122](https://discourse.processing.org/u/Errorbot1122)\
**Replies:** 3\
**Last updated:** [October 21, 2021, 10:14am UTC](https://discourse.processing.org/t/canvas-with-semi-transparent-backgrounds-gets-tranprenty-removed-in-draw/32974 "2021-10-21T10:14:46Z")

</div>

When I put my semi-transparent background, into the draw loop the transparency disappears after a few frames function draw() { background(100, 100); } Minimal Reproducible Result

---

## [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…

---

## [Resizing the canvas using canvas.size freezes my code](https://discourse.processing.org/t/resizing-the-canvas-using-canvas-size-freezes-my-code/32942)

<div class="topic-metadata">

**Author:** [@Errorbot1122](https://discourse.processing.org/u/Errorbot1122)\
**Replies:** 3\
**Last updated:** [October 20, 2021, 6:23pm UTC](https://discourse.processing.org/t/resizing-the-canvas-using-canvas-size-freezes-my-code/32942 "2021-10-20T18:23:52Z")

</div>

I want to resize a canvas using canvas.size(w, h) but it keeps freezing my code!!! What I’ve tried Converting the canvas (I think is p5.Renderer) into an element by doing this: new p5.Element(canvas.elt, p5), but it st…

---

## [Processing 4 and midibus on Pi 4 works!](https://discourse.processing.org/t/processing-4-and-midibus-on-pi-4-works/32957)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 1\
**Last updated:** [October 20, 2021, 4:00pm UTC](https://discourse.processing.org/t/processing-4-and-midibus-on-pi-4-works/32957 "2021-10-20T16:00:07Z")

</div>

Hi, I managed to run Processing 4 on Pi 4 with decent latency, for audio analysis is not enough but for catch midi and visuals it’s enough, even without export ! I install last linux manjaro 21.10. I install this versi…

---

## [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: …

---

## [Orthographic camera not working](https://discourse.processing.org/t/orthographic-camera-not-working/32950)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 1\
**Last updated:** [October 20, 2021, 2:53pm UTC](https://discourse.processing.org/t/orthographic-camera-not-working/32950 "2021-10-20T14:53:00Z")

</div>

I’m wondering if the orthographic camera is broken. I used the settings found here: I just don’t see anything appearing. Could someone confirm?

---

## [3D canvas clipping/Rotated Y lines not making it to or beyond the edge of z -axis?](https://discourse.processing.org/t/3d-canvas-clipping-rotated-y-lines-not-making-it-to-or-beyond-the-edge-of-z-axis/32954)

<div class="topic-metadata">

**Author:** [@hifilorau](https://discourse.processing.org/u/hifilorau)\
**Replies:** 1\
**Last updated:** [October 20, 2021, 2:46pm UTC](https://discourse.processing.org/t/3d-canvas-clipping-rotated-y-lines-not-making-it-to-or-beyond-the-edge-of-z-axis/32954 "2021-10-20T14:46:41Z")

</div>

Long time lurker, first time poster. I am working on a generative sketch with WEBGL This is an example. I’m having a huge issue getting my grid lines to extend to the edge of the canvas. And I suspect it’s because i e…

---

## [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= …

---

## [Converting from p5.js to Processing 3.5.4](https://discourse.processing.org/t/converting-from-p5-js-to-processing-3-5-4/32927)

<div class="topic-metadata">

**Author:** [@laurentangy](https://discourse.processing.org/u/laurentangy)\
**Replies:** 1\
**Last updated:** [October 19, 2021, 10:27pm UTC](https://discourse.processing.org/t/converting-from-p5-js-to-processing-3-5-4/32927 "2021-10-19T22:27:49Z")

</div>

I found some inspiration for a project (see Piano Synthesizer - OpenProcessing) but unfortunately it’s in p5.js. Does anyone know how convert the syntax to Processing 3.5.4? I have read the Github guide on transitions an…

---

## [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) && (…

---

## [P5.js - How to save a single picture in the draw()](https://discourse.processing.org/t/p5-js-how-to-save-a-single-picture-in-the-draw/32906)

<div class="topic-metadata">

**Author:** [@niuuin](https://discourse.processing.org/u/niuuin)\
**Replies:** 4\
**Last updated:** [October 19, 2021, 8:01pm UTC](https://discourse.processing.org/t/p5-js-how-to-save-a-single-picture-in-the-draw/32906 "2021-10-19T20:01:47Z")

</div>

I want to save the picture when the volume is greater than a certain level, but the current code will save many pictures continuously. How can I save only one picture? Thank you for your help:) https://editor.p5js.org/…

---

## [Trying to get a better understanding of array loops](https://discourse.processing.org/t/trying-to-get-a-better-understanding-of-array-loops/32779)

<div class="topic-metadata">

**Author:** [@ADG](https://discourse.processing.org/u/ADG)\
**Replies:** 11\
**Last updated:** [October 19, 2021, 7:22pm UTC](https://discourse.processing.org/t/trying-to-get-a-better-understanding-of-array-loops/32779 "2021-10-19T19:22:37Z")

</div>

Hi, I’m trying to get a better understanding of arrays at a basic level before I advance to using them with functions & classes, but I am struggling a little. I wrote this: let r; let g; let b; let x; let y; let w; le…

---

## [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.

---

## [Embedding OpenProcessing Sketches](https://discourse.processing.org/t/embedding-openprocessing-sketches/32614)

<div class="topic-metadata">

**Author:** [@KumuPaul](https://discourse.processing.org/u/KumuPaul)\
**Replies:** 18\
**Last updated:** [October 19, 2021, 7:10am UTC](https://discourse.processing.org/t/embedding-openprocessing-sketches/32614 "2021-10-19T07:10:48Z")

</div>

I know this forum supports embedding sketches hosted at editor.p5js.org. However it doesn’t seem to support sketches from openprocessing.org. Presumably this forum is configured with a whitelist of domains that can be em…

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

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