# Processing

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

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

**Page:** 336

---

## [Problem with my collisions need help](https://discourse.processing.org/t/problem-with-my-collisions-need-help/6852)

<div class="topic-metadata">

**Author:** [@Robin73](https://discourse.processing.org/u/Robin73)\
**Replies:** 6\
**Last updated:** [December 24, 2018, 3:05pm UTC](https://discourse.processing.org/t/problem-with-my-collisions-need-help/6852 "2018-12-24T15:05:06Z")

</div>

My friend and I are working on this labyrinth and it was working but Yoshi were able to cross the wall so i added the function get() and i wanted my yoshi to walk in a direction if the key was pressed and if the color of…

---

## ["cannot convert float to boolean"](https://discourse.processing.org/t/cannot-convert-float-to-boolean/6822)

<div class="topic-metadata">

**Author:** [@C0R4L](https://discourse.processing.org/u/C0R4L)\
**Replies:** 6\
**Last updated:** [December 24, 2018, 2:30pm UTC](https://discourse.processing.org/t/cannot-convert-float-to-boolean/6822 "2018-12-24T14:30:53Z")

</div>

I was trying to make a DVD screensaver and I’ve come this message “cannot convert float to boolean” I don’t know how to fix it but this is my code to all the geneses on this platform float x = 240; // x location of …

---

## [Initialize array in glsl](https://discourse.processing.org/t/initialize-array-in-glsl/6858)

<div class="topic-metadata">

**Author:** [@Stanlepunk](https://discourse.processing.org/u/Stanlepunk)\
**Replies:** 4\
**Last updated:** [December 24, 2018, 1:46pm UTC](https://discourse.processing.org/t/initialize-array-in-glsl/6858 "2018-12-24T13:46:15Z")

</div>

I want initialize an array from uniform, but the problem I cannot because the array must be init from const. For this reason I must write a same method ntwice, that’s make a lot of code to write the same thing. is it p…

---

## [Timer with specific format](https://discourse.processing.org/t/timer-with-specific-format/6864)

<div class="topic-metadata">

**Author:** [@MichaelPCgamer](https://discourse.processing.org/u/MichaelPCgamer)\
**Replies:** 2\
**Last updated:** [December 24, 2018, 1:50am UTC](https://discourse.processing.org/t/timer-with-specific-format/6864 "2018-12-24T01:50:09Z")

</div>

int milli; int hours; int minutes; int seconds; void setup () { size(600, 400); } void draw() { background(0); milli = millis(); seconds = milli / 1000; minutes = seconds / 60; hours = minutes / 60; tex…

---

## [\[SOLVED\] Project grown too huge - best way to maintain it w/ sanity?](https://discourse.processing.org/t/solved-project-grown-too-huge-best-way-to-maintain-it-w-sanity/6615)

<div class="topic-metadata">

**Author:** [@Architector\_4](https://discourse.processing.org/u/Architector_4)\
**Replies:** 12\
**Last updated:** [December 23, 2018, 8:38pm UTC](https://discourse.processing.org/t/solved-project-grown-too-huge-best-way-to-maintain-it-w-sanity/6615 "2018-12-23T20:38:44Z")

</div>

EDIT: I’ve decided to switch my project to Eclipse, and completely rewrite it, as it grown badly into a mess of no classes, hundreds lines of code long singular functions, huge load of global variables, and overall spagh…

---

## [How to create glsl inputs](https://discourse.processing.org/t/how-to-create-glsl-inputs/6855)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 1\
**Last updated:** [December 23, 2018, 8:21pm UTC](https://discourse.processing.org/t/how-to-create-glsl-inputs/6855 "2018-12-23T20:21:50Z")

</div>

hello! i want to create some vertex shaders input, to send data per vertex. I dont know exactly how can i do it. im sure that some of you have this information. Actually my shaders inputs are texCoord, Color, position, n…

---

## [The code stops working after a while - Help me with homework](https://discourse.processing.org/t/the-code-stops-working-after-a-while-help-me-with-homework/6789)

<div class="topic-metadata">

**Author:** [@Murat](https://discourse.processing.org/u/Murat)\
**Replies:** 4\
**Last updated:** [December 23, 2018, 8:32am UTC](https://discourse.processing.org/t/the-code-stops-working-after-a-while-help-me-with-homework/6789 "2018-12-23T08:32:51Z")

</div>

Hello. The code stops working after about between 30 seconds and 3 minutes. The video feed is freezing when the code stops working. After stopping and running it again, I have another up to 3 minutes successfully running…

---

## [Java robot library doesn't work with fullscreen games](https://discourse.processing.org/t/java-robot-library-doesnt-work-with-fullscreen-games/6835)

<div class="topic-metadata">

**Author:** [@kavindaveerakoon](https://discourse.processing.org/u/kavindaveerakoon)\
**Replies:** 3\
**Last updated:** [December 23, 2018, 7:52am UTC](https://discourse.processing.org/t/java-robot-library-doesnt-work-with-fullscreen-games/6835 "2018-12-23T07:52:23Z")

</div>

I controlled keyboard keys using java robot library, When i open microsoft word, i can see keys typing accurately. But when i open a game, nothing happens. Is game disabling IDE? What should i do?

---

## [Need help making my paddle contact](https://discourse.processing.org/t/need-help-making-my-paddle-contact/6773)

<div class="topic-metadata">

**Author:** [@JakeLen](https://discourse.processing.org/u/JakeLen)\
**Replies:** 3\
**Last updated:** [December 23, 2018, 1:40am UTC](https://discourse.processing.org/t/need-help-making-my-paddle-contact/6773 "2018-12-23T01:40:55Z")

</div>

Hi Y’all, I’m trying to make a vertical, one player version of pong for android. I’ve made png horizontally before but i’m fairly new to this whole thing and changing axis has me thrown off. I just need help making th…

---

## [Drawing lines through openCV edge detection pixels](https://discourse.processing.org/t/drawing-lines-through-opencv-edge-detection-pixels/6833)

<div class="topic-metadata">

**Author:** [@heaversm](https://discourse.processing.org/u/heaversm)\
**Replies:** 0\
**Last updated:** [December 23, 2018, 1:03am UTC](https://discourse.processing.org/t/drawing-lines-through-opencv-edge-detection-pixels/6833 "2018-12-23T01:03:49Z")

</div>

I am doing canny edge detection with opencv in processing (source, webcam source) add coloring edge pixels a certain color. However, what I would like to do is draw curved lines through edges that have neighboring pixels…

---

## [Beginner requires some help for a "snake" game](https://discourse.processing.org/t/beginner-requires-some-help-for-a-snake-game/6831)

<div class="topic-metadata">

**Author:** [@Rogahn](https://discourse.processing.org/u/Rogahn)\
**Replies:** 2\
**Last updated:** [December 22, 2018, 11:21pm UTC](https://discourse.processing.org/t/beginner-requires-some-help-for-a-snake-game/6831 "2018-12-22T23:21:28Z")

</div>

Hello there, I have to do a special snake game for my coding classes. There is no food in this version of the game, but each time “s” is pressed, the snake have to grow by 1 (and only 1) square. The issue is that some…

---

## [Pro-Question: place a point in 3D with mouse](https://discourse.processing.org/t/pro-question-place-a-point-in-3d-with-mouse/6664)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 8\
**Last updated:** [December 22, 2018, 8:13pm UTC](https://discourse.processing.org/t/pro-question-place-a-point-in-3d-with-mouse/6664 "2018-12-22T20:13:32Z")

</div>

Following my series of graphical bezier and shape Editors I am writing a 3D bezier editor. On mouse click I want to add a new Point to the bezier curve. When I place the mouse and use its x and y for the 3D point those…

---

## [Problem program re-open when click icon](https://discourse.processing.org/t/problem-program-re-open-when-click-icon/6761)

<div class="topic-metadata">

**Author:** [@imdidi](https://discourse.processing.org/u/imdidi)\
**Replies:** 4\
**Last updated:** [December 22, 2018, 8:06pm UTC](https://discourse.processing.org/t/problem-program-re-open-when-click-icon/6761 "2018-12-22T20:06:56Z")

</div>

Hello everyone I’ve made a Processing program and I export it as a Linux file. My problem is that if my program is open and I re-click on the icon, the program opens a second time then a third time if I click again on …

---

## [What is the simplest way to set one array equal to another without linking them](https://discourse.processing.org/t/what-is-the-simplest-way-to-set-one-array-equal-to-another-without-linking-them/6827)

<div class="topic-metadata">

**Author:** [@dragon\_hatcher](https://discourse.processing.org/u/dragon_hatcher)\
**Replies:** 2\
**Last updated:** [December 22, 2018, 6:43pm UTC](https://discourse.processing.org/t/what-is-the-simplest-way-to-set-one-array-equal-to-another-without-linking-them/6827 "2018-12-22T18:43:37Z")

</div>

say I have: int\[\] a = {10, 10}; int\[\] b = {0, 0}; what is the simplest way to set b = a without making the variables linked. (changing a value in a will change a value in b); do I have to use a for loop? p.s. in the…

---

## [Void...question](https://discourse.processing.org/t/void-question/6792)

<div class="topic-metadata">

**Author:** [@IMTDSN](https://discourse.processing.org/u/IMTDSN)\
**Replies:** 5\
**Last updated:** [December 22, 2018, 6:03pm UTC](https://discourse.processing.org/t/void-question/6792 "2018-12-22T18:03:23Z")

</div>

If I create something like this: void setup () { … } void draw () { … if (mousePressed == true) // SCENE is the function that contains the scene number (such as 00, 01, 02, …) SCENE = SCENE + 1; } void scene00 (…

---

## [Creating an array of arrays](https://discourse.processing.org/t/creating-an-array-of-arrays/6826)

<div class="topic-metadata">

**Author:** [@evanmars](https://discourse.processing.org/u/evanmars)\
**Replies:** 4\
**Last updated:** [December 22, 2018, 4:57pm UTC](https://discourse.processing.org/t/creating-an-array-of-arrays/6826 "2018-12-22T16:57:17Z")

</div>

First time using Processing. Trying to make a temporary graphical interface for my Arduino project. Probably super simple question. How do I go about creating an array of arrays, then accessing the individual subeleme…

---

## [Not sure how to check for location](https://discourse.processing.org/t/not-sure-how-to-check-for-location/6816)

<div class="topic-metadata">

**Author:** [@Jakpott29](https://discourse.processing.org/u/Jakpott29)\
**Replies:** 6\
**Last updated:** [December 22, 2018, 9:55am UTC](https://discourse.processing.org/t/not-sure-how-to-check-for-location/6816 "2018-12-22T09:55:47Z")

</div>

Im not entirely sure how to check for the location, what i did was i used an array and then some basic x,y variables to draw some rectangles to for a grid on the screen. Im just not sure how i can check for which box the…

---

## [Weird error nullPointerException](https://discourse.processing.org/t/weird-error-nullpointerexception/6814)

<div class="topic-metadata">

**Author:** [@akenaton](https://discourse.processing.org/u/akenaton)\
**Replies:** 3\
**Last updated:** [December 22, 2018, 9:44am UTC](https://discourse.processing.org/t/weird-error-nullpointerexception/6814 "2018-12-22T09:44:10Z")

</div>

I have a code in which i get 1/1000 times an error i cannot understand; as the code runs fine so many times i dont understand why this error is happening. And the error is not really clear to read: java.lang.NullPointer…

---

## [Advices for my code](https://discourse.processing.org/t/advices-for-my-code/6441)

<div class="topic-metadata">

**Author:** [@vincentstrebelle](https://discourse.processing.org/u/vincentstrebelle)\
**Replies:** 6\
**Last updated:** [December 22, 2018, 7:54am UTC](https://discourse.processing.org/t/advices-for-my-code/6441 "2018-12-22T07:54:46Z")

</div>

Hi everyone, i recieved a lot of help from here and i want to show you what i did for now with your help. here is a video i made: here is my code: So here i my question, im self-educated in java and proc…

---

## [Open a Link on a browser with keyPressed](https://discourse.processing.org/t/open-a-link-on-a-browser-with-keypressed/6740)

<div class="topic-metadata">

**Author:** [@\_megss0](https://discourse.processing.org/u/_megss0)\
**Replies:** 10\
**Last updated:** [December 21, 2018, 11:50pm UTC](https://discourse.processing.org/t/open-a-link-on-a-browser-with-keypressed/6740 "2018-12-21T23:50:04Z")

</div>

i want to open a new tab with a link but using the fuction keyPressed something like; if i press CTRL+A open a tab on the browser with a specif link

---

## [Processing program using OSC messages](https://discourse.processing.org/t/processing-program-using-osc-messages/6147)

<div class="topic-metadata">

**Author:** [@justin](https://discourse.processing.org/u/justin)\
**Replies:** 9\
**Last updated:** [December 21, 2018, 8:10pm UTC](https://discourse.processing.org/t/processing-program-using-osc-messages/6147 "2018-12-21T20:10:53Z")

</div>

Hello friends, I am beginner in this programming platform.Can anybody help me with a code to convert the below described program with OSC message using accelerometer data from an android phone.It is a simple program whi…

---

## [Null type with variables](https://discourse.processing.org/t/null-type-with-variables/6782)

<div class="topic-metadata">

**Author:** [@josephh](https://discourse.processing.org/u/josephh)\
**Replies:** 4\
**Last updated:** [December 21, 2018, 5:26pm UTC](https://discourse.processing.org/t/null-type-with-variables/6782 "2018-12-21T17:26:33Z")

</div>

Hello there, I want to do this : I have a variable : color background\_color; and at the beginning, I don’t want to assign it because it’s an object property. Then if I call a fonction setWindowBackground(color c) on…

---

## [Missing characters of font exported PDF](https://discourse.processing.org/t/missing-characters-of-font-exported-pdf/6736)

<div class="topic-metadata">

**Author:** [@lumicon9](https://discourse.processing.org/u/lumicon9)\
**Replies:** 4\
**Last updated:** [December 21, 2018, 3:05pm UTC](https://discourse.processing.org/t/missing-characters-of-font-exported-pdf/6736 "2018-12-21T15:05:29Z")

</div>

hi, i want to make some ascii art exported as pdf for larger print. …tried with several fonts using processing.pdf some arn’t working at all some do partly, especially the extra characters i’d like to work with are alw…

---

## [Irregular image to button](https://discourse.processing.org/t/irregular-image-to-button/6786)

<div class="topic-metadata">

**Author:** [@IMTDSN](https://discourse.processing.org/u/IMTDSN)\
**Replies:** 5\
**Last updated:** [December 21, 2018, 9:48am UTC](https://discourse.processing.org/t/irregular-image-to-button/6786 "2018-12-21T09:48:48Z")

</div>

Is it possible to use an irregular image as a button? That is, an image that along the X has different measures of Y, and vice versa, I can use to MousePressed ? Thanks!

---

## [Need help going around "wall" with pathfinder](https://discourse.processing.org/t/need-help-going-around-wall-with-pathfinder/6785)

<div class="topic-metadata">

**Author:** [@Whahahahaha](https://discourse.processing.org/u/Whahahahaha)\
**Replies:** 2\
**Last updated:** [December 21, 2018, 8:48am UTC](https://discourse.processing.org/t/need-help-going-around-wall-with-pathfinder/6785 "2018-12-21T08:48:42Z")

</div>

I need help with the library for path planning from @quark, although it may not actually be specific for the library. I have the program from this thread: https://discourse.processing.org/t/path-finder-java-pathfinder-l…

---

## [Null Pointers that shouldnt be null](https://discourse.processing.org/t/null-pointers-that-shouldnt-be-null/6752)

<div class="topic-metadata">

**Author:** [@CallMeAza](https://discourse.processing.org/u/CallMeAza)\
**Replies:** 20\
**Last updated:** [December 20, 2018, 10:48am UTC](https://discourse.processing.org/t/null-pointers-that-shouldnt-be-null/6752 "2018-12-20T10:48:04Z")

</div>

Hello guys, i am getting a really weird error… And I hope you can help me. void show(int c) { noFill(); stroke(c); strokeWeight(2); ellipse(center.x, center.y, 2\*r, 2\*r); this.a.show(255); thi…

---

## [Integrate Sketch on website](https://discourse.processing.org/t/integrate-sketch-on-website/6778)

<div class="topic-metadata">

**Author:** [@res56](https://discourse.processing.org/u/res56)\
**Replies:** 0\
**Last updated:** [December 20, 2018, 9:05am UTC](https://discourse.processing.org/t/integrate-sketch-on-website/6778 "2018-12-20T09:05:32Z")

</div>

When i integrate my Sketch in html the Sketch is not displayed correctly. It is displayed magnified. My resolution is 1920x1080px and i set the same size for the Sketch. I am very grateful for help Check my sample on …

---

## [Put and Select an object variables in a list](https://discourse.processing.org/t/put-and-select-an-object-variables-in-a-list/6764)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 1\
**Last updated:** [December 20, 2018, 5:31am UTC](https://discourse.processing.org/t/put-and-select-an-object-variables-in-a-list/6764 "2018-12-20T05:31:22Z")

</div>

hello! i need some help to figure it out how can i put a few object variables into a list. What i want is to have a list with the names of the variables, select the variable and with a slider change it value. Here\`s my c…

---

## [How to create nested polygon](https://discourse.processing.org/t/how-to-create-nested-polygon/6312)

<div class="topic-metadata">

**Author:** [@OliviaJinkela](https://discourse.processing.org/u/OliviaJinkela)\
**Replies:** 14\
**Last updated:** [December 19, 2018, 11:49pm UTC](https://discourse.processing.org/t/how-to-create-nested-polygon/6312 "2018-12-19T23:49:13Z")

</div>

Hi, I’m new to processing, and this is my first post. I has some problem with a processing assignment in school, so I hope everyone can help me to see how to approach to this problem. So basically I want to create a nes…

---

## [Looking for a library to make tree plots](https://discourse.processing.org/t/looking-for-a-library-to-make-tree-plots/6393)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 7\
**Last updated:** [December 19, 2018, 10:18pm UTC](https://discourse.processing.org/t/looking-for-a-library-to-make-tree-plots/6393 "2018-12-19T22:18:10Z")

</div>

Hi, Do you know if there’s a Processing library to make node-based tree graphs (other than the correlation library that is unfortunaltely not P3 compatible) ? Thanks.

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

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