# Processing

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

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

**Page:** 222

---

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

<div class="topic-metadata">

**Author:** [@NKF](https://discourse.processing.org/u/NKF)\
**Replies:** 4\
**Last updated:** [April 9, 2020, 6:13am UTC](https://discourse.processing.org/t/some-questions-about-millis/19541 "2020-04-09T06:13:31Z")

</div>

I know millis() is the number of milliseconds since starting the program, but how can I reset millis() to 0 in order to re-counting the time?

---

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

---

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

---

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

---

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

---

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

---

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

---

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

---

## [Processing Images and Video for An Impressionist Effect via PixelFlow](https://discourse.processing.org/t/processing-images-and-video-for-an-impressionist-effect-via-pixelflow/19292)

<div class="topic-metadata">

**Author:** [@Morais](https://discourse.processing.org/u/Morais)\
**Replies:** 6\
**Last updated:** [April 6, 2020, 1:04pm UTC](https://discourse.processing.org/t/processing-images-and-video-for-an-impressionist-effect-via-pixelflow/19292 "2020-04-06T13:04:21Z")

</div>

Hello everybody, I am not a English native and also I am new on Processing. I am trying to find some help to learn how to change the parameters of the stroke line (thickness, brushlike form, orientation of the line. et…

---

## [Poincaré disk and hyperbolic geometry library](https://discourse.processing.org/t/poincare-disk-and-hyperbolic-geometry-library/19282)

<div class="topic-metadata">

**Author:** [@jeykech](https://discourse.processing.org/u/jeykech)\
**Replies:** 2\
**Last updated:** [April 6, 2020, 12:26pm UTC](https://discourse.processing.org/t/poincare-disk-and-hyperbolic-geometry-library/19282 "2020-04-06T12:26:06Z")

</div>

Hi guys, by any chance, is there any library to help me implement a Poincaré disk or a hyperbolic geometry transformation. I am looking to transform an euclidean geometry to it’s equivalent in hyperbolic geometry, a pa…

---

## [Does PGraphics.image() modify colors at the borders?](https://discourse.processing.org/t/does-pgraphics-image-modify-colors-at-the-borders/18177)

<div class="topic-metadata">

**Author:** [@LoliProcessor](https://discourse.processing.org/u/LoliProcessor)\
**Replies:** 7\
**Last updated:** [April 6, 2020, 11:17am UTC](https://discourse.processing.org/t/does-pgraphics-image-modify-colors-at-the-borders/18177 "2020-04-06T11:17:08Z")

</div>

This is the source image . Init is drawn onto a red surface with some alpha, but the image itself is drawn at 255 alpha (using image method), and i checked the source image, the bottom, top and right border do not hav…

---

## [Difference between a TIFF file and Processing's TIFF file](https://discourse.processing.org/t/difference-between-a-tiff-file-and-processings-tiff-file/19239)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 10\
**Last updated:** [April 6, 2020, 7:07am UTC](https://discourse.processing.org/t/difference-between-a-tiff-file-and-processings-tiff-file/19239 "2020-04-06T07:07:17Z")

</div>

What are the differences between a tiff file and one of Processing’s tiff files? I ask because I need to load tiff files into a sketch. I can do this with one of Processing’s tiff files but not with other tiff files. I …

---

## [Jump method is getting stuck](https://discourse.processing.org/t/jump-method-is-getting-stuck/11995)

<div class="topic-metadata">

**Author:** [@MCPepsh](https://discourse.processing.org/u/MCPepsh)\
**Replies:** 2\
**Last updated:** [March 18, 2020, 12:41pm UTC](https://discourse.processing.org/t/jump-method-is-getting-stuck/11995 "2020-03-18T12:41:39Z")

</div>

I want to process a video frame by frame, but the jump(float where) method is either just taking ages or stuck in some kind of infinite loop or something like that. I used the Frames.pde example and just tweaked it a lit…

---

## [Inability to save alpha channel](https://discourse.processing.org/t/inability-to-save-alpha-channel/19448)

<div class="topic-metadata">

**Author:** [@Odermonicon](https://discourse.processing.org/u/Odermonicon)\
**Replies:** 1\
**Last updated:** [April 6, 2020, 6:11am UTC](https://discourse.processing.org/t/inability-to-save-alpha-channel/19448 "2020-04-06T06:11:22Z")

</div>

I’m feeding it this image: And the code gives back complete black. PImage IMG; void setup() { background(128); size(500, 500); IMG = loadImage("test.png"); colorMode(HSB, 255); IMG.loadPixels(); for (int …

---

## [Difficulty trying to maintain lighting on a wall](https://discourse.processing.org/t/difficulty-trying-to-maintain-lighting-on-a-wall/19253)

<div class="topic-metadata">

**Author:** [@fchavat](https://discourse.processing.org/u/fchavat)\
**Replies:** 2\
**Last updated:** [April 5, 2020, 10:00pm UTC](https://discourse.processing.org/t/difficulty-trying-to-maintain-lighting-on-a-wall/19253 "2020-04-05T22:00:00Z")

</div>

Hello!, I’m trying to simulate a moving wall and I have a ‘pointLight’ lighting from the position of the camera (approximately). The problem I’m having is that when the wall moves, the lighting starts to get darker (ev…

---

## [Difficulty having two balls bounce against eachother without clipping](https://discourse.processing.org/t/difficulty-having-two-balls-bounce-against-eachother-without-clipping/19445)

<div class="topic-metadata">

**Author:** [@worm888](https://discourse.processing.org/u/worm888)\
**Replies:** 1\
**Last updated:** [April 5, 2020, 9:17pm UTC](https://discourse.processing.org/t/difficulty-having-two-balls-bounce-against-eachother-without-clipping/19445 "2020-04-05T21:17:43Z")

</div>

planangle = new PVector(location.x-plan.location.x, location.y-plan.location.y); // if (-90\<velocity.heading() && velocity.heading()\<90) { // planangle.rotate(PI); //} if (dist(location.x, location.y, plan.location.x, pl…

---

## [How do you turn an ellipse into a button and when clicked it would show the data on the same screen?](https://discourse.processing.org/t/how-do-you-turn-an-ellipse-into-a-button-and-when-clicked-it-would-show-the-data-on-the-same-screen/19366)

<div class="topic-metadata">

**Author:** [@Stage1](https://discourse.processing.org/u/Stage1)\
**Replies:** 13\
**Last updated:** [April 5, 2020, 8:49pm UTC](https://discourse.processing.org/t/how-do-you-turn-an-ellipse-into-a-button-and-when-clicked-it-would-show-the-data-on-the-same-screen/19366 "2020-04-05T20:49:49Z")

</div>

Hello, im trying to figure out how i can turn my ellipse shapes to show some form of data but first it would need to be turned into a button. For example when you click the shape it should show the text next to it on the…

---

## [Building application that uses image files](https://discourse.processing.org/t/building-application-that-uses-image-files/19444)

<div class="topic-metadata">

**Author:** [@Nino](https://discourse.processing.org/u/Nino)\
**Replies:** 2\
**Last updated:** [April 5, 2020, 8:29pm UTC](https://discourse.processing.org/t/building-application-that-uses-image-files/19444 "2020-04-05T20:29:50Z")

</div>

So I’m making a small game that uses images located in the folder of the processing files. In the editor it runs without any issues. however when i build it for Windows the aplication starts but is blank. Nothing is show…

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

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