# Processing

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

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

**Page:** 52

---

## [Photo transistors not working](https://discourse.processing.org/t/photo-transistors-not-working/40532)

<div class="topic-metadata">

**Author:** [@Fritjof](https://discourse.processing.org/u/Fritjof)\
**Replies:** 3\
**Last updated:** [January 11, 2023, 2:21am UTC](https://discourse.processing.org/t/photo-transistors-not-working/40532 "2023-01-11T02:21:50Z")

</div>

I am trying to get my Arduino photo transistors to work with my code in Processing. I can’t get them to work. Earlier I got it to work but without a class, which I have added now. The computer tells me that it should wor…

---

## [TicTacToe code not working](https://discourse.processing.org/t/tictactoe-code-not-working/40542)

<div class="topic-metadata">

**Author:** [@berrae](https://discourse.processing.org/u/berrae)\
**Replies:** 3\
**Last updated:** [January 11, 2023, 2:15am UTC](https://discourse.processing.org/t/tictactoe-code-not-working/40542 "2023-01-11T02:15:07Z")

</div>

here is my code - this is my first time working with object and class Cell\[\]\[\] board; //object int cols=3; //number of columns int rows=3; //number of rows int player=0; //player int win=0; //used for win or draw int ga…

---

## [Cannot convert int to boolean](https://discourse.processing.org/t/cannot-convert-int-to-boolean/40540)

<div class="topic-metadata">

**Author:** [@Fritjof](https://discourse.processing.org/u/Fritjof)\
**Replies:** 2\
**Last updated:** [January 10, 2023, 6:34pm UTC](https://discourse.processing.org/t/cannot-convert-int-to-boolean/40540 "2023-01-10T18:34:45Z")

</div>

I keep getting the error message: cannot convert int to boolean. Any ideas how to fix it? Processing code with error message: import processing.serial.\*; boolean lightSensorRed, lightSensorGreen, lightSensorBlue; floa…

---

## [Exported app not working macOS](https://discourse.processing.org/t/exported-app-not-working-macos/8501)

<div class="topic-metadata">

**Author:** [@tobeheard](https://discourse.processing.org/u/tobeheard)\
**Replies:** 5\
**Last updated:** [January 10, 2023, 4:48pm UTC](https://discourse.processing.org/t/exported-app-not-working-macos/8501 "2023-01-10T16:48:44Z")

</div>

Hello and thank you community, I have a problem with my exported app. It does not open. I’ve tried the control open and double click. They both flash the icon, yet nothing happens. my code is using the following librari…

---

## [Preferences: Maximum Memory](https://discourse.processing.org/t/preferences-maximum-memory/40525)

<div class="topic-metadata">

**Author:** [@fredstout](https://discourse.processing.org/u/fredstout)\
**Replies:** 7\
**Last updated:** [January 10, 2023, 12:25pm UTC](https://discourse.processing.org/t/preferences-maximum-memory/40525 "2023-01-10T12:25:27Z")

</div>

My compiles began taking too long and my sketch seems to require too many mouse clicks to actually perform the mouse click function. I am thinking that this is a memory problem so I increased the maximum memory available…

---

## [How could I make my player gradually rotate to the angle it's moving?](https://discourse.processing.org/t/how-could-i-make-my-player-gradually-rotate-to-the-angle-its-moving/40496)

<div class="topic-metadata">

**Author:** [@vinijoncrafts](https://discourse.processing.org/u/vinijoncrafts)\
**Replies:** 4\
**Last updated:** [January 10, 2023, 9:22am UTC](https://discourse.processing.org/t/how-could-i-make-my-player-gradually-rotate-to-the-angle-its-moving/40496 "2023-01-10T09:22:18Z")

</div>

I don’t really understand fully how vectors work, and I’m trying to implement them in my code. I am very sure that the use of vector makes a lot of stuff easier but for now I’ll rely on the help of you guys lol Vini vin…

---

## [Trying to add an image to the fractal code i am studying](https://discourse.processing.org/t/trying-to-add-an-image-to-the-fractal-code-i-am-studying/40533)

<div class="topic-metadata">

**Author:** [@vrtx](https://discourse.processing.org/u/vrtx)\
**Replies:** 5\
**Last updated:** [January 10, 2023, 5:36am UTC](https://discourse.processing.org/t/trying-to-add-an-image-to-the-fractal-code-i-am-studying/40533 "2023-01-10T05:36:27Z")

</div>

Hi guys… I got this code from the processing page as exemple and I am trying to add an image/piture to the effect. I did try many ways . This is the near i have got. The image only flash when start. /\*\* \* Mixture G…

---

## [How can you move tabs?](https://discourse.processing.org/t/how-can-you-move-tabs/40520)

<div class="topic-metadata">

**Author:** [@Vadimkuzmin](https://discourse.processing.org/u/Vadimkuzmin)\
**Replies:** 3\
**Last updated:** [January 9, 2023, 2:52pm UTC](https://discourse.processing.org/t/how-can-you-move-tabs/40520 "2023-01-09T14:52:12Z")

</div>

I use the controlP5 library and did not find how to change the layout of the tabs. Tried various tricks but .setPosition is not responsive.

---

## [General rule for shape arrangement](https://discourse.processing.org/t/general-rule-for-shape-arrangement/40498)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 4\
**Last updated:** [January 9, 2023, 11:11am UTC](https://discourse.processing.org/t/general-rule-for-shape-arrangement/40498 "2023-01-09T11:11:09Z")

</div>

As the title implies, is there a general rule that I can apply instead of using offset and padding to make a grid. as it stands I try to make a grid using the following code for (int i=0; i\<sides; i++) { float th…

---

## [ControlP5 addTab: How to replace text with an icon?](https://discourse.processing.org/t/controlp5-addtab-how-to-replace-text-with-an-icon/40353)

<div class="topic-metadata">

**Author:** [@Vadimkuzmin](https://discourse.processing.org/u/Vadimkuzmin)\
**Replies:** 8\
**Last updated:** [January 9, 2023, 11:08am UTC](https://discourse.processing.org/t/controlp5-addtab-how-to-replace-text-with-an-icon/40353 "2023-01-09T11:08:10Z")

</div>

Good afternoon, I tried to replace the menu switches in the header with pictures, icons, but I don’t know how to do it, help!

---

## [Processing 4.x + IntelliJ - How to properly debug a custom library](https://discourse.processing.org/t/processing-4-x-intellij-how-to-properly-debug-a-custom-library/40519)

<div class="topic-metadata">

**Author:** [@haschdl](https://discourse.processing.org/u/haschdl)\
**Replies:** 0\
**Last updated:** [January 9, 2023, 9:58am UTC](https://discourse.processing.org/t/processing-4-x-intellij-how-to-properly-debug-a-custom-library/40519 "2023-01-09T09:58:25Z")

</div>

I’m looking for a better debugging experience to make my library more robust. This is about developing libraries for processing using IntelliJ (\*). It is not about debugging a sketch running in Processing. I would lik…

---

## [Wanting to make the columns to have a border when I hover over them](https://discourse.processing.org/t/wanting-to-make-the-columns-to-have-a-border-when-i-hover-over-them/40487)

<div class="topic-metadata">

**Author:** [@sabisiiuuu](https://discourse.processing.org/u/sabisiiuuu)\
**Replies:** 2\
**Last updated:** [January 8, 2023, 7:52pm UTC](https://discourse.processing.org/t/wanting-to-make-the-columns-to-have-a-border-when-i-hover-over-them/40487 "2023-01-08T19:52:59Z")

</div>

Hello everyone! As far as I could see in the Mouse functions code of processing I need to first check if the mouse is over (or above since I wrote the code that way) the columns and if so, then change the stroke() to I …

---

## [I get the error: Syntax Error - Missing name or ; near ‘’? for my first line of code](https://discourse.processing.org/t/i-get-the-error-syntax-error-missing-name-or-near-for-my-first-line-of-code/40517)

<div class="topic-metadata">

**Author:** [@Kaboom21](https://discourse.processing.org/u/Kaboom21)\
**Replies:** 1\
**Last updated:** [January 9, 2023, 5:14am UTC](https://discourse.processing.org/t/i-get-the-error-syntax-error-missing-name-or-near-for-my-first-line-of-code/40517 "2023-01-09T05:14:41Z")

</div>

I have used processing and made a game with python in it and this is my first time using java I’m getting this error for my first line of code which is class Player {

---

## [Help with translating points from Processing for use in Grasshopper](https://discourse.processing.org/t/help-with-translating-points-from-processing-for-use-in-grasshopper/1747)

<div class="topic-metadata">

**Author:** [@gegardner](https://discourse.processing.org/u/gegardner)\
**Replies:** 1\
**Last updated:** [January 9, 2023, 3:22am UTC](https://discourse.processing.org/t/help-with-translating-points-from-processing-for-use-in-grasshopper/1747 "2023-01-09T03:22:19Z")

</div>

Hi, can someone help with what is likely a simple question from an inexperienced processing user. I would like to import raw point data from face osc using this method: I would like to translate the coordinate system…

---

## [MySQL Library BezierSQLib Not Working on New Computer](https://discourse.processing.org/t/mysql-library-beziersqlib-not-working-on-new-computer/40439)

<div class="topic-metadata">

**Author:** [@feltron](https://discourse.processing.org/u/feltron)\
**Replies:** 2\
**Last updated:** [January 8, 2023, 6:27pm UTC](https://discourse.processing.org/t/mysql-library-beziersqlib-not-working-on-new-computer/40439 "2023-01-08T18:27:04Z")

</div>

I have used the BezierSQLib library for years to connect Processing to a local MySQL library. I recently moved to a new silicon Mac and installed a recent MySQL build. I believe that there is an incompatibility with the …

---

## [Want columns to get thinner, but they get on top of each other](https://discourse.processing.org/t/want-columns-to-get-thinner-but-they-get-on-top-of-each-other/40513)

<div class="topic-metadata">

**Author:** [@sabisiiuuu](https://discourse.processing.org/u/sabisiiuuu)\
**Replies:** 2\
**Last updated:** [January 8, 2023, 5:04pm UTC](https://discourse.processing.org/t/want-columns-to-get-thinner-but-they-get-on-top-of-each-other/40513 "2023-01-08T17:04:21Z")

</div>

Hello there! So, I want the columns to get thinner if I add more rows to the table data, and also to preserve a distance between themselves of 10 units, but my columns get on top of each other if I add more than 12 rows…

---

## [I got a sunshine Message, that says "Get some fresh air"](https://discourse.processing.org/t/i-got-a-sunshine-message-that-says-get-some-fresh-air/40488)

<div class="topic-metadata">

**Author:** [@Aryszin](https://discourse.processing.org/u/Aryszin)\
**Replies:** 2\
**Last updated:** [January 8, 2023, 4:45pm UTC](https://discourse.processing.org/t/i-got-a-sunshine-message-that-says-get-some-fresh-air/40488 "2023-01-08T16:45:19Z")

</div>

Soo i was trying to make a cool theme & i restarted it pretty oft, then i got a message like “stop autonaming” or something & then when i try opening it it saus the message of “Sunshine - Get some fresh air”…

---

## [What is temp and how it works (constructor)](https://discourse.processing.org/t/what-is-temp-and-how-it-works-constructor/40506)

<div class="topic-metadata">

**Author:** [@Siyue](https://discourse.processing.org/u/Siyue)\
**Replies:** 5\
**Last updated:** [January 8, 2023, 2:30pm UTC](https://discourse.processing.org/t/what-is-temp-and-how-it-works-constructor/40506 "2023-01-08T14:30:55Z")

</div>

So from processing tutorial https://www.youtube.com/watch?v=NrwaKOsplZk&list=PLzJbM9-DyOZyMZzVda3HaWviHqfPiYN7e&index=36 , there is a “temp” argument to define the diameter. my question is any relative explanation for te…

---

## ["error on void " what is wrong?](https://discourse.processing.org/t/error-on-void-what-is-wrong/40510)

<div class="topic-metadata">

**Author:** [@Siyue](https://discourse.processing.org/u/Siyue)\
**Replies:** 4\
**Last updated:** [January 8, 2023, 2:52pm UTC](https://discourse.processing.org/t/error-on-void-what-is-wrong/40510 "2023-01-08T14:52:51Z")

</div>

hey guys. I am still on the beginner’s page and trying to figure out the OOP and the error hint keep telling me “error on void” and I have no idea where did I go wrong. Bubble b1; Bubble b2 void setup() { size(600, …

---

## [Help with creating classes for my code](https://discourse.processing.org/t/help-with-creating-classes-for-my-code/40471)

<div class="topic-metadata">

**Author:** [@EB1](https://discourse.processing.org/u/EB1)\
**Replies:** 8\
**Last updated:** [January 8, 2023, 2:43pm UTC](https://discourse.processing.org/t/help-with-creating-classes-for-my-code/40471 "2023-01-08T14:43:29Z")

</div>

I have created a simple game where enemies move towards a stationary target but I am struggling to separate the code and put them into classes. I want to have 2 classes called enemy and target. I have attempted to move t…

---

## [Syntax error with void setup and draw functions](https://discourse.processing.org/t/syntax-error-with-void-setup-and-draw-functions/40508)

<div class="topic-metadata">

**Author:** [@vinnyvin](https://discourse.processing.org/u/vinnyvin)\
**Replies:** 4\
**Last updated:** [January 8, 2023, 12:23pm UTC](https://discourse.processing.org/t/syntax-error-with-void-setup-and-draw-functions/40508 "2023-01-08T12:23:31Z")

</div>

void setup() { size(200, 200); rectMode(CENTER); noStroke(); fill(0, 102, 153, 204); } void draw() { background(255); rect(width-mouseX, height-mouseY, 50, 50); rect(mouseX, mouseY, 50, 50); } I keep gett…

---

## [Rotation movement](https://discourse.processing.org/t/rotation-movement/40509)

<div class="topic-metadata">

**Author:** [@ctremblay](https://discourse.processing.org/u/ctremblay)\
**Replies:** 2\
**Last updated:** [January 8, 2023, 12:08pm UTC](https://discourse.processing.org/t/rotation-movement/40509 "2023-01-08T12:08:47Z")

</div>

I’m trying to make a fun game & watched a few videos on rotation, but my rotation aint being consistant. I drew a red line where it first started moving so i could check, but now it moving backwards sideways it barely fo…

---

## [Bergen's Grid Illusion - wonky order of execution](https://discourse.processing.org/t/bergens-grid-illusion-wonky-order-of-execution/40505)

<div class="topic-metadata">

**Author:** [@JonnieNightTime](https://discourse.processing.org/u/JonnieNightTime)\
**Replies:** 2\
**Last updated:** [January 8, 2023, 12:03pm UTC](https://discourse.processing.org/t/bergens-grid-illusion-wonky-order-of-execution/40505 "2023-01-08T12:03:42Z")

</div>

hi All, I’m doing something wrong here - the grey “axles” should be behind the white ellipses, not the other way around as they are here - I’ve spent a couple of hours moving around code, but just can’t fix it - duhh! f…

---

## [How I could resizes the object for character for a game](https://discourse.processing.org/t/how-i-could-resizes-the-object-for-character-for-a-game/40502)

<div class="topic-metadata">

**Author:** [@kayiist](https://discourse.processing.org/u/kayiist)\
**Replies:** 1\
**Last updated:** [January 8, 2023, 3:32am UTC](https://discourse.processing.org/t/how-i-could-resizes-the-object-for-character-for-a-game/40502 "2023-01-08T03:32:57Z")

</div>

float x = 200; float y = 200; int\[\] pipeX, pipeY; //Declaring void setup() { size(800, 620); bg =loadImage("bg.jpg"); top\_pipes = loadImage("top.png"); bottom\_pipes = loadImage("bottom.png"); pipeX = new int…

---

## [Redraw function with color change/mouse interaction](https://discourse.processing.org/t/redraw-function-with-color-change-mouse-interaction/40479)

<div class="topic-metadata">

**Author:** [@lemoney](https://discourse.processing.org/u/lemoney)\
**Replies:** 4\
**Last updated:** [January 7, 2023, 9:59pm UTC](https://discourse.processing.org/t/redraw-function-with-color-change-mouse-interaction/40479 "2023-01-07T21:59:34Z")

</div>

Hi, I’m in a class where we adapt code to fulfill the assignments. I’m working on mouse interaction with the redraw() function in Processing. What I’m trying to do is have the leaf colours change everytime the mouse is…

---

## [I tried making this stack column chart interactive by making the values of the columns appear at the up left corner with pressing the mouse over the column, but it is only appearing the first row of data](https://discourse.processing.org/t/i-tried-making-this-stack-column-chart-interactive-by-making-the-values-of-the-columns-appear-at-the-up-left-corner-with-pressing-the-mouse-over-the-column-but-it-is-only-appearing-the-first-row-of-data/40480)

<div class="topic-metadata">

**Author:** [@sabisiiuuu](https://discourse.processing.org/u/sabisiiuuu)\
**Replies:** 6\
**Last updated:** [January 7, 2023, 5:53pm UTC](https://discourse.processing.org/t/i-tried-making-this-stack-column-chart-interactive-by-making-the-values-of-the-columns-appear-at-the-up-left-corner-with-pressing-the-mouse-over-the-column-but-it-is-only-appearing-the-first-row-of-data/40480 "2023-01-07T17:53:31Z")

</div>

Hello there! So, this is the code: // Import the CSV file Table data; void setup() { size(850, 600); // Increase the width to 850 background(255); data = loadTable("data.csv", "header"); // Find the maximu…

---

## [Reading a file with createReader](https://discourse.processing.org/t/reading-a-file-with-createreader/40499)

<div class="topic-metadata">

**Author:** [@pacoruiz](https://discourse.processing.org/u/pacoruiz)\
**Replies:** 1\
**Last updated:** [January 7, 2023, 5:17pm UTC](https://discourse.processing.org/t/reading-a-file-with-createreader/40499 "2023-01-07T17:17:39Z")

</div>

Hi Im trying to make a code that read data from a file. I have just copy the code from the reference page, but it doesnt work. It read an empty line after the end of the file. Don’t know why. My file has this: 3,6 4,8 …

---

## [Grid collage of random PImage](https://discourse.processing.org/t/grid-collage-of-random-pimage/40447)

<div class="topic-metadata">

**Author:** [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Replies:** 1\
**Last updated:** [January 7, 2023, 6:52am UTC](https://discourse.processing.org/t/grid-collage-of-random-pimage/40447 "2023-01-07T06:52:54Z")

</div>

Hi Processing community! I just created the following slit collage which randomly places areas of the image on the x axis. How do I make my image into a grid of random areas of the image by adding the y axis? Now: G…

---

## [Create .csv file with data in a column (table)](https://discourse.processing.org/t/create-csv-file-with-data-in-a-column-table/40493)

<div class="topic-metadata">

**Author:** [@fsdonato](https://discourse.processing.org/u/fsdonato)\
**Replies:** 1\
**Last updated:** [January 7, 2023, 6:15am UTC](https://discourse.processing.org/t/create-csv-file-with-data-in-a-column-table/40493 "2023-01-07T06:15:35Z")

</div>

I’m writing a code that receives the value of a potentiometer at all times (float val\_pot2) I created a function to record these values in a table in .csv format I have the following problem: I am not able to save a ne…

---

## [Putting code into classes](https://discourse.processing.org/t/putting-code-into-classes/40474)

<div class="topic-metadata">

**Author:** [@JB1](https://discourse.processing.org/u/JB1)\
**Replies:** 2\
**Last updated:** [January 6, 2023, 1:20pm UTC](https://discourse.processing.org/t/putting-code-into-classes/40474 "2023-01-06T13:20:52Z")

</div>

I have a working game where the enemy moves towards a stationary target in the centre of the screen, I am struggling to put this code into classes I have attempted to put the code in classes but I go horribly wrong somew…

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

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