# Latest

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

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

**Page:** 369

---

## [Game Control Plus - Multiple gamepad inputs allowed?](https://discourse.processing.org/t/game-control-plus-multiple-gamepad-inputs-allowed/19520)

<div class="topic-metadata">

**Author:** [@Ella5980](https://discourse.processing.org/u/Ella5980)\
**Replies:** 4\
**Last updated:** [April 8, 2020, 6:48pm UTC](https://discourse.processing.org/t/game-control-plus-multiple-gamepad-inputs-allowed/19520 "2020-04-08T18:48:10Z")

</div>

Hello, I am a student programmer and I am working on a project where I am using Logitech gamepads to control a remotely operated vehicle (ROV). I was playing around with the Game Control Plus as an option to achieve thi…

---

## [Mathematic function](https://discourse.processing.org/t/mathematic-function/19535)

<div class="topic-metadata">

**Author:** [@mcaaaalvo](https://discourse.processing.org/u/mcaaaalvo)\
**Replies:** 16\
**Last updated:** [April 8, 2020, 5:34pm UTC](https://discourse.processing.org/t/mathematic-function/19535 "2020-04-08T17:34:41Z")

</div>

Hello, Does any body how to represent a curve in Processing, I have the equation of the curve but I don’t know how to represent it. If somebody could help me and telling me how to draw it I would thank it a lot

---

## [Get() returns one number in RGB mode?](https://discourse.processing.org/t/get-returns-one-number-in-rgb-mode/19542)

<div class="topic-metadata">

**Author:** [@juanjoc](https://discourse.processing.org/u/juanjoc)\
**Replies:** 2\
**Last updated:** [April 8, 2020, 3:29pm UTC](https://discourse.processing.org/t/get-returns-one-number-in-rgb-mode/19542 "2020-04-08T15:29:44Z")

</div>

Hello everyone. I do not understand why get does not return R, G, B values instead of 1 single signed number. I am trying to get the background color and then create a rect() with the same color (fill(R,G,B)) as the ba…

---

## [How to line between to objects when interacting same distance?](https://discourse.processing.org/t/how-to-line-between-to-objects-when-interacting-same-distance/19518)

<div class="topic-metadata">

**Author:** [@newbietot](https://discourse.processing.org/u/newbietot)\
**Replies:** 6\
**Last updated:** [April 8, 2020, 12:56pm UTC](https://discourse.processing.org/t/how-to-line-between-to-objects-when-interacting-same-distance/19518 "2020-04-08T12:56:52Z")

</div>

---

## [Intersection Two Objects](https://discourse.processing.org/t/intersection-two-objects/19523)

<div class="topic-metadata">

**Author:** [@newbietot](https://discourse.processing.org/u/newbietot)\
**Replies:** 1\
**Last updated:** [April 8, 2020, 1:01pm UTC](https://discourse.processing.org/t/intersection-two-objects/19523 "2020-04-08T13:01:54Z")

</div>

How to create a line between two objects if the Car1 intersect same Yaxis of Car2

---

## [How to remove Null exception Error](https://discourse.processing.org/t/how-to-remove-null-exception-error/19533)

<div class="topic-metadata">

**Author:** [@KGS](https://discourse.processing.org/u/KGS)\
**Replies:** 3\
**Last updated:** [April 8, 2020, 11:18am UTC](https://discourse.processing.org/t/how-to-remove-null-exception-error/19533 "2020-04-08T11:18:21Z")

</div>

I am getting an error while running the code collecting data from 4 Arduino boards. java.lang.NullPointerException at Dual\_IMP\_SPO2.Impedance(Dual\_IMP\_SPO2.java:343) at sun.reflect.GeneratedMethodAccessor6.invoke(Unk…

---

## [How to move an object one pixel at a time up and down the screen and how to change the shape according to aspect ratio](https://discourse.processing.org/t/how-to-move-an-object-one-pixel-at-a-time-up-and-down-the-screen-and-how-to-change-the-shape-according-to-aspect-ratio/19502)

<div class="topic-metadata">

**Author:** [@s6277](https://discourse.processing.org/u/s6277)\
**Replies:** 2\
**Last updated:** [April 8, 2020, 8:42am UTC](https://discourse.processing.org/t/how-to-move-an-object-one-pixel-at-a-time-up-and-down-the-screen-and-how-to-change-the-shape-according-to-aspect-ratio/19502 "2020-04-08T08:42:56Z")

</div>

Hey, i’m new to processing and I’ve tried and researched so much on this but i can’t find a solution. My goal is to basically move a shape up and down one pixel at a time from the left of the screen (without using frame…

---

## [Some problems about millis()](https://discourse.processing.org/t/some-problems-about-millis/19530)

<div class="topic-metadata">

**Author:** [@NKF](https://discourse.processing.org/u/NKF)\
**Replies:** 1\
**Last updated:** [April 8, 2020, 8:36am UTC](https://discourse.processing.org/t/some-problems-about-millis/19530 "2020-04-08T08:36:31Z")

</div>

Why I can’t make a 30-second timer with the below codes? int time; int startTime; void setup() { background(0); size(800, 1000); time = millis(); startTime = 30; } void draw() { fill(250, 255, 8); textS…

---

## [Virus Spread Simulator](https://discourse.processing.org/t/virus-spread-simulator/18952)

<div class="topic-metadata">

**Author:** [@tomjuggler](https://discourse.processing.org/u/tomjuggler)\
**Replies:** 11\
**Last updated:** [April 8, 2020, 7:50am UTC](https://discourse.processing.org/t/virus-spread-simulator/18952 "2020-04-08T07:50:35Z")

</div>

Guys I found, forked and tweaked a virus spread simulator, just trying to deal with self isolation right now. I made this into a tutorial, the simulator is up on my site so you can try it out - using Processing.js but al…

---

## [I encounter some troubles when I do my game design project](https://discourse.processing.org/t/i-encounter-some-troubles-when-i-do-my-game-design-project/19525)

<div class="topic-metadata">

**Author:** [@NKF](https://discourse.processing.org/u/NKF)\
**Replies:** 0\
**Last updated:** [April 8, 2020, 4:26am UTC](https://discourse.processing.org/t/i-encounter-some-troubles-when-i-do-my-game-design-project/19525 "2020-04-08T04:26:50Z")

</div>

I’m new to Processing and I cannot solve the problem below : In my game, why some of the bullets can smash the meteorites, but some of the bullets cannot? The code: PImage mete; PImage bg; PImage spship; PImage bullet…

---

## [Save() "file contains a path separator"](https://discourse.processing.org/t/save-file-contains-a-path-separator/19455)

<div class="topic-metadata">

**Author:** [@JentGent](https://discourse.processing.org/u/JentGent)\
**Replies:** 2\
**Last updated:** [April 8, 2020, 3:53am UTC](https://discourse.processing.org/t/save-file-contains-a-path-separator/19455 "2020-04-08T03:53:40Z")

</div>

I’m trying to save() an image of the screen to data/frames (relative to my sketch file). The code I’m using works in Java mode with no problems (I can see the image saving into the correct folder), but when running it on…

---

## [How to map points onto a shape in P3D mode?](https://discourse.processing.org/t/how-to-map-points-onto-a-shape-in-p3d-mode/19488)

<div class="topic-metadata">

**Author:** [@Samizen](https://discourse.processing.org/u/Samizen)\
**Replies:** 11\
**Last updated:** [April 8, 2020, 2:51am UTC](https://discourse.processing.org/t/how-to-map-points-onto-a-shape-in-p3d-mode/19488 "2020-04-08T02:51:08Z")

</div>

How can I map my coordinates to the box object that I have used in the following sketch. I want to create something like this: I have ended up with the following result: Following are the codes that I’ve written th…

---

## [Bounce Ball Inside A Square](https://discourse.processing.org/t/bounce-ball-inside-a-square/19512)

<div class="topic-metadata">

**Author:** [@mtm](https://discourse.processing.org/u/mtm)\
**Replies:** 0\
**Last updated:** [April 7, 2020, 6:43pm UTC](https://discourse.processing.org/t/bounce-ball-inside-a-square/19512 "2020-04-07T18:43:11Z")

</div>

Hi! I am trying to create a black square instead of the black circle in this code. The point is to have the white little ball inside the square, in movement. And all the others black little circles should move outside t…

---

## [Entering two different outputs inside one variable?](https://discourse.processing.org/t/entering-two-different-outputs-inside-one-variable/17849)

<div class="topic-metadata">

**Author:** [@macedorrn](https://discourse.processing.org/u/macedorrn)\
**Replies:** 7\
**Last updated:** [April 7, 2020, 9:39pm UTC](https://discourse.processing.org/t/entering-two-different-outputs-inside-one-variable/17849 "2020-04-07T21:39:20Z")

</div>

I am working on a program where a circle must be drawn only within the walls(4 rectangles on the borders), I managed to get the circle to be drawn inside two walls(right and top borders), but the other remaining two it s…

---

## [Mouse interaction with 3D objects / objects on 3D plane](https://discourse.processing.org/t/mouse-interaction-with-3d-objects-objects-on-3d-plane/19499)

<div class="topic-metadata">

**Author:** [@Furu](https://discourse.processing.org/u/Furu)\
**Replies:** 5\
**Last updated:** [April 7, 2020, 7:16pm UTC](https://discourse.processing.org/t/mouse-interaction-with-3d-objects-objects-on-3d-plane/19499 "2020-04-07T19:16:52Z")

</div>

Hi, I’m looking for a way to interact (preferably mouseOver) with ellipses here: http://dev.furu.studio/sandbox/p5js/ . I tried using libraries from https://p5js.org/libraries/ but they do not work with 3d. I tried usi…

---

## [Sound playing every hour](https://discourse.processing.org/t/sound-playing-every-hour/19497)

<div class="topic-metadata">

**Author:** [@F\_War](https://discourse.processing.org/u/F_War)\
**Replies:** 4\
**Last updated:** [April 7, 2020, 2:32pm UTC](https://discourse.processing.org/t/sound-playing-every-hour/19497 "2020-04-07T14:32:41Z")

</div>

Hello! I am still very new to this and I am working on a clock. I would like the clock to play a sound every hour. (Like clocks do :wink:) I can load the sound into the file but then I am not sure how to tackle it. D…

---

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

<div class="topic-metadata">

**Author:** [@Velouria](https://discourse.processing.org/u/Velouria)\
**Replies:** 3\
**Last updated:** [April 7, 2020, 1:31pm UTC](https://discourse.processing.org/t/problem-with-delay/19491 "2020-04-07T13:31:51Z")

</div>

Hello, i’m trying to implement this example: https://p5js.org/reference/#/p5.Image/delay in a sketch, but when I run it i get the message “bg1.delay is not a function”. I believe my code is exactly the same as in the ex…

---

## [How can i make this?](https://discourse.processing.org/t/how-can-i-make-this/19464)

<div class="topic-metadata">

**Author:** [@Tauter](https://discourse.processing.org/u/Tauter)\
**Replies:** 2\
**Last updated:** [April 7, 2020, 8:49am UTC](https://discourse.processing.org/t/how-can-i-make-this/19464 "2020-04-07T08:49:05Z")

</div>

Hi! So i have to create a program but i can’t even start. So my program shoud do this: One click, save the point from that point a dynamic line is created from the point to the cursor coordinate, as I move the cursor t…

---

## [My enemy "Script error. (:line 0)"](https://discourse.processing.org/t/my-enemy-script-error-line-0/19372)

<div class="topic-metadata">

**Author:** [@Adelta\_21](https://discourse.processing.org/u/Adelta_21)\
**Replies:** 4\
**Last updated:** [April 7, 2020, 8:21am UTC](https://discourse.processing.org/t/my-enemy-script-error-line-0/19372 "2020-04-07T08:21:36Z")

</div>

Hello girls and guys, Since i started using the P5js web editor to introduce myself to imperative programming in javascript, I’ve often stumbled upon the following problem: p5.js doesn’t give any information whatsoever…

---

## [Use a function from a class to open a 2nd window](https://discourse.processing.org/t/use-a-function-from-a-class-to-open-a-2nd-window/19166)

<div class="topic-metadata">

**Author:** [@SeanW](https://discourse.processing.org/u/SeanW)\
**Replies:** 3\
**Last updated:** [April 7, 2020, 5:19am UTC](https://discourse.processing.org/t/use-a-function-from-a-class-to-open-a-2nd-window/19166 "2020-04-07T05:19:31Z")

</div>

Hello, I am trying to open a 2nd window by using a function from a class (DHTable) i made. I plan on then plotting ellipses or rectangles based on variables in an instance of DHTable. I have seen other code on the forum…

---

## [Texture on primitive object appear inverted?](https://discourse.processing.org/t/texture-on-primitive-object-appear-inverted/19487)

<div class="topic-metadata">

**Author:** [@Samizen](https://discourse.processing.org/u/Samizen)\
**Replies:** 2\
**Last updated:** [April 7, 2020, 2:45am UTC](https://discourse.processing.org/t/texture-on-primitive-object-appear-inverted/19487 "2020-04-07T02:45:24Z")

</div>

I have used a primitive box and textured it, though the texture appears to be inverted. How do I flip it horizontally? I think its got something to do with transformation but it confused me a lot. Here is the code P…

---

## [How do I use FOR LOOP to move multiple ellipses?](https://discourse.processing.org/t/how-do-i-use-for-loop-to-move-multiple-ellipses/19479)

<div class="topic-metadata">

**Author:** [@TheBlazeinPanther](https://discourse.processing.org/u/TheBlazeinPanther)\
**Replies:** 14\
**Last updated:** [April 7, 2020, 1:27am UTC](https://discourse.processing.org/t/how-do-i-use-for-loop-to-move-multiple-ellipses/19479 "2020-04-07T01:27:51Z")

</div>

First time posting on here, so I’m not sure how everything works. But I’m trying to copy the eye I have already made with a for loop. Earlier I tried to do them all individually but the eyes vanished completely. Not all …

---

## [saveStrings()/loadStrings() Causes Gray Screen on Exported Application](https://discourse.processing.org/t/savestrings-loadstrings-causes-gray-screen-on-exported-application/19486)

<div class="topic-metadata">

**Author:** [@ericv](https://discourse.processing.org/u/ericv)\
**Replies:** 0\
**Last updated:** [April 7, 2020, 12:50am UTC](https://discourse.processing.org/t/savestrings-loadstrings-causes-gray-screen-on-exported-application/19486 "2020-04-07T00:50:07Z")

</div>

Hello, I have a sketch that works perfectly in Processing (3.5.4) but when I export it as a stand-alone application, people have been reporting a gray screen. I think I’ve narrowed the problem down to the use of saveStr…

---

## [GUI library, buttons, sliders and knob](https://discourse.processing.org/t/gui-library-buttons-sliders-and-knob/19483)

<div class="topic-metadata">

**Author:** [@dinoelectro](https://discourse.processing.org/u/dinoelectro)\
**Replies:** 0\
**Last updated:** [April 6, 2020, 11:04pm UTC](https://discourse.processing.org/t/gui-library-buttons-sliders-and-knob/19483 "2020-04-06T23:04:34Z")

</div>

Hello, this time I want to contribute with a set of classes that I have programmed using processing. button roundButton toogleButton slider and selector To work with them you must first indicate the position, width, h…

---

## [Referencing p5js online libraries: location?](https://discourse.processing.org/t/referencing-p5js-online-libraries-location/19475)

<div class="topic-metadata">

**Author:** [@Peter\_61](https://discourse.processing.org/u/Peter_61)\
**Replies:** 2\
**Last updated:** [April 6, 2020, 8:31pm UTC](https://discourse.processing.org/t/referencing-p5js-online-libraries-location/19475 "2020-04-06T20:31:20Z")

</div>

I am looking for an online location(s) /address where p5 libraries are maintained or located and can be referenced directly from within the browser without having to download or install the library in my own server. Reg…

---

## [Cannot make a static reference to the non static method draw() in the type myStockProject.draw](https://discourse.processing.org/t/cannot-make-a-static-reference-to-the-non-static-method-draw-in-the-type-mystockproject-draw/19470)

<div class="topic-metadata">

**Author:** [@smep](https://discourse.processing.org/u/smep)\
**Replies:** 5\
**Last updated:** [April 6, 2020, 8:07pm UTC](https://discourse.processing.org/t/cannot-make-a-static-reference-to-the-non-static-method-draw-in-the-type-mystockproject-draw/19470 "2020-04-06T20:07:22Z")

</div>

I’ve been creating a stock market and I am unable to figure a solution to the error in the title. at the point graph.draw in the class myStockProject is where I get the error. I have uploaded that class and the graph cl…

---

## [How to make object curve?](https://discourse.processing.org/t/how-to-make-object-curve/19408)

<div class="topic-metadata">

**Author:** [@Cybernet](https://discourse.processing.org/u/Cybernet)\
**Replies:** 10\
**Last updated:** [April 6, 2020, 2:46pm UTC](https://discourse.processing.org/t/how-to-make-object-curve/19408 "2020-04-06T14:46:47Z")

</div>

So I have this ellipse, and every time the user presses the left or right key, the ellipse will curve to that side. I know I have to use rotate, but I don’t know where I can start. I tried so many ways, but none of them …

---

## [Digital Clock Made from image](https://discourse.processing.org/t/digital-clock-made-from-image/19460)

<div class="topic-metadata">

**Author:** [@F\_War](https://discourse.processing.org/u/F_War)\
**Replies:** 9\
**Last updated:** [April 6, 2020, 2:04pm UTC](https://discourse.processing.org/t/digital-clock-made-from-image/19460 "2020-04-06T14:04:35Z")

</div>

Hi! I am very very new to processing. I did a few classes with the basics but I cannot wrap my head around it. I am trying to make a clock from pictures of numbers that I have taken. I have pictures of 0,1, 2, 3 … 9 a…

---

## [Earth GLSL Shader](https://discourse.processing.org/t/earth-glsl-shader/19452)

<div class="topic-metadata">

**Author:** [@ElementMo](https://discourse.processing.org/u/ElementMo)\
**Replies:** 0\
**Last updated:** [April 6, 2020, 1:20am UTC](https://discourse.processing.org/t/earth-glsl-shader/19452 "2020-04-06T01:20:06Z")

</div>

I wrote a shader for rendering realistic earth with the most basic version of shader. The lighting model is the most basic Phong shading model, the normal map is not that correct, the color of the light source is hard-c…

---

## [Recursive Problem](https://discourse.processing.org/t/recursive-problem/19405)

<div class="topic-metadata">

**Author:** [@JudgeJesse](https://discourse.processing.org/u/JudgeJesse)\
**Replies:** 2\
**Last updated:** [April 6, 2020, 1:16pm UTC](https://discourse.processing.org/t/recursive-problem/19405 "2020-04-06T13:16:08Z")

</div>

Howdy! I’m trying to make a Sudoku Solver and I can’t seem to figure out this bug. I’ve got too many console.logs in here but you should be able see what’s happening. I use a recursive function to try all possible number…

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

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