# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&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

---

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

---

## [Scaling a custom PShape without changing line thickness](https://discourse.processing.org/t/scaling-a-custom-pshape-without-changing-line-thickness/11437)

<div class="topic-metadata">

**Author:** [@F53](https://discourse.processing.org/u/F53)\
**Replies:** 10\
**Last updated:** [July 24, 2020, 6:35am UTC](https://discourse.processing.org/t/scaling-a-custom-pshape-without-changing-line-thickness/11437 "2020-07-24T06:35:31Z")

</div>

I am teaching myself to code through coding games, I am currently working on asteroids. I have a custom PShape called ast that uses a fair bit of vertices. I create a separate instance of it called n in the asteroid cl…

---

## [Tuple problem in processing](https://discourse.processing.org/t/tuple-problem-in-processing/22789)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 5\
**Last updated:** [July 24, 2020, 5:01am UTC](https://discourse.processing.org/t/tuple-problem-in-processing/22789 "2020-07-24T05:01:28Z")

</div>

I’m working with a magnetometer and want to port a calibration program to processing. The problem is it relies on Tuples and was originally written in C#. It looked a lot like Java so I stuck it in a sketch to see what…

---

## [Alpha values of overlapping lines](https://discourse.processing.org/t/alpha-values-of-overlapping-lines/22794)

<div class="topic-metadata">

**Author:** [@N0ld0r](https://discourse.processing.org/u/N0ld0r)\
**Replies:** 4\
**Last updated:** [July 23, 2020, 3:25pm UTC](https://discourse.processing.org/t/alpha-values-of-overlapping-lines/22794 "2020-07-23T15:25:21Z")

</div>

Good day I am creating a small asteroids clone just to have some fun. I recently added missiles into my game which work well except for a small issue I’m having with the alpha of the stroke(R,G,B,Alpha) function and lin…

---

## [Nativehook library](https://discourse.processing.org/t/nativehook-library/22790)

<div class="topic-metadata">

**Author:** [@Ardubora](https://discourse.processing.org/u/Ardubora)\
**Replies:** 0\
**Last updated:** [July 23, 2020, 9:40am UTC](https://discourse.processing.org/t/nativehook-library/22790 "2020-07-23T09:40:57Z")

</div>

How can I captchure a single keystrocke and then make the code “press” the button from te keystrocke at a later date. I am not asking for a KeyLogger.

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

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