# Latest

**URL:** https://discourse.processing.org/latest.md?page=449

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

**Page:** 450

---

## [Surprising stuff you can do in the Processing IDE](https://discourse.processing.org/t/surprising-stuff-you-can-do-in-the-processing-ide/13723)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 6\
**Last updated:** [September 3, 2019, 5:58pm UTC](https://discourse.processing.org/t/surprising-stuff-you-can-do-in-the-processing-ide/13723 "2019-09-03T17:58:02Z")

</div>

Now this isn’t available unless you compile the latest development version of processing by SamPottinger Now here is why you might want to use the @FunctionalInterface annotation:- usefully even before you try to…

---

## [Hour of Code around Processing](https://discourse.processing.org/t/hour-of-code-around-processing/12807)

<div class="topic-metadata">

**Author:** [@codeIt](https://discourse.processing.org/u/codeIt)\
**Replies:** 9\
**Last updated:** [September 3, 2019, 12:31pm UTC](https://discourse.processing.org/t/hour-of-code-around-processing/12807 "2019-09-03T12:31:55Z")

</div>

Hi all, we are working on a Processing-based „Hour of Code“. It’s a free one-hour course, aimed at kids (9+), teaching the basics of programming through creating images and animations in a block based environment. For th…

---

## [My P5 editor doesn't work](https://discourse.processing.org/t/my-p5-editor-doesnt-work/13769)

<div class="topic-metadata">

**Author:** [@deseingalt](https://discourse.processing.org/u/deseingalt)\
**Replies:** 5\
**Last updated:** [September 3, 2019, 10:56am UTC](https://discourse.processing.org/t/my-p5-editor-doesnt-work/13769 "2019-09-03T10:56:53Z")

</div>

sketch.js function setup() { createCanvas(400, 400); } function draw() { background(220); } Console p5 had problems creating the global function “createElement”, possibly because your code is already using that n…

---

## [Drawing on multiple layers interactively (AutoCad style)](https://discourse.processing.org/t/drawing-on-multiple-layers-interactively-autocad-style/13735)

<div class="topic-metadata">

**Author:** [@Pvag](https://discourse.processing.org/u/Pvag)\
**Replies:** 5\
**Last updated:** [September 3, 2019, 10:19am UTC](https://discourse.processing.org/t/drawing-on-multiple-layers-interactively-autocad-style/13735 "2019-09-03T10:19:19Z")

</div>

I am sharing here a simple code I developed to handle the user interaction for a simple drawing tool. The user can draw points dragging the mouse, or lines, if pressing SHIFT at the beginning of the drag. The cool thing…

---

## [Left hand side of the argument](https://discourse.processing.org/t/left-hand-side-of-the-argument/13771)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 1\
**Last updated:** [September 3, 2019, 2:58am UTC](https://discourse.processing.org/t/left-hand-side-of-the-argument/13771 "2019-09-03T02:58:03Z")

</div>

Converting code from P5.js. In the original code I had an array which can be flexible in p5 which I used to store the location of the Objects I’m working with, and In my function I would call the location in the array an…

---

## [Possible at all? Create path on image, generate cutting boxes, separate each box](https://discourse.processing.org/t/possible-at-all-create-path-on-image-generate-cutting-boxes-separate-each-box/13756)

<div class="topic-metadata">

**Author:** [@damomp](https://discourse.processing.org/u/damomp)\
**Replies:** 10\
**Last updated:** [September 3, 2019, 12:04am UTC](https://discourse.processing.org/t/possible-at-all-create-path-on-image-generate-cutting-boxes-separate-each-box/13756 "2019-09-03T00:04:35Z")

</div>

Dear all, just getting started with processing and wondering if this is possible within processing? I haven’t succeeded doing this in photoshop. I need to dissolve an image into smaller party while each part should be…

---

## [Improving the 'title' of a second window in Python Mode](https://discourse.processing.org/t/improving-the-title-of-a-second-window-in-python-mode/13746)

<div class="topic-metadata">

**Author:** [@villares](https://discourse.processing.org/u/villares)\
**Replies:** 3\
**Last updated:** [September 2, 2019, 8:07pm UTC](https://discourse.processing.org/t/improving-the-title-of-a-second-window-in-python-mode/13746 "2019-09-02T20:07:18Z")

</div>

Thanks to GoToLoop and others who discussed it here and on the earlier forums, I know I can make a sketch with more than one window like this: def setup(): size(200, 300) second\_window = OtherWindow() def…

---

## [can I separate SVG rendering stroke width from shape size? (line fonts for plotting)](https://discourse.processing.org/t/can-i-separate-svg-rendering-stroke-width-from-shape-size-line-fonts-for-plotting/13359)

<div class="topic-metadata">

**Author:** [@arcadeperfect](https://discourse.processing.org/u/arcadeperfect)\
**Replies:** 7\
**Last updated:** [September 2, 2019, 6:11pm UTC](https://discourse.processing.org/t/can-i-separate-svg-rendering-stroke-width-from-shape-size-line-fonts-for-plotting/13359 "2019-09-02T18:11:02Z")

</div>

Hi, Rendering an SVG. Have disabled the SVG’s style. My problem is that even though I’m setting the stroke weight through processing, it still scales that stroke when I render the SVG at different sizes. What I want is…

---

## [Simplex noise octaves](https://discourse.processing.org/t/simplex-noise-octaves/13762)

<div class="topic-metadata">

**Author:** [@arcadeperfect](https://discourse.processing.org/u/arcadeperfect)\
**Replies:** 1\
**Last updated:** [September 2, 2019, 7:01pm UTC](https://discourse.processing.org/t/simplex-noise-octaves/13762 "2019-09-02T19:01:25Z")

</div>

Hello! Is there a way to adjust the octaves and force the seed with toxi.math.simplexnoise? I found these docs but can’t find it. Alternatively are there any other noise algorithms available? The problem I have with t…

---

## [Request for SVG Gradient file](https://discourse.processing.org/t/request-for-svg-gradient-file/12116)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 4\
**Last updated:** [September 2, 2019, 6:02pm UTC](https://discourse.processing.org/t/request-for-svg-gradient-file/12116 "2019-09-02T18:02:55Z")

</div>

Could someone provide me a svg with a gradient that works in processing? I wan’t to see if I can make processing support svg gradients from svg’s exported from affinity designer, but it would be really helpfull to have …

---

## [Classes initialising other classes](https://discourse.processing.org/t/classes-initialising-other-classes/13768)

<div class="topic-metadata">

**Author:** [@arcadeperfect](https://discourse.processing.org/u/arcadeperfect)\
**Replies:** 2\
**Last updated:** [September 2, 2019, 4:51pm UTC](https://discourse.processing.org/t/classes-initialising-other-classes/13768 "2019-09-02T16:51:14Z")

</div>

Hello! This is more a Java question than processing but I’m hoping the processing folks will be more merciful that stack overflow :slight\_smile: I am trying to translate this gravity simulator from python to processing. …

---

## [Is it possible higher precision than double?](https://discourse.processing.org/t/is-it-possible-higher-precision-than-double/13764)

<div class="topic-metadata">

**Author:** [@AngelRF](https://discourse.processing.org/u/AngelRF)\
**Replies:** 4\
**Last updated:** [September 2, 2019, 2:40pm UTC](https://discourse.processing.org/t/is-it-possible-higher-precision-than-double/13764 "2019-09-02T14:40:40Z")

</div>

I’m doing a Numeric Differentiation calculating program, and the second and third derivative get waay too noisy, according to wikipedia, this is caused by floating-point arithmetic rounding. https://en.wikipedia.org/wiki…

---

## [Wake up Windows and the draw frame dies a horrible death](https://discourse.processing.org/t/wake-up-windows-and-the-draw-frame-dies-a-horrible-death/13753)

<div class="topic-metadata">

**Author:** [@wakewatcher](https://discourse.processing.org/u/wakewatcher)\
**Replies:** 4\
**Last updated:** [September 2, 2019, 2:30pm UTC](https://discourse.processing.org/t/wake-up-windows-and-the-draw-frame-dies-a-horrible-death/13753 "2019-09-02T14:30:48Z")

</div>

I’ve been having problems with my Processing sketch crashing. The IDE remains if its running via the IDE but draw window(s) disappear. If running as an exe crashes as well. I thought (still might be) some coding problem…

---

## [Help on code (drawing circle mathematically)](https://discourse.processing.org/t/help-on-code-drawing-circle-mathematically/13759)

<div class="topic-metadata">

**Author:** [@sbiju72](https://discourse.processing.org/u/sbiju72)\
**Replies:** 3\
**Last updated:** [September 2, 2019, 2:06pm UTC](https://discourse.processing.org/t/help-on-code-drawing-circle-mathematically/13759 "2019-09-02T14:06:09Z")

</div>

Hi I’m failing to see why the default circle and the circle mathematically drawn doesn’t match. Any help is appreciated. Code below: size(400,400); int cx = 200, cy = 200, cr = 100, xdis, ydis; stroke(255,0,0); circl…

---

## [Support for java 11 syntax](https://discourse.processing.org/t/support-for-java-11-syntax/13715)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 7\
**Last updated:** [September 2, 2019, 1:29pm UTC](https://discourse.processing.org/t/support-for-java-11-syntax/13715 "2019-09-02T13:29:27Z")

</div>

Previously I was excited to use java8 syntax in processing ide using Sampottingers development version of processing. However things are moving apace, and if you are prepared to build your own copy of latest version, you…

---

## [Sending multiple numbers to Arduino via Serial](https://discourse.processing.org/t/sending-multiple-numbers-to-arduino-via-serial/13751)

<div class="topic-metadata">

**Author:** [@zara2355](https://discourse.processing.org/u/zara2355)\
**Replies:** 3\
**Last updated:** [September 1, 2019, 11:13pm UTC](https://discourse.processing.org/t/sending-multiple-numbers-to-arduino-via-serial/13751 "2019-09-01T23:13:50Z")

</div>

Hello, For the project i am doing, i am trying to grab weather data from multiple cities that i will then use to drive some NeoPixles on an Arduino with. The Processing sketch i have at the moment uses 3 cities, and tak…

---

## [Storing functions in array or arraylist returns null pointer](https://discourse.processing.org/t/storing-functions-in-array-or-arraylist-returns-null-pointer/13749)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 2\
**Last updated:** [September 1, 2019, 8:03pm UTC](https://discourse.processing.org/t/storing-functions-in-array-or-arraylist-returns-null-pointer/13749 "2019-09-01T20:03:28Z")

</div>

I’m converting code from p5 to processing. I was storing functions in an array. These functions create the buttons which I’m using in my application and allowed me to loop through the array to draw and manipulate the but…

---

## [Shader as texture for primitive](https://discourse.processing.org/t/shader-as-texture-for-primitive/13680)

<div class="topic-metadata">

**Author:** [@lnp](https://discourse.processing.org/u/lnp)\
**Replies:** 13\
**Last updated:** [August 29, 2019, 9:18pm UTC](https://discourse.processing.org/t/shader-as-texture-for-primitive/13680 "2019-08-29T21:18:26Z")

</div>

Is it possible to use a shader as a texture on a 3d primitive? When I invoke shader the effect is to render the sphere as a flat 2d object with the shader as a fill rather than a texture. I thought I could call texture(…

---

## [Processing 3 keeps throwing an error, when I try to run any Java code!](https://discourse.processing.org/t/processing-3-keeps-throwing-an-error-when-i-try-to-run-any-java-code/13739)

<div class="topic-metadata">

**Author:** [@BitLlama](https://discourse.processing.org/u/BitLlama)\
**Replies:** 5\
**Last updated:** [September 1, 2019, 10:41am UTC](https://discourse.processing.org/t/processing-3-keeps-throwing-an-error-when-i-try-to-run-any-java-code/13739 "2019-09-01T10:41:01Z")

</div>

Exception in thread “Thread-25” java.lang.RuntimeException: Exception while attempting /usr/lib/jvm/java-8-openjdk/bin/java -agentlib:jdwp=transport=dt\_socket,address=8357,server=y,suspend=y,quiet=y -Djna.nosys=true -Dj…

---

## [Applying a background image to a rect()](https://discourse.processing.org/t/applying-a-background-image-to-a-rect/13711)

<div class="topic-metadata">

**Author:** [@Bubblebyb](https://discourse.processing.org/u/Bubblebyb)\
**Replies:** 2\
**Last updated:** [August 31, 2019, 11:43pm UTC](https://discourse.processing.org/t/applying-a-background-image-to-a-rect/13711 "2019-08-31T23:43:27Z")

</div>

Is it possible to have a background image for a rect() in p5? I’ve seem some answers that suggest a workaround by using a mask but all I’m looking for is having an image as a background for a shape such as a rect().

---

## [Size of Pop-Ups on UHD Screen](https://discourse.processing.org/t/size-of-pop-ups-on-uhd-screen/13733)

<div class="topic-metadata">

**Author:** [@jjo](https://discourse.processing.org/u/jjo)\
**Replies:** 0\
**Last updated:** [August 31, 2019, 10:33pm UTC](https://discourse.processing.org/t/size-of-pop-ups-on-uhd-screen/13733 "2019-08-31T22:33:52Z")

</div>

I have a Dell XPS 15 with a UHD display and Processing 3.5.3. Pop-up windows are very small. Does anyone have a solution to this problem? I am a new user, so I can only supply one picture below. The problem happens a…

---

## [PShape texture only applies colour not text?](https://discourse.processing.org/t/pshape-texture-only-applies-colour-not-text/13596)

<div class="topic-metadata">

**Author:** [@michthom](https://discourse.processing.org/u/michthom)\
**Replies:** 12\
**Last updated:** [August 31, 2019, 7:52pm UTC](https://discourse.processing.org/t/pshape-texture-only-applies-colour-not-text/13596 "2019-08-31T19:52:12Z")

</div>

Hi folks I’m trying to create a PShape - a rounded rectangle, with a texture consisting of a background colour and some text overlaid. There may be simpler ways, but this is for a project where I’ll be displaying hundre…

---

## [How do I switch between fullscreen and windowed during the sketch](https://discourse.processing.org/t/how-do-i-switch-between-fullscreen-and-windowed-during-the-sketch/13726)

<div class="topic-metadata">

**Author:** [@Lachieblue](https://discourse.processing.org/u/Lachieblue)\
**Replies:** 1\
**Last updated:** [August 31, 2019, 6:41pm UTC](https://discourse.processing.org/t/how-do-i-switch-between-fullscreen-and-windowed-during-the-sketch/13726 "2019-08-31T18:41:33Z")

</div>

So as the title says, I want to create a button or something that I can click during a sketch to resize the window from fullscreen to different windowed resolutions like in a game. I’ve experimented with surface.setSize…

---

## [Getting really bad lag with a function](https://discourse.processing.org/t/getting-really-bad-lag-with-a-function/13725)

<div class="topic-metadata">

**Author:** [@lax](https://discourse.processing.org/u/lax)\
**Replies:** 4\
**Last updated:** [August 31, 2019, 6:24pm UTC](https://discourse.processing.org/t/getting-really-bad-lag-with-a-function/13725 "2019-08-31T18:24:33Z")

</div>

Hi, I have this function which i run on every pixel, which causes the fps to drop to around 1 fps: PVector kaleido(PVector uv) { float th = atan2(uv.y, uv.x); float r = uv.magSq(); th = sin(th \* 6.283f / 0.8975979…

---

## [\[ SOLVED \] How to import Collide2D](https://discourse.processing.org/t/solved-how-to-import-collide2d/13713)

<div class="topic-metadata">

**Author:** [@MrShawn](https://discourse.processing.org/u/MrShawn)\
**Replies:** 4\
**Last updated:** [August 31, 2019, 5:27pm UTC](https://discourse.processing.org/t/solved-how-to-import-collide2d/13713 "2019-08-31T17:27:45Z")

</div>

Hello, I am trying to import Collide2D by @bmoren into my p5js project. I added the rawgithubcontent link to the minified library in my index.html, but it didn’t import properly. How do I properly import it? Here is my …

---

## [Adding an external java Library](https://discourse.processing.org/t/adding-an-external-java-library/1594)

<div class="topic-metadata">

**Author:** [@DogeMastr](https://discourse.processing.org/u/DogeMastr)\
**Replies:** 4\
**Last updated:** [August 31, 2019, 2:13pm UTC](https://discourse.processing.org/t/adding-an-external-java-library/1594 "2019-08-31T14:13:23Z")

</div>

Im trying to import the library mp3agic and ive gotten to the point where ive used maven to build the .jar file and i have it in the librarys folder like this: Documents/Processing/Librarys/mp3agic/library When I used …

---

## [Help me understand this cool/short code on OpenProcessing](https://discourse.processing.org/t/help-me-understand-this-cool-short-code-on-openprocessing/13721)

<div class="topic-metadata">

**Author:** [@sorenkirk](https://discourse.processing.org/u/sorenkirk)\
**Replies:** 0\
**Last updated:** [August 31, 2019, 1:12pm UTC](https://discourse.processing.org/t/help-me-understand-this-cool-short-code-on-openprocessing/13721 "2019-08-31T13:12:35Z")

</div>

I found the following code on Open Processing. https://www.openprocessing.org/sketch/374455 Would somebody help me understand the Particle class? In particular, what is the math going on in the update function? class …

---

## [How to find number of displays](https://discourse.processing.org/t/how-to-find-number-of-displays/13037)

<div class="topic-metadata">

**Author:** [@jtk](https://discourse.processing.org/u/jtk)\
**Replies:** 3\
**Last updated:** [August 31, 2019, 11:35am UTC](https://discourse.processing.org/t/how-to-find-number-of-displays/13037 "2019-08-31T11:35:28Z")

</div>

Is there a way to find out how many displays are available to my Processing program? I would like my sketch to start in fullScreen on display 2 if it is connected, otherwise display 1. Currently, I’m using fullScreen(2…

---

## [Save different returns for looped function](https://discourse.processing.org/t/save-different-returns-for-looped-function/13686)

<div class="topic-metadata">

**Author:** [@b\_and\_z](https://discourse.processing.org/u/b_and_z)\
**Replies:** 5\
**Last updated:** [August 31, 2019, 10:43am UTC](https://discourse.processing.org/t/save-different-returns-for-looped-function/13686 "2019-08-31T10:43:37Z")

</div>

Hi all So I have a function that creates multiple sliders. The function is then looped to create multiple sliders. I want the slider values to be stored in an array, for each slider a single array element. How would I h…

---

## [Error with OR in MacBook](https://discourse.processing.org/t/error-with-or-in-macbook/13717)

<div class="topic-metadata">

**Author:** [@Angie](https://discourse.processing.org/u/Angie)\
**Replies:** 2\
**Last updated:** [August 31, 2019, 10:03am UTC](https://discourse.processing.org/t/error-with-or-in-macbook/13717 "2019-08-31T10:03:11Z")

</div>

Good morning, I’m beginning using Processing and I’ve problems writing down the OR simbol. Processing gives my ERROR when I write it in my MacBook. I’m using || (alt + 1) but also I’ve tried to copy+paste directly of a …

[Previous page](https://discourse.processing.org/latest.md?page=448)

[Next page](https://discourse.processing.org/latest.md?page=450)
