# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?page=274

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

**Page:** 275

---

## [Shooting moving circles](https://discourse.processing.org/t/shooting-moving-circles/13791)

<div class="topic-metadata">

**Author:** [@sbiju72](https://discourse.processing.org/u/sbiju72)\
**Replies:** 2\
**Last updated:** [September 4, 2019, 12:02pm UTC](https://discourse.processing.org/t/shooting-moving-circles/13791 "2019-09-04T12:02:17Z")

</div>

I’m trying to shoot a moving ball. Most of it works (ball moves, hit is detected). Except the the movement of bullet. I can’t get it moving. void setup(){ size(1000,800); } Projectile bullet = new Projectile(); Enem…

---

## [G4P ViewListener imported obj render problem](https://discourse.processing.org/t/g4p-viewlistener-imported-obj-render-problem/13794)

<div class="topic-metadata">

**Author:** [@mala](https://discourse.processing.org/u/mala)\
**Replies:** 4\
**Last updated:** [September 4, 2019, 11:49am UTC](https://discourse.processing.org/t/g4p-viewlistener-imported-obj-render-problem/13794 "2019-09-04T11:49:28Z")

</div>

I’m getting a strange effect when trying to render stroke & fill on an imported obj, the stroke appears to only be rendered once at first frame , almost as an orthographic projection, this stroke rotates with the box as …

---

## [The background does not work in a second screen](https://discourse.processing.org/t/the-background-does-not-work-in-a-second-screen/13760)

<div class="topic-metadata">

**Author:** [@bandMast3r](https://discourse.processing.org/u/bandMast3r)\
**Replies:** 1\
**Last updated:** [September 4, 2019, 10:00am UTC](https://discourse.processing.org/t/the-background-does-not-work-in-a-second-screen/13760 "2019-09-04T10:00:44Z")

</div>

I have a laptop and a monitor. At home, I don’t use the laptop’s monitor as the primary monitor. And when I’m at school, my background doesn’t change color, as if it didn’t exist. And it just happens on my laptop screen.…

---

## [Circle fractal not showing largest starting circles](https://discourse.processing.org/t/circle-fractal-not-showing-largest-starting-circles/13787)

<div class="topic-metadata">

**Author:** [@c0d3d](https://discourse.processing.org/u/c0d3d)\
**Replies:** 3\
**Last updated:** [September 4, 2019, 5:29am UTC](https://discourse.processing.org/t/circle-fractal-not-showing-largest-starting-circles/13787 "2019-09-04T05:29:49Z")

</div>

Hello, I am currently trying to make a simple circle fractal. I for some reason am not getting the largest circles/the starting ones. Here is my code: void setup() { size(640,360); } void draw() { background(255); …

---

## [Control Brightness Via Artnet and DMX](https://discourse.processing.org/t/control-brightness-via-artnet-and-dmx/13779)

<div class="topic-metadata">

**Author:** [@makerinchief](https://discourse.processing.org/u/makerinchief)\
**Replies:** 2\
**Last updated:** [September 3, 2019, 10:55pm UTC](https://discourse.processing.org/t/control-brightness-via-artnet-and-dmx/13779 "2019-09-03T22:55:58Z")

</div>

I’m controlling a bunch of RGB led strips using Artnet protocol and some DMX decoders like the one in this link: I’m able to control the colors just fine but I want to control the brightness of certain RGB strips. I …

---

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

---

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

---

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

---

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

---

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

---

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

---

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

---

## [Trouble with the bouncing ball example from the NoC book](https://discourse.processing.org/t/trouble-with-the-bouncing-ball-example-from-the-noc-book/13705)

<div class="topic-metadata">

**Author:** [@cyml](https://discourse.processing.org/u/cyml)\
**Replies:** 8\
**Last updated:** [August 31, 2019, 9:50am UTC](https://discourse.processing.org/t/trouble-with-the-bouncing-ball-example-from-the-noc-book/13705 "2019-08-31T09:50:30Z")

</div>

on my first embark of the first example in The Nature of Code, Processing is telling me Missing right parenthesis “)” and I compared my code to Daniel’s sample code… and I couldn’t figure out why. Can someone help me…

---

## [Learning curve in Generative Art](https://discourse.processing.org/t/learning-curve-in-generative-art/13612)

<div class="topic-metadata">

**Author:** [@Marinus](https://discourse.processing.org/u/Marinus)\
**Replies:** 12\
**Last updated:** [August 31, 2019, 9:10am UTC](https://discourse.processing.org/t/learning-curve-in-generative-art/13612 "2019-08-31T09:10:26Z")

</div>

Hi all, first post here. A little background info: One week ago I started to learn how to code in Processing. I’m not familiar with creating code, only with altering work of others. I’ve worked in python, java, javascri…

---

## [Size() cannot be used here issue. Please Help!](https://discourse.processing.org/t/size-cannot-be-used-here-issue-please-help/13696)

<div class="topic-metadata">

**Author:** [@Kaiskana](https://discourse.processing.org/u/Kaiskana)\
**Replies:** 5\
**Last updated:** [August 31, 2019, 4:53am UTC](https://discourse.processing.org/t/size-cannot-be-used-here-issue-please-help/13696 "2019-08-31T04:53:15Z")

</div>

Hello, I am currently trying to make some artwork for my media class. My professor is having us make the size with a width 1280px, and a height 720px. When starting to write the code that I would be using, I got an error…

---

## [Noise edge detection](https://discourse.processing.org/t/noise-edge-detection/13367)

<div class="topic-metadata">

**Author:** [@TimoL](https://discourse.processing.org/u/TimoL)\
**Replies:** 4\
**Last updated:** [August 30, 2019, 6:09pm UTC](https://discourse.processing.org/t/noise-edge-detection/13367 "2019-08-30T18:09:12Z")

</div>

Hi all! Im struggling to put into words what I need help with. Im not sure how best to use noise to effect a grid of shapes. I’ve included my code which should help clarify… Basically I have a grid of rectangles and …

---

## [How to change the canvas size of kinect?](https://discourse.processing.org/t/how-to-change-the-canvas-size-of-kinect/13701)

<div class="topic-metadata">

**Author:** [@AbleYudada](https://discourse.processing.org/u/AbleYudada)\
**Replies:** 1\
**Last updated:** [August 30, 2019, 10:08am UTC](https://discourse.processing.org/t/how-to-change-the-canvas-size-of-kinect/13701 "2019-08-30T10:08:16Z")

</div>

I am playing with the Kinect and when I enlarge the size of the canvas, the Kinect window stays the same size and does not expand to match the size of the canvas. How can I enlarge it?

[Previous page](https://discourse.processing.org/c/processing/6.md?page=273)

[Next page](https://discourse.processing.org/c/processing/6.md?page=275)
