# Latest

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

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

**Page:** 594

---

## [API Key in header?](https://discourse.processing.org/t/api-key-in-header/2817)

<div class="topic-metadata">

**Author:** [@LWoodall](https://discourse.processing.org/u/LWoodall)\
**Replies:** 3\
**Last updated:** [August 21, 2018, 2:01pm UTC](https://discourse.processing.org/t/api-key-in-header/2817 "2018-08-21T14:01:19Z")

</div>

Hi I’ve been following tutorials for using p5.js to access data through APIs. So far i’ve been getting along fine with the tutorials (Coding Train) but now i’m looking at the Bungie API test (http://destinydevs.github.i…

---

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

---

## [\[SOLVED\] Accessing html elements defined into .html file?](https://discourse.processing.org/t/solved-accessing-html-elements-defined-into-html-file/2701)

<div class="topic-metadata">

**Author:** [@Laurent](https://discourse.processing.org/u/Laurent)\
**Replies:** 2\
**Last updated:** [August 21, 2018, 8:56am UTC](https://discourse.processing.org/t/solved-accessing-html-elements-defined-into-html-file/2701 "2018-08-21T08:56:51Z")

</div>

Hi everyone, Is there a way to access already existing HTML element defined in the .html page of a p5.js project? For instance, I’d like to be able to read the text value of an HTML input element. I know that the p5.dom…

---

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

---

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

<div class="topic-metadata">

**Author:** [@KemyKo](https://discourse.processing.org/u/KemyKo)\
**Replies:** 0\
**Last updated:** [August 20, 2018, 7:33pm UTC](https://discourse.processing.org/t/android-writing-files-over-shared-lan-folder/2801 "2018-08-20T19:33:58Z")

</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.0.94…

---

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

---

## [Retrieve online JSON data](https://discourse.processing.org/t/retrieve-online-json-data/2784)

<div class="topic-metadata">

**Author:** [@mloiz](https://discourse.processing.org/u/mloiz)\
**Replies:** 3\
**Last updated:** [August 20, 2018, 3:37pm UTC](https://discourse.processing.org/t/retrieve-online-json-data/2784 "2018-08-20T15:37:07Z")

</div>

Hello, I would like to retrieve some online JSON data, and I dont manage. first, I cannont print the row data ; then, what are the equivalents of getJSONObject and getJSONArray from Processing ? Indeed I have to go a…

---

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

---

## [Whistling the Gravitational waves](https://discourse.processing.org/t/whistling-the-gravitational-waves/2641)

<div class="topic-metadata">

**Author:** [@Sasha](https://discourse.processing.org/u/Sasha)\
**Replies:** 3\
**Last updated:** [August 20, 2018, 5:51am UTC](https://discourse.processing.org/t/whistling-the-gravitational-waves/2641 "2018-08-20T05:51:39Z")

</div>

I used p5js to create a web-app for whistling the gravitational waves, and thought that I will share it here to get some feedback. Short introduction: Recently LIGO collaboration for the first time in human history reg…

---

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

---

## [Metal - Gary Numan Cover](https://discourse.processing.org/t/metal-gary-numan-cover/2775)

<div class="topic-metadata">

**Author:** [@sensn](https://discourse.processing.org/u/sensn)\
**Replies:** 2\
**Last updated:** [August 19, 2018, 5:27pm UTC](https://discourse.processing.org/t/metal-gary-numan-cover/2775 "2018-08-19T17:27:03Z")

</div>

Music Video done in Processing. Song produced with Processing for android. Midi to Fluid Synth. Enjoy.

---

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

---

## [\[SOLVED\] \[p5.dom\] Problem loading video](https://discourse.processing.org/t/solved-p5-dom-problem-loading-video/2734)

<div class="topic-metadata">

**Author:** [@Laurent](https://discourse.processing.org/u/Laurent)\
**Replies:** 3\
**Last updated:** [August 18, 2018, 3:36pm UTC](https://discourse.processing.org/t/solved-p5-dom-problem-loading-video/2734 "2018-08-18T15:36:09Z")

</div>

Hi everyone. I don’t know what I’m doing wrong when loading a video (in order to display it just after loading). Here is my .js and .html code: js.code function preload() { vid = createVideo('videos/20th\_Century\_St…

---

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

---

## [Transparent texture for plane in Webgl..?](https://discourse.processing.org/t/transparent-texture-for-plane-in-webgl/2748)

<div class="topic-metadata">

**Author:** [@bennyt](https://discourse.processing.org/u/bennyt)\
**Replies:** 1\
**Last updated:** [August 18, 2018, 12:42pm UTC](https://discourse.processing.org/t/transparent-texture-for-plane-in-webgl/2748 "2018-08-18T12:42:58Z")

</div>

I’m trying to apply a transparent png texture to a plane, but it’s not happening. There is no transparency… Does any one know what can be done?

---

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

---

## [Can't find p5.js Editor](https://discourse.processing.org/t/cant-find-p5-js-editor/2730)

<div class="topic-metadata">

**Author:** [@stopyunn](https://discourse.processing.org/u/stopyunn)\
**Replies:** 4\
**Last updated:** [August 18, 2018, 12:53am UTC](https://discourse.processing.org/t/cant-find-p5-js-editor/2730 "2018-08-18T00:53:20Z")

</div>

Hey, I just started to take a course on ‘Nature of Code’, and this course required a download of p5.js editor. But for some reasons, I can’t find the p5.js editor in the ‘download’. Here: https://p5js.org/download/ Di…

---

## [Line inside for() wont go behind image](https://discourse.processing.org/t/line-inside-for-wont-go-behind-image/2736)

<div class="topic-metadata">

**Author:** [@leo](https://discourse.processing.org/u/leo)\
**Replies:** 5\
**Last updated:** [August 17, 2018, 10:29pm UTC](https://discourse.processing.org/t/line-inside-for-wont-go-behind-image/2736 "2018-08-17T22:29:17Z")

</div>

Hello everyone,can someone help me with this codepen? I can’t get the lines to go behind the big central circle, even putting the center image before the for(). var canvas; var width = window.innerWidth; var height = wi…

---

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

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

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