# Processing

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

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

**Page:** 118

---

## [textAlign(CENTER) seems to move all lines in the window instead of ony one](https://discourse.processing.org/t/textalign-center-seems-to-move-all-lines-in-the-window-instead-of-ony-one/31846)

<div class="topic-metadata">

**Author:** [@jhsa](https://discourse.processing.org/u/jhsa)\
**Replies:** 4\
**Last updated:** [August 22, 2021, 10:26pm UTC](https://discourse.processing.org/t/textalign-center-seems-to-move-all-lines-in-the-window-instead-of-ony-one/31846 "2021-08-22T22:26:34Z")

</div>

I am having a problem with trying to center just one line of text. I think I am applying “textAlign(CENTER)” to just one line, but it is also offsetting all the other text in the window. Here is my complete code. Thank y…

---

## [Creating dynamic array](https://discourse.processing.org/t/creating-dynamic-array/31794)

<div class="topic-metadata">

**Author:** [@yalaniv](https://discourse.processing.org/u/yalaniv)\
**Replies:** 11\
**Last updated:** [August 22, 2021, 4:42pm UTC](https://discourse.processing.org/t/creating-dynamic-array/31794 "2021-08-22T16:42:22Z")

</div>

I am missing some commands, so if you can help me - that would be awesome. I want to creat a dynamic array, that stores the keypressed, and how many times each one pressed for example, let’s say the user pressed the ke…

---

## [ControlP5 Button function seems to ignore Text command at the beginning](https://discourse.processing.org/t/controlp5-button-function-seems-to-ignore-text-command-at-the-beginning/31781)

<div class="topic-metadata">

**Author:** [@jhsa](https://discourse.processing.org/u/jhsa)\
**Replies:** 6\
**Last updated:** [August 22, 2021, 1:43am UTC](https://discourse.processing.org/t/controlp5-button-function-seems-to-ignore-text-command-at-the-beginning/31781 "2021-08-22T01:43:25Z")

</div>

Hi guys, new to this forum and to Processing. Trying to learn but i can see it will be a steep curve, even if I can do some little arduino coding :frowning: I am having a few problems with my code, and one of them is th…

---

## [How to use Visual Studio Code with Processing 3](https://discourse.processing.org/t/how-to-use-visual-studio-code-with-processing-3/14458)

<div class="topic-metadata">

**Author:** [@emedan](https://discourse.processing.org/u/emedan)\
**Replies:** 21\
**Last updated:** [August 21, 2021, 10:48pm UTC](https://discourse.processing.org/t/how-to-use-visual-studio-code-with-processing-3/14458 "2021-08-21T22:48:11Z")

</div>

I can’t find instructions how to use, for instance, Visual Studio Code as a replacement for the Java IDE. I came to Processing after using P5.js, The default IDE feels very out of date, and why spend resources on somet…

---

## [Is there a way to add JMenuBar (File, Edit...) to my program?](https://discourse.processing.org/t/is-there-a-way-to-add-jmenubar-file-edit-to-my-program/31830)

<div class="topic-metadata">

**Author:** [@Flolo](https://discourse.processing.org/u/Flolo)\
**Replies:** 9\
**Last updated:** [August 21, 2021, 8:23pm UTC](https://discourse.processing.org/t/is-there-a-way-to-add-jmenubar-file-edit-to-my-program/31830 "2021-08-21T20:23:48Z")

</div>

Hey I wanted to ask if there is a way to add an File, Edit, Sketchbook… to a Processing Sketch like the PDE also has? Thanks in advance :smile:

---

## [\[YOLO\] YOLODetectObjects example // I want to know about the detected information](https://discourse.processing.org/t/yolo-yolodetectobjects-example-i-want-to-know-about-the-detected-information/31798)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 2\
**Last updated:** [August 21, 2021, 12:52am UTC](https://discourse.processing.org/t/yolo-yolodetectobjects-example-i-want-to-know-about-the-detected-information/31798 "2021-08-21T00:52:15Z")

</div>

@cansik / help me. As shown in the picture, Can I get information about the functions for that library? ex) .hashCode() .isSkipNMS() .loadLabels(Path) .notify() …etc Is there any reference material with co…

---

## [Using another editor to help with typing constraints](https://discourse.processing.org/t/using-another-editor-to-help-with-typing-constraints/31811)

<div class="topic-metadata">

**Author:** [@Clair](https://discourse.processing.org/u/Clair)\
**Replies:** 1\
**Last updated:** [August 21, 2021, 12:09am UTC](https://discourse.processing.org/t/using-another-editor-to-help-with-typing-constraints/31811 "2021-08-21T00:09:57Z")

</div>

I used to study processing but then had a stroke – which damaged my left hand so typing accurately is extremely difficult. Because of previous work as web designer, I am familiar with Bluefish and Brackets. I have got B…

---

## [How to apply color quantization to an image](https://discourse.processing.org/t/how-to-apply-color-quantization-to-an-image/4849)

<div class="topic-metadata">

**Author:** [@BulVvyvXsWDYZl8J](https://discourse.processing.org/u/BulVvyvXsWDYZl8J)\
**Replies:** 26\
**Last updated:** [August 20, 2021, 8:15pm UTC](https://discourse.processing.org/t/how-to-apply-color-quantization-to-an-image/4849 "2021-08-20T20:15:39Z")

</div>

Is there a simple way (preferably a function) to apply color quantization to an image? Specifically I’d like to pick a PImage and an int of colours, and it’d reduce the number of colours to that int, trying to keep it as…

---

## [No MIDI library for Processing 3?](https://discourse.processing.org/t/no-midi-library-for-processing-3/6079)

<div class="topic-metadata">

**Author:** [@robduarte](https://discourse.processing.org/u/robduarte)\
**Replies:** 14\
**Last updated:** [August 20, 2021, 7:28pm UTC](https://discourse.processing.org/t/no-midi-library-for-processing-3/6079 "2021-08-20T19:28:54Z")

</div>

It’s been a while since I’ve used Processing. I’m looking in the library manager and on the libraries listing on processing.org and I’m not seeing any MIDI library. Is there no supported way of sending/receiving MIDI any…

---

## [Confine particles to a space](https://discourse.processing.org/t/confine-particles-to-a-space/31813)

<div class="topic-metadata">

**Author:** [@seldomcoder](https://discourse.processing.org/u/seldomcoder)\
**Replies:** 2\
**Last updated:** [August 20, 2021, 7:16pm UTC](https://discourse.processing.org/t/confine-particles-to-a-space/31813 "2021-08-20T19:16:34Z")

</div>

I want to confine the particles and emergent lines (in the code) to a specific space like an annular ring between two concentric circles. Now, the particles and lines are all over the canvas. How do I go about that? //…

---

## [Runtime issues, loadlibrary error 126: The specified module could not be found](https://discourse.processing.org/t/runtime-issues-loadlibrary-error-126-the-specified-module-could-not-be-found/24863)

<div class="topic-metadata">

**Author:** [@Weege545](https://discourse.processing.org/u/Weege545)\
**Replies:** 3\
**Last updated:** [August 20, 2021, 1:11pm UTC](https://discourse.processing.org/t/runtime-issues-loadlibrary-error-126-the-specified-module-could-not-be-found/24863 "2021-08-20T13:11:28Z")

</div>

Hello! I’ve just tried to run Processing and I’ve gotten two errors: Error 87 (which I updated my nvidia drivers and haven’t seen since) LoadLibrary error 126: The specified module could not be found I have yet to act…

---

## [Export exe. from processing 3.5.4](https://discourse.processing.org/t/export-exe-from-processing-3-5-4/31783)

<div class="topic-metadata">

**Author:** [@CHI123](https://discourse.processing.org/u/CHI123)\
**Replies:** 7\
**Last updated:** [August 19, 2021, 9:45pm UTC](https://discourse.processing.org/t/export-exe-from-processing-3-5-4/31783 "2021-08-19T21:45:12Z")

</div>

Hi, I am not sure where to post this question. If it is wrong, kindly tell me. I export the exe. from my sketch. Like in the following picture. link: https://forum.processing.org/two/discussion/27156/application-ex…

---

## [No loadPixels() for PGraphicsPDF](https://discourse.processing.org/t/no-loadpixels-for-pgraphicspdf/31746)

<div class="topic-metadata">

**Author:** [@yalaniv](https://discourse.processing.org/u/yalaniv)\
**Replies:** 4\
**Last updated:** [August 18, 2021, 11:27am UTC](https://discourse.processing.org/t/no-loadpixels-for-pgraphicspdf/31746 "2021-08-18T11:27:47Z")

</div>

i found this code Pointillism | Learning Processing 2nd Edition but instead of run it on the screen, I wanted to run in 5 times on backend and save it as a pdf file, and got this error RuntimeException: No loadPixels(…

---

## [Is this how motion sensors work?](https://discourse.processing.org/t/is-this-how-motion-sensors-work/31792)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 3\
**Last updated:** [August 19, 2021, 8:31pm UTC](https://discourse.processing.org/t/is-this-how-motion-sensors-work/31792 "2021-08-19T20:31:44Z")

</div>

color\[\] firstframe; color\[\] secondframe; int i= 1; int x; int y; void draw(){ firstframe\[i\]=get(x,y); delay(500); secondframe\[i\]=get(x,y); if (firstframe\[i\]==secondframe\[i\]){ i++; y++; if(y==…

---

## [Processing in BlueJ/Greenfoot](https://discourse.processing.org/t/processing-in-bluej-greenfoot/28766)

<div class="topic-metadata">

**Author:** [@crimsonwombat](https://discourse.processing.org/u/crimsonwombat)\
**Replies:** 13\
**Last updated:** [August 19, 2021, 4:01pm UTC](https://discourse.processing.org/t/processing-in-bluej-greenfoot/28766 "2021-08-19T16:01:37Z")

</div>

I know this gets asked from time to time and I’ve gone through all the instructions I can find (this did work once upon a time but …) Some background: I teach a high school CS2 course in object oriented design and we st…

---

## [Javax.crypto not resolving](https://discourse.processing.org/t/javax-crypto-not-resolving/8708)

<div class="topic-metadata">

**Author:** [@Carlosmarcab](https://discourse.processing.org/u/Carlosmarcab)\
**Replies:** 9\
**Last updated:** [August 19, 2021, 4:30pm UTC](https://discourse.processing.org/t/javax-crypto-not-resolving/8708 "2021-08-19T16:30:24Z")

</div>

Hi! So I’m trying to import javax.crypto.\* but it keeps saying that the import cannot be resolved. I’ve tried everything i’ve been able to think about. I’ve tried the other packages in javax and all seem fine, ive tried…

---

## [Letter boundary offset](https://discourse.processing.org/t/letter-boundary-offset/6976)

<div class="topic-metadata">

**Author:** [@hzamani](https://discourse.processing.org/u/hzamani)\
**Replies:** 4\
**Last updated:** [August 19, 2021, 12:50pm UTC](https://discourse.processing.org/t/letter-boundary-offset/6976 "2021-08-19T12:50:00Z")

</div>

Hi all. Newbie here. Sorry if this has been asked before but I was looking to do something like the image below. Any clues as to where to start? I have googled a lot with no luck as of yet. Basically what I’m looking f…

---

## [Some problem with shadertoy to processing！](https://discourse.processing.org/t/some-problem-with-shadertoy-to-processing/31742)

<div class="topic-metadata">

**Author:** [@AbleYudada](https://discourse.processing.org/u/AbleYudada)\
**Replies:** 17\
**Last updated:** [August 19, 2021, 8:31am UTC](https://discourse.processing.org/t/some-problem-with-shadertoy-to-processing/31742 "2021-08-19T08:31:37Z")

</div>

Hi guys! I am learning something about the shader. I try to convert the code from shadertoy to processing, but it seems that everything is ok but it runs without any effect. Can anyone give some suggestions? This is pr…

---

## [How to create a clipping mask that preserves transparency?](https://discourse.processing.org/t/how-to-create-a-clipping-mask-that-preserves-transparency/16093)

<div class="topic-metadata">

**Author:** [@aNew](https://discourse.processing.org/u/aNew)\
**Replies:** 6\
**Last updated:** [August 18, 2021, 3:37pm UTC](https://discourse.processing.org/t/how-to-create-a-clipping-mask-that-preserves-transparency/16093 "2021-08-18T15:37:02Z")

</div>

I’ve been trying to implement clipping masks for a project and have come up against a roadblock. I want to be able to mask over a PGraphics object that has some transparent pixels while retaining that transparency. The c…

---

## [Google Streetview](https://discourse.processing.org/t/google-streetview/7105)

<div class="topic-metadata">

**Author:** [@Noisathry](https://discourse.processing.org/u/Noisathry)\
**Replies:** 6\
**Last updated:** [August 18, 2021, 5:41pm UTC](https://discourse.processing.org/t/google-streetview/7105 "2021-08-18T17:41:38Z")

</div>

Hello Everybody! I started processing this year at the university and now I want to make an interaktive programm with processing, where you sit on a swing and with every move forward you go one frame forward in google m…

---

## [The function enableCollapse() does not exist](https://discourse.processing.org/t/the-function-enablecollapse-does-not-exist/17718)

<div class="topic-metadata">

**Author:** [@yjoeyj](https://discourse.processing.org/u/yjoeyj)\
**Replies:** 4\
**Last updated:** [August 18, 2021, 5:11pm UTC](https://discourse.processing.org/t/the-function-enablecollapse-does-not-exist/17718 "2021-08-18T17:11:27Z")

</div>

Hello All, First time user of Processing and stuck on a script I obtained from github Link. I cut down the script to shorten it for here, so hope I didn’t cut off too much: import controlP5.\*; import processing.serial.…

---

## [Transparency issues in P3D](https://discourse.processing.org/t/transparency-issues-in-p3d/31784)

<div class="topic-metadata">

**Author:** [@SNICKRS](https://discourse.processing.org/u/SNICKRS)\
**Replies:** 3\
**Last updated:** [August 18, 2021, 4:12pm UTC](https://discourse.processing.org/t/transparency-issues-in-p3d/31784 "2021-08-18T16:12:13Z")

</div>

Hello everyone, I am trying to code a voxel game in java with processing, but when generating structures like trees with transparent leaves and textures, the textures always have a weird blue color (the color of the sky)…

---

## [Exporting still images from animations](https://discourse.processing.org/t/exporting-still-images-from-animations/31666)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 23\
**Last updated:** [August 18, 2021, 11:17am UTC](https://discourse.processing.org/t/exporting-still-images-from-animations/31666 "2021-08-18T11:17:40Z")

</div>

Hi there ! I want to export still images from this animation and I don’t know how to do it. This code make interesting images in different moments and I would like to frozen and export them to print them in HQ. Could yo…

---

## [Using save/saveFrame to save screenshot in iGeo update method](https://discourse.processing.org/t/using-save-saveframe-to-save-screenshot-in-igeo-update-method/31757)

<div class="topic-metadata">

**Author:** [@Renruojos](https://discourse.processing.org/u/Renruojos)\
**Replies:** 2\
**Last updated:** [August 18, 2021, 5:17am UTC](https://discourse.processing.org/t/using-save-saveframe-to-save-screenshot-in-igeo-update-method/31757 "2021-08-18T05:17:05Z")

</div>

I am fairly new to both Processing and iGeo and for the life of me I cannot figured out how to take a simple screenshot of the canvas properly. Take for instance the code below: I am creating a bunch of random points on…

---

## [Shuffle Song Code](https://discourse.processing.org/t/shuffle-song-code/6618)

<div class="topic-metadata">

**Author:** [@charmypatel](https://discourse.processing.org/u/charmypatel)\
**Replies:** 3\
**Last updated:** [August 9, 2021, 11:52am UTC](https://discourse.processing.org/t/shuffle-song-code/6618 "2021-08-09T11:52:46Z")

</div>

I’m trying to practice doing different things using minim. I wanted to play around with shuffling different songs using minim and I found this example. I was having trouble posting a comment to the user that posted this …

---

## [Question about \>\< and !=](https://discourse.processing.org/t/question-about-and/31419)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 6\
**Last updated:** [August 18, 2021, 3:50am UTC](https://discourse.processing.org/t/question-about-and/31419 "2021-08-18T03:50:00Z")

</div>

Is If(x \>\< 16){print(“yes”)} The same as If (x != 16){print(“yes”)} ?

---

## [Getting a NullPointerException with opencv loadImage()!](https://discourse.processing.org/t/getting-a-nullpointerexception-with-opencv-loadimage/31739)

<div class="topic-metadata">

**Author:** [@maroslan](https://discourse.processing.org/u/maroslan)\
**Replies:** 1\
**Last updated:** [August 17, 2021, 5:24pm UTC](https://discourse.processing.org/t/getting-a-nullpointerexception-with-opencv-loadimage/31739 "2021-08-17T17:24:25Z")

</div>

I need someone more skilled than me to look at my code. I am trying to open my webcam, and make it track a location, where it will draw a circle. However, it wont even load the cam! I get a NullPointerException. I see th…

---

## [Background/mask over webcam feed](https://discourse.processing.org/t/background-mask-over-webcam-feed/31753)

<div class="topic-metadata">

**Author:** [@maroslan](https://discourse.processing.org/u/maroslan)\
**Replies:** 2\
**Last updated:** [August 16, 2021, 8:14pm UTC](https://discourse.processing.org/t/background-mask-over-webcam-feed/31753 "2021-08-16T20:14:15Z")

</div>

Hi to whoever is reading this! I am trying to create an overlay over a webcam feed. I am using the webcam to capture the darkest points in its vision, where it will draw a circle. However, in the end result I don’t want…

---

## [Convert digital photo into digital](https://discourse.processing.org/t/convert-digital-photo-into-digital/31745)

<div class="topic-metadata">

**Author:** [@yalaniv](https://discourse.processing.org/u/yalaniv)\
**Replies:** 2\
**Last updated:** [August 16, 2021, 5:37pm UTC](https://discourse.processing.org/t/convert-digital-photo-into-digital/31745 "2021-08-16T17:37:05Z")

</div>

I would like to import an image, and manipulate it in order to make it look like it created with digital tools. I found a code about how to convert full color image into gray scale one, but I am kinda stuck with the di…

---

## [Is there a way to paint a filled triangle?](https://discourse.processing.org/t/is-there-a-way-to-paint-a-filled-triangle/31647)

<div class="topic-metadata">

**Author:** [@yalaniv](https://discourse.processing.org/u/yalaniv)\
**Replies:** 6\
**Last updated:** [August 16, 2021, 2:22pm UTC](https://discourse.processing.org/t/is-there-a-way-to-paint-a-filled-triangle/31647 "2021-08-16T14:22:04Z")

</div>

I would like to know

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

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