# Latest

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

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

**Page:** 616

---

## [Applet use in nested classes](https://discourse.processing.org/t/applet-use-in-nested-classes/827)

<div class="topic-metadata">

**Author:** [@ZazoThex](https://discourse.processing.org/u/ZazoThex)\
**Replies:** 3\
**Last updated:** [June 16, 2018, 9:15am UTC](https://discourse.processing.org/t/applet-use-in-nested-classes/827 "2018-06-16T09:15:56Z")

</div>

Hello all. As an exercise in becoming more proficient at Processing, I’ve been trying to make my own GUI instead of using one of the great already-made libraries like CP5. I’ve been doing well enough, but am getting hung…

---

## [Why does my p5js game not work for iPhones?](https://discourse.processing.org/t/why-does-my-p5js-game-not-work-for-iphones/891)

<div class="topic-metadata">

**Author:** [@helloDolly](https://discourse.processing.org/u/helloDolly)\
**Replies:** 8\
**Last updated:** [June 16, 2018, 7:42am UTC](https://discourse.processing.org/t/why-does-my-p5js-game-not-work-for-iphones/891 "2018-06-16T07:42:27Z")

</div>

I made a little game in p5js and can’t figure out why it won’t work for iPhones. For all I know p5js doesn’t work at all with iPhones though so if that’s the case let me know. The game seems to work fine on PC’s and Andr…

---

## [2d arrays not reconised by function](https://discourse.processing.org/t/2d-arrays-not-reconised-by-function/1006)

<div class="topic-metadata">

**Author:** [@ElectroSquid](https://discourse.processing.org/u/ElectroSquid)\
**Replies:** 1\
**Last updated:** [June 16, 2018, 7:22am UTC](https://discourse.processing.org/t/2d-arrays-not-reconised-by-function/1006 "2018-06-16T07:22:34Z")

</div>

i have a function (not complete) thats supposed to asjust 2 variables based on 2 2darrays, in\[\]\[\] and out\[\]\[\], but i get the error msg: the function error() expects parameters like error(float\[\]\[\],float\[\]\[\]) heres the f…

---

## [Processing (image display) via Arduino ultrasonic sensor](https://discourse.processing.org/t/processing-image-display-via-arduino-ultrasonic-sensor/947)

<div class="topic-metadata">

**Author:** [@komats](https://discourse.processing.org/u/komats)\
**Replies:** 2\
**Last updated:** [June 16, 2018, 6:22am UTC](https://discourse.processing.org/t/processing-image-display-via-arduino-ultrasonic-sensor/947 "2018-06-16T06:22:23Z")

</div>

Hi, I am just starting to explore posibilities to make something work in processing via arduino (sensors). On school exhibition I want to make a picture display that shows one image at the time on the wall (with a proje…

---

## [Stroke won't change colour when clicked](https://discourse.processing.org/t/stroke-wont-change-colour-when-clicked/793)

<div class="topic-metadata">

**Author:** [@alessandrajoy](https://discourse.processing.org/u/alessandrajoy)\
**Replies:** 11\
**Last updated:** [June 16, 2018, 4:30am UTC](https://discourse.processing.org/t/stroke-wont-change-colour-when-clicked/793 "2018-06-16T04:30:43Z")

</div>

This is my painting program. It has a frame and colours at the bottom. I want the stroke to change to the colour of the image at the bottom when clicked. But it is not working. any suggestions? here is my code and images…

---

## [Is there any way to communicate with the graphics card?](https://discourse.processing.org/t/is-there-any-way-to-communicate-with-the-graphics-card/791)

<div class="topic-metadata">

**Author:** [@Grimtin10](https://discourse.processing.org/u/Grimtin10)\
**Replies:** 13\
**Last updated:** [June 16, 2018, 4:24am UTC](https://discourse.processing.org/t/is-there-any-way-to-communicate-with-the-graphics-card/791 "2018-06-16T04:24:57Z")

</div>

I want to be able to draw pixels to the screen, or use the shape function, on the graphics card without using OpenGL or DirectX, do I have to write my own library?

---

## [Problem while I learning Arrray](https://discourse.processing.org/t/problem-while-i-learning-arrray/991)

<div class="topic-metadata">

**Author:** [@KangYunJae](https://discourse.processing.org/u/KangYunJae)\
**Replies:** 4\
**Last updated:** [June 16, 2018, 1:50am UTC](https://discourse.processing.org/t/problem-while-i-learning-arrray/991 "2018-06-16T01:50:11Z")

</div>

This Is Working Version of What I learn. float\[\] x = new float\[5\]; void setup() { size(1080,720); noStroke(); } void draw() { background(0); x\[0\] += 0.5; x\[1\] += 0.5; x\[2\] += 0.5; x\[3\] += 0.5; x\[4\] +=…

---

## [Int does not match with processing.data.XML](https://discourse.processing.org/t/int-does-not-match-with-processing-data-xml/983)

<div class="topic-metadata">

**Author:** [@ben\_suddenly](https://discourse.processing.org/u/ben_suddenly)\
**Replies:** 2\
**Last updated:** [June 16, 2018, 1:12am UTC](https://discourse.processing.org/t/int-does-not-match-with-processing-data-xml/983 "2018-06-16T01:12:40Z")

</div>

for some reason i cant get any of the: \<yweather:wind xmlns:yweather=“http://xml.weather.yahoo.com/ns/rss/1.0” chill=“64” direction=“275” speed=“40.23”/\> data into processing the site im pulling from is the same as th…

---

## [Possible to have size smaller than full screen positioned top left?](https://discourse.processing.org/t/possible-to-have-size-smaller-than-full-screen-positioned-top-left/941)

<div class="topic-metadata">

**Author:** [@Grow](https://discourse.processing.org/u/Grow)\
**Replies:** 4\
**Last updated:** [June 15, 2018, 8:58pm UTC](https://discourse.processing.org/t/possible-to-have-size-smaller-than-full-screen-positioned-top-left/941 "2018-06-15T20:58:56Z")

</div>

I have an led pixel matrix that is 180 W x 30 H. It is driven by a sending card from HDMI output from a computer. When the computer hooks up it sees the “pixel matrix” as a 1920 x 1080 screen even though it is only 180…

---

## [Problem with arraylist](https://discourse.processing.org/t/problem-with-arraylist/980)

<div class="topic-metadata">

**Author:** [@ElectroSquid](https://discourse.processing.org/u/ElectroSquid)\
**Replies:** 2\
**Last updated:** [June 15, 2018, 9:09am UTC](https://discourse.processing.org/t/problem-with-arraylist/980 "2018-06-15T09:09:55Z")

</div>

so, i have been attempting to create a neural network in processing, but after i get the error: ArrayIndexOutOfBoundException: Index 0, Size:0, i can not think of any way that this is caused ArrayList\<Float\>generateNode…

---

## [Display data in window from Arduino serial port](https://discourse.processing.org/t/display-data-in-window-from-arduino-serial-port/955)

<div class="topic-metadata">

**Author:** [@albertoG1](https://discourse.processing.org/u/albertoG1)\
**Replies:** 1\
**Last updated:** [June 15, 2018, 7:18am UTC](https://discourse.processing.org/t/display-data-in-window-from-arduino-serial-port/955 "2018-06-15T07:18:00Z")

</div>

Hi, I have a very simple program made with a Nano Arduino and a humidity sensor. The sensor obtains a data per second and shows it in the serial port with two values, the first with values from zero to 1023 of the senso…

---

## [TypeScript: p5/lib/addons/p5.dom not found on request](https://discourse.processing.org/t/typescript-p5-lib-addons-p5-dom-not-found-on-request/765)

<div class="topic-metadata">

**Author:** [@mictadlo](https://discourse.processing.org/u/mictadlo)\
**Replies:** 1\
**Last updated:** [June 14, 2018, 9:50pm UTC](https://discourse.processing.org/t/typescript-p5-lib-addons-p5-dom-not-found-on-request/765 "2018-06-14T21:50:26Z")

</div>

Hi, I rewrote a JS code to TypeScript but I got p5/lib/addons/p5.dom not found on request. This is the code: src/sketch.ts // https://vimeo.com/channels/learningp5js/142698162 import 'p5'; require('p5/lib/addons/p5.d…

---

## [Error trying to add super class objects to subclass arraylist](https://discourse.processing.org/t/error-trying-to-add-super-class-objects-to-subclass-arraylist/964)

<div class="topic-metadata">

**Author:** [@RafeArnold](https://discourse.processing.org/u/RafeArnold)\
**Replies:** 4\
**Last updated:** [June 14, 2018, 7:43pm UTC](https://discourse.processing.org/t/error-trying-to-add-super-class-objects-to-subclass-arraylist/964 "2018-06-14T19:43:05Z")

</div>

I have an ArrayList that stores instances of the subclass (SubClass) of another class (SupClass). I have already defined the classes, SupClass and SubClass (with SubClass extending SupClass) and there is already a SupCla…

---

## [How to overlay an image over another in P3D](https://discourse.processing.org/t/how-to-overlay-an-image-over-another-in-p3d/959)

<div class="topic-metadata">

**Author:** [@rainfox](https://discourse.processing.org/u/rainfox)\
**Replies:** 7\
**Last updated:** [June 14, 2018, 7:17pm UTC](https://discourse.processing.org/t/how-to-overlay-an-image-over-another-in-p3d/959 "2018-06-14T19:17:11Z")

</div>

In processing.js, how would you overlay an image over another one in P3D mode? Here is my code: /\* @pjs preload="duck.jpg"; \*/ /\* @pjs preload="a.png"; \*/ PImage imageDuck; PImage imageA; void…

---

## [Does Processing Understand Scientific Notation?](https://discourse.processing.org/t/does-processing-understand-scientific-notation/969)

<div class="topic-metadata">

**Author:** [@xxxlaf](https://discourse.processing.org/u/xxxlaf)\
**Replies:** 2\
**Last updated:** [June 14, 2018, 7:08pm UTC](https://discourse.processing.org/t/does-processing-understand-scientific-notation/969 "2018-06-14T19:08:44Z")

</div>

Does processing know that when I type 6.673e-11 as a float it should come out 0.00000000006673 ? Thanks.

---

## [Troubles making a model of solarsail](https://discourse.processing.org/t/troubles-making-a-model-of-solarsail/950)

<div class="topic-metadata">

**Author:** [@MAXimum\_effort](https://discourse.processing.org/u/MAXimum_effort)\
**Replies:** 2\
**Last updated:** [June 14, 2018, 3:25pm UTC](https://discourse.processing.org/t/troubles-making-a-model-of-solarsail/950 "2018-06-14T15:25:13Z")

</div>

I am currently working on a model to visualize/calculate the flight path of a solar sail (a type of spacecraft). But I have troubles with making the orbit of the spacecraft dependent on physics calculations. Whenever I …

---

## [Drawing "Windows style" screen](https://discourse.processing.org/t/drawing-windows-style-screen/918)

<div class="topic-metadata">

**Author:** [@F6EEQ](https://discourse.processing.org/u/F6EEQ)\
**Replies:** 2\
**Last updated:** [June 14, 2018, 8:55am UTC](https://discourse.processing.org/t/drawing-windows-style-screen/918 "2018-06-14T08:55:11Z")

</div>

Hi all, To implement a measuring system, I wish to drive an ARDUINO and get back some ADC measurement. I know the basic stuff (how to send a command with a click of the mouse and the like …) but I would like to know if…

---

## [For some reason some math results in 0](https://discourse.processing.org/t/for-some-reason-some-math-results-in-0/949)

<div class="topic-metadata">

**Author:** [@Grimtin10](https://discourse.processing.org/u/Grimtin10)\
**Replies:** 3\
**Last updated:** [June 14, 2018, 8:17am UTC](https://discourse.processing.org/t/for-some-reason-some-math-results-in-0/949 "2018-06-14T08:17:29Z")

</div>

So I am trying to calculate pi (don’t ask), I have a variable, P, which when two random numbers don’t share a common factor, it goes up. Then I divide by the amount of times I do that. The problem is, when doing somethin…

---

## [curveVertex not working correctly](https://discourse.processing.org/t/curvevertex-not-working-correctly/788)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 9\
**Last updated:** [June 14, 2018, 1:23am UTC](https://discourse.processing.org/t/curvevertex-not-working-correctly/788 "2018-06-14T01:23:25Z")

</div>

Hi, Today I’ve been trying to make a simpler version of this music player by Misaki Nakano. Out of the different options available, one has caught my eyes: the cubic (or Catmull-Rom spline) interpolation mode. \[ima…

---

## [Using a part of the computer screen for computer vision](https://discourse.processing.org/t/using-a-part-of-the-computer-screen-for-computer-vision/902)

<div class="topic-metadata">

**Author:** [@jan-jelle](https://discourse.processing.org/u/jan-jelle)\
**Replies:** 2\
**Last updated:** [June 14, 2018, 12:01am UTC](https://discourse.processing.org/t/using-a-part-of-the-computer-screen-for-computer-vision/902 "2018-06-14T00:01:25Z")

</div>

Hello everybody, I am trying to manipulate a video input with data from a software program that is running on the PC itself. basically, i try to implement information from the PC screen into the live video screen. howev…

---

## [Minim, Song starts in the middle?](https://discourse.processing.org/t/minim-song-starts-in-the-middle/928)

<div class="topic-metadata">

**Author:** [@Seraphinit](https://discourse.processing.org/u/Seraphinit)\
**Replies:** 0\
**Last updated:** [June 13, 2018, 7:52pm UTC](https://discourse.processing.org/t/minim-song-starts-in-the-middle/928 "2018-06-13T19:52:16Z")

</div>

Hey there, I’m trying to make a simple music player with a selfdrawn animation in the background. Animation and everything works fine, but the song keeps starting in the middle of it? Is there a limit to the lenght of…

---

## [Need help changing background with mouse!](https://discourse.processing.org/t/need-help-changing-background-with-mouse/904)

<div class="topic-metadata">

**Author:** [@QuazArxx](https://discourse.processing.org/u/QuazArxx)\
**Replies:** 8\
**Last updated:** [June 13, 2018, 1:32pm UTC](https://discourse.processing.org/t/need-help-changing-background-with-mouse/904 "2018-06-13T13:32:14Z")

</div>

i understand coding it is as simple as background(mouseX) or anything in those variations. My concern is getting the top left corner in a 250x250 window to be background(255) and the bottom right corner to be background(…

---

## [Serial port error with ARDUINO](https://discourse.processing.org/t/serial-port-error-with-arduino/871)

<div class="topic-metadata">

**Author:** [@F6EEQ](https://discourse.processing.org/u/F6EEQ)\
**Replies:** 6\
**Last updated:** [June 13, 2018, 1:17pm UTC](https://discourse.processing.org/t/serial-port-error-with-arduino/871 "2018-06-13T13:17:54Z")

</div>

First hello to all, I’m brand new to this community! So forgive me if my questions are basic. I tried to find answer with a search, but did not find. As a first attempt, I wish to link an ARDUINO and Processing, using…

---

## [Crashing a lot after updates](https://discourse.processing.org/t/crashing-a-lot-after-updates/702)

<div class="topic-metadata">

**Author:** [@barryalen1992](https://discourse.processing.org/u/barryalen1992)\
**Replies:** 4\
**Last updated:** [June 13, 2018, 11:19am UTC](https://discourse.processing.org/t/crashing-a-lot-after-updates/702 "2018-06-13T11:19:14Z")

</div>

After recent Windows 10 updates all of my coding crashes instantly when I opened them. What is happening with those updates. Does anyone suffer the same problem? Help me please!

---

## [How to scale text and image to responsive canvas?](https://discourse.processing.org/t/how-to-scale-text-and-image-to-responsive-canvas/909)

<div class="topic-metadata">

**Author:** [@LoCamillo](https://discourse.processing.org/u/LoCamillo)\
**Replies:** 1\
**Last updated:** [June 13, 2018, 10:45am UTC](https://discourse.processing.org/t/how-to-scale-text-and-image-to-responsive-canvas/909 "2018-06-13T10:45:35Z")

</div>

Hi! I’m trying to do a big project, but I’m stuck in a part of it. The canvas I’m working on is responsive, but the text and image aren’t. Here’s a simple code that make what i’m needing. function setup(){ createCanva…

---

## [NullPointedException](https://discourse.processing.org/t/nullpointedexception/911)

<div class="topic-metadata">

**Author:** [@inesacsaraiva](https://discourse.processing.org/u/inesacsaraiva)\
**Replies:** 3\
**Last updated:** [June 13, 2018, 1:10am UTC](https://discourse.processing.org/t/nullpointedexception/911 "2018-06-13T01:10:00Z")

</div>

When I run the program it says NullPointedException… could someone help me see what’s wrong? Sorry if it’s a bit disorganised… import processing.video.\*; Capture video; PImage prev; ArrayList\<Circle\> circles; ArrayList\<…

---

## [Indexed color mode?](https://discourse.processing.org/t/indexed-color-mode/879)

<div class="topic-metadata">

**Author:** [@DSW](https://discourse.processing.org/u/DSW)\
**Replies:** 2\
**Last updated:** [June 12, 2018, 2:34pm UTC](https://discourse.processing.org/t/indexed-color-mode/879 "2018-06-12T14:34:08Z")

</div>

I’m currently writing a visualizer for a live band (MIDI in \> pixels out). Because it’s going to be running alongside audio software, I’m trying to keep it as small and efficient as possible. I’m currently drawing each f…

---

## [LiquidFun setting properties such as colorMixingStrength](https://discourse.processing.org/t/liquidfun-setting-properties-such-as-colormixingstrength/783)

<div class="topic-metadata">

**Author:** [@ReinoudvanLaar](https://discourse.processing.org/u/ReinoudvanLaar)\
**Replies:** 3\
**Last updated:** [June 12, 2018, 11:25am UTC](https://discourse.processing.org/t/liquidfun-setting-properties-such-as-colormixingstrength/783 "2018-06-12T11:25:36Z")

</div>

Hi there, I’m using the LiquidFun library by Thomas Diewald and am running against a brickwall trying to set the colorMixingStrength so the colours mix more slowly. At this stage Im trying to get any of the sketches in t…

---

## [Drawing Heart,problem with class](https://discourse.processing.org/t/drawing-heart-problem-with-class/890)

<div class="topic-metadata">

**Author:** [@AbuYazid](https://discourse.processing.org/u/AbuYazid)\
**Replies:** 2\
**Last updated:** [June 12, 2018, 10:06am UTC](https://discourse.processing.org/t/drawing-heart-problem-with-class/890 "2018-06-12T10:06:38Z")

</div>

Hi all coders out there, i have drawn a heart shape using points and it is working , for drawing multiple hearts i have made a object “heart” with a constructor of passing 3 variable (size,x position and y position ) and…

---

## [Http authentication](https://discourse.processing.org/t/http-authentication/828)

<div class="topic-metadata">

**Author:** [@stanleyseow](https://discourse.processing.org/u/stanleyseow)\
**Replies:** 4\
**Last updated:** [June 12, 2018, 9:25am UTC](https://discourse.processing.org/t/http-authentication/828 "2018-06-12T09:25:12Z")

</div>

I tried to use the httpDo() with the following code for basic authentication but it is not working, can someone advise on this ? I got a “Failed to load resource: the server responded with a status of 401 (Unauthorized)…

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

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