# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=574

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

**Page:** 575

---

## [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…

---

## [Perspective() and antialias don't seem to get along in p5.js web editor](https://discourse.processing.org/t/perspective-and-antialias-dont-seem-to-get-along-in-p5-js-web-editor/4308)

<div class="topic-metadata">

**Author:** [@cbeg](https://discourse.processing.org/u/cbeg)\
**Replies:** 0\
**Last updated:** [October 10, 2018, 12:40am UTC](https://discourse.processing.org/t/perspective-and-antialias-dont-seem-to-get-along-in-p5-js-web-editor/4308 "2018-10-10T00:40:53Z")

</div>

Hi all, the sketch below works fine in Codepen, but the perspective() function only works as expected in the p5js web editor if I comment out the setAttributes line. Thoughts? function setup() { createCanvas(800, 200,…

---

## [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…

---

## [Tiny adjustment for CN webpage guideline](https://discourse.processing.org/t/tiny-adjustment-for-cn-webpage-guideline/4220)

<div class="topic-metadata">

**Author:** [@Zchary](https://discourse.processing.org/u/Zchary)\
**Replies:** 1\
**Last updated:** [October 13, 2018, 11:42pm UTC](https://discourse.processing.org/t/tiny-adjustment-for-cn-webpage-guideline/4220 "2018-10-13T23:42:02Z")

</div>

I’m a novice in China. when I was reading EXAMPLES in Chinese, I noticed that the header icon in Chinese: “Processing的力量结合 JavaScript 的范围”. with no offense, it’s a little weird and I suggest you change that to: “以 Proces…

---

## [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 …

---

## [Why is my rect leaving a trail behind it when I move it?](https://discourse.processing.org/t/why-is-my-rect-leaving-a-trail-behind-it-when-i-move-it/4440)

<div class="topic-metadata">

**Author:** [@swood](https://discourse.processing.org/u/swood)\
**Replies:** 1\
**Last updated:** [October 13, 2018, 10:07pm UTC](https://discourse.processing.org/t/why-is-my-rect-leaving-a-trail-behind-it-when-i-move-it/4440 "2018-10-13T22:07:15Z")

</div>

Hi all, new to p5 and am a bit confused. I am trying to make a rectangle move on a horizontal plane. To do this I am adding two vectors when the user presses the left arrow or right arrow. The paddle is moving as inten…

---

## [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() …

---

## [Instantiate Particle](https://discourse.processing.org/t/instantiate-particle/4407)

<div class="topic-metadata">

**Author:** [@happyPerson](https://discourse.processing.org/u/happyPerson)\
**Replies:** 2\
**Last updated:** [October 13, 2018, 1:08pm UTC](https://discourse.processing.org/t/instantiate-particle/4407 "2018-10-13T13:08:54Z")

</div>

Using ES6 I need to instantiate Particle constructor. Invoking constructor through default export I’m getting an error -\> p.Particle is not a constructor I’ve scaffolded playground – link 'use strict'; import P5 from '…

---

## [P5 wont load on browser because of loading a csv file](https://discourse.processing.org/t/p5-wont-load-on-browser-because-of-loading-a-csv-file/4419)

<div class="topic-metadata">

**Author:** [@briano1905](https://discourse.processing.org/u/briano1905)\
**Replies:** 3\
**Last updated:** [October 13, 2018, 8:03am UTC](https://discourse.processing.org/t/p5-wont-load-on-browser-because-of-loading-a-csv-file/4419 "2018-10-13T08:03:29Z")

</div>

Hello there, So im pretty new to programming and sorry if this might be trivial to you The problem is my p5 sketch won’t load on the browser it is working fine on the web editor I can load my other sketches fine I’v…

---

## [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…

---

## [Error when making a class.p5js](https://discourse.processing.org/t/error-when-making-a-class-p5js/4363)

<div class="topic-metadata">

**Author:** [@ricodevs](https://discourse.processing.org/u/ricodevs)\
**Replies:** 4\
**Last updated:** [October 12, 2018, 10:48pm UTC](https://discourse.processing.org/t/error-when-making-a-class-p5js/4363 "2018-10-12T22:48:23Z")

</div>

Im trying to make a class but I’m getting and error: 1: Uncaught SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode "%cDid you just try to use p5.js’s str() funct…

---

## [Rotating using math constants](https://discourse.processing.org/t/rotating-using-math-constants/4367)

<div class="topic-metadata">

**Author:** [@monnone](https://discourse.processing.org/u/monnone)\
**Replies:** 1\
**Last updated:** [October 12, 2018, 9:29pm UTC](https://discourse.processing.org/t/rotating-using-math-constants/4367 "2018-10-12T21:29:17Z")

</div>

So I’m trying to use the inbuilt constants QUARTER\_PI, HALF\_PI, and PI to make a single, non-animated rotation to render three separate boxes, but for whatever reason only QUARTER\_PI works; using any other constant resul…

---

## [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 …

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=573)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=575)
