# Processing

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

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

**Page:** 283

---

## [Available display resolution doesn't match hardware](https://discourse.processing.org/t/available-display-resolution-doesnt-match-hardware/12997)

<div class="topic-metadata">

**Author:** [@tomaslimak](https://discourse.processing.org/u/tomaslimak)\
**Replies:** 1\
**Last updated:** [July 26, 2019, 2:36pm UTC](https://discourse.processing.org/t/available-display-resolution-doesnt-match-hardware/12997 "2019-07-26T14:36:58Z")

</div>

I used to run processing on a laptop with a 1440x900 display. I now have a new laptop with a 2560x1600 display. I used a timemachine backup to initialise the new laptop. In the processing preferences the only option is a…

---

## [Processing not recognizing enum](https://discourse.processing.org/t/processing-not-recognizing-enum/12899)

<div class="topic-metadata">

**Author:** [@hey](https://discourse.processing.org/u/hey)\
**Replies:** 4\
**Last updated:** [July 26, 2019, 1:52pm UTC](https://discourse.processing.org/t/processing-not-recognizing-enum/12899 "2019-07-26T13:52:33Z")

</div>

I am trying to program an interpreter in Processing, and I’m trying to use enums. However, when I try to reference one of the values from the enum, Processing tells me that the value cannot be resolved into a variable.

---

## [Need help adding a border so my guy doesn't go off screen](https://discourse.processing.org/t/need-help-adding-a-border-so-my-guy-doesnt-go-off-screen/12987)

<div class="topic-metadata">

**Author:** [@kjiiller](https://discourse.processing.org/u/kjiiller)\
**Replies:** 3\
**Last updated:** [July 26, 2019, 11:56am UTC](https://discourse.processing.org/t/need-help-adding-a-border-so-my-guy-doesnt-go-off-screen/12987 "2019-07-26T11:56:26Z")

</div>

My code class player{ int x,y,spd,size; boolean\[\] keys=new boolean\[5\]; player(int x1,int y1,int spd1,int size1){ x=x1; y=y1; spd=spd1; size=size1; } void update(){ if(k…

---

## [I added Buttons for Fan On/Off on Processing](https://discourse.processing.org/t/i-added-buttons-for-fan-on-off-on-processing/12970)

<div class="topic-metadata">

**Author:** [@Murphy](https://discourse.processing.org/u/Murphy)\
**Replies:** 24\
**Last updated:** [July 26, 2019, 11:27am UTC](https://discourse.processing.org/t/i-added-buttons-for-fan-on-off-on-processing/12970 "2019-07-26T11:27:51Z")

</div>

Hello everyone, I created Step Motor and Led System with Arduino and Processing. I added a Fan on my system. I added Buttons for Fan On/Off on Processing. I added Status. I want to this. If Fan is Active, Button will be…

---

## [My new tiny library "does not exist"](https://discourse.processing.org/t/my-new-tiny-library-does-not-exist/12989)

<div class="topic-metadata">

**Author:** [@tove](https://discourse.processing.org/u/tove)\
**Replies:** 3\
**Last updated:** [July 26, 2019, 5:18am UTC](https://discourse.processing.org/t/my-new-tiny-library-does-not-exist/12989 "2019-07-26T05:18:43Z")

</div>

Hi folks – I’m trying to wrap some code up into a little personal library because I want to write a bunch of sketches that refer to it and I don’t want any of them to get out of sync if I need to change something. (Also…

---

## [Don't know how to activate method](https://discourse.processing.org/t/dont-know-how-to-activate-method/12982)

<div class="topic-metadata">

**Author:** [@kosi559](https://discourse.processing.org/u/kosi559)\
**Replies:** 3\
**Last updated:** [July 25, 2019, 10:29pm UTC](https://discourse.processing.org/t/dont-know-how-to-activate-method/12982 "2019-07-25T22:29:54Z")

</div>

I am a beginner at Java public void drawScore() { scoreFont = createFont("Bauhaus 93", 26, true); textFont(scoreFont); fill(255,255,255); textAlign(CENTER); text("Score: " + s…

---

## [Save data from Arduino to PC in CSV file in real time by Processing code](https://discourse.processing.org/t/save-data-from-arduino-to-pc-in-csv-file-in-real-time-by-processing-code/12959)

<div class="topic-metadata">

**Author:** [@hectorta](https://discourse.processing.org/u/hectorta)\
**Replies:** 2\
**Last updated:** [July 25, 2019, 4:41am UTC](https://discourse.processing.org/t/save-data-from-arduino-to-pc-in-csv-file-in-real-time-by-processing-code/12959 "2019-07-25T04:41:20Z")

</div>

I want to generate file name and data & time in csv file in the format yyyymmdd hhmmss.zzz. Where: zzz is millisecond. e.g 20190709 090801.001. But my following code can only get the format 201979 981.1 //import the req…

---

## [Exporting and pictures issue](https://discourse.processing.org/t/exporting-and-pictures-issue/12931)

<div class="topic-metadata">

**Author:** [@gillyboat4](https://discourse.processing.org/u/gillyboat4)\
**Replies:** 6\
**Last updated:** [July 25, 2019, 12:59am UTC](https://discourse.processing.org/t/exporting-and-pictures-issue/12931 "2019-07-25T00:59:55Z")

</div>

In my experience, whenever I try to export a sketch containing a PImage, loadImage and image(); functions, the sketch will fail to load those parts. PImage I = loadImage(“hi.png”); image(I,0,0,100,100); this code when…

---

## [Make Reminders with Alarm](https://discourse.processing.org/t/make-reminders-with-alarm/12957)

<div class="topic-metadata">

**Author:** [@Sweetiefraise](https://discourse.processing.org/u/Sweetiefraise)\
**Replies:** 1\
**Last updated:** [July 24, 2019, 6:38pm UTC](https://discourse.processing.org/t/make-reminders-with-alarm/12957 "2019-07-24T18:38:46Z")

</div>

Is it possible to make reminders trough the day? I have this project for a very basic app (I have practiced with processing for 3 days). I want to make an app that reminds you to drink water but I can´t find posts, or I…

---

## [Trying processing with atom question about classes and preview](https://discourse.processing.org/t/trying-processing-with-atom-question-about-classes-and-preview/12929)

<div class="topic-metadata">

**Author:** [@otorp2](https://discourse.processing.org/u/otorp2)\
**Replies:** 1\
**Last updated:** [July 24, 2019, 6:21pm UTC](https://discourse.processing.org/t/trying-processing-with-atom-question-about-classes-and-preview/12929 "2019-07-24T18:21:39Z")

</div>

Hi - I have moved to Atom and processing with live preview, so far so good. In the processing ide I made a sketch called test1.pde, then I created a class Bubble.class then I opened in Atom. It seems live preview onl…

---

## [Bug with ArrayList](https://discourse.processing.org/t/bug-with-arraylist/5949)

<div class="topic-metadata">

**Author:** [@bitCrasher](https://discourse.processing.org/u/bitCrasher)\
**Replies:** 20\
**Last updated:** [November 26, 2018, 5:30pm UTC](https://discourse.processing.org/t/bug-with-arraylist/5949 "2018-11-26T17:30:37Z")

</div>

hi guys, I’m having a bug that I just can not solve, I think it’s a very stupid thing. in practice I would like this code to generate a map of points, which save in an arreyList, and then that there are 4 lines that in…

---

## [pushMatrix() cannot use push more than 32 times](https://discourse.processing.org/t/pushmatrix-cannot-use-push-more-than-32-times/12860)

<div class="topic-metadata">

**Author:** [@mezhaka](https://discourse.processing.org/u/mezhaka)\
**Replies:** 15\
**Last updated:** [July 24, 2019, 9:53am UTC](https://discourse.processing.org/t/pushmatrix-cannot-use-push-more-than-32-times/12860 "2019-07-24T09:53:25Z")

</div>

Why is this not a valid patch? I get a “RuntimeException: pushMatrix() cannot use push more than 32 times” error in a snippet that seems perfectly valid for me: void setup() { size(700, 500); } void dra…

---

## [How to loop faster than 60 times per second?](https://discourse.processing.org/t/how-to-loop-faster-than-60-times-per-second/12890)

<div class="topic-metadata">

**Author:** [@Luigi](https://discourse.processing.org/u/Luigi)\
**Replies:** 8\
**Last updated:** [July 24, 2019, 8:25am UTC](https://discourse.processing.org/t/how-to-loop-faster-than-60-times-per-second/12890 "2019-07-24T08:25:58Z")

</div>

Hi, I am creating a graphic user interface for a machine controled by an arduino The arduino sends serial data to processing at 120 SPS and my monitor displays 60 images per second. the only way to draw those values on…

---

## [Check direction of the mouse compared to a point in space](https://discourse.processing.org/t/check-direction-of-the-mouse-compared-to-a-point-in-space/12883)

<div class="topic-metadata">

**Author:** [@vincentstrebelle](https://discourse.processing.org/u/vincentstrebelle)\
**Replies:** 19\
**Last updated:** [July 24, 2019, 7:20am UTC](https://discourse.processing.org/t/check-direction-of-the-mouse-compared-to-a-point-in-space/12883 "2019-07-24T07:20:52Z")

</div>

Hi, i wonder how to check and know the directions (left,right,up and down) of the mouse compared to a point in space. void setup(){ size(300,300); } void draw(){ background(255); PVector dotPos = new PVector(150,…

---

## [What is declaring ...... how to declare.... Where can I read these basic things](https://discourse.processing.org/t/what-is-declaring-how-to-declare-where-can-i-read-these-basic-things/12863)

<div class="topic-metadata">

**Author:** [@maakin](https://discourse.processing.org/u/maakin)\
**Replies:** 6\
**Last updated:** [July 23, 2019, 1:17pm UTC](https://discourse.processing.org/t/what-is-declaring-how-to-declare-where-can-i-read-these-basic-things/12863 "2019-07-23T13:17:52Z")

</div>

What is declaring … how to declare… Where can I read these basic things …

---

## [Need help for a Battleships game in Processing](https://discourse.processing.org/t/need-help-for-a-battleships-game-in-processing/12818)

<div class="topic-metadata">

**Author:** [@chinzi](https://discourse.processing.org/u/chinzi)\
**Replies:** 17\
**Last updated:** [July 23, 2019, 12:45pm UTC](https://discourse.processing.org/t/need-help-for-a-battleships-game-in-processing/12818 "2019-07-23T12:45:53Z")

</div>

Hey everybody, Im new here, Im new to programming with Java and new to Processing. I want to code a Battleships game. It should look something like this in the end. I apologize for my bad english, but I hope you can und…

---

## [Radio code (sound and Arduino)](https://discourse.processing.org/t/radio-code-sound-and-arduino/9175)

<div class="topic-metadata">

**Author:** [@Mimal](https://discourse.processing.org/u/Mimal)\
**Replies:** 12\
**Last updated:** [July 23, 2019, 11:33am UTC](https://discourse.processing.org/t/radio-code-sound-and-arduino/9175 "2019-07-23T11:33:30Z")

</div>

Hello, I need to code a program that retrieves a value from the Arduino card and plays a sound based on that value. The value varies according to the position of a potentiometer: an Arduino program transforms the voltag…

---

## [How to replace audio input from mp3 to microphone](https://discourse.processing.org/t/how-to-replace-audio-input-from-mp3-to-microphone/12912)

<div class="topic-metadata">

**Author:** [@bacillus](https://discourse.processing.org/u/bacillus)\
**Replies:** 0\
**Last updated:** [July 23, 2019, 9:25am UTC](https://discourse.processing.org/t/how-to-replace-audio-input-from-mp3-to-microphone/12912 "2019-07-23T09:25:33Z")

</div>

Hello everyone! I am new in Processing and I could use some help. I have this code that makes use of the Minim library and visualizes a given sound file: import ddf.minim.\*; import ddf.minim.analysis.\*; Minim minim; Au…

---

## [Add more Gravity Balls & Link a button to restart a screen... Beginner Coder](https://discourse.processing.org/t/add-more-gravity-balls-link-a-button-to-restart-a-screen-beginner-coder/12903)

<div class="topic-metadata">

**Author:** [@mclingerman](https://discourse.processing.org/u/mclingerman)\
**Replies:** 2\
**Last updated:** [July 23, 2019, 2:01am UTC](https://discourse.processing.org/t/add-more-gravity-balls-link-a-button-to-restart-a-screen-beginner-coder/12903 "2019-07-23T02:01:43Z")

</div>

Hey guys! I’ve just started learning to code in processing… Please forgive my “simple” approach. I have 2 things I need help with. I have looked for answers to these issues but have not been successful. Connecting my…

---

## [Trying to convert hex into a bin file, but, get a NumberFormat Exception](https://discourse.processing.org/t/trying-to-convert-hex-into-a-bin-file-but-get-a-numberformat-exception/12869)

<div class="topic-metadata">

**Author:** [@RookieProgrammer](https://discourse.processing.org/u/RookieProgrammer)\
**Replies:** 19\
**Last updated:** [July 23, 2019, 12:14am UTC](https://discourse.processing.org/t/trying-to-convert-hex-into-a-bin-file-but-get-a-numberformat-exception/12869 "2019-07-23T00:14:12Z")

</div>

Hi, dear gentlemen and ladies. I’m developing a program that reads a file contained in an SD card via Arduino and prints the data of this file in hexadecimal format. At the same time, I am trying to create a program in …

---

## [How do I create bubble writing in processing](https://discourse.processing.org/t/how-do-i-create-bubble-writing-in-processing/12878)

<div class="topic-metadata">

**Author:** [@abdulqureshi](https://discourse.processing.org/u/abdulqureshi)\
**Replies:** 3\
**Last updated:** [July 22, 2019, 5:08pm UTC](https://discourse.processing.org/t/how-do-i-create-bubble-writing-in-processing/12878 "2019-07-22T17:08:13Z")

</div>

I need urgent help. I’ve been told to complete some work for my uni place.The work is asking for me to create a sign that says MMU in bubble writing format. Please can someone help me

---

## [Why this code not working](https://discourse.processing.org/t/why-this-code-not-working/12886)

<div class="topic-metadata">

**Author:** [@maakin](https://discourse.processing.org/u/maakin)\
**Replies:** 4\
**Last updated:** [July 22, 2019, 3:27pm UTC](https://discourse.processing.org/t/why-this-code-not-working/12886 "2019-07-22T15:27:21Z")

</div>

PImage img; void setup() { size(200, 200); img = loadImage("sunflower.jpg"); } void draw() { loadPixels(); // Since we are going to access the image's pixels too img.loadPixels(); for (int y = 0; y \< he…

---

## [Need Help Connecting Points in 2D Array](https://discourse.processing.org/t/need-help-connecting-points-in-2d-array/12803)

<div class="topic-metadata">

**Author:** [@jmorri36](https://discourse.processing.org/u/jmorri36)\
**Replies:** 8\
**Last updated:** [July 22, 2019, 9:15am UTC](https://discourse.processing.org/t/need-help-connecting-points-in-2d-array/12803 "2019-07-22T09:15:45Z")

</div>

Hi, The sketch that I’m working on makes a random ripple on the screen, or when you click inside the ripple. Right now I have it with a bunch of points moving up and down on the Z axis along a grid. I’m having trouble…

---

## [\[Processing.net libraries\] Error Client got end of stream](https://discourse.processing.org/t/processing-net-libraries-error-client-got-end-of-stream/12882)

<div class="topic-metadata">

**Author:** [@Dupond](https://discourse.processing.org/u/Dupond)\
**Replies:** 0\
**Last updated:** [July 22, 2019, 8:50am UTC](https://discourse.processing.org/t/processing-net-libraries-error-client-got-end-of-stream/12882 "2019-07-22T08:50:17Z")

</div>

Hello, I am trying to debug a program to do so I have test 2 programms from Processing.net librarie : https://www.processing.org/reference/libraries/net/Client\_write\_.html https://www.processing.org/reference/librarie…

---

## [Kinect V2 Point Cloud Example Errors](https://discourse.processing.org/t/kinect-v2-point-cloud-example-errors/12881)

<div class="topic-metadata">

**Author:** [@julian](https://discourse.processing.org/u/julian)\
**Replies:** 0\
**Last updated:** [July 22, 2019, 4:25am UTC](https://discourse.processing.org/t/kinect-v2-point-cloud-example-errors/12881 "2019-07-22T04:25:09Z")

</div>

Hello, I recently made a sketch using the Open Kinect for Processing Library and a Kinect v1 Model 1414. Long story short, the 1414 broke, so I just got a V2 and have been going through the examples included with the li…

---

## [Exporting Barnsley fern to SVG](https://discourse.processing.org/t/exporting-barnsley-fern-to-svg/12857)

<div class="topic-metadata">

**Author:** [@dr\_vblschrf](https://discourse.processing.org/u/dr_vblschrf)\
**Replies:** 5\
**Last updated:** [July 21, 2019, 4:49pm UTC](https://discourse.processing.org/t/exporting-barnsley-fern-to-svg/12857 "2019-07-21T16:49:24Z")

</div>

Hello. I’m going to start by saying that I’m very new to coding. Sorry for my inexperience! I’m trying to export a Barnsley fern code I found from Rosetta Code to an SVG. It needs to be SVG as it is for a vector art pro…

---

## [Canvas is not updated as expected](https://discourse.processing.org/t/canvas-is-not-updated-as-expected/12791)

<div class="topic-metadata">

**Author:** [@MaWi](https://discourse.processing.org/u/MaWi)\
**Replies:** 3\
**Last updated:** [July 21, 2019, 2:47pm UTC](https://discourse.processing.org/t/canvas-is-not-updated-as-expected/12791 "2019-07-21T14:47:15Z")

</div>

Hi, I´m trying to create a new object each time i press a key, but the previous drawn object doesn´t disappear completly. There is a polyline I draw inside my objects Display() method that disappears and several Points,…

---

## [Simple example of 3D movement following a point?](https://discourse.processing.org/t/simple-example-of-3d-movement-following-a-point/12361)

<div class="topic-metadata">

**Author:** [@erkosone](https://discourse.processing.org/u/erkosone)\
**Replies:** 20\
**Last updated:** [July 4, 2019, 7:05pm UTC](https://discourse.processing.org/t/simple-example-of-3d-movement-following-a-point/12361 "2019-07-04T19:05:27Z")

</div>

hi, i need a simple example to how folllow in 3d a object. anybody can help me? The objective is simple, object a follow the object b in 3d space. My problem is the way to “orientation a to b” and “move” in orientatio…

---

## [Equation-defined shapes - created from sampling lines or SVG import... or....?](https://discourse.processing.org/t/equation-defined-shapes-created-from-sampling-lines-or-svg-import-or/12617)

<div class="topic-metadata">

**Author:** [@MuddyGardener](https://discourse.processing.org/u/MuddyGardener)\
**Replies:** 17\
**Last updated:** [July 20, 2019, 4:58pm UTC](https://discourse.processing.org/t/equation-defined-shapes-created-from-sampling-lines-or-svg-import-or/12617 "2019-07-20T16:58:25Z")

</div>

I am thinking about how I can best create equation defined shapes that can be manipulated as shapes, and am looking for advice about good ways forward for doing this. I would like to replicate these shapes in my design …

---

## [Fire again once the cannon is moved](https://discourse.processing.org/t/fire-again-once-the-cannon-is-moved/12816)

<div class="topic-metadata">

**Author:** [@wandecoal](https://discourse.processing.org/u/wandecoal)\
**Replies:** 1\
**Last updated:** [July 19, 2019, 1:34pm UTC](https://discourse.processing.org/t/fire-again-once-the-cannon-is-moved/12816 "2019-07-19T13:34:33Z")

</div>

final int OBST\_WIDTH = 100; int targetWidth = OBST\_WIDTH; final int BARREL\_LENGTH = 45; int cloudDiam=50; /\* CHECK THIS LATER \*/ int spacing = cloudDiam; float cannonX = cloudDiam\*2; int cannonWidth = OBST\_WIDTH/2; …

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

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