# Processing

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

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

**Page:** 359

---

## [Changing Images on Click?](https://discourse.processing.org/t/changing-images-on-click/4479)

<div class="topic-metadata">

**Author:** [@emmytime](https://discourse.processing.org/u/emmytime)\
**Replies:** 4\
**Last updated:** [October 15, 2018, 7:48am UTC](https://discourse.processing.org/t/changing-images-on-click/4479 "2018-10-15T07:48:34Z")

</div>

Hey gang, My names Emmy and i’ve been tasked to do a data visualisation on processing as one of my uni classes, and am portraying the different items accessible from the Mario 64 prize boxes. I am envisioning to click o…

---

## [Nedd help with a class](https://discourse.processing.org/t/nedd-help-with-a-class/4409)

<div class="topic-metadata">

**Author:** [@EricSaumier](https://discourse.processing.org/u/EricSaumier)\
**Replies:** 4\
**Last updated:** [October 15, 2018, 1:23am UTC](https://discourse.processing.org/t/nedd-help-with-a-class/4409 "2018-10-15T01:23:55Z")

</div>

Hello! I’m getting back into coding after 20 some years.. I’ve been toying around with processing for a year now, doing simple things.. but this time, I want to learn classes I have followed this tutorial Objects by…

---

## [Extending the mouse range past the screen size](https://discourse.processing.org/t/extending-the-mouse-range-past-the-screen-size/4431)

<div class="topic-metadata">

**Author:** [@Tsskyx](https://discourse.processing.org/u/Tsskyx)\
**Replies:** 12\
**Last updated:** [October 14, 2018, 4:15pm UTC](https://discourse.processing.org/t/extending-the-mouse-range-past-the-screen-size/4431 "2018-10-14T16:15:22Z")

</div>

You see this in a lot of games, this kind of infinite mouse movement, where you can move your mouse around as much as you want, without ever getting stopped by the edges of your screen. I’ve made something like this, an…

---

## [Creating ellipses with text in it](https://discourse.processing.org/t/creating-ellipses-with-text-in-it/4452)

<div class="topic-metadata">

**Author:** [@xarax](https://discourse.processing.org/u/xarax)\
**Replies:** 2\
**Last updated:** [October 14, 2018, 9:51am UTC](https://discourse.processing.org/t/creating-ellipses-with-text-in-it/4452 "2018-10-14T09:51:48Z")

</div>

I would like to create a Ellipse with text in it, at a specificed Position. Is that possible?

---

## [controlP5 label](https://discourse.processing.org/t/controlp5-label/4424)

<div class="topic-metadata">

**Author:** [@FerrariLuigi](https://discourse.processing.org/u/FerrariLuigi)\
**Replies:** 2\
**Last updated:** [October 14, 2018, 8:21am UTC](https://discourse.processing.org/t/controlp5-label/4424 "2018-10-14T08:21:48Z")

</div>

Dear all, In my processing sketch I want to add the following label: Wait is the coorct procedure to include it ? Thank you very much for your help and cooperation regards

---

## [Handle two or more LibreOffice Calc sheets with loadTable() statement](https://discourse.processing.org/t/handle-two-or-more-libreoffice-calc-sheets-with-loadtable-statement/4268)

<div class="topic-metadata">

**Author:** [@Dennis](https://discourse.processing.org/u/Dennis)\
**Replies:** 2\
**Last updated:** [October 14, 2018, 7:00am UTC](https://discourse.processing.org/t/handle-two-or-more-libreoffice-calc-sheets-with-loadtable-statement/4268 "2018-10-14T07:00:16Z")

</div>

Hi, i’m looking for a way to handle a file .ods which contains more sheets. In the loadTable() documentation i don’t find how to do… my intent is something like: table = loadTable("example"); s = table.sheet("sheet2"); …

---

## [Executing Matlab function from Processing](https://discourse.processing.org/t/executing-matlab-function-from-processing/4324)

<div class="topic-metadata">

**Author:** [@rubinj](https://discourse.processing.org/u/rubinj)\
**Replies:** 1\
**Last updated:** [October 14, 2018, 5:50am UTC](https://discourse.processing.org/t/executing-matlab-function-from-processing/4324 "2018-10-14T05:50:00Z")

</div>

I’m trying to find a way to execute a Matlab function from a Processing script. I have a local installation of Matlab, and I know it should be possible to execute a Matlab function from Java, using Matlab’s engine: htt…

---

## [Hovering over an image and changing colour](https://discourse.processing.org/t/hovering-over-an-image-and-changing-colour/4319)

<div class="topic-metadata">

**Author:** [@livgrisss](https://discourse.processing.org/u/livgrisss)\
**Replies:** 1\
**Last updated:** [October 14, 2018, 5:37am UTC](https://discourse.processing.org/t/hovering-over-an-image-and-changing-colour/4319 "2018-10-14T05:37:01Z")

</div>

Hey so I’m trying to make a code that basically is made up of all the states in australia, so when i hover over the (image) i’ve input into the code (one image for each state) they will change colour. what is the easest…

---

## [Saving pdf for Arabic text](https://discourse.processing.org/t/saving-pdf-for-arabic-text/4288)

<div class="topic-metadata">

**Author:** [@AYS](https://discourse.processing.org/u/AYS)\
**Replies:** 1\
**Last updated:** [October 14, 2018, 5:30am UTC](https://discourse.processing.org/t/saving-pdf-for-arabic-text/4288 "2018-10-14T05:30:16Z")

</div>

Hello There, I have this problem where Arabic text will show correctly when I run my sketch but when I save as pdf, the Arabic text is then flipped. I’m not sure what the issue is. I could save png but I need the text …

---

## [How do i draw an angular space with a quad?](https://discourse.processing.org/t/how-do-i-draw-an-angular-space-with-a-quad/4378)

<div class="topic-metadata">

**Author:** [@Noman](https://discourse.processing.org/u/Noman)\
**Replies:** 8\
**Last updated:** [October 14, 2018, 4:29am UTC](https://discourse.processing.org/t/how-do-i-draw-an-angular-space-with-a-quad/4378 "2018-10-14T04:29:04Z")

</div>

I am trying to draw an angular space with using the quad command and trigonometry but cant figure it out. please need some urgent help

---

## [Tracking ball task with smooth curve](https://discourse.processing.org/t/tracking-ball-task-with-smooth-curve/4245)

<div class="topic-metadata">

**Author:** [@Fishe](https://discourse.processing.org/u/Fishe)\
**Replies:** 4\
**Last updated:** [October 14, 2018, 4:24am UTC](https://discourse.processing.org/t/tracking-ball-task-with-smooth-curve/4245 "2018-10-14T04:24:22Z")

</div>

Hi there, I have a very simply tracking task in which people track a ball with their mouse. Currently the ball bounces off the edges of the screen, however I would like it to follow along a smooth curve (basically so th…

---

## [Random selection from a list of weighted probabilities](https://discourse.processing.org/t/random-selection-from-a-list-of-weighted-probabilities/4262)

<div class="topic-metadata">

**Author:** [@grumo](https://discourse.processing.org/u/grumo)\
**Replies:** 3\
**Last updated:** [October 14, 2018, 12:48am UTC](https://discourse.processing.org/t/random-selection-from-a-list-of-weighted-probabilities/4262 "2018-10-14T00:48:27Z")

</div>

I’m doing a simulator that produces a color given a probability found in a collection of colors and its occurrences. I have a CVS with 1120 rows with different colors and shades. Every color have a number (the number of…

---

## [Reading HTML from a twitch page](https://discourse.processing.org/t/reading-html-from-a-twitch-page/4444)

<div class="topic-metadata">

**Author:** [@metype](https://discourse.processing.org/u/metype)\
**Replies:** 1\
**Last updated:** [October 14, 2018, 12:22am UTC](https://discourse.processing.org/t/reading-html-from-a-twitch-page/4444 "2018-10-14T00:22:33Z")

</div>

Ok so I am trying to grab the HTML from a twitch page and am having issues as I am getting something completely different from what I;d normally see in the console. String\[\] html; void setup() { size(400,400); html…

---

## [Orientation of the 3D space](https://discourse.processing.org/t/orientation-of-the-3d-space/4200)

<div class="topic-metadata">

**Author:** [@jb4x](https://discourse.processing.org/u/jb4x)\
**Replies:** 3\
**Last updated:** [October 13, 2018, 11:35pm UTC](https://discourse.processing.org/t/orientation-of-the-3d-space/4200 "2018-10-13T23:35:25Z")

</div>

Hi everyone, I played around with 3D shapes and I noticed that the way the 3D space is oriented is not the one I would have expected. The picture below represent: the x axis in red the y axis in green the z axis in b…

---

## [Turn gauge arc into gradient](https://discourse.processing.org/t/turn-gauge-arc-into-gradient/4103)

<div class="topic-metadata">

**Author:** [@Interalia](https://discourse.processing.org/u/Interalia)\
**Replies:** 12\
**Last updated:** [October 13, 2018, 10:09pm UTC](https://discourse.processing.org/t/turn-gauge-arc-into-gradient/4103 "2018-10-13T22:09:31Z")

</div>

How would you change an arc on a guage so it goes from green to yellow to red?

---

## [Stuck with SIZE command](https://discourse.processing.org/t/stuck-with-size-command/4441)

<div class="topic-metadata">

**Author:** [@sljivan](https://discourse.processing.org/u/sljivan)\
**Replies:** 4\
**Last updated:** [October 13, 2018, 10:44pm UTC](https://discourse.processing.org/t/stuck-with-size-command/4441 "2018-10-13T22:44:58Z")

</div>

Hello guys. I am trying to control my servo with Processing. And it actually works. But I wanted to fool around with the code a bit to get a grip off it, and I started changing a tutorial code a bit. And I ran into a …

---

## [Int can't be a value?](https://discourse.processing.org/t/int-cant-be-a-value/4159)

<div class="topic-metadata">

**Author:** [@Lore](https://discourse.processing.org/u/Lore)\
**Replies:** 9\
**Last updated:** [October 13, 2018, 9:20pm UTC](https://discourse.processing.org/t/int-cant-be-a-value/4159 "2018-10-13T21:20:39Z")

</div>

Is there a way to make a statement where you declare that an int value cannot be a certain number? For example, if you say int test = 5; would there be a way to say test ≠ 20

---

## [Creating animations from tabulated string data](https://discourse.processing.org/t/creating-animations-from-tabulated-string-data/4117)

<div class="topic-metadata">

**Author:** [@Nicole\_C\_973](https://discourse.processing.org/u/Nicole_C_973)\
**Replies:** 3\
**Last updated:** [October 13, 2018, 9:12pm UTC](https://discourse.processing.org/t/creating-animations-from-tabulated-string-data/4117 "2018-10-13T21:12:31Z")

</div>

Hi guys I’m very new to processing and am creating a data visualisation from some excel spreadsheet data. The data is made up of strings (not numbers) and is pasted below. I need to know how to write a code that says: …

---

## [Camera clip problem](https://discourse.processing.org/t/camera-clip-problem/4110)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 3\
**Last updated:** [October 13, 2018, 9:05pm UTC](https://discourse.processing.org/t/camera-clip-problem/4110 "2018-10-13T21:05:52Z")

</div>

hello! this is my camera class, i\`ve a problem when rotating at rx axes, it seems that clipping problem at 180 degrees in that axes. i want to be free to rotating full 360ª . what im doing wrong? class Player { PVecto…

---

## [Unexpected token:void](https://discourse.processing.org/t/unexpected-token-void/4430)

<div class="topic-metadata">

**Author:** [@sissib](https://discourse.processing.org/u/sissib)\
**Replies:** 1\
**Last updated:** [October 13, 2018, 7:51pm UTC](https://discourse.processing.org/t/unexpected-token-void/4430 "2018-10-13T19:51:54Z")

</div>

here is my code: float xcoord; float ycoord; float npoints; float xdivider; float ydivider; void setup () { size (600,600); npoints=12; xdivider=width/(npoints+1); ydivider=height/(npoints+1); …

---

## [Can I use part of Processing source code in my code?](https://discourse.processing.org/t/can-i-use-part-of-processing-source-code-in-my-code/4423)

<div class="topic-metadata">

**Author:** [@Architector\_4](https://discourse.processing.org/u/Architector_4)\
**Replies:** 16\
**Last updated:** [October 13, 2018, 6:54pm UTC](https://discourse.processing.org/t/can-i-use-part-of-processing-source-code-in-my-code/4423 "2018-10-13T18:54:13Z")

</div>

I’m making a small Java tool in Eclipse, that basically converts images to a specific format, and I would like to use code from Processing in it, instead of importing the whole core.jar library. The specific code I want…

---

## [Mac export does not work (because of netP5?)](https://discourse.processing.org/t/mac-export-does-not-work-because-of-netp5/4428)

<div class="topic-metadata">

**Author:** [@dtmr](https://discourse.processing.org/u/dtmr)\
**Replies:** 0\
**Last updated:** [October 13, 2018, 3:33pm UTC](https://discourse.processing.org/t/mac-export-does-not-work-because-of-netp5/4428 "2018-10-13T15:33:06Z")

</div>

My exported Mac app does not start. I don’t have a Mac but got the feedback below from a betatester. Windows and Android exports work fine. Any idea what the problem might be? User says he installed Apple Java 6. \[JavaA…

---

## [ControlP5 button event](https://discourse.processing.org/t/controlp5-button-event/4420)

<div class="topic-metadata">

**Author:** [@FerrariLuigi](https://discourse.processing.org/u/FerrariLuigi)\
**Replies:** 5\
**Last updated:** [October 13, 2018, 1:58pm UTC](https://discourse.processing.org/t/controlp5-button-event/4420 "2018-10-13T13:58:30Z")

</div>

Dear all, I wrote the following code: // --8\<-------8\<-------8\<-------8\<-------8\<-------8\<-------8\<-------8\<-------8\<----- // \`\`\` ControlP5 cp5; final static String BUTTON\_START="buttonStart"; void initForm() …

---

## [How can i send a file with server.write?](https://discourse.processing.org/t/how-can-i-send-a-file-with-server-write/4360)

<div class="topic-metadata">

**Author:** [@Quix](https://discourse.processing.org/u/Quix)\
**Replies:** 10\
**Last updated:** [October 13, 2018, 2:04am UTC](https://discourse.processing.org/t/how-can-i-send-a-file-with-server-write/4360 "2018-10-13T02:04:06Z")

</div>

hi,i want to try to host a website with processing but i can’t send file import processing.net.\*; Server myServer; PrintWriter test; void setup() { size(200, 200); // Starts a myServer on port 5204 myServer = ne…

---

## [Time based pattern](https://discourse.processing.org/t/time-based-pattern/4399)

<div class="topic-metadata">

**Author:** [@ehasti21](https://discourse.processing.org/u/ehasti21)\
**Replies:** 4\
**Last updated:** [October 13, 2018, 12:12am UTC](https://discourse.processing.org/t/time-based-pattern/4399 "2018-10-13T00:12:19Z")

</div>

I’m still awaiting a bright soul to help me understand this aspect of coding\*Hello all, we are currently working on a time-based pattern project for class but i’ve manage to hit a wall working on my code. I am new to wor…

---

## [Largest digit in an integer!](https://discourse.processing.org/t/largest-digit-in-an-integer/4381)

<div class="topic-metadata">

**Author:** [@Who](https://discourse.processing.org/u/Who)\
**Replies:** 3\
**Last updated:** [October 12, 2018, 8:46pm UTC](https://discourse.processing.org/t/largest-digit-in-an-integer/4381 "2018-10-12T20:46:50Z")

</div>

I have the following question that I am stuck at :frowning: Define a function that when passed an integer, returns the highest digit in the integer. Call the function in setup() by passing an integer of your choice and …

---

## [Cannot Export To Mac](https://discourse.processing.org/t/cannot-export-to-mac/4390)

<div class="topic-metadata">

**Author:** [@Myselium](https://discourse.processing.org/u/Myselium)\
**Replies:** 2\
**Last updated:** [October 12, 2018, 5:56pm UTC](https://discourse.processing.org/t/cannot-export-to-mac/4390 "2018-10-12T17:56:27Z")

</div>

Hello, When i try to export my project to mac (I am on windows 10), the checkbox is greyed out. Why is this happening and how do i fix it. i am using the serial library for communicating with my arduino and the G4P f…

---

## [Show image in setup](https://discourse.processing.org/t/show-image-in-setup/4347)

<div class="topic-metadata">

**Author:** [@FerrariLuigi](https://discourse.processing.org/u/FerrariLuigi)\
**Replies:** 3\
**Last updated:** [October 12, 2018, 5:35pm UTC](https://discourse.processing.org/t/show-image-in-setup/4347 "2018-10-12T17:35:27Z")

</div>

Dear all, I wrote a processing sketch that has a very long setup function. During setup I have to read many files and I have to initialize a large number of varabiles. Unfortunately during setup the screen is complitel…

---

## [First frame of a video](https://discourse.processing.org/t/first-frame-of-a-video/4384)

<div class="topic-metadata">

**Author:** [@FerrariLuigi](https://discourse.processing.org/u/FerrariLuigi)\
**Replies:** 2\
**Last updated:** [October 12, 2018, 5:33pm UTC](https://discourse.processing.org/t/first-frame-of-a-video/4384 "2018-10-12T17:33:42Z")

</div>

Dear all, Im developing a project using video library. how to show the first frame of a video as an image ? Thank you very much for your help and cooperation regards

---

## [Amorphous/Round Shapes around Polygons/Triangles](https://discourse.processing.org/t/amorphous-round-shapes-around-polygons-triangles/4072)

<div class="topic-metadata">

**Author:** [@anneklappe](https://discourse.processing.org/u/anneklappe)\
**Replies:** 5\
**Last updated:** [October 12, 2018, 2:54pm UTC](https://discourse.processing.org/t/amorphous-round-shapes-around-polygons-triangles/4072 "2018-10-12T14:54:46Z")

</div>

Hello, Multiple particles are flying around in my sketch. When the points are close enough to each other, lines are drawn in between. When three points are close to each other, the lines shape a triangle between the poi…

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

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