# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?page=191

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

**Page:** 192

---

## [Challenges with static methods](https://discourse.processing.org/t/challenges-with-static-methods/22904)

<div class="topic-metadata">

**Author:** [@SomeOne](https://discourse.processing.org/u/SomeOne)\
**Replies:** 1\
**Last updated:** [July 29, 2020, 2:12pm UTC](https://discourse.processing.org/t/challenges-with-static-methods/22904 "2020-07-29T14:12:31Z")

</div>

There have been a few questions about static methods with processing IDE. Because everything in Processing IDE is nested code static methods can be used only with static classes (https://discourse.processing.org/t/questi…

---

## [How can i get value from optical flow? (PixelFlow libary)](https://discourse.processing.org/t/how-can-i-get-value-from-optical-flow-pixelflow-libary/22896)

<div class="topic-metadata">

**Author:** [@NodKeras](https://discourse.processing.org/u/NodKeras)\
**Replies:** 0\
**Last updated:** [July 29, 2020, 6:06am UTC](https://discourse.processing.org/t/how-can-i-get-value-from-optical-flow-pixelflow-libary/22896 "2020-07-29T06:06:13Z")

</div>

Hello, I’m trying to get direction and length values of those line in screanshot but i’m stucked in long time. Is there any way to get these value in to processing? If so, how can i do it? This is the OpticalFlow\_Basi…

---

## [Get most recent online file?](https://discourse.processing.org/t/get-most-recent-online-file/22879)

<div class="topic-metadata">

**Author:** [@jetjaguar](https://discourse.processing.org/u/jetjaguar)\
**Replies:** 3\
**Last updated:** [July 29, 2020, 3:20am UTC](https://discourse.processing.org/t/get-most-recent-online-file/22879 "2020-07-29T03:20:28Z")

</div>

Imagine a public directory online, like this one: https://neo.sci.gsfc.nasa.gov/archive/rgb/MOD\_LSTD\_E/ This directory has a file put into it usually every 8 days. I would like to get the newest file whenever the sketch…

---

## [saveFrame to byte array](https://discourse.processing.org/t/saveframe-to-byte-array/22840)

<div class="topic-metadata">

**Author:** [@alexis.lacasse.1](https://discourse.processing.org/u/alexis.lacasse.1)\
**Replies:** 2\
**Last updated:** [July 28, 2020, 11:25pm UTC](https://discourse.processing.org/t/saveframe-to-byte-array/22840 "2020-07-28T23:25:07Z")

</div>

Hi, I’m making an HTTP server using processing. This server will host an HTML file and an image. The HTML file will tell the clients browser to request and display the image periodically. The image is the last frame dre…

---

## [How to Change Image Transparency Using Ultrasonic Sensor](https://discourse.processing.org/t/how-to-change-image-transparency-using-ultrasonic-sensor/22578)

<div class="topic-metadata">

**Author:** [@nad1999](https://discourse.processing.org/u/nad1999)\
**Replies:** 9\
**Last updated:** [July 28, 2020, 7:25pm UTC](https://discourse.processing.org/t/how-to-change-image-transparency-using-ultrasonic-sensor/22578 "2020-07-28T19:25:56Z")

</div>

Hi everyone I’m trying to make a digital poster that changes when you get closer and farther away from it using an ultrasonic sensor and arduino. My distance measuring code works, but I can’t seem to get the two images …

---

## [Need help while creating new picture](https://discourse.processing.org/t/need-help-while-creating-new-picture/22741)

<div class="topic-metadata">

**Author:** [@yhlaskerimov](https://discourse.processing.org/u/yhlaskerimov)\
**Replies:** 5\
**Last updated:** [July 28, 2020, 5:51pm UTC](https://discourse.processing.org/t/need-help-while-creating-new-picture/22741 "2020-07-28T17:51:08Z")

</div>

Hello I want to do thing like this tap here to see. But i can’t create an image which i am selecting… How to do this ? Can anyone help ? int x = 0; int y = 0; int x2 = 1; int y2 = 1; int q, w, e, r; boolean basyldymy; …

---

## [Trying to work with image arrays to store images for temporary use](https://discourse.processing.org/t/trying-to-work-with-image-arrays-to-store-images-for-temporary-use/22088)

<div class="topic-metadata">

**Author:** [@TheEternalDragon](https://discourse.processing.org/u/TheEternalDragon)\
**Replies:** 4\
**Last updated:** [July 28, 2020, 11:34am UTC](https://discourse.processing.org/t/trying-to-work-with-image-arrays-to-store-images-for-temporary-use/22088 "2020-07-28T11:34:13Z")

</div>

So I have been trying to work a lot with playing animations in Processing and I am currently working on a program that has a starting screen which the player can see after loading but will probably click away fairly quik…

---

## [Changing strokeWeight when mousePressed](https://discourse.processing.org/t/changing-strokeweight-when-mousepressed/22869)

<div class="topic-metadata">

**Author:** [@karate29](https://discourse.processing.org/u/karate29)\
**Replies:** 1\
**Last updated:** [July 28, 2020, 11:03am UTC](https://discourse.processing.org/t/changing-strokeweight-when-mousepressed/22869 "2020-07-28T11:03:12Z")

</div>

I am brand new to Processing and was trying to create a free hand drawing program. I already made the colors and when you press them it changes the color and you can draw with the selected color. The problem I am coming …

---

## [Processing IDE - Javascript?](https://discourse.processing.org/t/processing-ide-javascript/22672)

<div class="topic-metadata">

**Author:** [@VegasBob](https://discourse.processing.org/u/VegasBob)\
**Replies:** 4\
**Last updated:** [July 28, 2020, 10:28am UTC](https://discourse.processing.org/t/processing-ide-javascript/22672 "2020-07-28T10:28:49Z")

</div>

Been enjoying the Processing IDE, but I have to admit a bit of a gaffe… I originally intended to learn JavaScript, but I’ve been coding in Java Mode. Now, since the project I’m using to learn is already 800 lines, I’m …

---

## [Need a little Help](https://discourse.processing.org/t/need-a-little-help/22874)

<div class="topic-metadata">

**Author:** [@the\_ahnafpiash](https://discourse.processing.org/u/the_ahnafpiash)\
**Replies:** 3\
**Last updated:** [July 28, 2020, 8:41am UTC](https://discourse.processing.org/t/need-a-little-help/22874 "2020-07-28T08:41:37Z")

</div>

/\* I am trying for so long to solve my assignment but I am stuck… need a little help please! here is my assignment question: Create a ball of predefined size that bounces around the canvas, reversing directions when i…

---

## [Keep the strokeWeight() constant using scale](https://discourse.processing.org/t/keep-the-strokeweight-constant-using-scale/22611)

<div class="topic-metadata">

**Author:** [@Waboqueox](https://discourse.processing.org/u/Waboqueox)\
**Replies:** 4\
**Last updated:** [July 27, 2020, 8:48pm UTC](https://discourse.processing.org/t/keep-the-strokeweight-constant-using-scale/22611 "2020-07-27T20:48:21Z")

</div>

Hi people; When I use scale, the function scales the strokeWeight(); too, how can avoid it? void setup() { size(640,480); rectMode(CENTER); } void draw() { rect(50,50,50,50); scale(2,2); rect(50,50,50,50); …

---

## [First Person View Cam (FPVCam)](https://discourse.processing.org/t/first-person-view-cam-fpvcam/22816)

<div class="topic-metadata">

**Author:** [@LuisFerreira](https://discourse.processing.org/u/LuisFerreira)\
**Replies:** 10\
**Last updated:** [July 27, 2020, 8:06pm UTC](https://discourse.processing.org/t/first-person-view-cam-fpvcam/22816 "2020-07-27T20:06:00Z")

</div>

Hello everyone, I spent some time searching for ways or libraries to move a camera with the WASD keys but i could never find something, until now… I didn’t want to reinvent the wheel, and since Peasycam is one of the mo…

---

## [How do I get the amplitude from an audio file?](https://discourse.processing.org/t/how-do-i-get-the-amplitude-from-an-audio-file/22845)

<div class="topic-metadata">

**Author:** [@anon76195010](https://discourse.processing.org/u/anon76195010)\
**Replies:** 3\
**Last updated:** [July 27, 2020, 11:39am UTC](https://discourse.processing.org/t/how-do-i-get-the-amplitude-from-an-audio-file/22845 "2020-07-27T11:39:06Z")

</div>

import processing.sound.\*; Amplitude amp; AudioIn in; SoundFile file; float\[\] amp\_values; void setup() { file = new SoundFile(this, "audio.mp3"); in = new AudioIn(this); file.play(); in.start(); amp.inpu…

---

## [Processing keeps failing to install sound library on Arch Linux based distro](https://discourse.processing.org/t/processing-keeps-failing-to-install-sound-library-on-arch-linux-based-distro/22857)

<div class="topic-metadata">

**Author:** [@anon76195010](https://discourse.processing.org/u/anon76195010)\
**Replies:** 3\
**Last updated:** [July 27, 2020, 7:58am UTC](https://discourse.processing.org/t/processing-keeps-failing-to-install-sound-library-on-arch-linux-based-distro/22857 "2020-07-27T07:58:19Z")

</div>

I am trying to install the Sound library but I keep on getting this error. Could not download https://github.com/processing/processing-sound/releases/download/latest/sound.zip to /tmp/download5615604968353773816sound.zi…

---

## [P2D & P3D (OpenGL) not working on secondary displays](https://discourse.processing.org/t/p2d-p3d-opengl-not-working-on-secondary-displays/2906)

<div class="topic-metadata">

**Author:** [@EliTheIceMan](https://discourse.processing.org/u/EliTheIceMan)\
**Replies:** 3\
**Last updated:** [July 27, 2020, 1:19am UTC](https://discourse.processing.org/t/p2d-p3d-opengl-not-working-on-secondary-displays/2906 "2020-07-27T01:19:24Z")

</div>

I have a new desktop Windows 10 computer that has NVS 810 and NVS 310 graphics cards added to expand the amount of screens which can be attached. I have an older version of this project working fine with the exact same …

---

## [I think I've made a huge mistake (function overloading)](https://discourse.processing.org/t/i-think-ive-made-a-huge-mistake-function-overloading/22835)

<div class="topic-metadata">

**Author:** [@Math\_Machine](https://discourse.processing.org/u/Math_Machine)\
**Replies:** 5\
**Last updated:** [July 26, 2020, 4:35pm UTC](https://discourse.processing.org/t/i-think-ive-made-a-huge-mistake-function-overloading/22835 "2020-07-26T16:35:31Z")

</div>

So, I was writing a (personal) library for complex numbers. I know there’s an existing library for that, but some of the syntax kinda bugged me and, wouldn’t you know it, I already made it anyway. But, I ended up overl…

---

## [Cube with rounded edges](https://discourse.processing.org/t/cube-with-rounded-edges/22064)

<div class="topic-metadata">

**Author:** [@Mesalcode](https://discourse.processing.org/u/Mesalcode)\
**Replies:** 6\
**Last updated:** [July 26, 2020, 8:38pm UTC](https://discourse.processing.org/t/cube-with-rounded-edges/22064 "2020-07-26T20:38:59Z")

</div>

Hi there! I am working on a mobile quizapp based on rotating a cube. I am currently using this code for drawing a cube: beginShape(QUADS); texture(front); vertex(-1, -1, 1, 0, 0); vertex( 1, -1, 1, 1, 0); ve…

---

## [ArrayList out of boundary](https://discourse.processing.org/t/arraylist-out-of-boundary/22817)

<div class="topic-metadata">

**Author:** [@klap](https://discourse.processing.org/u/klap)\
**Replies:** 3\
**Last updated:** [July 26, 2020, 2:19pm UTC](https://discourse.processing.org/t/arraylist-out-of-boundary/22817 "2020-07-26T14:19:33Z")

</div>

Hi, Playing with objects and ArrayList. I’ve trouble removing objects from the ArrayList when they disappear from the screen. IndexOutOfBoundsException: Index: 49, Size: 49 ArrayList\<Bubble\> bubble = new ArrayList\<Bu…

---

## [Making rectangles behave like pixels after exporting](https://discourse.processing.org/t/making-rectangles-behave-like-pixels-after-exporting/22834)

<div class="topic-metadata">

**Author:** [@qewer3322](https://discourse.processing.org/u/qewer3322)\
**Replies:** 4\
**Last updated:** [July 26, 2020, 7:36am UTC](https://discourse.processing.org/t/making-rectangles-behave-like-pixels-after-exporting/22834 "2020-07-26T07:36:14Z")

</div>

I don’t exactly know what should I title this but basically, I have the main simple function of a pixelart program here: ArrayList\<Sq\> fill; boolean f = true; void setup() { size(1000, 600); fill = new ArrayList\<Sq\>…

---

## [Confusion on classes and objects](https://discourse.processing.org/t/confusion-on-classes-and-objects/22838)

<div class="topic-metadata">

**Author:** [@Edgard142ofWelshdale](https://discourse.processing.org/u/Edgard142ofWelshdale)\
**Replies:** 2\
**Last updated:** [July 26, 2020, 1:03am UTC](https://discourse.processing.org/t/confusion-on-classes-and-objects/22838 "2020-07-26T01:03:43Z")

</div>

Hello! I just started using classes in my processing games(as in, this is my first attempt). I am incredibly lost as to how to do it correctly. I looked at the processing 3 language reference and it doesn’t have much on …

---

## [How do I fix error "The operator && is undefined for the argument types boolean\[\], boolean"](https://discourse.processing.org/t/how-do-i-fix-error-the-operator-is-undefined-for-the-argument-types-boolean-boolean/21566)

<div class="topic-metadata">

**Author:** [@s.k9](https://discourse.processing.org/u/s.k9)\
**Replies:** 3\
**Last updated:** [July 25, 2020, 8:33pm UTC](https://discourse.processing.org/t/how-do-i-fix-error-the-operator-is-undefined-for-the-argument-types-boolean-boolean/21566 "2020-07-25T20:33:45Z")

</div>

Hi all, I am making a trivia game for a class project and I am getting this error I have not seen before and cannot figure out how to fix it. Context is I am using XML to load information into the game and overMulti is …

---

## [How to loop function when contact in Box2d](https://discourse.processing.org/t/how-to-loop-function-when-contact-in-box2d/22832)

<div class="topic-metadata">

**Author:** [@weijie](https://discourse.processing.org/u/weijie)\
**Replies:** 0\
**Last updated:** [July 25, 2020, 4:04pm UTC](https://discourse.processing.org/t/how-to-loop-function-when-contact-in-box2d/22832 "2020-07-25T16:04:10Z")

</div>

I am trying to create a program so that the robots and the box will attract to each other when they are in contact (figure below) I want them to keep being attracted when they are in contact But my problem now is the c…

---

## [Maths question relating to TAU](https://discourse.processing.org/t/maths-question-relating-to-tau/22828)

<div class="topic-metadata">

**Author:** [@pandl](https://discourse.processing.org/u/pandl)\
**Replies:** 1\
**Last updated:** [July 25, 2020, 2:38am UTC](https://discourse.processing.org/t/maths-question-relating-to-tau/22828 "2020-07-25T02:38:22Z")

</div>

The following code plots a circle which is going to be a path for an image or a Pshape to follow. Where I’ve used a = (i \* TAU) / 90 seems a bit clumsy and I’m wondering if anyone can suggest what I should have done here…

---

## [Error message when attempting to import Java library](https://discourse.processing.org/t/error-message-when-attempting-to-import-java-library/22799)

<div class="topic-metadata">

**Author:** [@11OutOf10](https://discourse.processing.org/u/11OutOf10)\
**Replies:** 2\
**Last updated:** [July 24, 2020, 9:59pm UTC](https://discourse.processing.org/t/error-message-when-attempting-to-import-java-library/22799 "2020-07-24T21:59:52Z")

</div>

As the title says. I was attempting to import java.util.random using “import java.util.random;” and got an error message: Libraries must be installed in a folder named ‘libraries’ inside the sketchbook folder (see the P…

---

## [Java Access Modifiers](https://discourse.processing.org/t/java-access-modifiers/22821)

<div class="topic-metadata">

**Author:** [@Markus](https://discourse.processing.org/u/Markus)\
**Replies:** 3\
**Last updated:** [July 24, 2020, 8:31pm UTC](https://discourse.processing.org/t/java-access-modifiers/22821 "2020-07-24T20:31:06Z")

</div>

https://processing.org/reference/private.html: This keyword is used to disallow other classes access to the fields and methods within a class. The private keyword is used before a field or method that you want to be ava…

---

## [PeasyCam library - take more control](https://discourse.processing.org/t/peasycam-library-take-more-control/11899)

<div class="topic-metadata">

**Author:** [@yairkass](https://discourse.processing.org/u/yairkass)\
**Replies:** 3\
**Last updated:** [July 24, 2020, 1:41pm UTC](https://discourse.processing.org/t/peasycam-library-take-more-control/11899 "2020-07-24T13:41:22Z")

</div>

Hey all :slight\_smile: I use PeasyCam quite a lot, and I think many of you do too. It’s perfect for getting that immediate 3D camera, with minimum code. But when i dug a little deeper in the library docs I found some…

---

## [ArrayIndexOutOfBounds](https://discourse.processing.org/t/arrayindexoutofbounds/22809)

<div class="topic-metadata">

**Author:** [@Kai](https://discourse.processing.org/u/Kai)\
**Replies:** 1\
**Last updated:** [July 24, 2020, 9:47am UTC](https://discourse.processing.org/t/arrayindexoutofbounds/22809 "2020-07-24T09:47:09Z")

</div>

Hello guys, I am new to processing and I’ve been recently trying to learn from some youtube tutorials. However, I encountered a problem and hope someone could help me to fix it. This is the link of the video I watched…

---

## [Parent function not using overwritten array from child](https://discourse.processing.org/t/parent-function-not-using-overwritten-array-from-child/22796)

<div class="topic-metadata">

**Author:** [@NikolafTheGreat](https://discourse.processing.org/u/NikolafTheGreat)\
**Replies:** 3\
**Last updated:** [July 24, 2020, 9:12am UTC](https://discourse.processing.org/t/parent-function-not-using-overwritten-array-from-child/22796 "2020-07-24T09:12:22Z")

</div>

I am coding an application and ran into an issue where I have created a function in the parent class that references an array also in the parent class. I then overwrite the array in a child class and run the parent funct…

---

## [Controlp5 - got error that I can't understand](https://discourse.processing.org/t/controlp5-got-error-that-i-cant-understand/22730)

<div class="topic-metadata">

**Author:** [@marrrta](https://discourse.processing.org/u/marrrta)\
**Replies:** 6\
**Last updated:** [July 24, 2020, 7:48am UTC](https://discourse.processing.org/t/controlp5-got-error-that-i-cant-understand/22730 "2020-07-24T07:48:44Z")

</div>

Hi there, I got this error Can anyone help me on this please? Thank you lug 19, 2020 5:34:52 PM controlP5.ControlBroadcaster printMethodError GRAVE: An error occured while forwarding a Controller event, please check…

---

## [Windows style dialogue boxes](https://discourse.processing.org/t/windows-style-dialogue-boxes/22147)

<div class="topic-metadata">

**Author:** [@F53](https://discourse.processing.org/u/F53)\
**Replies:** 4\
**Last updated:** [July 24, 2020, 6:41am UTC](https://discourse.processing.org/t/windows-style-dialogue-boxes/22147 "2020-07-24T06:41:42Z")

</div>

I would like to use windows 10 style dialogue boxes, where should I start looking in-order to learn how do this within processing? The provided dialogue boxes in processing feel dated and seemingly cant return a valuePr…

[Previous page](https://discourse.processing.org/c/processing/6.md?page=190)

[Next page](https://discourse.processing.org/c/processing/6.md?page=192)
