# Processing

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

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

**Page:** 276

---

## [Fast particle system](https://discourse.processing.org/t/fast-particle-system/13693)

<div class="topic-metadata">

**Author:** [@jb4x](https://discourse.processing.org/u/jb4x)\
**Replies:** 2\
**Last updated:** [August 29, 2019, 6:40pm UTC](https://discourse.processing.org/t/fast-particle-system/13693 "2019-08-29T18:40:11Z")

</div>

Hello everyone, I have a project in mind that involved a simple particle system moving in a force field on a Raspberry PI 3+. The particle class would be really simple. It would just consist of applying the relevant fo…

---

## [Change maxPolygonVertices in Box2D?](https://discourse.processing.org/t/change-maxpolygonvertices-in-box2d/13383)

<div class="topic-metadata">

**Author:** [@jeffthompson](https://discourse.processing.org/u/jeffthompson)\
**Replies:** 3\
**Last updated:** [August 29, 2019, 6:37pm UTC](https://discourse.processing.org/t/change-maxpolygonvertices-in-box2d/13383 "2019-08-29T18:37:55Z")

</div>

I’m working on a project that uses Daniel Shiffman’s Box2D library to arrange a bunch of objects and have run into an issue. It seems that a polygon with more than 8 vertices throws an error, but I’d really like to chang…

---

## [Mapping degrees excluding 360.0](https://discourse.processing.org/t/mapping-degrees-excluding-360-0/13691)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 2\
**Last updated:** [August 29, 2019, 6:29pm UTC](https://discourse.processing.org/t/mapping-degrees-excluding-360-0/13691 "2019-08-29T18:29:22Z")

</div>

I’ve been working on a control that behaves like an encoder wheel that is turned with the mouse and outputs the current angle of rotation. I’m having trouble figuring out how to get it to output 0 through 360 but forcin…

---

## [Perlin noise problem with higher numbers](https://discourse.processing.org/t/perlin-noise-problem-with-higher-numbers/13672)

<div class="topic-metadata">

**Author:** [@GeorgeJava](https://discourse.processing.org/u/GeorgeJava)\
**Replies:** 9\
**Last updated:** [August 29, 2019, 4:35pm UTC](https://discourse.processing.org/t/perlin-noise-problem-with-higher-numbers/13672 "2019-08-29T16:35:14Z")

</div>

Hello i try to increase one of pos of 2D perlin noise generator and its going wrong. Its draws lines not “clouds” as before with lower number… Is the some MAXIMUM number of perlin noise posX and posY ? Here is the cod…

---

## [Processing didn't show display window](https://discourse.processing.org/t/processing-didnt-show-display-window/13682)

<div class="topic-metadata">

**Author:** [@Im\_ygy](https://discourse.processing.org/u/Im_ygy)\
**Replies:** 2\
**Last updated:** [August 29, 2019, 12:26pm UTC](https://discourse.processing.org/t/processing-didnt-show-display-window/13682 "2019-08-29T12:26:51Z")

</div>

Well, I’ve been working on a Windows system and it didn’t show the display window, and running ellipse(50,50,80,80) didn’t show a window either, and I’m willing to know why. I’m following the steps here: https://processi…

---

## [CNN not working](https://discourse.processing.org/t/cnn-not-working/10190)

<div class="topic-metadata">

**Author:** [@Odermonicon](https://discourse.processing.org/u/Odermonicon)\
**Replies:** 3\
**Last updated:** [August 29, 2019, 9:23am UTC](https://discourse.processing.org/t/cnn-not-working/10190 "2019-08-29T09:23:50Z")

</div>

Literally no idea why it doesn’t work plz help CodePImage ini; PImage reo; String\[\] log = {}; int\[\]\[\] con = { {-1,0,1}, {-1,0,1}, {-1,0,1} }; int cropsize = 10; void setup() { ini = loadImage("img.png"); …

---

## [Randomizing shot](https://discourse.processing.org/t/randomizing-shot/13679)

<div class="topic-metadata">

**Author:** [@Not\_River](https://discourse.processing.org/u/Not_River)\
**Replies:** 1\
**Last updated:** [August 29, 2019, 8:49am UTC](https://discourse.processing.org/t/randomizing-shot/13679 "2019-08-29T08:49:25Z")

</div>

I’m trying to design an enemy that shoots multiple shots in random directions, I have an Idea of what I want to do, but I don’t know where to put it. What I want to do is make the xSpeed of the shot randomize between 0 a…

---

## [Trim primitive shapes](https://discourse.processing.org/t/trim-primitive-shapes/13131)

<div class="topic-metadata">

**Author:** [@TimoL](https://discourse.processing.org/u/TimoL)\
**Replies:** 20\
**Last updated:** [August 29, 2019, 8:25am UTC](https://discourse.processing.org/t/trim-primitive-shapes/13131 "2019-08-29T08:25:10Z")

</div>

Hi there, need a little help figuring this one out… Ive had a search but havent found any topics that I think would help mw… Basically Im trying to mask some lines ive generated with a rectangle. I’ve seen a few post…

---

## [Justifying Text in PDF](https://discourse.processing.org/t/justifying-text-in-pdf/13564)

<div class="topic-metadata">

**Author:** [@grumo](https://discourse.processing.org/u/grumo)\
**Replies:** 4\
**Last updated:** [August 29, 2019, 5:09am UTC](https://discourse.processing.org/t/justifying-text-in-pdf/13564 "2019-08-29T05:09:03Z")

</div>

Ok. I fixed the code and I could run it. The script justifies the text in the box on screen BUT when I try to use it in the PDF mode it won’t work. If you run it you’ll see a justify-aligned box of text (finally!) but th…

---

## [Nothing gets sent to Arduino from Processing](https://discourse.processing.org/t/nothing-gets-sent-to-arduino-from-processing/13654)

<div class="topic-metadata">

**Author:** [@BeastCoder](https://discourse.processing.org/u/BeastCoder)\
**Replies:** 2\
**Last updated:** [August 29, 2019, 2:45am UTC](https://discourse.processing.org/t/nothing-gets-sent-to-arduino-from-processing/13654 "2019-08-29T02:45:59Z")

</div>

I have a problem where I kwow that my bluetooth module (HC-05) is connected to a processing sketch, but nothing ever gets sent from the processing sketch,why? No error messages but the info never gets sent over because …

---

## [It's possible to load 3d models?](https://discourse.processing.org/t/its-possible-to-load-3d-models/13557)

<div class="topic-metadata">

**Author:** [@Waboqueox](https://discourse.processing.org/u/Waboqueox)\
**Replies:** 4\
**Last updated:** [August 28, 2019, 9:53pm UTC](https://discourse.processing.org/t/its-possible-to-load-3d-models/13557 "2019-08-28T21:53:03Z")

</div>

Hi there!! I couldn’t find the answer to this simply question :sweat\_smile: Want to try the 3D mode, but first want to know if I can load 3D models (found .3DS free models). Thanks !! :hugs:

---

## [It's possible to change between 2D and 3D while runing?](https://discourse.processing.org/t/its-possible-to-change-between-2d-and-3d-while-runing/13646)

<div class="topic-metadata">

**Author:** [@Waboqueox](https://discourse.processing.org/u/Waboqueox)\
**Replies:** 6\
**Last updated:** [August 28, 2019, 8:24pm UTC](https://discourse.processing.org/t/its-possible-to-change-between-2d-and-3d-while-runing/13646 "2019-08-28T20:24:58Z")

</div>

Hi there!! I want to switch between 2D and 3D pressing a button, don’t know if that’s possible, someone knows? I have my sketch running (processing 3, in android studio), and want to be able to change to 3D or go back …

---

## [Placing a texture on a pshape](https://discourse.processing.org/t/placing-a-texture-on-a-pshape/13561)

<div class="topic-metadata">

**Author:** [@sentfrom](https://discourse.processing.org/u/sentfrom)\
**Replies:** 5\
**Last updated:** [August 28, 2019, 5:22pm UTC](https://discourse.processing.org/t/placing-a-texture-on-a-pshape/13561 "2019-08-28T17:22:39Z")

</div>

Hello, I am making a game and I have a pshape planet with 360 vertices placed in a circle. PVector circ = new PVector(rad,0); tar = createShape(); tar.beginShape(); //loops 359 times to enable rotation in 1°…

---

## [Screen to PGraphic?](https://discourse.processing.org/t/screen-to-pgraphic/13622)

<div class="topic-metadata">

**Author:** [@aledante](https://discourse.processing.org/u/aledante)\
**Replies:** 9\
**Last updated:** [August 28, 2019, 4:21pm UTC](https://discourse.processing.org/t/screen-to-pgraphic/13622 "2019-08-28T16:21:20Z")

</div>

Hi!, Is there a way of directing all drawing instructions to a PGraphics? I’ve already write a program that draw something to the screen and now I want it in a PGraphic. I know that it is not difficult to write the code…

---

## [Problem with window size](https://discourse.processing.org/t/problem-with-window-size/13664)

<div class="topic-metadata">

**Author:** [@newt](https://discourse.processing.org/u/newt)\
**Replies:** 1\
**Last updated:** [August 28, 2019, 7:29am UTC](https://discourse.processing.org/t/problem-with-window-size/13664 "2019-08-28T07:29:02Z")

</div>

So I’m new in processing but I have a problem Every time I start a sketch the size il almost full screen even if I use size (500,300) or (50,30) For clarify I write Void setup(){ Size(500,300); } Void draw() { Backgro…

---

## [HTTP POST Request sending incorrect Content-Type](https://discourse.processing.org/t/http-post-request-sending-incorrect-content-type/13650)

<div class="topic-metadata">

**Author:** [@n055](https://discourse.processing.org/u/n055)\
**Replies:** 3\
**Last updated:** [August 28, 2019, 2:11am UTC](https://discourse.processing.org/t/http-post-request-sending-incorrect-content-type/13650 "2019-08-28T02:11:39Z")

</div>

Hey y’all, I’m making a processing sketch to interact with an API that I wrote in node.js using express.js as my web service. When sending GET requests, all is splendid, due to the information being contained in the URL,…

---

## [How to connect Processing with Renoise via OSC](https://discourse.processing.org/t/how-to-connect-processing-with-renoise-via-osc/13658)

<div class="topic-metadata">

**Author:** [@animanoir](https://discourse.processing.org/u/animanoir)\
**Replies:** 1\
**Last updated:** [August 28, 2019, 12:51am UTC](https://discourse.processing.org/t/how-to-connect-processing-with-renoise-via-osc/13658 "2019-08-28T00:51:55Z")

</div>

Hi. I’ve fallen in absolute love with Renoise, and I wish to connect it to Processing to trigger images, animations, etc. So I’m an intermediate programmer, not lost at all, but I don’t know how I could setup Renoise to…

---

## [Kinect: Rendering mapped depth values efficiently?](https://discourse.processing.org/t/kinect-rendering-mapped-depth-values-efficiently/13419)

<div class="topic-metadata">

**Author:** [@lfredericks](https://discourse.processing.org/u/lfredericks)\
**Replies:** 0\
**Last updated:** [August 16, 2019, 5:42pm UTC](https://discourse.processing.org/t/kinect-rendering-mapped-depth-values-efficiently/13419 "2019-08-16T17:42:48Z")

</div>

Edit: SOLVED (more or less). I ended up doing my depth rendering and RGB video in a separate Processing sketch, and creating a Thread subclass to render the depth mask asynchronously. I’m using Spout to send the RGB imag…

---

## [Rect(x,y,1,1); VS. point(x,y);](https://discourse.processing.org/t/rect-x-y-1-1-vs-point-x-y/13299)

<div class="topic-metadata">

**Author:** [@LuckSmith](https://discourse.processing.org/u/LuckSmith)\
**Replies:** 11\
**Last updated:** [August 27, 2019, 4:17pm UTC](https://discourse.processing.org/t/rect-x-y-1-1-vs-point-x-y/13299 "2019-08-27T16:17:16Z")

</div>

Can you guys try this? (try changing the size() on your computers) boolean rectOrPoint; void setup() { size(600, 300); //play with these: make those bigger if you've got a fast modern computer rectOrPoint = false;…

---

## [When using 'point' in processing, I have some issues](https://discourse.processing.org/t/when-using-point-in-processing-i-have-some-issues/13581)

<div class="topic-metadata">

**Author:** [@mstevens1994](https://discourse.processing.org/u/mstevens1994)\
**Replies:** 4\
**Last updated:** [August 25, 2019, 1:19pm UTC](https://discourse.processing.org/t/when-using-point-in-processing-i-have-some-issues/13581 "2019-08-25T13:19:44Z")

</div>

Hi all, I currently have a 3d scanner implemented within the software. However, when I use stroke() with colour mode HSB to set the colour of a single point, it changes all the colours of all of my points. How do I chan…

---

## [Using Processing in another editor (Java)](https://discourse.processing.org/t/using-processing-in-another-editor-java/13617)

<div class="topic-metadata">

**Author:** [@Flash32](https://discourse.processing.org/u/Flash32)\
**Replies:** 5\
**Last updated:** [August 27, 2019, 3:07pm UTC](https://discourse.processing.org/t/using-processing-in-another-editor-java/13617 "2019-08-27T15:07:47Z")

</div>

Hi, First off thank you very much for all the materials associated with processing it has been a great learning tool. Q: I started with p5.js and I could import it into other editors pretty easily(thanks to the coding t…

---

## [Combining fading codes for music video](https://discourse.processing.org/t/combining-fading-codes-for-music-video/11214)

<div class="topic-metadata">

**Author:** [@mellebond](https://discourse.processing.org/u/mellebond)\
**Replies:** 10\
**Last updated:** [August 27, 2019, 11:10am UTC](https://discourse.processing.org/t/combining-fading-codes-for-music-video/11214 "2019-08-27T11:10:46Z")

</div>

Hello! I’m making a music video and… I’ve got two codes, and I want to put them together, but just can’t manage… I want the lines drawn in the first code to fade as they do in the second. (So a white background and t…

---

## [Text partly invisible with P3D renderer](https://discourse.processing.org/t/text-partly-invisible-with-p3d-renderer/13575)

<div class="topic-metadata">

**Author:** [@uli-b](https://discourse.processing.org/u/uli-b)\
**Replies:** 8\
**Last updated:** [August 27, 2019, 8:50am UTC](https://discourse.processing.org/t/text-partly-invisible-with-p3d-renderer/13575 "2019-08-27T08:50:28Z")

</div>

Hi, i have a problem using the P3D renderer. I am drawing some text and icons to a pgraphics object. This worked well using the Java2D renderer. To be able to introduce 3D rotation, I now switched to the P3D renderer. T…

---

## [Bluetooth communications between HC-05 and processing inconsistent?](https://discourse.processing.org/t/bluetooth-communications-between-hc-05-and-processing-inconsistent/13601)

<div class="topic-metadata">

**Author:** [@blorglue](https://discourse.processing.org/u/blorglue)\
**Replies:** 11\
**Last updated:** [August 27, 2019, 8:34am UTC](https://discourse.processing.org/t/bluetooth-communications-between-hc-05-and-processing-inconsistent/13601 "2019-08-27T08:34:58Z")

</div>

Hello everybody, I’m trying to make a motion sensor using a ultrasonic sensor and a HC-05 bluetooth module to send the data, it works perfectly on a wired connection on processing, the String i drew in the window also ch…

---

## [Live update of Threshold filter](https://discourse.processing.org/t/live-update-of-threshold-filter/13635)

<div class="topic-metadata">

**Author:** [@eric](https://discourse.processing.org/u/eric)\
**Replies:** 3\
**Last updated:** [August 27, 2019, 2:37am UTC](https://discourse.processing.org/t/live-update-of-threshold-filter/13635 "2019-08-27T02:37:04Z")

</div>

I’m trying to show a photo and be able to adjust the threshold real time when holding down shift. Here’s kind of what I’ve got: PImage crossSection; float threshold = .85; void setup() { size(1008, 756); crossSect…

---

## [Trying to create a shape/load image in a class and call it in my draw (not working)](https://discourse.processing.org/t/trying-to-create-a-shape-load-image-in-a-class-and-call-it-in-my-draw-not-working/13638)

<div class="topic-metadata">

**Author:** [@bobboibob](https://discourse.processing.org/u/bobboibob)\
**Replies:** 2\
**Last updated:** [August 27, 2019, 1:27am UTC](https://discourse.processing.org/t/trying-to-create-a-shape-load-image-in-a-class-and-call-it-in-my-draw-not-working/13638 "2019-08-27T01:27:07Z")

</div>

Sorry this is a two part question but it is kind of the same question, I taught myself processing so hence I am not sure how to figure this out myself. So, I made a drawBird() function in my bird class and then in my M…

---

## [How to get mouse to click](https://discourse.processing.org/t/how-to-get-mouse-to-click/13633)

<div class="topic-metadata">

**Author:** [@kjiiller](https://discourse.processing.org/u/kjiiller)\
**Replies:** 2\
**Last updated:** [August 26, 2019, 11:35pm UTC](https://discourse.processing.org/t/how-to-get-mouse-to-click/13633 "2019-08-26T23:35:10Z")

</div>

Sorry, I’m pretty new to coding, so I don’t know much. I was wondering if it’s possible to use processing to click your mouse like an auto clicker. From what I’ve seen it’s either impossible or extrememely easy:). Thank-…

---

## [Convert color of an image from rgb to cmyk](https://discourse.processing.org/t/convert-color-of-an-image-from-rgb-to-cmyk/2922)

<div class="topic-metadata">

**Author:** [@bitCrasher](https://discourse.processing.org/u/bitCrasher)\
**Replies:** 9\
**Last updated:** [August 26, 2019, 10:24pm UTC](https://discourse.processing.org/t/convert-color-of-an-image-from-rgb-to-cmyk/2922 "2019-08-26T22:24:42Z")

</div>

hi guys i’m tryng to convert rgb values to cmyk values. i wrote this code, i think that’s right. class Cmyk { PImage img; float\[\]\[\] c, m, y, k, r1, g1, b1; Cmyk(PImage img) { this.img=img; r1 = new floa…

---

## [Spread an image on the channels of the Cmyk](https://discourse.processing.org/t/spread-an-image-on-the-channels-of-the-cmyk/13587)

<div class="topic-metadata">

**Author:** [@Grisha](https://discourse.processing.org/u/Grisha)\
**Replies:** 1\
**Last updated:** [August 26, 2019, 10:15pm UTC](https://discourse.processing.org/t/spread-an-image-on-the-channels-of-the-cmyk/13587 "2019-08-26T22:15:11Z")

</div>

I need to make 4 Pimage variables which will contain only one color of cmyk channel from source image. Could you help me, please?

---

## [Rectangles going to the top left corner](https://discourse.processing.org/t/rectangles-going-to-the-top-left-corner/13630)

<div class="topic-metadata">

**Author:** [@thetinybros](https://discourse.processing.org/u/thetinybros)\
**Replies:** 3\
**Last updated:** [August 26, 2019, 9:56pm UTC](https://discourse.processing.org/t/rectangles-going-to-the-top-left-corner/13630 "2019-08-26T21:56:59Z")

</div>

I’ve been programming with processing for about a year now, and one thing I never found out was why the lines on rectangles go to the top left of the screen instead of to the sides of the rectangle. Anyone else experienc…

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

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