# Processing

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

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

**Page:** 372

---

## [Needing help with a design](https://discourse.processing.org/t/needing-help-with-a-design/2839)

<div class="topic-metadata">

**Author:** [@thedurf18](https://discourse.processing.org/u/thedurf18)\
**Replies:** 3\
**Last updated:** [August 22, 2018, 12:06pm UTC](https://discourse.processing.org/t/needing-help-with-a-design/2839 "2018-08-22T12:06:50Z")

</div>

Hi, I’m trying to create a 3D grid, like the pic below: But I’d also like to add circles onto each axis: X, Y, Z. I’d appreciate any help. I have more than half of it done. Here’s the code I have so far: int gridSi…

---

## [Quick Question on line graphs](https://discourse.processing.org/t/quick-question-on-line-graphs/2786)

<div class="topic-metadata">

**Author:** [@Groot](https://discourse.processing.org/u/Groot)\
**Replies:** 4\
**Last updated:** [August 22, 2018, 6:20am UTC](https://discourse.processing.org/t/quick-question-on-line-graphs/2786 "2018-08-22T06:20:41Z")

</div>

From a previous i found the below (thanks again to TFguy44: how would you have multiple of these lines running at the same time on the same page? Thanks. int x = 0; float py = 0; void setup(){ size(600,200); bac…

---

## [Change the array items color one by one](https://discourse.processing.org/t/change-the-array-items-color-one-by-one/2832)

<div class="topic-metadata">

**Author:** [@tefa](https://discourse.processing.org/u/tefa)\
**Replies:** 8\
**Last updated:** [August 22, 2018, 5:50am UTC](https://discourse.processing.org/t/change-the-array-items-color-one-by-one/2832 "2018-08-22T05:50:48Z")

</div>

Hello processors! this is my first question here (two questions), I hope to get quick answers. I made an array of 4 ellipses and I want to change their color one by one to red, each time I mousePressed accordingly in or…

---

## [Shape touching shape](https://discourse.processing.org/t/shape-touching-shape/2818)

<div class="topic-metadata">

**Author:** [@FurryNightShade](https://discourse.processing.org/u/FurryNightShade)\
**Replies:** 3\
**Last updated:** [August 22, 2018, 4:45am UTC](https://discourse.processing.org/t/shape-touching-shape/2818 "2018-08-22T04:45:34Z")

</div>

Hello, as I am writing Dubtank 2, I came across a problem. I want to detect whether a tank touches another tank. I know or I can calculate the exact position of all points and detecting crossing straight line segments …

---

## [Coding a P2P sharing app](https://discourse.processing.org/t/coding-a-p2p-sharing-app/2821)

<div class="topic-metadata">

**Author:** [@kaotiklabs](https://discourse.processing.org/u/kaotiklabs)\
**Replies:** 4\
**Last updated:** [August 21, 2018, 10:26pm UTC](https://discourse.processing.org/t/coding-a-p2p-sharing-app/2821 "2018-08-21T22:26:51Z")

</div>

Hi guys, I’m trying to buid a p2p app for sharing files over an intranet. I’m a teacher and I want a quick way to deploy files over my classroom. I have think about a drag and drop admin interface which will deploy fi…

---

## [Class Method and Private Method](https://discourse.processing.org/t/class-method-and-private-method/2798)

<div class="topic-metadata">

**Author:** [@Manatee](https://discourse.processing.org/u/Manatee)\
**Replies:** 16\
**Last updated:** [August 21, 2018, 9:12pm UTC](https://discourse.processing.org/t/class-method-and-private-method/2798 "2018-08-21T21:12:57Z")

</div>

Hi everybody, Im trying to use some class method that I create but it is not work cause of the error: The method “method\_name” cannot be declared static; static methods can only be declared in a static or top level type. …

---

## [Processing 3 borders](https://discourse.processing.org/t/processing-3-borders/2823)

<div class="topic-metadata">

**Author:** [@MTech](https://discourse.processing.org/u/MTech)\
**Replies:** 3\
**Last updated:** [August 21, 2018, 8:29pm UTC](https://discourse.processing.org/t/processing-3-borders/2823 "2018-08-21T20:29:41Z")

</div>

Hello, I’ve been trying to write a fairly simple overlay-timer using processing 3. I managed to remove the bar’s around the application, but for some reason there is a grey surface which i can’t seem to get rid of. Thi…

---

## [Processing java path finder](https://discourse.processing.org/t/processing-java-path-finder/2769)

<div class="topic-metadata">

**Author:** [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Replies:** 14\
**Last updated:** [August 21, 2018, 4:58pm UTC](https://discourse.processing.org/t/processing-java-path-finder/2769 "2018-08-21T16:58:19Z")

</div>

ok, I was looking at several tutorials for writing a path finder most where in the wrong language. After failing at that I decided to check if processing has a path finder library which it does but I can’t find a tutoria…

---

## [2d movement with 3d camera work](https://discourse.processing.org/t/2d-movement-with-3d-camera-work/1967)

<div class="topic-metadata">

**Author:** [@relix](https://discourse.processing.org/u/relix)\
**Replies:** 12\
**Last updated:** [August 21, 2018, 3:10pm UTC](https://discourse.processing.org/t/2d-movement-with-3d-camera-work/1967 "2018-08-21T15:10:49Z")

</div>

first thing, here is my code: https://pastebin.com/W6cQaZWw i tried my best to include comments to describe each part of it what I’m stuck at is making the player move across the floor. The camera needs to be followin…

---

## [Writing Files over shared LAN folder](https://discourse.processing.org/t/writing-files-over-shared-lan-folder/2814)

<div class="topic-metadata">

**Author:** [@KemyKo](https://discourse.processing.org/u/KemyKo)\
**Replies:** 1\
**Last updated:** [August 21, 2018, 2:17pm UTC](https://discourse.processing.org/t/writing-files-over-shared-lan-folder/2814 "2018-08-21T14:17:54Z")

</div>

The title says everything. I want to create and read files from my phone to my pc. I created a folder in Documents/TestFolder Right Click -\> Properties -\> Share -\> Everyone(Read+Write). I am left with this: //192.168.…

---

## [Should functions go before or after setup() and draw()?](https://discourse.processing.org/t/should-functions-go-before-or-after-setup-and-draw/2793)

<div class="topic-metadata">

**Author:** [@TheWizardBear](https://discourse.processing.org/u/TheWizardBear)\
**Replies:** 7\
**Last updated:** [August 21, 2018, 7:25am UTC](https://discourse.processing.org/t/should-functions-go-before-or-after-setup-and-draw/2793 "2018-08-21T07:25:10Z")

</div>

I know that it doesn’t make any difference as to how the program is run, but is it good practice to put functions you have declared before or after setup() and draw(), or is it just personal preference? Does it make a…

---

## [Losing points when zooming?!](https://discourse.processing.org/t/losing-points-when-zooming/2806)

<div class="topic-metadata">

**Author:** [@aarontownsend](https://discourse.processing.org/u/aarontownsend)\
**Replies:** 2\
**Last updated:** [August 21, 2018, 2:24am UTC](https://discourse.processing.org/t/losing-points-when-zooming/2806 "2018-08-21T02:24:18Z")

</div>

Hi - new here be gentle! So I’ve just started out on Processing. I have ~10000 GPS positions (airports etc) which I wanted to covert to points and display it in a 3D Vector. All works well. However, when I Zoom in and…

---

## [Question about add Bias after moltiplication](https://discourse.processing.org/t/question-about-add-bias-after-moltiplication/2808)

<div class="topic-metadata">

**Author:** [@Manatee](https://discourse.processing.org/u/Manatee)\
**Replies:** 1\
**Last updated:** [August 20, 2018, 11:08pm UTC](https://discourse.processing.org/t/question-about-add-bias-after-moltiplication/2808 "2018-08-20T23:08:15Z")

</div>

I saw this (https://www.youtube.com/watch?v=MPmLWsHzPlU) video where the teacher explain how to build a god network after trying by myself Im stuck with this problem. He said to add the bias after moltiplication between…

---

## [Cutting 3D Figures](https://discourse.processing.org/t/cutting-3d-figures/2795)

<div class="topic-metadata">

**Author:** [@qlvr](https://discourse.processing.org/u/qlvr)\
**Replies:** 2\
**Last updated:** [August 20, 2018, 5:13pm UTC](https://discourse.processing.org/t/cutting-3d-figures/2795 "2018-08-20T17:13:00Z")

</div>

Hi! I’m new to Processing, so my can question can sound silly, but I want to know how to cut 3D figures. For example, I have a sphere and I want to cut it to make half-sphere or to draw something like craters on its surf…

---

## [GLSL rendering technics](https://discourse.processing.org/t/glsl-rendering-technics/2708)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 5\
**Last updated:** [August 20, 2018, 8:16am UTC](https://discourse.processing.org/t/glsl-rendering-technics/2708 "2018-08-20T08:16:30Z")

</div>

hello everybody! im in a long and beutiful road of learning shaders. right now, im using a lot the render to texture technic, passing a buffer as a texture to a shader and render that to another texture… etc. im using P…

---

## [How can i ask and save the mac address in a String?](https://discourse.processing.org/t/how-can-i-ask-and-save-the-mac-address-in-a-string/2782)

<div class="topic-metadata">

**Author:** [@Andress](https://discourse.processing.org/u/Andress)\
**Replies:** 3\
**Last updated:** [August 20, 2018, 1:27am UTC](https://discourse.processing.org/t/how-can-i-ask-and-save-the-mac-address-in-a-string/2782 "2018-08-20T01:27:35Z")

</div>

what library do i need ? what is the command ?. Thank you all !

---

## [3d shape with different texture (easy way)?](https://discourse.processing.org/t/3d-shape-with-different-texture-easy-way/2764)

<div class="topic-metadata">

**Author:** [@Laurent](https://discourse.processing.org/u/Laurent)\
**Replies:** 3\
**Last updated:** [August 20, 2018, 12:28am UTC](https://discourse.processing.org/t/3d-shape-with-different-texture-easy-way/2764 "2018-08-20T00:28:43Z")

</div>

Hi everyone! Certainly a basic question but… is it possibe to add different textures to a 3d basic shape (for instance a cube)? Using p5.js (and not webgl ou three.js). And if possible without creating a set of different…

---

## [Make rotated images horizontaly oriented and canvas responsiveness](https://discourse.processing.org/t/make-rotated-images-horizontaly-oriented-and-canvas-responsiveness/2781)

<div class="topic-metadata">

**Author:** [@leo](https://discourse.processing.org/u/leo)\
**Replies:** 2\
**Last updated:** [August 19, 2018, 11:49pm UTC](https://discourse.processing.org/t/make-rotated-images-horizontaly-oriented-and-canvas-responsiveness/2781 "2018-08-19T23:49:21Z")

</div>

Can someone help me with this code pen? I am trying to find a way to keep the images oriented horizontaly and not this radial situation. Also i am having issues making the elements inside this canvas responsive to fit …

---

## [How to access each item from the loop via return function](https://discourse.processing.org/t/how-to-access-each-item-from-the-loop-via-return-function/2765)

<div class="topic-metadata">

**Author:** [@Olygamy](https://discourse.processing.org/u/Olygamy)\
**Replies:** 3\
**Last updated:** [August 19, 2018, 7:46pm UTC](https://discourse.processing.org/t/how-to-access-each-item-from-the-loop-via-return-function/2765 "2018-08-19T19:46:31Z")

</div>

Hello there, Another return function question. I have a for loop of distances between a set of xai and xbi positions in the class. I need to be able to access each distance individually. I wrote the function below which…

---

## [Game of life issue](https://discourse.processing.org/t/game-of-life-issue/2777)

<div class="topic-metadata">

**Author:** [@bertin](https://discourse.processing.org/u/bertin)\
**Replies:** 5\
**Last updated:** [August 19, 2018, 7:28pm UTC](https://discourse.processing.org/t/game-of-life-issue/2777 "2018-08-19T19:28:06Z")

</div>

Hi everyone! I was trying to implement the Game of Life using Processing but my code is not working as it’s supposed to be. I’ve already looked up on the internet and it seems to me that my implementation looks very clos…

---

## [Can't get hex bytes from file](https://discourse.processing.org/t/cant-get-hex-bytes-from-file/2752)

<div class="topic-metadata">

**Author:** [@Odermonicon](https://discourse.processing.org/u/Odermonicon)\
**Replies:** 2\
**Last updated:** [August 19, 2018, 2:54pm UTC](https://discourse.processing.org/t/cant-get-hex-bytes-from-file/2752 "2018-08-19T14:54:04Z")

</div>

I am trying to make a 6502 disassembler and found out that saveBytes() and loadBytes() do not save and load hex bytes, I tried to extract a text file containing the letter “a” expecting to get “61” but got “\[B@1c0f834d”,…

---

## [Upload random Shape](https://discourse.processing.org/t/upload-random-shape/2751)

<div class="topic-metadata">

**Author:** [@vale](https://discourse.processing.org/u/vale)\
**Replies:** 2\
**Last updated:** [August 19, 2018, 9:18am UTC](https://discourse.processing.org/t/upload-random-shape/2751 "2018-08-19T09:18:22Z")

</div>

Hi everyone, I am trying to upload randomly svg files with this method: The pictures are picked to form 3 different groups it should be displayed 3 images at time. \[i did an example to be sure\] That’s what I have d…

---

## [Urgent help using Keystone Library](https://discourse.processing.org/t/urgent-help-using-keystone-library/2758)

<div class="topic-metadata">

**Author:** [@Upow](https://discourse.processing.org/u/Upow)\
**Replies:** 6\
**Last updated:** [August 18, 2018, 8:19pm UTC](https://discourse.processing.org/t/urgent-help-using-keystone-library/2758 "2018-08-18T20:19:38Z")

</div>

Hello, I’m trying to implement the Keystone library into a sketch I am using to do visuals at a show tonight. The sketch is somewhat complex, and involves control with monome hardware, but I think I can boil down the es…

---

## [Need help on a final project](https://discourse.processing.org/t/need-help-on-a-final-project/2756)

<div class="topic-metadata">

**Author:** [@magic\_moose](https://discourse.processing.org/u/magic_moose)\
**Replies:** 3\
**Last updated:** [August 18, 2018, 4:08pm UTC](https://discourse.processing.org/t/need-help-on-a-final-project/2756 "2018-08-18T16:08:29Z")

</div>

Hello, I am currently doing a final for one of my beginner classes and we are doing custom classes. My project is to have fish swimming around and when your mouse comes into screen, there is a hook following the mouse an…

---

## [Slope of Perlin Noise](https://discourse.processing.org/t/slope-of-perlin-noise/2745)

<div class="topic-metadata">

**Author:** [@aradarbel10](https://discourse.processing.org/u/aradarbel10)\
**Replies:** 7\
**Last updated:** [August 18, 2018, 1:24pm UTC](https://discourse.processing.org/t/slope-of-perlin-noise/2745 "2018-08-18T13:24:15Z")

</div>

Hello, I am generating 1D noise using the noise() function, and I need to draw a line perpendicular to the perlin noise in the x position of the mouse. I tried calculating the slope of 2 points near each other, but the…

---

## [Detect if sound is playing something in another application](https://discourse.processing.org/t/detect-if-sound-is-playing-something-in-another-application/2696)

<div class="topic-metadata">

**Author:** [@Birb](https://discourse.processing.org/u/Birb)\
**Replies:** 2\
**Last updated:** [August 17, 2018, 9:23am UTC](https://discourse.processing.org/t/detect-if-sound-is-playing-something-in-another-application/2696 "2018-08-17T09:23:34Z")

</div>

I want to detect when sound is being played on the computer a processing sketch is running on. Example: Audio playback starts in browser, processing sketch executes action - for example a keyboard shortcut to pause a l…

---

## [How to get processing java sketch onto a webpage?](https://discourse.processing.org/t/how-to-get-processing-java-sketch-onto-a-webpage/2738)

<div class="topic-metadata">

**Author:** [@12345](https://discourse.processing.org/u/12345)\
**Replies:** 4\
**Last updated:** [August 18, 2018, 1:16am UTC](https://discourse.processing.org/t/how-to-get-processing-java-sketch-onto-a-webpage/2738 "2018-08-18T01:16:39Z")

</div>

Hi everyone, I don’t know if this is possible but does anyone know how to transfer a processing sketch coded with java to your website domain? I have a website on Wix I’d like to display the sketch on. This is my code i…

---

## [Rotating array of circles around a circle](https://discourse.processing.org/t/rotating-array-of-circles-around-a-circle/2676)

<div class="topic-metadata">

**Author:** [@leo](https://discourse.processing.org/u/leo)\
**Replies:** 8\
**Last updated:** [August 17, 2018, 9:28pm UTC](https://discourse.processing.org/t/rotating-array-of-circles-around-a-circle/2676 "2018-08-17T21:28:27Z")

</div>

var canvas; var width = window.innerWidth; var height = window.innerHeight; var circles = \[\]; var lines = \[\]; var xoff = 0; var angle = 0; class Circles{ constructor(x, y, rad, color){ this.x = x; this.y = y; t…

---

## [Need help scrambling an image](https://discourse.processing.org/t/need-help-scrambling-an-image/2667)

<div class="topic-metadata">

**Author:** [@yxzageo](https://discourse.processing.org/u/yxzageo)\
**Replies:** 8\
**Last updated:** [August 17, 2018, 7:22pm UTC](https://discourse.processing.org/t/need-help-scrambling-an-image/2667 "2018-08-17T19:22:09Z")

</div>

Hello, I posed a question about a code snippet a few days ago and got a quick and understandable answer. I have this piece of code that I’m trying to figure out what it does and how to reverse the action. Unfortunately I…

---

## [\[SOLVED\] I'm failing at drawing multiple quads in a loop](https://discourse.processing.org/t/solved-im-failing-at-drawing-multiple-quads-in-a-loop/2700)

<div class="topic-metadata">

**Author:** [@delsey](https://discourse.processing.org/u/delsey)\
**Replies:** 7\
**Last updated:** [August 17, 2018, 3:53pm UTC](https://discourse.processing.org/t/solved-im-failing-at-drawing-multiple-quads-in-a-loop/2700 "2018-08-17T15:53:15Z")

</div>

I am trying to draw multiple quads in a for-loop. It looks like this: for(int i = 0; i \< o.getAllObjects().length; i++) { float\[\] objects = o.getAllObjects(); println(objects\[i\]); fill(255); noStroke(); quad(o…

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

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