# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=592

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

**Page:** 593

---

## [Error playing SinOsc objects from an ArrayList](https://discourse.processing.org/t/error-playing-sinosc-objects-from-an-arraylist/2867)

<div class="topic-metadata">

**Author:** [@lanelps](https://discourse.processing.org/u/lanelps)\
**Replies:** 11\
**Last updated:** [August 24, 2018, 12:11am UTC](https://discourse.processing.org/t/error-playing-sinosc-objects-from-an-arraylist/2867 "2018-08-24T00:11:29Z")

</div>

I’m trying to create an ArrayList of SinOsc objects (Which works), but then the usual functions to play and stop sound aren’t recognised? The end goal is to be able to click to create a new object and hit a key to remov…

---

## [Playing a video from a specific start time?](https://discourse.processing.org/t/playing-a-video-from-a-specific-start-time/2894)

<div class="topic-metadata">

**Author:** [@Laurent](https://discourse.processing.org/u/Laurent)\
**Replies:** 1\
**Last updated:** [August 23, 2018, 10:19pm UTC](https://discourse.processing.org/t/playing-a-video-from-a-specific-start-time/2894 "2018-08-23T22:19:44Z")

</div>

Hi everyone. I try to play a video but starting it not at the beginning but after a specific time. The video plays well, but always starts at the beginning. What am I doing wrong? Thanks a lot for your ideas and suggesti…

---

## [Can you help -- mouse over thing gives error Unexpected identifier](https://discourse.processing.org/t/can-you-help-mouse-over-thing-gives-error-unexpected-identifier/2888)

<div class="topic-metadata">

**Author:** [@warrenj](https://discourse.processing.org/u/warrenj)\
**Replies:** 1\
**Last updated:** [August 23, 2018, 6:28pm UTC](https://discourse.processing.org/t/can-you-help-mouse-over-thing-gives-error-unexpected-identifier/2888 "2018-08-23T18:28:06Z")

</div>

Can you help find and fix the Unexpected identifier error … int thingX = 10; int thingY = 20; int thingW = 30; int thingH = 40; void setup() { // noStroke(); } // end setup void draw() { // mouse over ( thing ) …

---

## [Need help in processing function](https://discourse.processing.org/t/need-help-in-processing-function/2875)

<div class="topic-metadata">

**Author:** [@avro](https://discourse.processing.org/u/avro)\
**Replies:** 4\
**Last updated:** [August 23, 2018, 4:36pm UTC](https://discourse.processing.org/t/need-help-in-processing-function/2875 "2018-08-23T16:36:18Z")

</div>

Define a function call BuildTheWall that gets the parameters/inputs (the size of each rectangle width or/and height), x coordinate and y coordinate of the first and the last point. The function should draw the rectangle…

---

## [G4P GTextArea & GLabel object update across windows cause app crash](https://discourse.processing.org/t/g4p-gtextarea-glabel-object-update-across-windows-cause-app-crash/2854)

<div class="topic-metadata">

**Author:** [@ayoung12](https://discourse.processing.org/u/ayoung12)\
**Replies:** 15\
**Last updated:** [August 23, 2018, 4:23pm UTC](https://discourse.processing.org/t/g4p-gtextarea-glabel-object-update-across-windows-cause-app-crash/2854 "2018-08-23T16:23:40Z")

</div>

HI - I have been experiencing random an intermittent lock ups of my application. I am using G4P 4.1.5 on processing 3.3.7 so all upto date. I have worked out that my problem is caused by using multiple windows with a sl…

---

## [Must qualify the allocation with](https://discourse.processing.org/t/must-qualify-the-allocation-with/2828)

<div class="topic-metadata">

**Author:** [@Manatee](https://discourse.processing.org/u/Manatee)\
**Replies:** 29\
**Last updated:** [August 23, 2018, 3:42pm UTC](https://discourse.processing.org/t/must-qualify-the-allocation-with/2828 "2018-08-23T15:42:31Z")

</div>

I google this problem but otehr one sort out! I cannot create a new instance of one of my class, here is the main: Snake snake; A tmp; int frameSpeed = 1;//the frame rate int score = 0; //int bestScore = 0; int attemp…

---

## [Network library data transfer question](https://discourse.processing.org/t/network-library-data-transfer-question/2850)

<div class="topic-metadata">

**Author:** [@creepercrack](https://discourse.processing.org/u/creepercrack)\
**Replies:** 1\
**Last updated:** [August 23, 2018, 6:03am UTC](https://discourse.processing.org/t/network-library-data-transfer-question/2850 "2018-08-23T06:03:26Z")

</div>

I recently started working with the processing network library, and when it comes to data transfer between a server and clients, I don’t see a good way to do it. I managed to transfer data reliable using Strings, but if…

---

## [How do I define an object with curly brackets?](https://discourse.processing.org/t/how-do-i-define-an-object-with-curly-brackets/2872)

<div class="topic-metadata">

**Author:** [@Grimtin10](https://discourse.processing.org/u/Grimtin10)\
**Replies:** 13\
**Last updated:** [August 23, 2018, 5:33am UTC](https://discourse.processing.org/t/how-do-i-define-an-object-with-curly-brackets/2872 "2018-08-23T05:33:07Z")

</div>

I want to define objects in an array like this: {name: "name", temp: 123, ...} How would I do this? -Grim

---

## [Why ellipse doesn't work?](https://discourse.processing.org/t/why-ellipse-doesnt-work/2864)

<div class="topic-metadata">

**Author:** [@rioma7](https://discourse.processing.org/u/rioma7)\
**Replies:** 1\
**Last updated:** [August 22, 2018, 8:42pm UTC](https://discourse.processing.org/t/why-ellipse-doesnt-work/2864 "2018-08-22T20:42:48Z")

</div>

Hello guys, I was playing a bit with processing and I tried to make a program which does a boucing shape. This shape at the beginning is a square and when it touches the right edge it goes back but becoming a circle…buu…

---

## [3D Grid Design Help](https://discourse.processing.org/t/3d-grid-design-help/2862)

<div class="topic-metadata">

**Author:** [@thedurf18](https://discourse.processing.org/u/thedurf18)\
**Replies:** 4\
**Last updated:** [August 22, 2018, 8:40pm UTC](https://discourse.processing.org/t/3d-grid-design-help/2862 "2018-08-22T20:40:02Z")

</div>

Hi, I need help designing a 3D Grid, like the pic below. I have more than half of it done, I just need the third plane. Here’s the code I have so far: int gridSize = 10; float inc = 0.001; int density = 10; float zn…

---

## ["if" statement imbroglio](https://discourse.processing.org/t/if-statement-imbroglio/2722)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 3\
**Last updated:** [August 22, 2018, 8:08pm UTC](https://discourse.processing.org/t/if-statement-imbroglio/2722 "2018-08-22T20:08:34Z")

</div>

Hi all, I’m trying to display noised “waves” on top of each other while avoiding any overlaps. The waves are filled with point lines computed with the lerp() function (interpolation between a noisy line and the next on…

---

## [Switch between 2 sketches with PraxisLive](https://discourse.processing.org/t/switch-between-2-sketches-with-praxislive/2686)

<div class="topic-metadata">

**Author:** [@squirelo](https://discourse.processing.org/u/squirelo)\
**Replies:** 3\
**Last updated:** [August 22, 2018, 5:50pm UTC](https://discourse.processing.org/t/switch-between-2-sketches-with-praxislive/2686 "2018-08-22T17:50:46Z")

</div>

Hi there, and also hi @neilcsmith :slight\_smile: I would like to use Praxis live to easily switch between processing sketches during a live performance (using midi controller) I installed it and tried some stuff, but i…

---

## [Custom classes with many drawing components?](https://discourse.processing.org/t/custom-classes-with-many-drawing-components/2853)

<div class="topic-metadata">

**Author:** [@ehasti21](https://discourse.processing.org/u/ehasti21)\
**Replies:** 2\
**Last updated:** [August 22, 2018, 4:31pm UTC](https://discourse.processing.org/t/custom-classes-with-many-drawing-components/2853 "2018-08-22T16:31:45Z")

</div>

Hello! I’m trying to take a drawing of a cat face i’ve made and put it into custom classes that follow a mouse as it moves. I’m a bit confused as to the differences between the base class and an implemented child class. …

---

## ["Blend" two Shapes in processing](https://discourse.processing.org/t/blend-two-shapes-in-processing/2816)

<div class="topic-metadata">

**Author:** [@kiraw](https://discourse.processing.org/u/kiraw)\
**Replies:** 9\
**Last updated:** [August 22, 2018, 4:26pm UTC](https://discourse.processing.org/t/blend-two-shapes-in-processing/2816 "2018-08-22T16:26:07Z")

</div>

Hey, English isn’t my first language so please be kind. I do by best and hope you understand my problem. :slight\_smile: This is my first processing project and i have completely no idea what i’m doing or have to do… I w…

---

## [Launch the function loadJSON() with a html button](https://discourse.processing.org/t/launch-the-function-loadjson-with-a-html-button/2802)

<div class="topic-metadata">

**Author:** [@mloiz](https://discourse.processing.org/u/mloiz)\
**Replies:** 11\
**Last updated:** [August 22, 2018, 3:26pm UTC](https://discourse.processing.org/t/launch-the-function-loadjson-with-a-html-button/2802 "2018-08-22T15:26:16Z")

</div>

Hello, I would like to launch a loadJSON() function with an html input element. below is my code, it should work but I have this error : NetworkError when attempting to fetch resource … how to resolve it ? \<!DOCTYPE …

---

## [How to test which button is checked of an existing radio buttons family?](https://discourse.processing.org/t/how-to-test-which-button-is-checked-of-an-existing-radio-buttons-family/2849)

<div class="topic-metadata">

**Author:** [@Laurent](https://discourse.processing.org/u/Laurent)\
**Replies:** 2\
**Last updated:** [August 22, 2018, 2:07pm UTC](https://discourse.processing.org/t/how-to-test-which-button-is-checked-of-an-existing-radio-buttons-family/2849 "2018-08-22T14:07:01Z")

</div>

Hi everyone. I’m used to write my own statitc html code into the index.html file of p5.js sketch. So I use the select() function of the DOM library to access html elements such INPUT of type text/passwordor or SELECT htm…

---

## [Exporting processing sketch issue](https://discourse.processing.org/t/exporting-processing-sketch-issue/2842)

<div class="topic-metadata">

**Author:** [@12345](https://discourse.processing.org/u/12345)\
**Replies:** 3\
**Last updated:** [August 22, 2018, 1:29pm UTC](https://discourse.processing.org/t/exporting-processing-sketch-issue/2842 "2018-08-22T13:29:00Z")

</div>

Hi, I’m trying to export my sketch as frame images in order to make a movie. However, when I do, only the background of my sketch comes up. Have I missed something? I’ve used saveFrame in line 73. timport ddf.minim.\*; i…

---

## [mousePressed not working? or something else?](https://discourse.processing.org/t/mousepressed-not-working-or-something-else/2848)

<div class="topic-metadata">

**Author:** [@mdeepak](https://discourse.processing.org/u/mdeepak)\
**Replies:** 2\
**Last updated:** [August 22, 2018, 1:11pm UTC](https://discourse.processing.org/t/mousepressed-not-working-or-something-else/2848 "2018-08-22T13:11:24Z")

</div>

if(!mousePressed){ ellipse(width/2, height/2,100,100); } else { rect(width/2, height/2,100,100); } error: mousePressed is not defined I have referenced to p5.js, p5.sound.js and p5.dom.js in my index.html. What is…

---

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

---

## [\#BackToSchoolwithp5js Twitter Chat](https://discourse.processing.org/t/backtoschoolwithp5js-twitter-chat/2845)

<div class="topic-metadata">

**Author:** [@saberkhan](https://discourse.processing.org/u/saberkhan)\
**Replies:** 0\
**Last updated:** [August 22, 2018, 11:23am UTC](https://discourse.processing.org/t/backtoschoolwithp5js-twitter-chat/2845 "2018-08-22T11:23:08Z")

</div>

Hi, Next Wednesday, August 29 at 8 pm ET / 5 pm PT, I am hosting a Twitter chat with members of the p5.js community to talk about using p5.js in the classroom with @lmccart, @shiffman, @cassie, Luisa Pereira, and Jose O…

---

## [Working with mouseDragged() and other mouse events inside a class](https://discourse.processing.org/t/working-with-mousedragged-and-other-mouse-events-inside-a-class/2829)

<div class="topic-metadata">

**Author:** [@tony](https://discourse.processing.org/u/tony)\
**Replies:** 5\
**Last updated:** [August 22, 2018, 7:38am UTC](https://discourse.processing.org/t/working-with-mousedragged-and-other-mouse-events-inside-a-class/2829 "2018-08-22T07:38:08Z")

</div>

I usually work with the philosophy of “code now, fix later”. However, in my recent work, I’ve been trying to plan out my code ahead of time. So my question right now is, what’s the best way for working with mouseDragged(…

---

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

---

## [How to make a loading icon with an svg file p5.js (Access to Image at '' from origin 'null' has been blocked by CORS policy: Invalid response. Origin 'null' is therefore not allowed access](https://discourse.processing.org/t/how-to-make-a-loading-icon-with-an-svg-file-p5-js-access-to-image-at-from-origin-null-has-been-blocked-by-cors-policy-invalid-response-origin-null-is-therefore-not-allowed-access/2399)

<div class="topic-metadata">

**Author:** [@Pork](https://discourse.processing.org/u/Pork)\
**Replies:** 7\
**Last updated:** [August 21, 2018, 10:09pm UTC](https://discourse.processing.org/t/how-to-make-a-loading-icon-with-an-svg-file-p5-js-access-to-image-at-from-origin-null-has-been-blocked-by-cors-policy-invalid-response-origin-null-is-therefore-not-allowed-access/2399 "2018-08-21T22:09:44Z")

</div>

idk how to load the svg file. When i try i get a “Access to Image at ‘’ from origin ‘null’ has been blocked by CORS policy: Invalid response. Origin ‘null’ is therefore not allowed access.” If svg filetypes aren’t suppo…

---

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

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=591)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=593)
