# Latest

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

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

**Page:** 562

---

## [How to access all variables of a single class?](https://discourse.processing.org/t/how-to-access-all-variables-of-a-single-class/5409)

<div class="topic-metadata">

**Author:** [@Architector\_4](https://discourse.processing.org/u/Architector_4)\
**Replies:** 5\
**Last updated:** [November 11, 2018, 11:14am UTC](https://discourse.processing.org/t/how-to-access-all-variables-of-a-single-class/5409 "2018-11-11T11:14:56Z")

</div>

Say, for example, I have this class: class thing{ float x; float y; String z; String w; boolean omega; int foo; thing(){} //A meh constructor, I know. .\_. } And I want to repeat a specific set of code on …

---

## [Trouble rotating an array of objects](https://discourse.processing.org/t/trouble-rotating-an-array-of-objects/5423)

<div class="topic-metadata">

**Author:** [@Speedofox](https://discourse.processing.org/u/Speedofox)\
**Replies:** 2\
**Last updated:** [November 11, 2018, 9:57am UTC](https://discourse.processing.org/t/trouble-rotating-an-array-of-objects/5423 "2018-11-11T09:57:01Z")

</div>

I have created an array of objects using a class call Triangle. How can I translate each of these objects so that they all spin independently on their own axis? So far I have gotten them all to rotate correctly but the a…

---

## [Add grid (function) to global namespace](https://discourse.processing.org/t/add-grid-function-to-global-namespace/5425)

<div class="topic-metadata">

**Author:** [@nick3499](https://discourse.processing.org/u/nick3499)\
**Replies:** 0\
**Last updated:** [November 11, 2018, 7:00am UTC](https://discourse.processing.org/t/add-grid-function-to-global-namespace/5425 "2018-11-11T07:00:30Z")

</div>

Add grid function to p5.js sketch: setup = () =\> { createCanvas(800, 200) background(249, 202, 6) } draw = () =\> { grid(30, 10, 20) // cols, rows, grid size } // x = num of cols; y = num of rows; s = grid size g…

---

## [Problem with audio in a long video mp4 file](https://discourse.processing.org/t/problem-with-audio-in-a-long-video-mp4-file/5421)

<div class="topic-metadata">

**Author:** [@Treedom](https://discourse.processing.org/u/Treedom)\
**Replies:** 0\
**Last updated:** [November 11, 2018, 4:37am UTC](https://discourse.processing.org/t/problem-with-audio-in-a-long-video-mp4-file/5421 "2018-11-11T04:37:50Z")

</div>

The code below works with normally shorter MP4 files, however when I attempt to use the code for a very long MP4 of about 12 hours in length, the video plays without any problems however the audio does not play. I am new…

---

## [Is there a way to have an image on top of animation?](https://discourse.processing.org/t/is-there-a-way-to-have-an-image-on-top-of-animation/5419)

<div class="topic-metadata">

**Author:** [@josie](https://discourse.processing.org/u/josie)\
**Replies:** 5\
**Last updated:** [November 11, 2018, 4:38am UTC](https://discourse.processing.org/t/is-there-a-way-to-have-an-image-on-top-of-animation/5419 "2018-11-11T04:38:55Z")

</div>

Hi, I’m very new to processing, so I’m sorry if I make many mistakes! I have to use processing for a project and I was able to get this down: Lines\[\] lines = new Lines\[100\]; void setup(){ size(800,800); for(int i = …

---

## [Working with SVG files](https://discourse.processing.org/t/working-with-svg-files/5377)

<div class="topic-metadata">

**Author:** [@juju11](https://discourse.processing.org/u/juju11)\
**Replies:** 12\
**Last updated:** [November 11, 2018, 12:40am UTC](https://discourse.processing.org/t/working-with-svg-files/5377 "2018-11-11T00:40:17Z")

</div>

hi! I’m trying to use an SVG file to display a vector cat picture, but the image won’t appear? even when using a local host from node js ( which is tiresome to manually refresh it when I change the code). What do you gu…

---

## [Processing's windows overlap Windows's toolbar - avoidable?](https://discourse.processing.org/t/processings-windows-overlap-windowss-toolbar-avoidable/5180)

<div class="topic-metadata">

**Author:** [@dtmr](https://discourse.processing.org/u/dtmr)\
**Replies:** 3\
**Last updated:** [November 10, 2018, 7:34pm UTC](https://discourse.processing.org/t/processings-windows-overlap-windowss-toolbar-avoidable/5180 "2018-11-10T19:34:51Z")

</div>

How to avoid overlapping of windows created by Processing with Windows 8 toolbar? App sets window size with size() Makes window resizable with surface.setResizable(true) Monitors Processing’s width/height variables and…

---

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

<div class="topic-metadata">

**Author:** [@alk5603](https://discourse.processing.org/u/alk5603)\
**Replies:** 6\
**Last updated:** [November 10, 2018, 9:39pm UTC](https://discourse.processing.org/t/how-can-i-play-this/5286 "2018-11-10T21:39:06Z")

</div>

How can I play this?

---

## [ProcessingML (an OCaml implementation of Processing)](https://discourse.processing.org/t/processingml-an-ocaml-implementation-of-processing/5413)

<div class="topic-metadata">

**Author:** [@Vertmo](https://discourse.processing.org/u/Vertmo)\
**Replies:** 0\
**Last updated:** [November 10, 2018, 9:30pm UTC](https://discourse.processing.org/t/processingml-an-ocaml-implementation-of-processing/5413 "2018-11-10T21:30:20Z")

</div>

Hi ! I’ve been working on my own implementation of Processing, ProcessingML. It is based on the OCaml programming language, which is a (mostly) functional and statically typed programming language. My implementation is…

---

## [Applying specific colors to a p5.Geometry](https://discourse.processing.org/t/applying-specific-colors-to-a-p5-geometry/5228)

<div class="topic-metadata">

**Author:** [@philippe](https://discourse.processing.org/u/philippe)\
**Replies:** 0\
**Last updated:** [November 5, 2018, 2:51pm UTC](https://discourse.processing.org/t/applying-specific-colors-to-a-p5-geometry/5228 "2018-11-05T14:51:51Z")

</div>

I have made a sphere using new p5.Geometry() geometry = new p5.Geometry(definition, definition, ellipsoid); geometry.computeFaces().\_makeTriangleEdges().\_edgesToVertices(); renderer.createBuffers(gId, geometry); rendere…

---

## [Can I create text tools?](https://discourse.processing.org/t/can-i-create-text-tools/5404)

<div class="topic-metadata">

**Author:** [@seo](https://discourse.processing.org/u/seo)\
**Replies:** 5\
**Last updated:** [November 10, 2018, 6:28pm UTC](https://discourse.processing.org/t/can-i-create-text-tools/5404 "2018-11-10T18:28:57Z")

</div>

Here is a text tool for MS Paint. Can you do something like this in processing?

---

## [Get Processing to provide Sources and Javadocs (As Jars) for it's libraries](https://discourse.processing.org/t/get-processing-to-provide-sources-and-javadocs-as-jars-for-its-libraries/5408)

<div class="topic-metadata">

**Author:** [@Angle](https://discourse.processing.org/u/Angle)\
**Replies:** 0\
**Last updated:** [November 10, 2018, 6:16pm UTC](https://discourse.processing.org/t/get-processing-to-provide-sources-and-javadocs-as-jars-for-its-libraries/5408 "2018-11-10T18:16:15Z")

</div>

I’m using processing libraries in Eclipse. They work, but there are no javadocs or sources to attach. Is there a way to get the processing app to provide these? I use it, but just to download libraries and view examples. …

---

## [Learning GLSL - Example](https://discourse.processing.org/t/learning-glsl-example/5407)

<div class="topic-metadata">

**Author:** [@vjjv](https://discourse.processing.org/u/vjjv)\
**Replies:** 0\
**Last updated:** [November 10, 2018, 5:01pm UTC](https://discourse.processing.org/t/learning-glsl-example/5407 "2018-11-10T17:01:47Z")

</div>

Hi everybody! im learning GLSL, and i want to learn how can i port this example from shaderToy to processing. What i want is that feedback effect, i not intersting in geometry. So, i made a simple sketch with a sphere. A…

---

## [Learn about matrices](https://discourse.processing.org/t/learn-about-matrices/5405)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 2\
**Last updated:** [November 10, 2018, 5:32pm UTC](https://discourse.processing.org/t/learn-about-matrices/5405 "2018-11-10T17:32:05Z")

</div>

Is there anyone that has some resources that he/she considers good when it comes to learn about matrices? I feel like I should have learned about them a long time ago but a lot of tutorials are really dry and don’t go f…

---

## [Loading created image into array(list) for further use (movement)](https://discourse.processing.org/t/loading-created-image-into-array-list-for-further-use-movement/5362)

<div class="topic-metadata">

**Author:** [@LordCacops](https://discourse.processing.org/u/LordCacops)\
**Replies:** 4\
**Last updated:** [November 10, 2018, 5:22pm UTC](https://discourse.processing.org/t/loading-created-image-into-array-list-for-further-use-movement/5362 "2018-11-10T17:22:51Z")

</div>

Howdy! This is my first post. I created this program that generates grids with colored squares. The colors are randomized. Each is a new object that I create with mousePressed(). When they are created they are get place…

---

## [Building a custom rangeslider-component](https://discourse.processing.org/t/building-a-custom-rangeslider-component/5399)

<div class="topic-metadata">

**Author:** [@timrodenbroeker](https://discourse.processing.org/u/timrodenbroeker)\
**Replies:** 3\
**Last updated:** [November 10, 2018, 2:26pm UTC](https://discourse.processing.org/t/building-a-custom-rangeslider-component/5399 "2018-11-10T14:26:09Z")

</div>

Hi coders! I’m trying to build a custom rangeslider and it drives me crazy. Most parts of the code work fine, but the function that updates the value of the slider when the mouse drags it returns slighty different value…

---

## [Can't acces class variables in function](https://discourse.processing.org/t/cant-acces-class-variables-in-function/5403)

<div class="topic-metadata">

**Author:** [@benja8151](https://discourse.processing.org/u/benja8151)\
**Replies:** 2\
**Last updated:** [November 10, 2018, 2:21pm UTC](https://discourse.processing.org/t/cant-acces-class-variables-in-function/5403 "2018-11-10T14:21:49Z")

</div>

Hello, before I start, I must say I’m pretty much a total newbie when it comes to programming in Processing, or in Java in general. As you can see, I have two shape classes, rectangle and circle. I’m trying to implement…

---

## [Thread hangs when no delay is used](https://discourse.processing.org/t/thread-hangs-when-no-delay-is-used/5352)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 11\
**Last updated:** [November 10, 2018, 11:07am UTC](https://discourse.processing.org/t/thread-hangs-when-no-delay-is-used/5352 "2018-11-10T11:07:45Z")

</div>

When I remove delay(1) in the code below then last\_frame will always be equal to frameCount and there is no movement. Why is that? PVector v = new PVector(); void setup() { thread("whyOwhy"); } void whyOwhy() { …

---

## [Counting things in draw()](https://discourse.processing.org/t/counting-things-in-draw/5396)

<div class="topic-metadata">

**Author:** [@germaine](https://discourse.processing.org/u/germaine)\
**Replies:** 1\
**Last updated:** [November 10, 2018, 8:45am UTC](https://discourse.processing.org/t/counting-things-in-draw/5396 "2018-11-10T08:45:57Z")

</div>

I have “liquid” (a rectangle) into which I am dropping “objects” (ellipses) of a regular size. When an object passes into the water, I want to add to the height of the water rectangle, and when I take an object out, I wa…

---

## [How to tell if the mouse is over the window?](https://discourse.processing.org/t/how-to-tell-if-the-mouse-is-over-the-window/5285)

<div class="topic-metadata">

**Author:** [@Angle](https://discourse.processing.org/u/Angle)\
**Replies:** 8\
**Last updated:** [November 10, 2018, 8:33am UTC](https://discourse.processing.org/t/how-to-tell-if-the-mouse-is-over-the-window/5285 "2018-11-10T08:33:48Z")

</div>

I looked through the reference and I don’t see anything for that. Do I just need to use mouseEnter() and mouseLeave() events? :confused:

---

## [Instanced objects in multiple Arraylists for object organization?](https://discourse.processing.org/t/instanced-objects-in-multiple-arraylists-for-object-organization/5364)

<div class="topic-metadata">

**Author:** [@Birb](https://discourse.processing.org/u/Birb)\
**Replies:** 2\
**Last updated:** [November 10, 2018, 2:39am UTC](https://discourse.processing.org/t/instanced-objects-in-multiple-arraylists-for-object-organization/5364 "2018-11-10T02:39:35Z")

</div>

I have a problem and I’m trying to figure out the best way to approach it. I have a list of objects in an array, order matters. I would like to create sub-groups of those objects. Ideally, this would just be a matter of …

---

## [Vector math for line-to-line intersection](https://discourse.processing.org/t/vector-math-for-line-to-line-intersection/5296)

<div class="topic-metadata">

**Author:** [@noahbuddy](https://discourse.processing.org/u/noahbuddy)\
**Replies:** 1\
**Last updated:** [November 10, 2018, 2:30am UTC](https://discourse.processing.org/t/vector-math-for-line-to-line-intersection/5296 "2018-11-10T02:30:38Z")

</div>

While learning about vectors, I worked through this to better understand line-to-line intersection math instead of simply using it “because it works”. final int N = 4; // Fixed number to make two segments int MAX\_DIST =…

---

## [PixelFlow does not work](https://discourse.processing.org/t/pixelflow-does-not-work/5365)

<div class="topic-metadata">

**Author:** [@HackinHarry](https://discourse.processing.org/u/HackinHarry)\
**Replies:** 6\
**Last updated:** [November 10, 2018, 1:32am UTC](https://discourse.processing.org/t/pixelflow-does-not-work/5365 "2018-11-10T01:32:20Z")

</div>

It used to work before I reinstalled windows10 and updated Java about 2 months ago. When it did work, I was able to run the Wind Tunnel examples. I’m not sure if I ever tried it in Processing 2.2.1, but it does not wor…

---

## [Load several XML to analyse them](https://discourse.processing.org/t/load-several-xml-to-analyse-them/5058)

<div class="topic-metadata">

**Author:** [@Pr0tonX](https://discourse.processing.org/u/Pr0tonX)\
**Replies:** 6\
**Last updated:** [November 9, 2018, 11:50pm UTC](https://discourse.processing.org/t/load-several-xml-to-analyse-them/5058 "2018-11-09T23:50:00Z")

</div>

Hi everyone, I’m trying to visualize some journeys wich are encoded in XML files. These files give me the position (lattitude and longitude), the date/time, and some others informations that I don’t need. I write a pr…

---

## [Fill in a nested loop](https://discourse.processing.org/t/fill-in-a-nested-loop/5394)

<div class="topic-metadata">

**Author:** [@Fei](https://discourse.processing.org/u/Fei)\
**Replies:** 4\
**Last updated:** [November 9, 2018, 11:29pm UTC](https://discourse.processing.org/t/fill-in-a-nested-loop/5394 "2018-11-09T23:29:58Z")

</div>

Hello, So I’m a little confused on how to manage what I’m trying to fill, and how, inside nested loops. I’m trying to have 3 rows of 20 circles each (to represent 60 seconds), where 1 circle is filled black every secon…

---

## [Exporting Errors \[Kinda new in Processing\]](https://discourse.processing.org/t/exporting-errors-kinda-new-in-processing/5388)

<div class="topic-metadata">

**Author:** [@GeorgeKal](https://discourse.processing.org/u/GeorgeKal)\
**Replies:** 1\
**Last updated:** [November 9, 2018, 8:37pm UTC](https://discourse.processing.org/t/exporting-errors-kinda-new-in-processing/5388 "2018-11-09T20:37:53Z")

</div>

Compiling resources C:\\Users\\Γιώργος\\Documents\\processing-3.4\\modes\\java\\application\\launch4j\\bin\\windres.exe: can't open icon file \`C:\\Users\\???????\\Documents\\processing-3.4\\modes\\java\\application\\sketch.ico': Invalid a…

---

## [Happiness Meter](https://discourse.processing.org/t/happiness-meter/5326)

<div class="topic-metadata">

**Author:** [@ant](https://discourse.processing.org/u/ant)\
**Replies:** 15\
**Last updated:** [November 9, 2018, 8:06pm UTC](https://discourse.processing.org/t/happiness-meter/5326 "2018-11-09T20:06:07Z")

</div>

I am having trouble making a happiness meter. So I want to be able to have a timer aka my meter start counting down when I press the s key. Then if the happiness meter gets to low the rock image will change and if it get…

---

## [Error with semicolon translate in point](https://discourse.processing.org/t/error-with-semicolon-translate-in-point/5371)

<div class="topic-metadata">

**Author:** [@Paco](https://discourse.processing.org/u/Paco)\
**Replies:** 12\
**Last updated:** [November 9, 2018, 7:40pm UTC](https://discourse.processing.org/t/error-with-semicolon-translate-in-point/5371 "2018-11-09T19:40:17Z")

</div>

Hi everyone, I have a big problem with my Processing, when I tap a semicolon on my mac it appear a point in my code and same problem with double point it appear only a point. I already checked on other software to see i…

---

## [Record audio from sketch P5](https://discourse.processing.org/t/record-audio-from-sketch-p5/5382)

<div class="topic-metadata">

**Author:** [@magapascansky](https://discourse.processing.org/u/magapascansky)\
**Replies:** 1\
**Last updated:** [November 9, 2018, 3:59pm UTC](https://discourse.processing.org/t/record-audio-from-sketch-p5/5382 "2018-11-09T15:59:55Z")

</div>

Hello! I am developing a sketch with p5.js that simulates playing drums and my idea is to play drum sounds when you press keys (already done) and to be able to record it. The only recording examples/tutoriales that I’v…

---

## [How to type OR on keyboard (mac)](https://discourse.processing.org/t/how-to-type-or-on-keyboard-mac/5369)

<div class="topic-metadata">

**Author:** [@anna\_mei](https://discourse.processing.org/u/anna_mei)\
**Replies:** 8\
**Last updated:** [November 9, 2018, 9:29am UTC](https://discourse.processing.org/t/how-to-type-or-on-keyboard-mac/5369 "2018-11-09T09:29:04Z")

</div>

Dear community, I am trying to find the keyboard “shortcut” for this sign (which I now copied from the references page): || It is the sign for “OR”. I am currently using a Mac (High Sierra 10.13.4) with a german keybo…

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

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