# Latest

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

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

**Page:** 435

---

## [Extending PGraphicsJava2D: Space between triangles / vertices](https://discourse.processing.org/t/extending-pgraphicsjava2d-space-between-triangles-vertices/14797)

<div class="topic-metadata">

**Author:** [@companje](https://discourse.processing.org/u/companje)\
**Replies:** 3\
**Last updated:** [October 23, 2019, 1:34am UTC](https://discourse.processing.org/t/extending-pgraphicsjava2d-space-between-triangles-vertices/14797 "2019-10-23T01:34:15Z")

</div>

Hello, When extending PGraphicsJava2D (as described by @GoToLoop on the old forum https://forum.processing.org/two/discussion/16314/pshape-inside-a-class-or-extend-pshape#Item\_4 from) and drawing a TRIANGLE\_STRIP I ge…

---

## [List of global properties of processing](https://discourse.processing.org/t/list-of-global-properties-of-processing/14879)

<div class="topic-metadata">

**Author:** [@Jean-Michel](https://discourse.processing.org/u/Jean-Michel)\
**Replies:** 2\
**Last updated:** [October 22, 2019, 7:56pm UTC](https://discourse.processing.org/t/list-of-global-properties-of-processing/14879 "2019-10-22T19:56:03Z")

</div>

Hi all, Is there a list all global properties served by processing, width, heigth, mouseX, mouseY, key, keyCode … Thanks, Yours

---

## [P5.xr - help with pre-alpha testing on new XR library for p5](https://discourse.processing.org/t/p5-xr-help-with-pre-alpha-testing-on-new-xr-library-for-p5/13403)

<div class="topic-metadata">

**Author:** [@stalgiag](https://discourse.processing.org/u/stalgiag)\
**Replies:** 1\
**Last updated:** [October 22, 2019, 4:07pm UTC](https://discourse.processing.org/t/p5-xr-help-with-pre-alpha-testing-on-new-xr-library-for-p5/13403 "2019-10-22T16:07:38Z")

</div>

Hi all! I have been working alongside Vedhant Agarwal (@vedhant) on a library that allows you to make any p5 WEBGL sketch work in XR. Currently this is in pre-alpha release, we haven’t released documentation or builds y…

---

## [Beginner Color Help](https://discourse.processing.org/t/beginner-color-help/14873)

<div class="topic-metadata">

**Author:** [@FilDomInteractive](https://discourse.processing.org/u/FilDomInteractive)\
**Replies:** 2\
**Last updated:** [October 22, 2019, 3:14pm UTC](https://discourse.processing.org/t/beginner-color-help/14873 "2019-10-22T15:14:18Z")

</div>

How do I make something happen when like a line is on a specific colour?

---

## [Game issues for christmas](https://discourse.processing.org/t/game-issues-for-christmas/14780)

<div class="topic-metadata">

**Author:** [@Mike](https://discourse.processing.org/u/Mike)\
**Replies:** 60\
**Last updated:** [October 22, 2019, 1:27am UTC](https://discourse.processing.org/t/game-issues-for-christmas/14780 "2019-10-22T01:27:20Z")

</div>

Ok first off, Hello everyone. I am new here and very new to coding. If you don’t care about the long backstory of my problem just skip to the next paragraph. I am currently working on my first large project, or at least…

---

## [Unwanted Color Changes](https://discourse.processing.org/t/unwanted-color-changes/14855)

<div class="topic-metadata">

**Author:** [@Ozhan](https://discourse.processing.org/u/Ozhan)\
**Replies:** 1\
**Last updated:** [October 22, 2019, 4:13am UTC](https://discourse.processing.org/t/unwanted-color-changes/14855 "2019-10-22T04:13:50Z")

</div>

Hi All. I wrote the following codes to follow my mouse when I pressed the left button with red and when I pressed the right button with green colors but color of all the shapes changes when I changed the mouse buttons. …

---

## [Create filename from variables](https://discourse.processing.org/t/create-filename-from-variables/14861)

<div class="topic-metadata">

**Author:** [@paulstgeorge](https://discourse.processing.org/u/paulstgeorge)\
**Replies:** 4\
**Last updated:** [October 21, 2019, 8:57pm UTC](https://discourse.processing.org/t/create-filename-from-variables/14861 "2019-10-21T20:57:38Z")

</div>

I want to save an image from the display window using save(). For example: save(“filename.tif”); I want, though, to create the filename using the values of some variables in my sketch. so int var1 = 290; float var2…

---

## [keyPressed Help](https://discourse.processing.org/t/keypressed-help/14807)

<div class="topic-metadata">

**Author:** [@TandemMISMI](https://discourse.processing.org/u/TandemMISMI)\
**Replies:** 9\
**Last updated:** [October 21, 2019, 8:54pm UTC](https://discourse.processing.org/t/keypressed-help/14807 "2019-10-21T20:54:46Z")

</div>

Hello all , I just begin with processing few days ago and I need help about the function keyPressed I want to change the position of my man’s arms when I press a key but when I press the key I have the position before a…

---

## [Disable canvas highlighting on mobile (p5js)](https://discourse.processing.org/t/disable-canvas-highlighting-on-mobile-p5js/14859)

<div class="topic-metadata">

**Author:** [@Logix](https://discourse.processing.org/u/Logix)\
**Replies:** 0\
**Last updated:** [October 21, 2019, 3:59pm UTC](https://discourse.processing.org/t/disable-canvas-highlighting-on-mobile-p5js/14859 "2019-10-21T15:59:49Z")

</div>

On a mobile browser, when the cursor(HAND) runs it would highlight the entire canvas with light blue color. I tried disabling the DOM element highlighting but it doesn’t seem to be about the DOM. Please help thank you

---

## [Waiting for mousePressed() in draw](https://discourse.processing.org/t/waiting-for-mousepressed-in-draw/14795)

<div class="topic-metadata">

**Author:** [@stefan\_98](https://discourse.processing.org/u/stefan_98)\
**Replies:** 8\
**Last updated:** [October 21, 2019, 5:39pm UTC](https://discourse.processing.org/t/waiting-for-mousepressed-in-draw/14795 "2019-10-21T17:39:49Z")

</div>

Hello, I’m very new to programming with Processing, and I just wanted to know, how I can force the program in draw() to wait for the mousePressed() function. Nice greetings

---

## [Enable multiDex in processing](https://discourse.processing.org/t/enable-multidex-in-processing/14834)

<div class="topic-metadata">

**Author:** [@F53](https://discourse.processing.org/u/F53)\
**Replies:** 1\
**Last updated:** [October 21, 2019, 5:32pm UTC](https://discourse.processing.org/t/enable-multidex-in-processing/14834 "2019-10-21T17:32:59Z")

</div>

One of my android sketches got a fair bit large, causing build errors related to dex. in After trial and error, I figured out that normally in android studio, you would simply add multiDexEnabled true to gradle default…

---

## [loadImage issue](https://discourse.processing.org/t/loadimage-issue/14837)

<div class="topic-metadata">

**Author:** [@ylh](https://discourse.processing.org/u/ylh)\
**Replies:** 4\
**Last updated:** [October 21, 2019, 1:10pm UTC](https://discourse.processing.org/t/loadimage-issue/14837 "2019-10-21T13:10:17Z")

</div>

I have a trivial problem. I can’t seem to load an image file, which is in the same directory as the html code here https://editor.p5js.org/ylh888/sketches/wNPt1-pbY Running on my local browser, it shows the same “Loadin…

---

## [I can\`t load an Image as background](https://discourse.processing.org/t/i-can-t-load-an-image-as-background/14849)

<div class="topic-metadata">

**Author:** [@CyberDodo](https://discourse.processing.org/u/CyberDodo)\
**Replies:** 4\
**Last updated:** [October 21, 2019, 9:54am UTC](https://discourse.processing.org/t/i-can-t-load-an-image-as-background/14849 "2019-10-21T09:54:32Z")

</div>

I can\`t load an Image as background. Exception in thread “Thread-212” void setup() { size( 1366, 768); PImage bg; bg = loadImage("qrC6FvL.jpg"); } void draw() { background(bg); fill(0, 255, 0); rect (300, …

---

## [P5.js made non-playable slither.io like design, open source now!](https://discourse.processing.org/t/p5-js-made-non-playable-slither-io-like-design-open-source-now/14822)

<div class="topic-metadata">

**Author:** [@technew](https://discourse.processing.org/u/technew)\
**Replies:** 4\
**Last updated:** [October 21, 2019, 6:29am UTC](https://discourse.processing.org/t/p5-js-made-non-playable-slither-io-like-design-open-source-now/14822 "2019-10-21T06:29:18Z")

</div>

Something reminds me of this old work today. My very old university assignment in processing (p5.js). (2 years ago) Since I already graduated, so it might be a good idea to release my source code. You may find interes…

---

## [Wrap the text and Change the specific word colour in a text file](https://discourse.processing.org/t/wrap-the-text-and-change-the-specific-word-colour-in-a-text-file/14814)

<div class="topic-metadata">

**Author:** [@do11134](https://discourse.processing.org/u/do11134)\
**Replies:** 2\
**Last updated:** [October 21, 2019, 3:53am UTC](https://discourse.processing.org/t/wrap-the-text-and-change-the-specific-word-colour-in-a-text-file/14814 "2019-10-21T03:53:04Z")

</div>

the first thing I want to do is wrap the text and the second thing is to make the color change of specific words, but I found it is hard to do. Please somebody can help me!!! void setup() { size(600, 600); background(…

---

## [Text that is not affected by rotations](https://discourse.processing.org/t/text-that-is-not-affected-by-rotations/14800)

<div class="topic-metadata">

**Author:** [@biran4454](https://discourse.processing.org/u/biran4454)\
**Replies:** 4\
**Last updated:** [October 21, 2019, 3:43am UTC](https://discourse.processing.org/t/text-that-is-not-affected-by-rotations/14800 "2019-10-21T03:43:40Z")

</div>

I am writing a piece of code that draws 3D objects onto the canvas using P3D render. I have coded it such that one can rotate the camera and pan and zoom, etc. I want to write some info text onto the screen, but when I…

---

## [Persistent Shape with Mouse?](https://discourse.processing.org/t/persistent-shape-with-mouse/14739)

<div class="topic-metadata">

**Author:** [@yangs](https://discourse.processing.org/u/yangs)\
**Replies:** 8\
**Last updated:** [October 21, 2019, 3:04am UTC](https://discourse.processing.org/t/persistent-shape-with-mouse/14739 "2019-10-21T03:04:36Z")

</div>

Hi all! I suppose I’m not quite understanding the relationship between setup and draw and how to keep things persistent based on how the background is rendered. I was wondering how to keep something persistent with the …

---

## [Poner formato cd4 en processing](https://discourse.processing.org/t/poner-formato-cd4-en-processing/14786)

<div class="topic-metadata">

**Author:** [@wolf](https://discourse.processing.org/u/wolf)\
**Replies:** 2\
**Last updated:** [October 21, 2019, 3:16am UTC](https://discourse.processing.org/t/poner-formato-cd4-en-processing/14786 "2019-10-21T03:16:55Z")

</div>

alguien me puede decir como puedo poner un modelo 3d formato .cd4 en el programa processing necesito su ayuda urgente

---

## [Geometry Classes based on doubles available in toxicLib fork](https://discourse.processing.org/t/geometry-classes-based-on-doubles-available-in-toxiclib-fork/14841)

<div class="topic-metadata">

**Author:** [@TPMoyer](https://discourse.processing.org/u/TPMoyer)\
**Replies:** 0\
**Last updated:** [October 20, 2019, 11:36pm UTC](https://discourse.processing.org/t/geometry-classes-based-on-doubles-available-in-toxiclib-fork/14841 "2019-10-20T23:36:40Z")

</div>

Have made and run Junit tests on a fork of toxicLib which adds support for double based classes.

---

## [My infinity watch project](https://discourse.processing.org/t/my-infinity-watch-project/14743)

<div class="topic-metadata">

**Author:** [@andi](https://discourse.processing.org/u/andi)\
**Replies:** 1\
**Last updated:** [October 18, 2019, 2:21pm UTC](https://discourse.processing.org/t/my-infinity-watch-project/14743 "2019-10-18T14:21:50Z")

</div>

Hi guys, I want to create a watch wich runs on an infinity symbol (24 h one whole turn). Therefore I created some code with a friend. (you can see below) main: float amp = 0.0; float amp\_offset = 150.0; float amp\_stre…

---

## [Limiting draw() to run a limited amount of times!](https://discourse.processing.org/t/limiting-draw-to-run-a-limited-amount-of-times/14809)

<div class="topic-metadata">

**Author:** [@tsunii](https://discourse.processing.org/u/tsunii)\
**Replies:** 20\
**Last updated:** [October 20, 2019, 9:14pm UTC](https://discourse.processing.org/t/limiting-draw-to-run-a-limited-amount-of-times/14809 "2019-10-20T21:14:53Z")

</div>

Hello, i’m trying to make a application that works like this: We have a certain amount on “Main Circles” the black one, and “Secondary Circles” the white ones, what i want is to have a fixed number of Main Circles and a …

---

## [Painting with pixels using PVector](https://discourse.processing.org/t/painting-with-pixels-using-pvector/14829)

<div class="topic-metadata">

**Author:** [@JoseBri93](https://discourse.processing.org/u/JoseBri93)\
**Replies:** 5\
**Last updated:** [October 20, 2019, 8:38pm UTC](https://discourse.processing.org/t/painting-with-pixels-using-pvector/14829 "2019-10-20T20:38:20Z")

</div>

Hi people, I want ths image to be drawn by the forms i created. So they all will start at one point and then expand to all directions. The PVector function gives me the curvature i like them to have while i’m hoping the …

---

## [Build errors on a previously working sketch](https://discourse.processing.org/t/build-errors-on-a-previously-working-sketch/14784)

<div class="topic-metadata">

**Author:** [@F53](https://discourse.processing.org/u/F53)\
**Replies:** 5\
**Last updated:** [October 20, 2019, 6:59pm UTC](https://discourse.processing.org/t/build-errors-on-a-previously-working-sketch/14784 "2019-10-20T18:59:08Z")

</div>

I was working on implementing ads into my sketch, then I started getting this error. I have reverted the sketch back to its original state, but it’s still getting the new error. full error at: https://pastebin.com/j5Az…

---

## [Kinect getting raw data and value](https://discourse.processing.org/t/kinect-getting-raw-data-and-value/14737)

<div class="topic-metadata">

**Author:** [@luonglinhle](https://discourse.processing.org/u/luonglinhle)\
**Replies:** 2\
**Last updated:** [October 20, 2019, 6:52pm UTC](https://discourse.processing.org/t/kinect-getting-raw-data-and-value/14737 "2019-10-20T18:52:45Z")

</div>

Hello! I am a newbie. I was wondering if anyone know how to get raw values that measure distance in Kinect V1 and V2? I am also working via MacBook so I wonder if it makes much different in processing program. My purpo…

---

## [Changing the PImage colour if images overlap](https://discourse.processing.org/t/changing-the-pimage-colour-if-images-overlap/14817)

<div class="topic-metadata">

**Author:** [@DatSoi](https://discourse.processing.org/u/DatSoi)\
**Replies:** 0\
**Last updated:** [October 20, 2019, 8:39am UTC](https://discourse.processing.org/t/changing-the-pimage-colour-if-images-overlap/14817 "2019-10-20T08:39:26Z")

</div>

How do i change the tint() of an PImage if the detected face is next to the PImage. import gab.opencv.\*; import processing.video.\*; import java.awt.\*; PImage img; PImage background; PImage imgCoral; color colCoral; …

---

## [Firework: Circle with cosine & sine but in 3D....?](https://discourse.processing.org/t/firework-circle-with-cosine-sine-but-in-3d/14670)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 5\
**Last updated:** [October 20, 2019, 12:23pm UTC](https://discourse.processing.org/t/firework-circle-with-cosine-sine-but-in-3d/14670 "2019-10-20T12:23:52Z")

</div>

Hello all, I made a fire work in 2D (its movement is 2D anyway) with a simple formula using cos and sin. void move() { // Spark move // move x = centerX+cos(angle)\*radius; y = centerY+sin(angle)\*r…

---

## [Decimal point or comma](https://discourse.processing.org/t/decimal-point-or-comma/14819)

<div class="topic-metadata">

**Author:** [@micha](https://discourse.processing.org/u/micha)\
**Replies:** 2\
**Last updated:** [October 20, 2019, 11:25am UTC](https://discourse.processing.org/t/decimal-point-or-comma/14819 "2019-10-20T11:25:46Z")

</div>

I am working with Processing 3.5.3 on a Mac with german system osx 10.11.6 When I say float number = 0.2; println(nf(number, 1, 2)); it prints 0,20 with decimal comma (common in everyday german life) Is there a wa…

---

## [Changing colour depending on location](https://discourse.processing.org/t/changing-colour-depending-on-location/14799)

<div class="topic-metadata">

**Author:** [@DatSoi](https://discourse.processing.org/u/DatSoi)\
**Replies:** 10\
**Last updated:** [October 20, 2019, 7:11am UTC](https://discourse.processing.org/t/changing-colour-depending-on-location/14799 "2019-10-20T07:11:25Z")

</div>

Hi there, im a huge beginner to processing, but i was wondering how you could go about changin the colour of an image depending on the location of an object, (a users face location which is being located by OpenCV). Tha…

---

## [Try to show TIDE](https://discourse.processing.org/t/try-to-show-tide/14746)

<div class="topic-metadata">

**Author:** [@kll](https://discourse.processing.org/u/kll)\
**Replies:** 2\
**Last updated:** [October 20, 2019, 3:24am UTC](https://discourse.processing.org/t/try-to-show-tide/14746 "2019-10-20T03:24:40Z")

</div>

i hope that is easy but accurate to be used at school showing tidal force by sun and moon and operation hour / day by arrow keys no elliptic orbits, no winter summer … code

---

## [One of my Games in JS](https://discourse.processing.org/t/one-of-my-games-in-js/14342)

<div class="topic-metadata">

**Author:** [@Skys](https://discourse.processing.org/u/Skys)\
**Replies:** 1\
**Last updated:** [October 19, 2019, 8:15pm UTC](https://discourse.processing.org/t/one-of-my-games-in-js/14342 "2019-10-19T20:15:02Z")

</div>

I own now a Website: xqskys.de the game( DVL) Labor VII is now playable using javascript. the buttons dont work but it is possible to play. iim not have many expeience with js. but i need the skill for my following p…

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

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