# Latest

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

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

**Page:** 392

---

## [G4P library with GUI builder - Drop down list](https://discourse.processing.org/t/g4p-library-with-gui-builder-drop-down-list/17213)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 7\
**Last updated:** [February 18, 2020, 5:48pm UTC](https://discourse.processing.org/t/g4p-library-with-gui-builder-drop-down-list/17213 "2020-02-18T17:48:20Z")

</div>

Peter I hope you read this, need some guidance please, I am using for the first time the drop down, I have a list of 10 options but all I get is dropList1 - GDropList \>\> GEvent.SELECTED @ 14368 dropList1 - GDropList \>…

---

## [Colour changing! (get the values to go back)](https://discourse.processing.org/t/colour-changing-get-the-values-to-go-back/17909)

<div class="topic-metadata">

**Author:** [@Mythikal](https://discourse.processing.org/u/Mythikal)\
**Replies:** 2\
**Last updated:** [February 18, 2020, 5:02pm UTC](https://discourse.processing.org/t/colour-changing-get-the-values-to-go-back/17909 "2020-02-18T17:02:44Z")

</div>

I am working on a small project and I want the stoke of the lines I’m using to slowly gradient through different colours. I have an array called “col” with three integers for each RGB value. Each are set to 255 and each…

---

## [Using mouse button events while developing sketches in the Eclipse IDE](https://discourse.processing.org/t/using-mouse-button-events-while-developing-sketches-in-the-eclipse-ide/17389)

<div class="topic-metadata">

**Author:** [@spflanze](https://discourse.processing.org/u/spflanze)\
**Replies:** 8\
**Last updated:** [February 18, 2020, 2:17pm UTC](https://discourse.processing.org/t/using-mouse-button-events-while-developing-sketches-in-the-eclipse-ide/17389 "2020-02-18T14:17:47Z")

</div>

I am developing a Processing sketch in the Eclipse IDE. I have a basic test sketch running in it. Now I need to add a menu, and in my attempt to do it I am using the information in this webpage: https://www.processing.…

---

## [Any experience with APDE and osc?](https://discourse.processing.org/t/any-experience-with-apde-and-osc/17903)

<div class="topic-metadata">

**Author:** [@Lima](https://discourse.processing.org/u/Lima)\
**Replies:** 3\
**Last updated:** [February 18, 2020, 1:44pm UTC](https://discourse.processing.org/t/any-experience-with-apde-and-osc/17903 "2020-02-18T13:44:11Z")

</div>

Hi! Im new. I would like to send OSC from apde to Pure Data. Anyone try? thanks

---

## [NullPointerExeption when using img.get()](https://discourse.processing.org/t/nullpointerexeption-when-using-img-get/17872)

<div class="topic-metadata">

**Author:** [@Parzivalius](https://discourse.processing.org/u/Parzivalius)\
**Replies:** 9\
**Last updated:** [February 18, 2020, 8:22am UTC](https://discourse.processing.org/t/nullpointerexeption-when-using-img-get/17872 "2020-02-18T08:22:23Z")

</div>

Hey, I am trying to get the values of a pixel in an image as well as the values of the pixels around it, however the get() function is returning a null pointer exception. Most likely something wrong in my code: void fe…

---

## [Find y coordinate of point on line (given x)](https://discourse.processing.org/t/find-y-coordinate-of-point-on-line-given-x/17731)

<div class="topic-metadata">

**Author:** [@plux](https://discourse.processing.org/u/plux)\
**Replies:** 2\
**Last updated:** [February 18, 2020, 12:19pm UTC](https://discourse.processing.org/t/find-y-coordinate-of-point-on-line-given-x/17731 "2020-02-18T12:19:36Z")

</div>

Hi, I have this code which compiles but does not work as expected. I’ve translated it from some javascript I’ve found around and I’m trying to figure out where the issue is. Basically it should be fairly simple. There’…

---

## [2d shapes on the zx plane](https://discourse.processing.org/t/2d-shapes-on-the-zx-plane/17876)

<div class="topic-metadata">

**Author:** [@code\_X](https://discourse.processing.org/u/code_X)\
**Replies:** 9\
**Last updated:** [February 18, 2020, 10:23am UTC](https://discourse.processing.org/t/2d-shapes-on-the-zx-plane/17876 "2020-02-18T10:23:08Z")

</div>

So the title basically explains my question, so I’m wanting to make a program that displays a circle on the x-z plane how would I do this without a rotation statement? Is it possible? I’ve done some researching and didn’…

---

## [Completing this problem too?](https://discourse.processing.org/t/completing-this-problem-too/17907)

<div class="topic-metadata">

**Author:** [@kandrews](https://discourse.processing.org/u/kandrews)\
**Replies:** 1\
**Last updated:** [February 18, 2020, 4:06am UTC](https://discourse.processing.org/t/completing-this-problem-too/17907 "2020-02-18T04:06:06Z")

</div>

here is a second problem I don’t know how to solve, any solutions? Complete the following method. Given an array of ints, return an array with all the same elements but in reverse order. public int\[\] reverse(int\[\] nums…

---

## [Live programming](https://discourse.processing.org/t/live-programming/17217)

<div class="topic-metadata">

**Author:** [@code\_X](https://discourse.processing.org/u/code_X)\
**Replies:** 4\
**Last updated:** [February 18, 2020, 9:42am UTC](https://discourse.processing.org/t/live-programming/17217 "2020-02-18T09:42:03Z")

</div>

so, I’m the kind of person who likes to test their program and edit it while doing so and i was wondering if Processing has a live programming option, where it will run the program and you can change the code and when th…

---

## [Completing this problem?](https://discourse.processing.org/t/completing-this-problem/17905)

<div class="topic-metadata">

**Author:** [@kandrews](https://discourse.processing.org/u/kandrews)\
**Replies:** 4\
**Last updated:** [February 18, 2020, 4:03am UTC](https://discourse.processing.org/t/completing-this-problem/17905 "2020-02-18T04:03:22Z")

</div>

can someone solve this? Complete the longestRun method as described. Given an array of ints, determine the length of the longest “run” of values contained therein. A “run” is a group of identical values that are adjace…

---

## [How to create a diagonal line](https://discourse.processing.org/t/how-to-create-a-diagonal-line/17869)

<div class="topic-metadata">

**Author:** [@anon94203042](https://discourse.processing.org/u/anon94203042)\
**Replies:** 9\
**Last updated:** [February 18, 2020, 2:27am UTC](https://discourse.processing.org/t/how-to-create-a-diagonal-line/17869 "2020-02-18T02:27:36Z")

</div>

So I have this relatively simple code that creates a white line moving left to right across the screen. It’s similar to a “shinny” effect. However, How would I do the same effect, but have the line move diagonally from t…

---

## [How does one transfer the data in a String over the network to anther instance of the program](https://discourse.processing.org/t/how-does-one-transfer-the-data-in-a-string-over-the-network-to-anther-instance-of-the-program/17894)

<div class="topic-metadata">

**Author:** [@TechMaster04](https://discourse.processing.org/u/TechMaster04)\
**Replies:** 4\
**Last updated:** [February 17, 2020, 11:14pm UTC](https://discourse.processing.org/t/how-does-one-transfer-the-data-in-a-string-over-the-network-to-anther-instance-of-the-program/17894 "2020-02-17T23:14:16Z")

</div>

Hello I’m writing a queue manager for a school project, and thought it would be cool if the names in the queue show up for everyone who’s running the program. I’ve tried a UDP server, but I couldn’t get that to work ove…

---

## [I2C Connection not working with MAX517](https://discourse.processing.org/t/i2c-connection-not-working-with-max517/17399)

<div class="topic-metadata">

**Author:** [@Samsanit](https://discourse.processing.org/u/Samsanit)\
**Replies:** 1\
**Last updated:** [February 17, 2020, 8:50pm UTC](https://discourse.processing.org/t/i2c-connection-not-working-with-max517/17399 "2020-02-17T20:50:17Z")

</div>

Hi all, I’m working on a project using a MAX517 Digital to Analog converter, however I’m having some trouble getting the I2C connection to work properly. I’m able to pick up that there is an I2C device using the println…

---

## [Format Specifiers](https://discourse.processing.org/t/format-specifiers/17760)

<div class="topic-metadata">

**Author:** [@spflanze](https://discourse.processing.org/u/spflanze)\
**Replies:** 2\
**Last updated:** [February 17, 2020, 6:32pm UTC](https://discourse.processing.org/t/format-specifiers/17760 "2020-02-17T18:32:44Z")

</div>

I set up my output data stream with this code. It works without any errors indicated: try { println( "Path: " + selection.getCanonicalPath() ); println( "ext: \\""+ getFileExtension(selection.getCanonicalPath() ) + …

---

## [How to change colors between circles when overlapping?](https://discourse.processing.org/t/how-to-change-colors-between-circles-when-overlapping/17716)

<div class="topic-metadata">

**Author:** [@kandrews](https://discourse.processing.org/u/kandrews)\
**Replies:** 3\
**Last updated:** [February 17, 2020, 4:15pm UTC](https://discourse.processing.org/t/how-to-change-colors-between-circles-when-overlapping/17716 "2020-02-17T16:15:51Z")

</div>

Circle \[\] circles = new Circle \[10\]; class Circle { float x; float y; float speed; float diam; color c; boolean valid; final int MAX\_COLOR = 255; final int MIN\_X = 50, MAX\_X = 750; final int MIN\_Y = …

---

## [Render high-res images using Hype Framework](https://discourse.processing.org/t/render-high-res-images-using-hype-framework/17815)

<div class="topic-metadata">

**Author:** [@mrclstrtr](https://discourse.processing.org/u/mrclstrtr)\
**Replies:** 4\
**Last updated:** [February 17, 2020, 3:11pm UTC](https://discourse.processing.org/t/render-high-res-images-using-hype-framework/17815 "2020-02-17T15:11:44Z")

</div>

Hi everybody, I recently started working with Processing in combination with Joshuas’ Hype Framework. I’m able to save single frames from an animation but only in the same resolution as the sketch e.g. 800x500. Is there…

---

## [Changing Colours after X iterations](https://discourse.processing.org/t/changing-colours-after-x-iterations/17881)

<div class="topic-metadata">

**Author:** [@ChrisHaz3ll](https://discourse.processing.org/u/ChrisHaz3ll)\
**Replies:** 1\
**Last updated:** [February 17, 2020, 2:48pm UTC](https://discourse.processing.org/t/changing-colours-after-x-iterations/17881 "2020-02-17T14:48:41Z")

</div>

Hi guys, So essentially I’m trying to figure out how to cycle through colours assigned within an array. I would like for every 50 frames/iterations, for the colour to change to the next one in the array (ie, 0-50 = yel…

---

## [How to draw PGraphics out of an array](https://discourse.processing.org/t/how-to-draw-pgraphics-out-of-an-array/17852)

<div class="topic-metadata">

**Author:** [@fmS3lect](https://discourse.processing.org/u/fmS3lect)\
**Replies:** 5\
**Last updated:** [February 17, 2020, 9:46am UTC](https://discourse.processing.org/t/how-to-draw-pgraphics-out-of-an-array/17852 "2020-02-17T09:46:53Z")

</div>

Hi all, i am trying to code an Poster wich takes the color out of the webcam and draws shaps on the canvas. This works finde, but now i want to it to only draw a certain amount of shapes on the canvas, like 50 or so and…

---

## [Fake Invisible Screen](https://discourse.processing.org/t/fake-invisible-screen/17611)

<div class="topic-metadata">

**Author:** [@HoboGreed](https://discourse.processing.org/u/HoboGreed)\
**Replies:** 7\
**Last updated:** [February 17, 2020, 3:31am UTC](https://discourse.processing.org/t/fake-invisible-screen/17611 "2020-02-17T03:31:07Z")

</div>

import java.awt.AWTException; import java.awt.Robot; import java.awt.Rectangle; import java.awt.Dimension; import java.awt.Toolkit; Robot robot; PImage img; Planets\[\]p; import java.awt.MouseInfo; import java.awt.Point; S…

---

## [HUD delay when is following the object](https://discourse.processing.org/t/hud-delay-when-is-following-the-object/17811)

<div class="topic-metadata">

**Author:** [@kisdfnfn](https://discourse.processing.org/u/kisdfnfn)\
**Replies:** 1\
**Last updated:** [February 17, 2020, 12:57am UTC](https://discourse.processing.org/t/hud-delay-when-is-following-the-object/17811 "2020-02-17T00:57:35Z")

</div>

“I’m brazilian then, i’m sorry, my english is very poop” I have a problem, because i’m trying to create a MMORPG with Processing, but my HUD have delay. Look: https://imgur.com/ZkFE451 draw function void draw() { b…

---

## [Save .txt file to desktop Mac](https://discourse.processing.org/t/save-txt-file-to-desktop-mac/17750)

<div class="topic-metadata">

**Author:** [@sdotjo](https://discourse.processing.org/u/sdotjo)\
**Replies:** 1\
**Last updated:** [February 17, 2020, 12:50am UTC](https://discourse.processing.org/t/save-txt-file-to-desktop-mac/17750 "2020-02-17T00:50:46Z")

</div>

Hi all, I want to save the .txt file my processing sketch outputs directly to a mac desktop. Can you suggest how I’d do that? I assume it’s within createWriter(), but I don’t know how to signify a path on mac. Here’s my…

---

## [Motion Detection Changing an Aspect Ration](https://discourse.processing.org/t/motion-detection-changing-an-aspect-ration/17826)

<div class="topic-metadata">

**Author:** [@tiasocci](https://discourse.processing.org/u/tiasocci)\
**Replies:** 1\
**Last updated:** [February 17, 2020, 12:22am UTC](https://discourse.processing.org/t/motion-detection-changing-an-aspect-ration/17826 "2020-02-17T00:22:29Z")

</div>

I have a code of a vibrating rectangle with a video captured by the webcam. As you play with the mouse, the aspect ratio changes. I was wondering how to do it so when there is motion or a change in position detected by t…

---

## [Sketches not working in Firefox](https://discourse.processing.org/t/sketches-not-working-in-firefox/17705)

<div class="topic-metadata">

**Author:** [@August](https://discourse.processing.org/u/August)\
**Replies:** 1\
**Last updated:** [February 17, 2020, 12:21am UTC](https://discourse.processing.org/t/sketches-not-working-in-firefox/17705 "2020-02-17T00:21:37Z")

</div>

Hi! I am trying to incorporate a P5.js sketch on my Wordpress site. I am using a theme named Lay Theme and have been following this tutorial to get sketches to load on the site. I have tested three different sketches and…

---

## [Three faces coin flip](https://discourse.processing.org/t/three-faces-coin-flip/17518)

<div class="topic-metadata">

**Author:** [@BrokenCode](https://discourse.processing.org/u/BrokenCode)\
**Replies:** 6\
**Last updated:** [February 16, 2020, 11:46pm UTC](https://discourse.processing.org/t/three-faces-coin-flip/17518 "2020-02-16T23:46:08Z")

</div>

Hello everybody, I need to simulate a coin flip, but with three possible outcomes, method1(), method2() and method3(). But if method1() is completed, then go to method2(), but if method2() is completed then go to method…

---

## [Thick strokes overlap with stray pixels](https://discourse.processing.org/t/thick-strokes-overlap-with-stray-pixels/17865)

<div class="topic-metadata">

**Author:** [@sgt\_slaughtermelon](https://discourse.processing.org/u/sgt_slaughtermelon)\
**Replies:** 1\
**Last updated:** [February 16, 2020, 7:06pm UTC](https://discourse.processing.org/t/thick-strokes-overlap-with-stray-pixels/17865 "2020-02-16T19:06:53Z")

</div>

Okay, so I have some code that is meant to draw a series of thick strokes of random color that overlay eachother. The problem is that when they draw, they should theoretically overlap perfectly, but instead there are con…

---

## [How to use PrivateProfileString()](https://discourse.processing.org/t/how-to-use-privateprofilestring/17631)

<div class="topic-metadata">

**Author:** [@spflanze](https://discourse.processing.org/u/spflanze)\
**Replies:** 3\
**Last updated:** [February 16, 2020, 5:08pm UTC](https://discourse.processing.org/t/how-to-use-privateprofilestring/17631 "2020-02-16T17:08:34Z")

</div>

I am attempting to follow the example at: to store user settings between sketch invocations. I am using the Eclipse IDE to develop it. In this code snippet: /\*\* default starting directory where browsing for…

---

## [FrameRate gets slow over time](https://discourse.processing.org/t/framerate-gets-slow-over-time/3149)

<div class="topic-metadata">

**Author:** [@willianxz](https://discourse.processing.org/u/willianxz)\
**Replies:** 6\
**Last updated:** [February 16, 2020, 3:28pm UTC](https://discourse.processing.org/t/framerate-gets-slow-over-time/3149 "2020-02-16T15:28:38Z")

</div>

Hello my friends, I’m having trouble with the speed of my program. I set the default speed to 60 fps, but over time the increment of my variable “time” is slowly increasing. I wonder how I could solve this “bug”. I al…

---

## [Problem with making Window loading](https://discourse.processing.org/t/problem-with-making-window-loading/17843)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 4\
**Last updated:** [February 16, 2020, 2:02pm UTC](https://discourse.processing.org/t/problem-with-making-window-loading/17843 "2020-02-16T14:02:36Z")

</div>

As I was using the javax.swing library I made a Window, that should paint something if the correct button is pressed. The problem is that it is only painted if I close the window I made. How can I Prevent the program fro…

---

## [Class and background image](https://discourse.processing.org/t/class-and-background-image/17846)

<div class="topic-metadata">

**Author:** [@Taby](https://discourse.processing.org/u/Taby)\
**Replies:** 2\
**Last updated:** [February 16, 2020, 11:08am UTC](https://discourse.processing.org/t/class-and-background-image/17846 "2020-02-16T11:08:33Z")

</div>

Hello. I wrote a code using functions and had a background image written like that: PImage bg; Void setup() { size (600,400); bg = loadimage(“floral.jpg”); } Void draw() { background(bg); stroke(0); } How…

---

## [Pyprocessing 3d collisions](https://discourse.processing.org/t/pyprocessing-3d-collisions/17842)

<div class="topic-metadata">

**Author:** [@commie630](https://discourse.processing.org/u/commie630)\
**Replies:** 2\
**Last updated:** [February 15, 2020, 11:11pm UTC](https://discourse.processing.org/t/pyprocessing-3d-collisions/17842 "2020-02-15T23:11:20Z")

</div>

I am nearly done with my pyprocessing 3d pong-esque game… I have ran into trouble with the paddle-ball collisions. Sometimes, the collisions are more accurate than others… from processing import \* from math import \* kD…

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

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