# Processing

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

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

**Page:** 334

---

## [P3D, transparency, and overlapping objects](https://discourse.processing.org/t/p3d-transparency-and-overlapping-objects/7123)

<div class="topic-metadata">

**Author:** [@ragona](https://discourse.processing.org/u/ragona)\
**Replies:** 2\
**Last updated:** [January 2, 2019, 10:31pm UTC](https://discourse.processing.org/t/p3d-transparency-and-overlapping-objects/7123 "2019-01-02T22:31:59Z")

</div>

Hi all, I want to use Processing for a visualization of a 3D search algorithm. There are 1000 points in 3D space, and I’m rendering them with spheres. So far so good. I now want to place a second, larger sphere around t…

---

## [Is there a way to represent small numbers more precisely than float?](https://discourse.processing.org/t/is-there-a-way-to-represent-small-numbers-more-precisely-than-float/7111)

<div class="topic-metadata">

**Author:** [@Olex](https://discourse.processing.org/u/Olex)\
**Replies:** 3\
**Last updated:** [January 2, 2019, 7:30pm UTC](https://discourse.processing.org/t/is-there-a-way-to-represent-small-numbers-more-precisely-than-float/7111 "2019-01-02T19:30:25Z")

</div>

I need high precision for a project i’m working on and regular floats are not enough. Is there a class or type which has a settable precision?

---

## [Resize PImage: "width or height must be \> 0 for resize"](https://discourse.processing.org/t/resize-pimage-width-or-height-must-be-0-for-resize/7109)

<div class="topic-metadata">

**Author:** [@amaia](https://discourse.processing.org/u/amaia)\
**Replies:** 2\
**Last updated:** [January 2, 2019, 7:02pm UTC](https://discourse.processing.org/t/resize-pimage-width-or-height-must-be-0-for-resize/7109 "2019-01-02T19:02:05Z")

</div>

Hello: I want to scale myImage to fit in the height of the screen FIRST: divide the width and height of the screen by the width and height of myImage. SECOND: multiply the width and height of myImage by one of the …

---

## [Problem in making two balls bounce eachother](https://discourse.processing.org/t/problem-in-making-two-balls-bounce-eachother/7085)

<div class="topic-metadata">

**Author:** [@Hjtunfgb](https://discourse.processing.org/u/Hjtunfgb)\
**Replies:** 1\
**Last updated:** [January 2, 2019, 6:31pm UTC](https://discourse.processing.org/t/problem-in-making-two-balls-bounce-eachother/7085 "2019-01-02T18:31:00Z")

</div>

Hi there! I am trying to make two balls bounce once they hit each other, but for some reason, they are being thrown away insanely fast! My calculations are based on linear momentum conservation and a fixed coefficient of…

---

## [Installation problem](https://discourse.processing.org/t/installation-problem/7087)

<div class="topic-metadata">

**Author:** [@dpistone](https://discourse.processing.org/u/dpistone)\
**Replies:** 2\
**Last updated:** [January 2, 2019, 3:23pm UTC](https://discourse.processing.org/t/installation-problem/7087 "2019-01-02T15:23:33Z")

</div>

I downloaded the zip file and tried to run it, but nothing happened. A “Processing” splash screen flashed for less than a second and then nothing happened. I’m running Windows10, 64bit.

---

## [OpenCV contour get specific point X Y values](https://discourse.processing.org/t/opencv-contour-get-specific-point-x-y-values/7079)

<div class="topic-metadata">

**Author:** [@felloduarte](https://discourse.processing.org/u/felloduarte)\
**Replies:** 2\
**Last updated:** [January 2, 2019, 11:35am UTC](https://discourse.processing.org/t/opencv-contour-get-specific-point-x-y-values/7079 "2019-01-02T11:35:39Z")

</div>

Hi all! i’m a bit of a newbie here i’m working with openCV Library and i’m trying to make a sketch that draw lines between points of a contour. I have no experience working with array lists and pvectors, but basicaly i…

---

## [Processing bug?](https://discourse.processing.org/t/processing-bug/6561)

<div class="topic-metadata">

**Author:** [@quark](https://discourse.processing.org/u/quark)\
**Replies:** 25\
**Last updated:** [January 2, 2019, 9:26am UTC](https://discourse.processing.org/t/processing-bug/6561 "2019-01-02T09:26:40Z")

</div>

NO ACTION REQUIRED It has already been reported as an issue I am not sure whether this is a bug in Processing or not. It runs fine in Eclipse using the Processing core fror v3.4 but has a runtime error in the Processin…

---

## [Hatching a rect() with diagonal lines](https://discourse.processing.org/t/hatching-a-rect-with-diagonal-lines/7068)

<div class="topic-metadata">

**Author:** [@eltrem](https://discourse.processing.org/u/eltrem)\
**Replies:** 5\
**Last updated:** [January 2, 2019, 5:15am UTC](https://discourse.processing.org/t/hatching-a-rect-with-diagonal-lines/7068 "2019-01-02T05:15:21Z")

</div>

Hi all! this is my first post in the forum, and i’m a total noob with processing… please be patient… I want to fill a rect() with diagonal lines. I don’t want to use mask() or PGraphics, because i want to have the fina…

---

## [Hotswap code in a running program](https://discourse.processing.org/t/hotswap-code-in-a-running-program/6744)

<div class="topic-metadata">

**Author:** [@hamoid](https://discourse.processing.org/u/hamoid)\
**Replies:** 2\
**Last updated:** [January 1, 2019, 7:19pm UTC](https://discourse.processing.org/t/hotswap-code-in-a-running-program/6744 "2019-01-01T19:19:59Z")

</div>

Not so long ago I discovered a cool feature that could be useful for more advanced users (those not using the Processing IDE but something like IntelliJ Idea). In Idea, if you Debug your program (instead of Running it),…

---

## [\[SOLVED\] Am I normal? (Shapes and Coordinates)](https://discourse.processing.org/t/solved-am-i-normal-shapes-and-coordinates/7019)

<div class="topic-metadata">

**Author:** [@Sky](https://discourse.processing.org/u/Sky)\
**Replies:** 3\
**Last updated:** [January 1, 2019, 11:41am UTC](https://discourse.processing.org/t/solved-am-i-normal-shapes-and-coordinates/7019 "2019-01-01T11:41:17Z")

</div>

Is it normal to use a graphic calculator to draw shapes? I was wondring if there was something made to draw shapes and knowing theyr vertex coordinates :thinking::thinking::thinking:

---

## [Executing Sketch via Linux Command Line?](https://discourse.processing.org/t/executing-sketch-via-linux-command-line/6839)

<div class="topic-metadata">

**Author:** [@nyquil](https://discourse.processing.org/u/nyquil)\
**Replies:** 7\
**Last updated:** [January 1, 2019, 3:37am UTC](https://discourse.processing.org/t/executing-sketch-via-linux-command-line/6839 "2019-01-01T03:37:58Z")

</div>

Anyone have experience using sketch to bring up what you’ve created via the linux command line? I found this online, but it’s not working for me for some reason. I downloaded the tgz processing file from the officia…

---

## [Help with grid layout and detection](https://discourse.processing.org/t/help-with-grid-layout-and-detection/6862)

<div class="topic-metadata">

**Author:** [@ezpzpt](https://discourse.processing.org/u/ezpzpt)\
**Replies:** 2\
**Last updated:** [January 1, 2019, 3:43am UTC](https://discourse.processing.org/t/help-with-grid-layout-and-detection/6862 "2019-01-01T03:43:30Z")

</div>

New to processing, had a small module of it in a visual computing course. Lets say that I want to define a 4x4 grid, named 1,2,3,etc. and that when mouse hovers it, it prints the name of that cell. I managed to do it m…

---

## [Exporting program doesnt seem to work properly](https://discourse.processing.org/t/exporting-program-doesnt-seem-to-work-properly/7044)

<div class="topic-metadata">

**Author:** [@siccoblue](https://discourse.processing.org/u/siccoblue)\
**Replies:** 1\
**Last updated:** [January 1, 2019, 3:11am UTC](https://discourse.processing.org/t/exporting-program-doesnt-seem-to-work-properly/7044 "2019-01-01T03:11:08Z")

</div>

hey folks, im not really any sort of coder myself, i wont pretend to be, (although im in the early stages of learning js) rather im following a tutorial called adalight, making a backlit monitor that tracks colors on the…

---

## [Hello! My presentation](https://discourse.processing.org/t/hello-my-presentation/7052)

<div class="topic-metadata">

**Author:** [@lemon](https://discourse.processing.org/u/lemon)\
**Replies:** 1\
**Last updated:** [December 31, 2018, 11:14am UTC](https://discourse.processing.org/t/hello-my-presentation/7052 "2018-12-31T11:14:05Z")

</div>

Hi, my name luigi from italy … learn programmation processing for arduino. My english elementary . Old 36 year . Happy new Year 2019.

---

## [How do i create a flight path using i3 processing](https://discourse.processing.org/t/how-do-i-create-a-flight-path-using-i3-processing/6838)

<div class="topic-metadata">

**Author:** [@ArduinoKer](https://discourse.processing.org/u/ArduinoKer)\
**Replies:** 18\
**Last updated:** [December 24, 2018, 10:47pm UTC](https://discourse.processing.org/t/how-do-i-create-a-flight-path-using-i3-processing/6838 "2018-12-24T22:47:07Z")

</div>

Hello everyone, I am trying to use i3 Processing to create a flight path. Currently i am able to use i3 processing for accurate positioning of my device. But after looking through the reference, i saw the " line() " fun…

---

## [Simple Pendulum Project](https://discourse.processing.org/t/simple-pendulum-project/7048)

<div class="topic-metadata">

**Author:** [@oheuysal](https://discourse.processing.org/u/oheuysal)\
**Replies:** 1\
**Last updated:** [December 31, 2018, 8:28am UTC](https://discourse.processing.org/t/simple-pendulum-project/7048 "2018-12-31T08:28:51Z")

</div>

I have a project.This is very important to me.I have similar code to this project but this code is too hard and not understanding to me.I want to very easy code because this project wants to be some calculation and simpl…

---

## [Strange problem with an eclipse project and the Serial library](https://discourse.processing.org/t/strange-problem-with-an-eclipse-project-and-the-serial-library/6982)

<div class="topic-metadata">

**Author:** [@jaeger](https://discourse.processing.org/u/jaeger)\
**Replies:** 2\
**Last updated:** [December 31, 2018, 7:59am UTC](https://discourse.processing.org/t/strange-problem-with-an-eclipse-project-and-the-serial-library/6982 "2018-12-31T07:59:08Z")

</div>

Hi guys, as the title said i have a problem! I made an eclipse project with processing and the Serial library, on my windows 10 laptop everything works well and i have no problem. i tried to run the same project on my w…

---

## [Saving objects from different classes into the same array](https://discourse.processing.org/t/saving-objects-from-different-classes-into-the-same-array/6818)

<div class="topic-metadata">

**Author:** [@MichaelPCgamer](https://discourse.processing.org/u/MichaelPCgamer)\
**Replies:** 8\
**Last updated:** [December 31, 2018, 2:00am UTC](https://discourse.processing.org/t/saving-objects-from-different-classes-into-the-same-array/6818 "2018-12-31T02:00:00Z")

</div>

This is my first post here ever so I’m gonna format it intuitively. I’m attempting to remake a game I already made months ago (using scratch) into processing. Here’s the game in scratch… https://scratch.mit.edu/projec…

---

## [\[SOLVED\] Code not working for a strange reason](https://discourse.processing.org/t/solved-code-not-working-for-a-strange-reason/7030)

<div class="topic-metadata">

**Author:** [@bilo](https://discourse.processing.org/u/bilo)\
**Replies:** 2\
**Last updated:** [December 30, 2018, 11:51pm UTC](https://discourse.processing.org/t/solved-code-not-working-for-a-strange-reason/7030 "2018-12-30T23:51:30Z")

</div>

i have wrote a simple code that supposed to make a ball bounce aroud the screen so what\`s happening is that the if,elseif and else statment are getting followed in the case of the width but not the heigth if someone can…

---

## [There is a delay when i use keypressed() to change value](https://discourse.processing.org/t/there-is-a-delay-when-i-use-keypressed-to-change-value/7028)

<div class="topic-metadata">

**Author:** [@Jani](https://discourse.processing.org/u/Jani)\
**Replies:** 3\
**Last updated:** [December 30, 2018, 11:27pm UTC](https://discourse.processing.org/t/there-is-a-delay-when-i-use-keypressed-to-change-value/7028 "2018-12-30T23:27:09Z")

</div>

Hi all! I am a newbie of processing. I find that the keyPressed() can’t change the value directly until the all codes in draw() are executed for one time. Like my example below,I want to use keyPressed() function to cha…

---

## [Solution to prevent spam for keyReleased()?](https://discourse.processing.org/t/solution-to-prevent-spam-for-keyreleased/6996)

<div class="topic-metadata">

**Author:** [@immortalTech](https://discourse.processing.org/u/immortalTech)\
**Replies:** 2\
**Last updated:** [December 30, 2018, 7:02pm UTC](https://discourse.processing.org/t/solution-to-prevent-spam-for-keyreleased/6996 "2018-12-30T19:02:10Z")

</div>

Hello! So basically I have programmed a breakout game. I made a pause feature going, but it’ll break if it’s spammed (and practically anything will break if spammed, but this pause feature is like a critical component to…

---

## [How to replace "noise" with "music"?](https://discourse.processing.org/t/how-to-replace-noise-with-music/7001)

<div class="topic-metadata">

**Author:** [@aewan](https://discourse.processing.org/u/aewan)\
**Replies:** 2\
**Last updated:** [December 30, 2018, 6:17pm UTC](https://discourse.processing.org/t/how-to-replace-noise-with-music/7001 "2018-12-30T18:17:41Z")

</div>

Hi everyone! I really love sketches like these two: They are based off the noise function in processing, but I would like to try and change them to work off music files. Using Minim to play an audio file, I’ve t…

---

## [I don't know if the result is the right result for a penteract( aka: 5D"cube")](https://discourse.processing.org/t/i-dont-know-if-the-result-is-the-right-result-for-a-penteract-aka-5d-cube/6981)

<div class="topic-metadata">

**Author:** [@ExellentCoin2044](https://discourse.processing.org/u/ExellentCoin2044)\
**Replies:** 3\
**Last updated:** [December 30, 2018, 5:34pm UTC](https://discourse.processing.org/t/i-dont-know-if-the-result-is-the-right-result-for-a-penteract-aka-5d-cube/6981 "2018-12-30T17:34:53Z")

</div>

Hello First, I created a cube in a 2D engine (processing) slightly inspired by Daniel Shiffmann. Then I made I Hypercube also inspired by him. In that video he talks about the fact that you could take further and make a…

---

## [The Game of Life](https://discourse.processing.org/t/the-game-of-life/7007)

<div class="topic-metadata">

**Author:** [@Baipyrus](https://discourse.processing.org/u/Baipyrus)\
**Replies:** 2\
**Last updated:** [December 30, 2018, 2:59pm UTC](https://discourse.processing.org/t/the-game-of-life/7007 "2018-12-30T14:59:07Z")

</div>

To anyone that has watched The Coding Train’s Video about it or just knows the Game of Life, can you take a look at my script in over here and tell me if I did anything wrong? I made it just for fun, and noticed that it …

---

## [Select output of printWriter](https://discourse.processing.org/t/select-output-of-printwriter/7014)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 1\
**Last updated:** [December 30, 2018, 10:54am UTC](https://discourse.processing.org/t/select-output-of-printwriter/7014 "2018-12-30T10:54:57Z")

</div>

hello! how can i save the printWriter object inside a custom folder? wr = createWriter("obj"+ index + "txt"); i want to create a folder inside a sketch and save the files there. Thanks!

---

## [Shuffling vertex order in beginshape() to draw random polygons](https://discourse.processing.org/t/shuffling-vertex-order-in-beginshape-to-draw-random-polygons/6989)

<div class="topic-metadata">

**Author:** [@cftpa](https://discourse.processing.org/u/cftpa)\
**Replies:** 2\
**Last updated:** [December 30, 2018, 10:37am UTC](https://discourse.processing.org/t/shuffling-vertex-order-in-beginshape-to-draw-random-polygons/6989 "2018-12-30T10:37:29Z")

</div>

Hello, this is my first post and I’m fairly new to Processing. I have a series of vertex coordinates and I was wondering if it’s possible to shuffle the order in which they draw the polygon (v0, v1, v2, v3 -\> v3, v1, v…

---

## [P3D on Mac problems](https://discourse.processing.org/t/p3d-on-mac-problems/7005)

<div class="topic-metadata">

**Author:** [@sham](https://discourse.processing.org/u/sham)\
**Replies:** 2\
**Last updated:** [December 30, 2018, 4:03am UTC](https://discourse.processing.org/t/p3d-on-mac-problems/7005 "2018-12-30T04:03:59Z")

</div>

Hi All, Happy Holidays!! I am spending my days trying to create an audio visualizer using Processing with P3D and Minim. I am relatively new to Processing, so if anyone has any previous projects in that area that I coul…

---

## [Objects follow ground with gravity](https://discourse.processing.org/t/objects-follow-ground-with-gravity/7012)

<div class="topic-metadata">

**Author:** [@tommyokie](https://discourse.processing.org/u/tommyokie)\
**Replies:** 3\
**Last updated:** [December 30, 2018, 2:44am UTC](https://discourse.processing.org/t/objects-follow-ground-with-gravity/7012 "2018-12-30T02:44:40Z")

</div>

hey, I’m pretty new with processing so this might be pretty simple How could I have an object, a ball, with location, velocity, and acceleration vectors, be constrained on top of a 2d ground (a slanted line to be simpl…

---

## [Using "get" to save pictures, but they come up in color](https://discourse.processing.org/t/using-get-to-save-pictures-but-they-come-up-in-color/6944)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 8\
**Last updated:** [December 30, 2018, 12:51am UTC](https://discourse.processing.org/t/using-get-to-save-pictures-but-they-come-up-in-color/6944 "2018-12-30T00:51:01Z")

</div>

I wrote this event triggered picture saving sketch. I want to put the pics in the tenser flow later. I have 2 cameras connected in the same time and after I bring the video in, I turn it into grayscale right away with …

---

## [Keep track and save objects variables](https://discourse.processing.org/t/keep-track-and-save-objects-variables/6993)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 1\
**Last updated:** [December 29, 2018, 10:19pm UTC](https://discourse.processing.org/t/keep-track-and-save-objects-variables/6993 "2018-12-29T22:19:12Z")

</div>

Hello! i try to keeping track and save the objects values in a file and next read the changes. If i\`ve only one object a printWriter works fine, becouse i read the changes over time. but with and array of differents obj…

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

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