# Processing

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

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

**Page:** 299

---

## [Unsigned types and cast](https://discourse.processing.org/t/unsigned-types-and-cast/11285)

<div class="topic-metadata">

**Author:** [@lve0200](https://discourse.processing.org/u/lve0200)\
**Replies:** 1\
**Last updated:** [May 15, 2019, 8:42pm UTC](https://discourse.processing.org/t/unsigned-types-and-cast/11285 "2019-05-15T20:42:25Z")

</div>

Hi, is there anything like unsigned, e.g. unsigned int? … or how to treat numbers which would after conversion long -\> int normally fall into minus?? Is there anything like cast e.g. int COG = (int) location.getBear…

---

## [NullPointerException with objects](https://discourse.processing.org/t/nullpointerexception-with-objects/11280)

<div class="topic-metadata">

**Author:** [@DoubleTony](https://discourse.processing.org/u/DoubleTony)\
**Replies:** 2\
**Last updated:** [May 15, 2019, 4:43pm UTC](https://discourse.processing.org/t/nullpointerexception-with-objects/11280 "2019-05-15T16:43:23Z")

</div>

Hi I’m creating a random maze generator but it doesn’t seem to generate the cells that make up the maze and I get a NullPointerException when I try to access the cells to give them the position of the vertices, I ask for…

---

## [Receiving data from Arduino](https://discourse.processing.org/t/receiving-data-from-arduino/11239)

<div class="topic-metadata">

**Author:** [@GuilhermeVolker](https://discourse.processing.org/u/GuilhermeVolker)\
**Replies:** 4\
**Last updated:** [May 15, 2019, 2:58pm UTC](https://discourse.processing.org/t/receiving-data-from-arduino/11239 "2019-05-15T14:58:11Z")

</div>

HI! I’am having problem with my code, iam able to read the data, on arduino serial its fine but on Processing its too much slow, i dont have a clue about whats going on. void recebeData(){ if(myPort.available()\>0){ …

---

## [Problem with procesing in game](https://discourse.processing.org/t/problem-with-procesing-in-game/11265)

<div class="topic-metadata">

**Author:** [@Garcia](https://discourse.processing.org/u/Garcia)\
**Replies:** 2\
**Last updated:** [May 15, 2019, 2:56pm UTC](https://discourse.processing.org/t/problem-with-procesing-in-game/11265 "2019-05-15T14:56:09Z")

</div>

Hey guys! I have a little problem. I’m making a game for classes. It’s similar to Space Invaders. So when i’m press \<- (to left) and -\> (to right), sometimes it takes to move. Does anyone have a solution? My code fo…

---

## [How do I bounce all the balls?](https://discourse.processing.org/t/how-do-i-bounce-all-the-balls/11225)

<div class="topic-metadata">

**Author:** [@tai](https://discourse.processing.org/u/tai)\
**Replies:** 2\
**Last updated:** [May 15, 2019, 2:21pm UTC](https://discourse.processing.org/t/how-do-i-bounce-all-the-balls/11225 "2019-05-15T14:21:54Z")

</div>

Nice to meet you. Use this site for the first time. I am worried about not doing anything rude. I want you to help. I want all the balls to bounce the wall. However, only one ball bounces the wall. Please tell me h…

---

## [Launch() function on win10 + Processing 3](https://discourse.processing.org/t/launch-function-on-win10-processing-3/11273)

<div class="topic-metadata">

**Author:** [@mar](https://discourse.processing.org/u/mar)\
**Replies:** 0\
**Last updated:** [May 15, 2019, 2:05pm UTC](https://discourse.processing.org/t/launch-function-on-win10-processing-3/11273 "2019-05-15T14:05:27Z")

</div>

Hello, I’m trying to use the launch() function to run an .exe developed and exported for win 10 but it do not works. It have worked well on mac. Either the exec() function do not works on win10. I’ve tried more path po…

---

## [Open Pixel Control over Wifi for stage design help! sketch freezing!](https://discourse.processing.org/t/open-pixel-control-over-wifi-for-stage-design-help-sketch-freezing/11267)

<div class="topic-metadata">

**Author:** [@zumdar](https://discourse.processing.org/u/zumdar)\
**Replies:** 0\
**Last updated:** [May 15, 2019, 11:27am UTC](https://discourse.processing.org/t/open-pixel-control-over-wifi-for-stage-design-help-sketch-freezing/11267 "2019-05-15T11:27:15Z")

</div>

hiya so I’m using Processing with Open Pixel Control to control 10 Feather M0’s over wifi. each M0 has 1 to 3 different strands of NeoPixels. Its for a touring band and all of these neopixels are built into their clothin…

---

## [Help. How to read a 16 bit grayscale image now JAI is no more?](https://discourse.processing.org/t/help-how-to-read-a-16-bit-grayscale-image-now-jai-is-no-more/11071)

<div class="topic-metadata">

**Author:** [@rapatski](https://discourse.processing.org/u/rapatski)\
**Replies:** 4\
**Last updated:** [May 15, 2019, 8:44am UTC](https://discourse.processing.org/t/help-how-to-read-a-16-bit-grayscale-image-now-jai-is-no-more/11071 "2019-05-15T08:44:55Z")

</div>

Hey guys, Now the JAI library is deprecated, I am a little bit at a loss on how to read a 16bit grayscale heightmap in Processing. Can anyone recommend a format that’s easier to read, or a replacement imaging library or…

---

## [Is there a way to get only one program? \[JAVA Mode Program\]](https://discourse.processing.org/t/is-there-a-way-to-get-only-one-program-java-mode-program/11096)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 8\
**Last updated:** [May 14, 2019, 4:23pm UTC](https://discourse.processing.org/t/is-there-a-way-to-get-only-one-program-java-mode-program/11096 "2019-05-14T16:23:43Z")

</div>

Is there a way to get only one program? When you click an exe file N times, N programs are turned on. So, is there a way to turn on just one program with N clicks of an exe file? How can I run only one program wi…

---

## [Why is the text my text out of focus/in a poor resolution?](https://discourse.processing.org/t/why-is-the-text-my-text-out-of-focus-in-a-poor-resolution/11166)

<div class="topic-metadata">

**Author:** [@anna](https://discourse.processing.org/u/anna)\
**Replies:** 8\
**Last updated:** [May 15, 2019, 6:35am UTC](https://discourse.processing.org/t/why-is-the-text-my-text-out-of-focus-in-a-poor-resolution/11166 "2019-05-15T06:35:58Z")

</div>

My text in this button looks very poorly. But when I click another button on the screen, it looks normal! Here is my code: void draw (){ if (mode== INTRO){ // introskærm doIntroMode(); } else if (mo…

---

## [Framerate() not working on P2D/P3D using intelij](https://discourse.processing.org/t/framerate-not-working-on-p2d-p3d-using-intelij/7768)

<div class="topic-metadata">

**Author:** [@horia16](https://discourse.processing.org/u/horia16)\
**Replies:** 3\
**Last updated:** [May 15, 2019, 2:29am UTC](https://discourse.processing.org/t/framerate-not-working-on-p2d-p3d-using-intelij/7768 "2019-05-15T02:29:53Z")

</div>

The title says it all. Is there a workaround or something? My game collisions are dependant of the framerate to be more accurate thus I need 120 fps for them to be pixel perfect. I can’t get an unlocked framerate using t…

---

## [Prime number function with boolean](https://discourse.processing.org/t/prime-number-function-with-boolean/11228)

<div class="topic-metadata">

**Author:** [@thatone](https://discourse.processing.org/u/thatone)\
**Replies:** 3\
**Last updated:** [May 15, 2019, 12:51am UTC](https://discourse.processing.org/t/prime-number-function-with-boolean/11228 "2019-05-15T00:51:53Z")

</div>

Hi, I would really appreciate if someone knows how to do make a function with boolean to check if the numbers 2-50 are prime numbers or not. I’ve looked at example, but I don’t get the hang of it really. Thanks in advan…

---

## [saveFrame problem](https://discourse.processing.org/t/saveframe-problem/11244)

<div class="topic-metadata">

**Author:** [@mellebond](https://discourse.processing.org/u/mellebond)\
**Replies:** 1\
**Last updated:** [May 15, 2019, 12:47am UTC](https://discourse.processing.org/t/saveframe-problem/11244 "2019-05-15T00:47:41Z")

</div>

Hi there, I have the strange problem that if I turn on saveFrame my sketch shows something a little different then when turned off. When it’s turned off it looks the way I want it. I feel like with saveFrame on it’s mis…

---

## [How to detect display configuration?](https://discourse.processing.org/t/how-to-detect-display-configuration/9169)

<div class="topic-metadata">

**Author:** [@xtupof](https://discourse.processing.org/u/xtupof)\
**Replies:** 6\
**Last updated:** [May 14, 2019, 9:52pm UTC](https://discourse.processing.org/t/how-to-detect-display-configuration/9169 "2019-05-14T21:52:20Z")

</div>

Hi there, I’m switching again and again from my home station with multiple screens to my laptop… At home, I use the fullScreen(3) option, but working on my laptop screen I mostly use size(640,360). Rather than always c…

---

## [Jumping and score in game code](https://discourse.processing.org/t/jumping-and-score-in-game-code/11137)

<div class="topic-metadata">

**Author:** [@D33](https://discourse.processing.org/u/D33)\
**Replies:** 5\
**Last updated:** [May 14, 2019, 11:34am UTC](https://discourse.processing.org/t/jumping-and-score-in-game-code/11137 "2019-05-14T11:34:24Z")

</div>

Hello, I am currently making a small Doodle Jump clone but I ran into a problem. I created a class that just takes care of the platforms(it extends another class) on the screen and their interaction with the character. …

---

## [How to display class button](https://discourse.processing.org/t/how-to-display-class-button/11181)

<div class="topic-metadata">

**Author:** [@anna](https://discourse.processing.org/u/anna)\
**Replies:** 4\
**Last updated:** [May 13, 2019, 8:21am UTC](https://discourse.processing.org/t/how-to-display-class-button/11181 "2019-05-13T08:21:38Z")

</div>

Hello! I’ve made this button, but I can’t make it display. I know that some of it works, because I have some text that works. code: Button button1, button2, button3, button4; int y = 500; int x1 = 185; int x2 = 495; i…

---

## [Download Modules through proxy with password](https://discourse.processing.org/t/download-modules-through-proxy-with-password/10968)

<div class="topic-metadata">

**Author:** [@MichaelHecht](https://discourse.processing.org/u/MichaelHecht)\
**Replies:** 9\
**Last updated:** [May 14, 2019, 2:12pm UTC](https://discourse.processing.org/t/download-modules-through-proxy-with-password/10968 "2019-05-14T14:12:25Z")

</div>

Hi, I’m working behind a company proxy with user and password. Customizing preferences.txt does’nt help because I cannot set user and password. Without appropriate proxy settings I cannot install any modules. I didn’t f…

---

## [controlP5 RadioButton question](https://discourse.processing.org/t/controlp5-radiobutton-question/11211)

<div class="topic-metadata">

**Author:** [@goosey](https://discourse.processing.org/u/goosey)\
**Replies:** 1\
**Last updated:** [May 14, 2019, 3:30am UTC](https://discourse.processing.org/t/controlp5-radiobutton-question/11211 "2019-05-14T03:30:24Z")

</div>

Hello! In I project using cp5, I want to display a list of toggles, each of which has a corresponding group of controllers. Here is the relevant code: cp5.addRadioButton("shape picker") .addItem("line", 1) .ad…

---

## [How have fullscreen with G4P](https://discourse.processing.org/t/how-have-fullscreen-with-g4p/11207)

<div class="topic-metadata">

**Author:** [@mbe](https://discourse.processing.org/u/mbe)\
**Replies:** 0\
**Last updated:** [May 13, 2019, 9:38pm UTC](https://discourse.processing.org/t/how-have-fullscreen-with-g4p/11207 "2019-05-13T21:38:32Z")

</div>

Hello, I create a new window with : window = GWindow.getWindow(this, title, x, y, w, h, renderer); is there a way to open it in real fullsreen (i.e. without the title bar) ?

---

## [Public webcam capture](https://discourse.processing.org/t/public-webcam-capture/11142)

<div class="topic-metadata">

**Author:** [@DonAlt](https://discourse.processing.org/u/DonAlt)\
**Replies:** 7\
**Last updated:** [May 13, 2019, 6:50pm UTC](https://discourse.processing.org/t/public-webcam-capture/11142 "2019-05-13T18:50:08Z")

</div>

Hi there Any pointers regarding how to capture time lapse images of a public webcam found on the web like this example; Example link

---

## [Regarding using AudioInput in Minim](https://discourse.processing.org/t/regarding-using-audioinput-in-minim/11119)

<div class="topic-metadata">

**Author:** [@maddyna](https://discourse.processing.org/u/maddyna)\
**Replies:** 5\
**Last updated:** [May 13, 2019, 6:27pm UTC](https://discourse.processing.org/t/regarding-using-audioinput-in-minim/11119 "2019-05-13T18:27:24Z")

</div>

I am trying to create Reverb and echo to the audio that is coming in through the computer mike but thr is nothing in the Minim library to let me do that.Can somebody help me in this regard Or shuld I use LiveInput inst…

---

## [Slowdown from image manipulation](https://discourse.processing.org/t/slowdown-from-image-manipulation/11121)

<div class="topic-metadata">

**Author:** [@jashuman19](https://discourse.processing.org/u/jashuman19)\
**Replies:** 3\
**Last updated:** [May 13, 2019, 7:17am UTC](https://discourse.processing.org/t/slowdown-from-image-manipulation/11121 "2019-05-13T07:17:14Z")

</div>

I’ve been encountering some pretty massive slowdown when I try to manipulate large images. Whenever I use images close in size to the display size, there will be a huge framerate drop (from about 60 to as low as 8 or 9) …

---

## [Compare the angle between several spinning objects](https://discourse.processing.org/t/compare-the-angle-between-several-spinning-objects/11194)

<div class="topic-metadata">

**Author:** [@ale.moso](https://discourse.processing.org/u/ale.moso)\
**Replies:** 3\
**Last updated:** [May 13, 2019, 2:10pm UTC](https://discourse.processing.org/t/compare-the-angle-between-several-spinning-objects/11194 "2019-05-13T14:10:29Z")

</div>

Hello dear community, I made a grid of spinning lines. Now I wonder how to know when a line and is neighbours are matching in the vertical or horizontal axis to change theris colors for that moment in which the share th…

---

## [Create Font with Batik](https://discourse.processing.org/t/create-font-with-batik/11105)

<div class="topic-metadata">

**Author:** [@Stanlepunk](https://discourse.processing.org/u/Stanlepunk)\
**Replies:** 2\
**Last updated:** [May 13, 2019, 7:55am UTC](https://discourse.processing.org/t/create-font-with-batik/11105 "2019-05-13T07:55:07Z")

</div>

Hello, If any body have a knowledge and Processing exemple with Batik SVG system with a focus on Font i’m very interresting. I try to make a font with Batik to create a cloud points with it like Geomerative, but I cannot…

---

## [Getting Sketch To Reset using MIDI](https://discourse.processing.org/t/getting-sketch-to-reset-using-midi/11078)

<div class="topic-metadata">

**Author:** [@djspoonzay](https://discourse.processing.org/u/djspoonzay)\
**Replies:** 1\
**Last updated:** [May 13, 2019, 6:46am UTC](https://discourse.processing.org/t/getting-sketch-to-reset-using-midi/11078 "2019-05-13T06:46:39Z")

</div>

what i’m trying to do is I have a midi keyboard with the C,E and G keys assigned as int 255 each, to make a coloured ellipse, what I’d like is that when the keys are released to then remove that color value so the RGB va…

---

## [Different soundtrack for different modes](https://discourse.processing.org/t/different-soundtrack-for-different-modes/11172)

<div class="topic-metadata">

**Author:** [@anna](https://discourse.processing.org/u/anna)\
**Replies:** 2\
**Last updated:** [May 13, 2019, 5:08am UTC](https://discourse.processing.org/t/different-soundtrack-for-different-modes/11172 "2019-05-13T05:08:58Z")

</div>

Hello! I have this game, where I want a different soundtracks to play in the different modes. int mode = 0; int INTRO = 0; int KASSE = 1; int BUTIK = 2; int STUDY = 3; import processing.sound.\*; SoundFile file; Strin…

---

## [Movie file doesn't load](https://discourse.processing.org/t/movie-file-doesnt-load/11169)

<div class="topic-metadata">

**Author:** [@dehyde](https://discourse.processing.org/u/dehyde)\
**Replies:** 1\
**Last updated:** [May 13, 2019, 1:19am UTC](https://discourse.processing.org/t/movie-file-doesnt-load/11169 "2019-05-13T01:19:38Z")

</div>

Hi I’m trying to create an array of objects Each object contains some variables and a movie object For some reason, when calling on the movies duration() I’m getting information that doesn’t make sense (shows as 0.0),…

---

## [Why are my buttons connected?](https://discourse.processing.org/t/why-are-my-buttons-connected/11167)

<div class="topic-metadata">

**Author:** [@anna](https://discourse.processing.org/u/anna)\
**Replies:** 7\
**Last updated:** [May 12, 2019, 3:10pm UTC](https://discourse.processing.org/t/why-are-my-buttons-connected/11167 "2019-05-12T15:10:19Z")

</div>

I followed this example when making my own buttons: Processing buttons example I want the colour of the button to change, when the mouse is hovering above it, and the background to change when the first button is presse…

---

## [Understanding applymatrix() and linear algebra](https://discourse.processing.org/t/understanding-applymatrix-and-linear-algebra/11068)

<div class="topic-metadata">

**Author:** [@Avatrin](https://discourse.processing.org/u/Avatrin)\
**Replies:** 4\
**Last updated:** [May 12, 2019, 2:51pm UTC](https://discourse.processing.org/t/understanding-applymatrix-and-linear-algebra/11068 "2019-05-12T14:51:37Z")

</div>

Hi How does the applymatrix transformation work in relation to the more “conventional” coordinate systems since, while the x-axis is like in conventional mathematics, the y-axis is not since it points down. What about …

---

## [Why is my button placed like that?](https://discourse.processing.org/t/why-is-my-button-placed-like-that/11165)

<div class="topic-metadata">

**Author:** [@anna](https://discourse.processing.org/u/anna)\
**Replies:** 2\
**Last updated:** [May 12, 2019, 11:36am UTC](https://discourse.processing.org/t/why-is-my-button-placed-like-that/11165 "2019-05-12T11:36:56Z")

</div>

I have: void setup() { size(1250,800); } and I would like my button: rect(495,500,260,260,35); to be placed in the middle of the screen. So I thought I could make a button rect(button2X, buttonY, buttonSize, b…

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

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