# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=128

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

**Page:** 129

---

## [Environment mapping](https://discourse.processing.org/t/environment-mapping/37678)

<div class="topic-metadata">

**Author:** [@DaveH](https://discourse.processing.org/u/DaveH)\
**Replies:** 6\
**Last updated:** [June 22, 2022, 5:21pm UTC](https://discourse.processing.org/t/environment-mapping/37678 "2022-06-22T17:21:44Z")

</div>

Hi, I’m trying to use cubemaps in P5, they seem to work OK if I get the gl context, like const IDcanvas = document.getElementById("canvas"); gl = IDcanvas.getContext("webgl"); … and do the OpenGL TEXTURE\_CUBE\_MAP st…

---

## [Table findRows() multiple criteria](https://discourse.processing.org/t/table-findrows-multiple-criteria/37595)

<div class="topic-metadata">

**Author:** [@Erif](https://discourse.processing.org/u/Erif)\
**Replies:** 18\
**Last updated:** [June 22, 2022, 9:56am UTC](https://discourse.processing.org/t/table-findrows-multiple-criteria/37595 "2022-06-22T09:56:39Z")

</div>

Hello, Say I’m importing a .csv table where headers are: Column 2 - Data\_value Column 11 - Series\_title\_2 and I’m printing out the values from column 2 where column 11 contains “Mining”, as follows: Table table = lo…

---

## [Math.Sqrt(x); not working?](https://discourse.processing.org/t/math-sqrt-x-not-working/37681)

<div class="topic-metadata">

**Author:** [@neon124](https://discourse.processing.org/u/neon124)\
**Replies:** 2\
**Last updated:** [June 22, 2022, 9:36am UTC](https://discourse.processing.org/t/math-sqrt-x-not-working/37681 "2022-06-22T09:36:57Z")

</div>

I’m making a calculator and when trying to make the square root function, it outputs the number you put in, not the square root. Here’s the bit of code that applies to the square root function. SquareRoot = (Button)find…

---

## [Multiple variables in one for loop?](https://discourse.processing.org/t/multiple-variables-in-one-for-loop/37635)

<div class="topic-metadata">

**Author:** [@sleepycode](https://discourse.processing.org/u/sleepycode)\
**Replies:** 7\
**Last updated:** [June 22, 2022, 2:24am UTC](https://discourse.processing.org/t/multiple-variables-in-one-for-loop/37635 "2022-06-22T02:24:04Z")

</div>

Is it possible to use two variables in a single for loop? Here’s my non-working code: void sqrNew() { for (float x = random(295,300),float y = random(355,360); x \< 700 && y \< 700; x = x + 55, y = y + 55) { …

---

## [Sieve of Eratosthenes Crash! NullPointerException](https://discourse.processing.org/t/sieve-of-eratosthenes-crash-nullpointerexception/22450)

<div class="topic-metadata">

**Author:** [@Maxnotabletoprogramm](https://discourse.processing.org/u/Maxnotabletoprogramm)\
**Replies:** 10\
**Last updated:** [June 21, 2022, 3:35pm UTC](https://discourse.processing.org/t/sieve-of-eratosthenes-crash-nullpointerexception/22450 "2022-06-21T15:35:07Z")

</div>

Hey, Im currently trying(!) to make a sieve of eratosthenes in processing as a school project. This is my code: int max=1500; //maximale zahl für die Primzahlen berechnet werden sollen int p=2; // boolean\[\] pr…

---

## [Could Processing run on MacBook M1？](https://discourse.processing.org/t/could-processing-run-on-macbook-m1/25786)

<div class="topic-metadata">

**Author:** [@XUqb](https://discourse.processing.org/u/XUqb)\
**Replies:** 3\
**Last updated:** [June 21, 2022, 2:21pm UTC](https://discourse.processing.org/t/could-processing-run-on-macbook-m1/25786 "2022-06-21T14:21:26Z")

</div>

please format code with \</\> button \* homework policy \* asking questions with libraries

---

## [How do I smoothly reduce the size of a large image?](https://discourse.processing.org/t/how-do-i-smoothly-reduce-the-size-of-a-large-image/37624)

<div class="topic-metadata">

**Author:** [@Chi3010](https://discourse.processing.org/u/Chi3010)\
**Replies:** 4\
**Last updated:** [June 21, 2022, 12:22pm UTC](https://discourse.processing.org/t/how-do-i-smoothly-reduce-the-size-of-a-large-image/37624 "2022-06-21T12:22:40Z")

</div>

Hello!!! I am having a simple problem. When I generate a large image with p5.graphics and then display it at a reduced size, it does not display nicely. For example, the following code generates p5.graphics with a siz…

---

## [Random word generator](https://discourse.processing.org/t/random-word-generator/37667)

<div class="topic-metadata">

**Author:** [@FrankyWes](https://discourse.processing.org/u/FrankyWes)\
**Replies:** 1\
**Last updated:** [June 21, 2022, 11:26am UTC](https://discourse.processing.org/t/random-word-generator/37667 "2022-06-21T11:26:18Z")

</div>

Yo smart people, I am currently working on a random word generator. The reason for it is to give an objective either every 15 minutes or by key press. For instance “Draw the letter B”. I got the randomiser, but it is ei…

---

## [Lecturer @ Goldsmiths: Computational Arts, Games Programming, Computer Science and Tech Team Manager](https://discourse.processing.org/t/lecturer-goldsmiths-computational-arts-games-programming-computer-science-and-tech-team-manager/37663)

<div class="topic-metadata">

**Author:** [@jessewolpert](https://discourse.processing.org/u/jessewolpert)\
**Replies:** 0\
**Last updated:** [June 21, 2022, 9:58am UTC](https://discourse.processing.org/t/lecturer-goldsmiths-computational-arts-games-programming-computer-science-and-tech-team-manager/37663 "2022-06-21T09:58:25Z")

</div>

We are recruiting for lecturer roles in the department of computing at Goldsmiths (Univerity of London): Computational Arts, Games Programming, Computer Science and Technical Team Manager. Deadline for applications is 4…

---

## [Video Capture from Skydroid OTG receiver](https://discourse.processing.org/t/video-capture-from-skydroid-otg-receiver/37662)

<div class="topic-metadata">

**Author:** [@jake99](https://discourse.processing.org/u/jake99)\
**Replies:** 1\
**Last updated:** [June 21, 2022, 9:39am UTC](https://discourse.processing.org/t/video-capture-from-skydroid-otg-receiver/37662 "2022-06-21T09:39:08Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I have been trying to load video from FPV receiver using video library. I have confirmed that it successfully loads feeds from the webcam, and C…

---

## [Using p5.play with React?](https://discourse.processing.org/t/using-p5-play-with-react/37658)

<div class="topic-metadata">

**Author:** [@spallis](https://discourse.processing.org/u/spallis)\
**Replies:** 0\
**Last updated:** [June 20, 2022, 7:19pm UTC](https://discourse.processing.org/t/using-p5-play-with-react/37658 "2022-06-20T19:19:08Z")

</div>

I am trying to use p5.play with React (p5.play - a game library for p5.js). I tried following the example listed on the Github, but the example only uses an index.html and sketch.js file. When I tried using in a React co…

---

## [Text outline neon](https://discourse.processing.org/t/text-outline-neon/37639)

<div class="topic-metadata">

**Author:** [@PhySan](https://discourse.processing.org/u/PhySan)\
**Replies:** 5\
**Last updated:** [June 20, 2022, 7:06pm UTC](https://discourse.processing.org/t/text-outline-neon/37639 "2022-06-20T19:06:33Z")

</div>

Hi all, I am trying to play a little with lettering, outline and lights and I am trying to simulate some neon letters that can light up and appear to glow. I used the blur filter to achieve the glow effect. However, th…

---

## [Classes Help Needed](https://discourse.processing.org/t/classes-help-needed/37646)

<div class="topic-metadata">

**Author:** [@BeshooD](https://discourse.processing.org/u/BeshooD)\
**Replies:** 9\
**Last updated:** [June 20, 2022, 3:44pm UTC](https://discourse.processing.org/t/classes-help-needed/37646 "2022-06-20T15:44:09Z")

</div>

Does anyone know where I can pay someone to just add classes to my pre-existing code?

---

## [Stream Processing Sketch using NDI](https://discourse.processing.org/t/stream-processing-sketch-using-ndi/37650)

<div class="topic-metadata">

**Author:** [@erkek](https://discourse.processing.org/u/erkek)\
**Replies:** 0\
**Last updated:** [June 20, 2022, 2:13pm UTC](https://discourse.processing.org/t/stream-processing-sketch-using-ndi/37650 "2022-06-20T14:13:44Z")

</div>

Hi, I am currently working on a project in which I want to create an animation using Processing that is modified live by microphone input. The whole thing should be transmitted (preferably via NDI) to an ioversal vertex…

---

## [Draw tinted image only once when it is changed with CreateFileInput](https://discourse.processing.org/t/draw-tinted-image-only-once-when-it-is-changed-with-createfileinput/37510)

<div class="topic-metadata">

**Author:** [@Annemiek](https://discourse.processing.org/u/Annemiek)\
**Replies:** 2\
**Last updated:** [June 20, 2022, 1:17pm UTC](https://discourse.processing.org/t/draw-tinted-image-only-once-when-it-is-changed-with-createfileinput/37510 "2022-06-20T13:17:37Z")

</div>

Hi! I’m quite new to programming and I’m trying to make a poster generator, therefore I want people to be able to upload an image which needs to have a tint. On top of that image there are elements like circles and text…

---

## [How to only play animation when deleting and creating new object](https://discourse.processing.org/t/how-to-only-play-animation-when-deleting-and-creating-new-object/37643)

<div class="topic-metadata">

**Author:** [@acorns](https://discourse.processing.org/u/acorns)\
**Replies:** 1\
**Last updated:** [June 19, 2022, 10:56pm UTC](https://discourse.processing.org/t/how-to-only-play-animation-when-deleting-and-creating-new-object/37643 "2022-06-19T22:56:34Z")

</div>

Hi guys, I am creating a cherry blossom branch where you add a new flower object (via pressing z key) and delete flower object (via pressing m key). I want to make it before it display(), it plays a blooming animation wh…

---

## [Frogger High score](https://discourse.processing.org/t/frogger-high-score/37427)

<div class="topic-metadata">

**Author:** [@king\_B99](https://discourse.processing.org/u/king_B99)\
**Replies:** 2\
**Last updated:** [June 9, 2022, 5:17pm UTC](https://discourse.processing.org/t/frogger-high-score/37427 "2022-06-09T17:17:17Z")

</div>

So I am trying to make a high score system for my frogger game I am using JSONObjects but its a little confusing can anyone show an example or explain it. Thanks.

---

## [Constant length line](https://discourse.processing.org/t/constant-length-line/37637)

<div class="topic-metadata">

**Author:** [@chaotic.rabbit](https://discourse.processing.org/u/chaotic.rabbit)\
**Replies:** 3\
**Last updated:** [June 19, 2022, 1:54pm UTC](https://discourse.processing.org/t/constant-length-line/37637 "2022-06-19T13:54:10Z")

</div>

Hi! I’m still new at processing. I’m trying to write a program that generates random line positions but all lines are of the same length. I want to further develop it to generate different coloured lines according to the…

---

## [Any way to access stored values of fill() outside of rect(), circle(), etc.?](https://discourse.processing.org/t/any-way-to-access-stored-values-of-fill-outside-of-rect-circle-etc/37631)

<div class="topic-metadata">

**Author:** [@Epsilon11](https://discourse.processing.org/u/Epsilon11)\
**Replies:** 4\
**Last updated:** [June 19, 2022, 6:45am UTC](https://discourse.processing.org/t/any-way-to-access-stored-values-of-fill-outside-of-rect-circle-etc/37631 "2022-06-19T06:45:26Z")

</div>

Is there a way to get the current color values in a function? for example: fill(255, 0, 80); void function() { loadPixels(); for (int i = 0; i \< pixels.length; i++) { pixels\[i\] = color( \*\*\*fill values\*\*…

---

## [Are properties such as fill color, stroke weight, text size, etc. write only?](https://discourse.processing.org/t/are-properties-such-as-fill-color-stroke-weight-text-size-etc-write-only/33024)

<div class="topic-metadata">

**Author:** [@Math\_Machine](https://discourse.processing.org/u/Math_Machine)\
**Replies:** 7\
**Last updated:** [June 19, 2022, 6:33am UTC](https://discourse.processing.org/t/are-properties-such-as-fill-color-stroke-weight-text-size-etc-write-only/33024 "2022-06-19T06:33:10Z")

</div>

Hi, this is a question I’ve had on my mind for quite a while, and I apologize in advance if someone already asked it, but is there any way to just ask processing what the current stroke weight is? Or the current fill co…

---

## [Turn a circle into a square](https://discourse.processing.org/t/turn-a-circle-into-a-square/37509)

<div class="topic-metadata">

**Author:** [@student00](https://discourse.processing.org/u/student00)\
**Replies:** 1\
**Last updated:** [June 13, 2022, 3:33am UTC](https://discourse.processing.org/t/turn-a-circle-into-a-square/37509 "2022-06-13T03:33:49Z")

</div>

Hi, I am not used to English, so the sentences may be strange. When the mouse clicks on the moving circle, I want the clicked circle to be changed to a line. The square should move like a mouse pointer. boolean doSa…

---

## [Need Help / Processing change video if](https://discourse.processing.org/t/need-help-processing-change-video-if/37566)

<div class="topic-metadata">

**Author:** [@Player07781](https://discourse.processing.org/u/Player07781)\
**Replies:** 2\
**Last updated:** [June 16, 2022, 7:09am UTC](https://discourse.processing.org/t/need-help-processing-change-video-if/37566 "2022-06-16T07:09:34Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I have tried using this code but the code I put in 4 videos but the video only plays the first video as if other videos are playing after the fir…

---

## [DropTarget in PSurface](https://discourse.processing.org/t/droptarget-in-psurface/37616)

<div class="topic-metadata">

**Author:** [@TimeLex](https://discourse.processing.org/u/TimeLex)\
**Replies:** 2\
**Last updated:** [June 18, 2022, 4:45pm UTC](https://discourse.processing.org/t/droptarget-in-psurface/37616 "2022-06-18T16:45:56Z")

</div>

Hi I want my processing surface to receive drag and drop input like the DropTarget in Java. For example, if I grab an item from the desktop and release my mouse over the processing window, I want to get the path of the …

---

## [I assigned posts to a different category, and they disappeared](https://discourse.processing.org/t/i-assigned-posts-to-a-different-category-and-they-disappeared/37445)

<div class="topic-metadata">

**Author:** [@tabreturn](https://discourse.processing.org/u/tabreturn)\
**Replies:** 7\
**Last updated:** [June 18, 2022, 4:36pm UTC](https://discourse.processing.org/t/i-assigned-posts-to-a-different-category-and-they-disappeared/37445 "2022-06-18T16:36:24Z")

</div>

I can move topics to different categories. But when I do, they simply vanish. This happened twice today trying to move topics to the Processing.py category. The most recent topic was (formerly) at the URL: https://discou…

---

## [The function blendmode(int) does not exist](https://discourse.processing.org/t/the-function-blendmode-int-does-not-exist/37619)

<div class="topic-metadata">

**Author:** [@rpp](https://discourse.processing.org/u/rpp)\
**Replies:** 1\
**Last updated:** [June 18, 2022, 2:51pm UTC](https://discourse.processing.org/t/the-function-blendmode-int-does-not-exist/37619 "2022-06-18T14:51:28Z")

</div>

Hi Team, Just installed Processing 4 and started followed some tutorials, namely the one from Daniel Simu (https://www.youtube.com/watch?v=wghDDYnIFM0). I’ve ran his code and the BlendMode() function is not present (do…

---

## [Programs for making Scenes or movies (advice needed)](https://discourse.processing.org/t/programs-for-making-scenes-or-movies-advice-needed/37584)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 3\
**Last updated:** [June 18, 2022, 3:21pm UTC](https://discourse.processing.org/t/programs-for-making-scenes-or-movies-advice-needed/37584 "2022-06-18T15:21:45Z")

</div>

Hello all, I am looking for a Program for making Scenes or movies. Presumably something like Blender or POVray but easier to use with a less steep learning curve. I want to use it additionally to Processing since I re…

---

## [Set focus on canvas](https://discourse.processing.org/t/set-focus-on-canvas/37617)

<div class="topic-metadata">

**Author:** [@J\_Silva](https://discourse.processing.org/u/J_Silva)\
**Replies:** 5\
**Last updated:** [June 18, 2022, 3:02pm UTC](https://discourse.processing.org/t/set-focus-on-canvas/37617 "2022-06-18T15:02:41Z")

</div>

Hi. In my project, I want to select shapes with radio buttons and move them with my keyboard arrow keys. The problem is that I need to click on the canvas after each button choice, or else the radio buttons will altern…

---

## [Converting straight lines segments into a bezier curve of same shape](https://discourse.processing.org/t/converting-straight-lines-segments-into-a-bezier-curve-of-same-shape/35333)

<div class="topic-metadata">

**Author:** [@grshch](https://discourse.processing.org/u/grshch)\
**Replies:** 8\
**Last updated:** [June 17, 2022, 6:59pm UTC](https://discourse.processing.org/t/converting-straight-lines-segments-into-a-bezier-curve-of-same-shape/35333 "2022-06-17T18:59:31Z")

</div>

Hello, everyone! I am making a typeface, styles of which are generated by algorithm from one root style. the main alogritm is raster-based (reaction-diffusion). Then I make a super detailed PVector curve by finding the…

---

## [Regular expressions "bypassing" conditions](https://discourse.processing.org/t/regular-expressions-bypassing-conditions/37613)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 1\
**Last updated:** [June 18, 2022, 11:39am UTC](https://discourse.processing.org/t/regular-expressions-bypassing-conditions/37613 "2022-06-18T11:39:31Z")

</div>

I’m currently experementing with regular expressions. And am currently writing code that is supposed to take a String and find all points where a string is defined in code like “test” or ““this text is in quotes””. I se…

---

## [Draw() only running on last item in list](https://discourse.processing.org/t/draw-only-running-on-last-item-in-list/37538)

<div class="topic-metadata">

**Author:** [@Daniel11](https://discourse.processing.org/u/Daniel11)\
**Replies:** 0\
**Last updated:** [June 14, 2022, 10:48am UTC](https://discourse.processing.org/t/draw-only-running-on-last-item-in-list/37538 "2022-06-14T10:48:06Z")

</div>

Hi all, I am currently creating a Rubik’s cube solver and I have all the functionality of the cube working perfectly. You can move it and turn faces… I have written a class to scramble the cube where it creates a rando…

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=127)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=129)
