# Processing

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

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

**Page:** 335

---

## [Making a trail with an image](https://discourse.processing.org/t/making-a-trail-with-an-image/6987)

<div class="topic-metadata">

**Author:** [@Jeany](https://discourse.processing.org/u/Jeany)\
**Replies:** 6\
**Last updated:** [December 29, 2018, 10:01pm UTC](https://discourse.processing.org/t/making-a-trail-with-an-image/6987 "2018-12-29T22:01:17Z")

</div>

Hi, I have a question about making a trail (which is goin to be an image of a car trail) in my code. Im working on a project where you can race with a car and I thought it would be a nice idea to leave a trace on the r…

---

## [Help needed: output window small](https://discourse.processing.org/t/help-needed-output-window-small/6992)

<div class="topic-metadata">

**Author:** [@blkpanther](https://discourse.processing.org/u/blkpanther)\
**Replies:** 4\
**Last updated:** [December 29, 2018, 8:33pm UTC](https://discourse.processing.org/t/help-needed-output-window-small/6992 "2018-12-29T20:33:12Z")

</div>

Hi, sometimes no matter how I set the canvas size, after pressing run, the output is a tiny window. Normally it’s a much bigger canvas. What could be the problem and how to tackle it? Thanks so much.

---

## [What is the best way to do 3D Mesh Collision with imported .obj files?](https://discourse.processing.org/t/what-is-the-best-way-to-do-3d-mesh-collision-with-imported-obj-files/6971)

<div class="topic-metadata">

**Author:** [@Ethanp247](https://discourse.processing.org/u/Ethanp247)\
**Replies:** 2\
**Last updated:** [December 29, 2018, 8:17pm UTC](https://discourse.processing.org/t/what-is-the-best-way-to-do-3d-mesh-collision-with-imported-obj-files/6971 "2018-12-29T20:17:22Z")

</div>

Hello! I’m asking this question because I don’t know exactly where to begin. This kind of collision is new to me, and I’m trying to create a system of collision detection for imported .obj PShapes. In short, what is th…

---

## [If Processing is used for prototyping, what languages are commonly used after?](https://discourse.processing.org/t/if-processing-is-used-for-prototyping-what-languages-are-commonly-used-after/6967)

<div class="topic-metadata">

**Author:** [@aaronshenhao](https://discourse.processing.org/u/aaronshenhao)\
**Replies:** 6\
**Last updated:** [December 29, 2018, 7:20pm UTC](https://discourse.processing.org/t/if-processing-is-used-for-prototyping-what-languages-are-commonly-used-after/6967 "2018-12-29T19:20:23Z")

</div>

Hi, I’ve been learning Processing v3 for a few months now for visualising various things. I heard that Processing is a prototyping language, and further performance and benefits can be gained by writing a project in anot…

---

## [Errors in Processing Reference](https://discourse.processing.org/t/errors-in-processing-reference/6875)

<div class="topic-metadata">

**Author:** [@The\_Traveler](https://discourse.processing.org/u/The_Traveler)\
**Replies:** 4\
**Last updated:** [December 29, 2018, 6:44pm UTC](https://discourse.processing.org/t/errors-in-processing-reference/6875 "2018-12-29T18:44:32Z")

</div>

Greetings. I’ve noticed a number of 404 errors in the Processing online reference . As some these errors also exist in the Processing reference included with the downloadable application, I thought I’d bring them to your…

---

## [Application hangs when mouse is moved](https://discourse.processing.org/t/application-hangs-when-mouse-is-moved/6946)

<div class="topic-metadata">

**Author:** [@iampadik](https://discourse.processing.org/u/iampadik)\
**Replies:** 3\
**Last updated:** [December 29, 2018, 2:50pm UTC](https://discourse.processing.org/t/application-hangs-when-mouse-is-moved/6946 "2018-12-29T14:50:50Z")

</div>

Hello people. A novice here.My application hangs as soon as my mouse moves and I have to restart the application. Whereas I don’t have the function mouseMoved in my code anywhere. If I keep the mouse steady , application…

---

## [Nested classes, best approach?](https://discourse.processing.org/t/nested-classes-best-approach/6974)

<div class="topic-metadata">

**Author:** [@Tsskyx](https://discourse.processing.org/u/Tsskyx)\
**Replies:** 2\
**Last updated:** [December 29, 2018, 5:09pm UTC](https://discourse.processing.org/t/nested-classes-best-approach/6974 "2018-12-29T17:09:10Z")

</div>

So, long story short, I’m making a neural network. Basically, I currently have one big 2D irregular array of Neuron objects (say, of the following shape or similar: {784, 32, 32, 10}), and I’ve just got the idea of turni…

---

## [Using PApplet whilst extending classes like PGraphics](https://discourse.processing.org/t/using-papplet-whilst-extending-classes-like-pgraphics/6942)

<div class="topic-metadata">

**Author:** [@Kluivert](https://discourse.processing.org/u/Kluivert)\
**Replies:** 4\
**Last updated:** [December 29, 2018, 4:51pm UTC](https://discourse.processing.org/t/using-papplet-whilst-extending-classes-like-pgraphics/6942 "2018-12-29T16:51:13Z")

</div>

Heya Everyone! I recently attempted to extend the PGraphics class specifically the PGraphicsJAVA2D class and referred to GotoLoop’s Solution But don’t understand the code as well which leaves me with anxiety.

---

## [Drawing multiple 3D box plots](https://discourse.processing.org/t/drawing-multiple-3d-box-plots/7008)

<div class="topic-metadata">

**Author:** [@kikisarp](https://discourse.processing.org/u/kikisarp)\
**Replies:** 9\
**Last updated:** [December 30, 2018, 5:35am UTC](https://discourse.processing.org/t/drawing-multiple-3d-box-plots/7008 "2018-12-30T05:35:07Z")

</div>

Hi, I need to draw a 3D shape, specifically a cube at different locations on a grid and to simulate that, I’m using the randomize function to give me random values for the parameters of “translate()” and also the “box()…

---

## [Problem with reusing a function](https://discourse.processing.org/t/problem-with-reusing-a-function/6966)

<div class="topic-metadata">

**Author:** [@JoseBri93](https://discourse.processing.org/u/JoseBri93)\
**Replies:** 2\
**Last updated:** [December 29, 2018, 4:44am UTC](https://discourse.processing.org/t/problem-with-reusing-a-function/6966 "2018-12-29T04:44:34Z")

</div>

Hi! Based on Daniel Shiffman’s sketch Bouncing Ball, im trying to display a secind ball on the screen unsuccessfully. However both balls appears, they dont move at all. Can someone explain me where i’m making mistakes? t…

---

## [Obtaining position values of a translated, scaled, and rotated imported pShape](https://discourse.processing.org/t/obtaining-position-values-of-a-translated-scaled-and-rotated-imported-pshape/6916)

<div class="topic-metadata">

**Author:** [@Ethanp247](https://discourse.processing.org/u/Ethanp247)\
**Replies:** 5\
**Last updated:** [December 29, 2018, 3:02am UTC](https://discourse.processing.org/t/obtaining-position-values-of-a-translated-scaled-and-rotated-imported-pshape/6916 "2018-12-29T03:02:39Z")

</div>

Hello! This is my first post on this forum, so please let me know if I’m not descriptive enough, etc. When I’m referring to a pShape in this post, I am referring to an imported .obj file. As you know, you can obtain th…

---

## [Prevent Sketch from closing?](https://discourse.processing.org/t/prevent-sketch-from-closing/6934)

<div class="topic-metadata">

**Author:** [@Quillbert1](https://discourse.processing.org/u/Quillbert1)\
**Replies:** 3\
**Last updated:** [December 28, 2018, 7:08pm UTC](https://discourse.processing.org/t/prevent-sketch-from-closing/6934 "2018-12-28T19:08:58Z")

</div>

This is a bit of a weird one, but is there a way to stop a sketch from closing? I have found a way to prevent the escape key from closing the sketch, but is there a way to stop the x and double clicking the menu from clo…

---

## [Some kind of error! Help me pls!](https://discourse.processing.org/t/some-kind-of-error-help-me-pls/6940)

<div class="topic-metadata">

**Author:** [@CheeserMaster](https://discourse.processing.org/u/CheeserMaster)\
**Replies:** 2\
**Last updated:** [December 28, 2018, 8:14am UTC](https://discourse.processing.org/t/some-kind-of-error-help-me-pls/6940 "2018-12-28T08:14:46Z")

</div>

Hi, I don’t know why this happend and i would appreciate if someone can help me. Thats my code: import static javax.swing.JOptionPane.\*; void settings() { size((displayWidth/4)\*2, (displayHeight/3)\*2); } void setup(…

---

## [Make scrolling window with buttons](https://discourse.processing.org/t/make-scrolling-window-with-buttons/6943)

<div class="topic-metadata">

**Author:** [@TobyKim](https://discourse.processing.org/u/TobyKim)\
**Replies:** 1\
**Last updated:** [December 28, 2018, 5:26am UTC](https://discourse.processing.org/t/make-scrolling-window-with-buttons/6943 "2018-12-28T05:26:50Z")

</div>

Hi I’m quite new to Processing I’m just able to make buttons with rect and make it as a toggle to print data to serial it is really hard for me to find the right reference to make my desired system Here’s what I wanna…

---

## [Incorrect points positions](https://discourse.processing.org/t/incorrect-points-positions/6754)

<div class="topic-metadata">

**Author:** [@Darkar25](https://discourse.processing.org/u/Darkar25)\
**Replies:** 16\
**Last updated:** [December 28, 2018, 4:15am UTC](https://discourse.processing.org/t/incorrect-points-positions/6754 "2018-12-28T04:15:17Z")

</div>

i am trying to make Graph,its almost done…last thing i need to fix,is points positions…i completely dont know why they placing like that…any ideas? Graph.pde: ArrayList\<Float\> arr = new ArrayList\<Float\>(); GraphView gr…

---

## [How to translate Mouse to MIDI?](https://discourse.processing.org/t/how-to-translate-mouse-to-midi/6927)

<div class="topic-metadata">

**Author:** [@tootha](https://discourse.processing.org/u/tootha)\
**Replies:** 1\
**Last updated:** [December 28, 2018, 2:24am UTC](https://discourse.processing.org/t/how-to-translate-mouse-to-midi/6927 "2018-12-28T02:24:17Z")

</div>

Hey guys, I am a beginner and try to read out a mouse to translate it into MIDI signals, but I have a few problems. First of all I dont know why the mouse output to the left and right is not the same. It should be equal…

---

## [Making a book cover! Sketch ---\> 300 dpi](https://discourse.processing.org/t/making-a-book-cover-sketch-300-dpi/5894)

<div class="topic-metadata">

**Author:** [@PartyWave](https://discourse.processing.org/u/PartyWave)\
**Replies:** 7\
**Last updated:** [December 27, 2018, 9:23pm UTC](https://discourse.processing.org/t/making-a-book-cover-sketch-300-dpi/5894 "2018-12-27T21:23:54Z")

</div>

Hi! Trying to make a book with my friends. We’d love to get a really high quality cover. Made a couple sketches on Processing. While the animations are great, we will need to capture a frame into an SVG. Know there are …

---

## [Rubix Cube Randomization](https://discourse.processing.org/t/rubix-cube-randomization/6896)

<div class="topic-metadata">

**Author:** [@Baipyrus](https://discourse.processing.org/u/Baipyrus)\
**Replies:** 7\
**Last updated:** [December 27, 2018, 8:31pm UTC](https://discourse.processing.org/t/rubix-cube-randomization/6896 "2018-12-27T20:31:24Z")

</div>

I’ve created this Rubix Cube Test Sketch, and it works totally fine for first. When I started creating a Randomizer Function to randomize all the little Tiles on each side, it went kind of buggy, and I can’t figure out w…

---

## [Check file is finished writing to disk](https://discourse.processing.org/t/check-file-is-finished-writing-to-disk/6932)

<div class="topic-metadata">

**Author:** [@jeffmarc](https://discourse.processing.org/u/jeffmarc)\
**Replies:** 1\
**Last updated:** [December 27, 2018, 6:31pm UTC](https://discourse.processing.org/t/check-file-is-finished-writing-to-disk/6932 "2018-12-27T18:31:07Z")

</div>

I use file.exist() and it says file exists, but it is not finished being written to disk because when i loadImage() i get errors that say the file is not all there. Is there any other way to check when a file is finishe…

---

## [Get intersection point of line and CIE chromaticity curve](https://discourse.processing.org/t/get-intersection-point-of-line-and-cie-chromaticity-curve/6685)

<div class="topic-metadata">

**Author:** [@ProsExplorer](https://discourse.processing.org/u/ProsExplorer)\
**Replies:** 7\
**Last updated:** [December 26, 2018, 11:43pm UTC](https://discourse.processing.org/t/get-intersection-point-of-line-and-cie-chromaticity-curve/6685 "2018-12-26T23:43:08Z")

</div>

First, let me lay out what I’ve done so far and what I’m trying to do with this partially completed program. I’m attempting to convert the RGB pixel values to their corresponding wavelength by: Converting RGB to XYZ \[c…

---

## [Scale size in vertex Shader](https://discourse.processing.org/t/scale-size-in-vertex-shader/6900)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 4\
**Last updated:** [December 26, 2018, 11:08pm UTC](https://discourse.processing.org/t/scale-size-in-vertex-shader/6900 "2018-12-26T23:08:58Z")

</div>

hello! its possible to scale a model into the vertexShader? can i get the data of the size sending via sphere(x) ? #version 150 #define PROCESSING\_COLOR\_SHADER #ifdef GL\_ES precision mediump float; #endif uniform mat…

---

## [Getting pixel data from a PShape](https://discourse.processing.org/t/getting-pixel-data-from-a-pshape/6684)

<div class="topic-metadata">

**Author:** [@Andrewkaram](https://discourse.processing.org/u/Andrewkaram)\
**Replies:** 18\
**Last updated:** [December 26, 2018, 10:41pm UTC](https://discourse.processing.org/t/getting-pixel-data-from-a-pshape/6684 "2018-12-26T22:41:26Z")

</div>

Hello, I’m looking into getting pixel data from a PShape. I have successfully imported a .obj file into processing. However, I am focused on retrieving the pixel data of the object, and eventually, put in into an array.…

---

## [Save multiple Letters](https://discourse.processing.org/t/save-multiple-letters/6857)

<div class="topic-metadata">

**Author:** [@tigger97](https://discourse.processing.org/u/tigger97)\
**Replies:** 2\
**Last updated:** [December 26, 2018, 4:17pm UTC](https://discourse.processing.org/t/save-multiple-letters/6857 "2018-12-26T16:17:15Z")

</div>

Hey I’m new, Our teacher askes us to develope a learning programm for the scrabble game. Basically you get 9 letter from which you can wright a word, that word is then checkedm to see if it is in the Library. I can alr…

---

## [Displaying transparent img](https://discourse.processing.org/t/displaying-transparent-img/6895)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 8\
**Last updated:** [December 26, 2018, 1:16pm UTC](https://discourse.processing.org/t/displaying-transparent-img/6895 "2018-12-26T13:16:12Z")

</div>

Hi! Ive been working on a few games that require non rect images, but i dont have any tool to make transparent images :frowning: i only have default programs of Win10, and i dont want to download some large programs. I…

---

## [Buildin variables doesn't exist?](https://discourse.processing.org/t/buildin-variables-doesnt-exist/6888)

<div class="topic-metadata">

**Author:** [@lisekrull](https://discourse.processing.org/u/lisekrull)\
**Replies:** 1\
**Last updated:** [December 25, 2018, 6:09pm UTC](https://discourse.processing.org/t/buildin-variables-doesnt-exist/6888 "2018-12-25T18:09:52Z")

</div>

I am trying to run my code but it says that variables like ‘size’, ‘background’, ‘mousePressed’, ‘mouseX’ and so on doesn’t exist. Basically all the builtin defined variables. There just comes this red line underneath, a…

---

## [Minimum non zero value of array](https://discourse.processing.org/t/minimum-non-zero-value-of-array/6889)

<div class="topic-metadata">

**Author:** [@fonsinho](https://discourse.processing.org/u/fonsinho)\
**Replies:** 3\
**Last updated:** [December 25, 2018, 6:07pm UTC](https://discourse.processing.org/t/minimum-non-zero-value-of-array/6889 "2018-12-25T18:07:53Z")

</div>

Hi, i create this sketch for working…but i can´t take minimum non zero value Some suggestions? tks //ArrayList\<int \[\]\> yo=new ArrayList\<int \[\]\>(); //Pilo pilo; int\[\] a ={3,56,0,12, 8,7,6,5, 5,6,0,…

---

## [Problem building library in Eclipse](https://discourse.processing.org/t/problem-building-library-in-eclipse/6882)

<div class="topic-metadata">

**Author:** [@quark](https://discourse.processing.org/u/quark)\
**Replies:** 2\
**Last updated:** [December 25, 2018, 10:25am UTC](https://discourse.processing.org/t/problem-building-library-in-eclipse/6882 "2018-12-25T10:25:06Z")

</div>

I am trying to create a new control in G4P that uses the PeasyCam library but I am getting errors when I try and build G4P. Here is part of the code that I am trying to build pcam = new PeasyCam(theApplet, view, (doubl…

---

## [Help!Snake growing algorithm not working](https://discourse.processing.org/t/help-snake-growing-algorithm-not-working/6886)

<div class="topic-metadata">

**Author:** [@M.Abbas.Askari](https://discourse.processing.org/u/M.Abbas.Askari)\
**Replies:** 2\
**Last updated:** [December 25, 2018, 8:32am UTC](https://discourse.processing.org/t/help-snake-growing-algorithm-not-working/6886 "2018-12-25T08:32:07Z")

</div>

Am a beggner & struggling to Code. Just created account to ask a qustion I AM STUCK!!! i think the problem is in the move() function in snake class the snake acts weird when i eat the food /////CODE////// /////main…

---

## [Importing assets when using Processing in another IDE](https://discourse.processing.org/t/importing-assets-when-using-processing-in-another-ide/6874)

<div class="topic-metadata">

**Author:** [@gsaga](https://discourse.processing.org/u/gsaga)\
**Replies:** 4\
**Last updated:** [December 24, 2018, 9:33pm UTC](https://discourse.processing.org/t/importing-assets-when-using-processing-in-another-ide/6874 "2018-12-24T21:33:22Z")

</div>

Hi everyone, I wanted to know where do I need to place the data files ( like ttf, png etc) if I’m using processing with another IDE. I’ve setup gradle as the build system and am using intellij to code.

---

## [Sound and Random Shape Typing](https://discourse.processing.org/t/sound-and-random-shape-typing/6877)

<div class="topic-metadata">

**Author:** [@vale](https://discourse.processing.org/u/vale)\
**Replies:** 3\
**Last updated:** [December 24, 2018, 6:35pm UTC](https://discourse.processing.org/t/sound-and-random-shape-typing/6877 "2018-12-24T18:35:13Z")

</div>

Hi everyone, I am editing an example of the Processing sound library. I would like that each time that a key has pressed an ellipse will be generated in a random position. I am stuck because the circle is generated rand…

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

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