# Processing

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

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

**Page:** 113

---

## [Math behind logical operators on 3D boxes / cuboids](https://discourse.processing.org/t/math-behind-logical-operators-on-3d-boxes-cuboids/32318)

<div class="topic-metadata">

**Author:** [@Lukasz](https://discourse.processing.org/u/Lukasz)\
**Replies:** 5\
**Last updated:** [September 22, 2021, 10:41am UTC](https://discourse.processing.org/t/math-behind-logical-operators-on-3d-boxes-cuboids/32318 "2021-09-22T10:41:05Z")

</div>

Cheers. Recently I’ve been coding a lot 3D isometric projections of complex structures rendered as cuboids (like this render of 2D k-d tree into 3D space: Imgur: The magic of the Internet). Standard Processing libraries…

---

## [noLoop not working as expected in v3.5.4](https://discourse.processing.org/t/noloop-not-working-as-expected-in-v3-5-4/32342)

<div class="topic-metadata">

**Author:** [@RosesAreBlue](https://discourse.processing.org/u/RosesAreBlue)\
**Replies:** 5\
**Last updated:** [September 22, 2021, 2:17am UTC](https://discourse.processing.org/t/noloop-not-working-as-expected-in-v3-5-4/32342 "2021-09-22T02:17:19Z")

</div>

void setup() { // Set the size of the window and background color size(1024, 1024); background(0, 0, 0); noLoop(); } float plotFromNormalized(float x, float y) { // Takes inputs in range \[-1, 1\] where it must al…

---

## [How to fix this ControlEvent issue](https://discourse.processing.org/t/how-to-fix-this-controlevent-issue/32351)

<div class="topic-metadata">

**Author:** [@seym](https://discourse.processing.org/u/seym)\
**Replies:** 1\
**Last updated:** [September 21, 2021, 10:02pm UTC](https://discourse.processing.org/t/how-to-fix-this-controlevent-issue/32351 "2021-09-21T22:02:56Z")

</div>

I am using Processing IDE with Java language. There are serial port writings for lighting some LEDs and my aim was; send the c (Color) from cp (colorpicker) to the corresponding LEDs. Since I have too many LED areas, I…

---

## [Make minim listen to what is send to speaker](https://discourse.processing.org/t/make-minim-listen-to-what-is-send-to-speaker/32339)

<div class="topic-metadata">

**Author:** [@gitanerie](https://discourse.processing.org/u/gitanerie)\
**Replies:** 2\
**Last updated:** [September 21, 2021, 4:06pm UTC](https://discourse.processing.org/t/make-minim-listen-to-what-is-send-to-speaker/32339 "2021-09-21T16:06:30Z")

</div>

Hi! (I’m really not sure about the topic’s category) Some times ago, I made a little script that would use minim to listen to your sound card, and have an animation base on the sound your computer is playing. While it …

---

## [Twisted quads vs. Expressive quads](https://discourse.processing.org/t/twisted-quads-vs-expressive-quads/32292)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 6\
**Last updated:** [September 20, 2021, 9:28pm UTC](https://discourse.processing.org/t/twisted-quads-vs-expressive-quads/32292 "2021-09-20T21:28:10Z")

</div>

Hi there! These days i have been working with quads and some Users have gave me different solutions for my problems. One of my biggest problems is that some of my random quads are twisted. With new ways of drawing quad…

---

## [How to add a font in the list](https://discourse.processing.org/t/how-to-add-a-font-in-the-list/22805)

<div class="topic-metadata">

**Author:** [@fotosettore](https://discourse.processing.org/u/fotosettore)\
**Replies:** 7\
**Last updated:** [September 20, 2021, 6:13pm UTC](https://discourse.processing.org/t/how-to-add-a-font-in-the-list/22805 "2021-09-20T18:13:34Z")

</div>

Hi i need to add a font in the list that is given by TOOL --\> CREATE FONT That font is already installed in windows10 and it is a true-type (it is seen by photoshop), but it does not appear in the Processing list. An…

---

## [Simulate mouse action](https://discourse.processing.org/t/simulate-mouse-action/32312)

<div class="topic-metadata">

**Author:** [@potter3366](https://discourse.processing.org/u/potter3366)\
**Replies:** 4\
**Last updated:** [September 20, 2021, 6:01pm UTC](https://discourse.processing.org/t/simulate-mouse-action/32312 "2021-09-20T18:01:56Z")

</div>

I have to simulate this mouse action. Instead of a mouse I can use the space button or with the jumps in front of the kinect. How can I control these actions over time or the frequency of repeating something at a certain…

---

## [Problem loading screen](https://discourse.processing.org/t/problem-loading-screen/32272)

<div class="topic-metadata">

**Author:** [@tati1202](https://discourse.processing.org/u/tati1202)\
**Replies:** 7\
**Last updated:** [September 20, 2021, 2:49pm UTC](https://discourse.processing.org/t/problem-loading-screen/32272 "2021-09-20T14:49:29Z")

</div>

hey, I have a problem executing my screen, it takes a second for the screen to run (it appears grey for a second), why could that be? I´m using array of images, text and some functions with buttons. The structure of the…

---

## [Register a key press while working outside the sketch window?](https://discourse.processing.org/t/register-a-key-press-while-working-outside-the-sketch-window/32036)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 1\
**Last updated:** [September 20, 2021, 6:04am UTC](https://discourse.processing.org/t/register-a-key-press-while-working-outside-the-sketch-window/32036 "2021-09-20T06:04:59Z")

</div>

I’m currently working on a program to assist me in a game but I’d like to add a few other controlls including when to shut the program down. However the keyPressed method only is called when the window is currently acti…

---

## [Need help making my code display random set of images](https://discourse.processing.org/t/need-help-making-my-code-display-random-set-of-images/32316)

<div class="topic-metadata">

**Author:** [@colehodl](https://discourse.processing.org/u/colehodl)\
**Replies:** 7\
**Last updated:** [September 20, 2021, 3:37am UTC](https://discourse.processing.org/t/need-help-making-my-code-display-random-set-of-images/32316 "2021-09-20T03:37:41Z")

</div>

I am trying to make a code that will display random images, I wanted to create a RandomCatGenerator that would have a random value between 1 and 3, and a random picture of a cat would show up depending on which number R…

---

## [How to make object shoot in Processing](https://discourse.processing.org/t/how-to-make-object-shoot-in-processing/32087)

<div class="topic-metadata">

**Author:** [@NewCoder1](https://discourse.processing.org/u/NewCoder1)\
**Replies:** 11\
**Last updated:** [September 20, 2021, 3:18am UTC](https://discourse.processing.org/t/how-to-make-object-shoot-in-processing/32087 "2021-09-20T03:18:01Z")

</div>

Hi everyone, I’m doing my Processing homework and I’ve got my object but I can’t get it to shoot. Can someone tell me the correct code please? I have the following so far: int x = 30; int y = 30; void setup(){ size(50…

---

## [How to make bullet shoot only when the previous bullet is off the screen](https://discourse.processing.org/t/how-to-make-bullet-shoot-only-when-the-previous-bullet-is-off-the-screen/32314)

<div class="topic-metadata">

**Author:** [@MarkShaker](https://discourse.processing.org/u/MarkShaker)\
**Replies:** 2\
**Last updated:** [September 20, 2021, 2:20am UTC](https://discourse.processing.org/t/how-to-make-bullet-shoot-only-when-the-previous-bullet-is-off-the-screen/32314 "2021-09-20T02:20:17Z")

</div>

Hi everyone, I’m having trouble with shooting another bullet only when the previous bullet fired is off the screen. This is my current code. int x = 30; int y = 60; float gunX = x+20; float gunY = y+20; float circl…

---

## [Is it possible to do a HTTP post from a Processing program?](https://discourse.processing.org/t/is-it-possible-to-do-a-http-post-from-a-processing-program/32224)

<div class="topic-metadata">

**Author:** [@TeppoTee](https://discourse.processing.org/u/TeppoTee)\
**Replies:** 3\
**Last updated:** [September 19, 2021, 9:55pm UTC](https://discourse.processing.org/t/is-it-possible-to-do-a-http-post-from-a-processing-program/32224 "2021-09-19T21:55:50Z")

</div>

I’ve been a Processing heavy user for years. Among other things have used loadString() quite a lot to fetch information from web server(s) . Is there a counterpart to loadStrings() which would allow me to do a HTTP post …

---

## [Access sub classes static final variable from superclass](https://discourse.processing.org/t/access-sub-classes-static-final-variable-from-superclass/32297)

<div class="topic-metadata">

**Author:** [@gitanerie](https://discourse.processing.org/u/gitanerie)\
**Replies:** 5\
**Last updated:** [September 19, 2021, 12:16pm UTC](https://discourse.processing.org/t/access-sub-classes-static-final-variable-from-superclass/32297 "2021-09-19T12:16:46Z")

</div>

Hi everyone, I’m currently working on a project in which I have different types of “bullets”. I have a superclass called Projectile to handle all the needed functions that are common to all types of bullets. In fact, th…

---

## [Render without displaying for performance](https://discourse.processing.org/t/render-without-displaying-for-performance/32307)

<div class="topic-metadata">

**Author:** [@shishironeal](https://discourse.processing.org/u/shishironeal)\
**Replies:** 1\
**Last updated:** [September 19, 2021, 10:26am UTC](https://discourse.processing.org/t/render-without-displaying-for-performance/32307 "2021-09-19T10:26:01Z")

</div>

Is it possible to render frames without having to display them? Would this be faster than normal rendering (with JAVA2D or P2D)? (i.e. with saveFrame)

---

## [Check if object is inbetween 2 points](https://discourse.processing.org/t/check-if-object-is-inbetween-2-points/32288)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 10\
**Last updated:** [September 17, 2021, 8:04pm UTC](https://discourse.processing.org/t/check-if-object-is-inbetween-2-points/32288 "2021-09-17T20:04:00Z")

</div>

how to check if an object is anywhere inbetween the two x values, width-(width/4) and eight-(height/4)

---

## [Loops inside loops](https://discourse.processing.org/t/loops-inside-loops/32289)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 2\
**Last updated:** [September 17, 2021, 7:39pm UTC](https://discourse.processing.org/t/loops-inside-loops/32289 "2021-09-17T19:39:35Z")

</div>

Hi there! I have created a function with a diagonal queue of points in random positions and now I want to convert It into blocks of diagonal queues in random positions, as you can see in the picture. I am trying to make…

---

## [Multiple polygons with a loop](https://discourse.processing.org/t/multiple-polygons-with-a-loop/32260)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 8\
**Last updated:** [September 17, 2021, 7:05pm UTC](https://discourse.processing.org/t/multiple-polygons-with-a-loop/32260 "2021-09-17T19:05:57Z")

</div>

Hi there! I have made a function to create a random polygon, could you please help me to create, for example, 30 polygons like this? Thank you so much void setup(){ size(1000,1000); float x1 = random(width); …

---

## [Resetting a PShape](https://discourse.processing.org/t/resetting-a-pshape/31866)

<div class="topic-metadata">

**Author:** [@SNICKRS](https://discourse.processing.org/u/SNICKRS)\
**Replies:** 3\
**Last updated:** [September 16, 2021, 6:12pm UTC](https://discourse.processing.org/t/resetting-a-pshape/31866 "2021-09-16T18:12:58Z")

</div>

Hello everyone, I am making a voxel game and have been using PShapes to generate chunk meshes. I am currently working on Raycasting so that the player can break and place a block. However, when the player breaks a block,…

---

## [Polygons Distribution with loops](https://discourse.processing.org/t/polygons-distribution-with-loops/32270)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 5\
**Last updated:** [September 16, 2021, 4:18pm UTC](https://discourse.processing.org/t/polygons-distribution-with-loops/32270 "2021-09-16T16:18:36Z")

</div>

Hi there! I am learning about loops these weeks and I have been able to do a screen full of rectangles like the one you can see in the picture. Now I would like to do a screen full of quadrilaterals, but If I do a loop a…

---

## [Arduino RFID and Processing Connection](https://discourse.processing.org/t/arduino-rfid-and-processing-connection/32108)

<div class="topic-metadata">

**Author:** [@angoldini01](https://discourse.processing.org/u/angoldini01)\
**Replies:** 12\
**Last updated:** [September 16, 2021, 1:51pm UTC](https://discourse.processing.org/t/arduino-rfid-and-processing-connection/32108 "2021-09-16T13:51:22Z")

</div>

Hey, I’m currently working on a project where I want to switch the colors of a square in processing through using rfid chips with arduino. So everytime I place a rfid-chip on my rfid-reader, arduino should send the data…

---

## [LEAP motion doesn´t works](https://discourse.processing.org/t/leap-motion-doesn-t-works/6763)

<div class="topic-metadata">

**Author:** [@danyman](https://discourse.processing.org/u/danyman)\
**Replies:** 8\
**Last updated:** [September 16, 2021, 10:32am UTC](https://discourse.processing.org/t/leap-motion-doesn-t-works/6763 "2021-09-16T10:32:45Z")

</div>

Hello, I have a new LEAP motion sensor. I installed it and also the library, but when I start to run the processing sketch basics, its looks like that (picture). Thanks in advance for the help Daniel

---

## [Stroke Gradient for Lines](https://discourse.processing.org/t/stroke-gradient-for-lines/32112)

<div class="topic-metadata">

**Author:** [@humano](https://discourse.processing.org/u/humano)\
**Replies:** 15\
**Last updated:** [September 16, 2021, 1:54am UTC](https://discourse.processing.org/t/stroke-gradient-for-lines/32112 "2021-09-16T01:54:23Z")

</div>

Hi there, I am trying to make lines with gradient strokes. I have done something, but It does not work, who can help me with this? Thanks! size (900, 900); background (255); colorMode(HSB, 360, 100, 100); int hueStart…

---

## [Utility issue: Alt+Arrowkeys combination not working anymore](https://discourse.processing.org/t/utility-issue-alt-arrowkeys-combination-not-working-anymore/32269)

<div class="topic-metadata">

**Author:** [@Namrad](https://discourse.processing.org/u/Namrad)\
**Replies:** 2\
**Last updated:** [September 15, 2021, 8:49pm UTC](https://discourse.processing.org/t/utility-issue-alt-arrowkeys-combination-not-working-anymore/32269 "2021-09-15T20:49:10Z")

</div>

Hello, Since the launch of Processing 4 I have noticed that the (left-)Alt keyboard-combinations (Alt+Arrowkeys, Alt+Delete/Backspace, etc.) don’t work for me anymore. The issue seems really specific considering other, …

---

## [Check if character sees other character](https://discourse.processing.org/t/check-if-character-sees-other-character/32274)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 1\
**Last updated:** [September 15, 2021, 8:23pm UTC](https://discourse.processing.org/t/check-if-character-sees-other-character/32274 "2021-09-15T20:23:57Z")

</div>

how to check if enimy sees midas? if i3 is 1, enimy looks to the left and if its 2 he looks to the right. //characters int midashp= 30; int enimyhp= 30; PImage\[\] midas= new PImage\[8\]; PImage\[\] reversemidas= new PIma…

---

## [Updating P3 library for P4](https://discourse.processing.org/t/updating-p3-library-for-p4/32191)

<div class="topic-metadata">

**Author:** [@robertesler](https://discourse.processing.org/u/robertesler)\
**Replies:** 10\
**Last updated:** [September 15, 2021, 5:01pm UTC](https://discourse.processing.org/t/updating-p3-library-for-p4/32191 "2021-09-15T17:01:21Z")

</div>

Does anyone know if there is, or will be, a way to distribute different versions of a library for P3 and P4. Right now my own library, and others I use, works in P4 but are compiled for Java 8. Can we have two versions…

---

## [Issue with fullScreen()](https://discourse.processing.org/t/issue-with-fullscreen/744)

<div class="topic-metadata">

**Author:** [@Fausto](https://discourse.processing.org/u/Fausto)\
**Replies:** 3\
**Last updated:** [September 15, 2021, 4:02pm UTC](https://discourse.processing.org/t/issue-with-fullscreen/744 "2021-09-15T16:02:32Z")

</div>

I have encountered a problem when using fullScreen(). For testing I have been given a small projector 800x600 connected to my Mac via thunderbolt to VGA adapter. I can see my second monitor projected, I can mouse over i…

---

## [MouseClick event for an Arc in CP5 Button](https://discourse.processing.org/t/mouseclick-event-for-an-arc-in-cp5-button/32250)

<div class="topic-metadata">

**Author:** [@seym](https://discourse.processing.org/u/seym)\
**Replies:** 11\
**Last updated:** [September 15, 2021, 1:54pm UTC](https://discourse.processing.org/t/mouseclick-event-for-an-arc-in-cp5-button/32250 "2021-09-15T13:54:08Z")

</div>

I have 4 buttons each shaped an arc. The 4 buttons: I made the buttons like this: button1 = cp5.addButton("A1") // The button for the first area. The other 3 buttons will be "A2" , "A3" , "A4" .setValu…

---

## [Is it possible to determine a mouseclick order for buttons](https://discourse.processing.org/t/is-it-possible-to-determine-a-mouseclick-order-for-buttons/32254)

<div class="topic-metadata">

**Author:** [@seym](https://discourse.processing.org/u/seym)\
**Replies:** 4\
**Last updated:** [September 14, 2021, 10:41pm UTC](https://discourse.processing.org/t/is-it-possible-to-determine-a-mouseclick-order-for-buttons/32254 "2021-09-14T22:41:05Z")

</div>

I want to determine mouseclick orders for buttons, like: first click → on (conditions are true), second click → off, third click - \>on, … and it goes like this. But I could not figure a way to do this.

---

## [Battle interface](https://discourse.processing.org/t/battle-interface/32184)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 4\
**Last updated:** [September 14, 2021, 9:44pm UTC](https://discourse.processing.org/t/battle-interface/32184 "2021-09-14T21:44:27Z")

</div>

how do you make a battle interface like pokemon? or perhaps more like this with battle interface i mean you see the two images(one of the enemy and one of the player that i made on pixelart.com), a health bar and di…

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

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