# Latest

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

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

**Page:** 317

---

## [Advice please for converting legacy P1.5 app to P3.5 to run on Raspberry Pi (or run 1.5 on Pi)](https://discourse.processing.org/t/advice-please-for-converting-legacy-p1-5-app-to-p3-5-to-run-on-raspberry-pi-or-run-1-5-on-pi/23050)

<div class="topic-metadata">

**Author:** [@hondaman900](https://discourse.processing.org/u/hondaman900)\
**Replies:** 9\
**Last updated:** [August 9, 2020, 4:35pm UTC](https://discourse.processing.org/t/advice-please-for-converting-legacy-p1-5-app-to-p3-5-to-run-on-raspberry-pi-or-run-1-5-on-pi/23050 "2020-08-09T16:35:32Z")

</div>

So, I have an extensive application written in P1.5 years ago and exported as an application to run on Linux (Ubuntu). It’s been working fine all those years but now I have to make it run on a Raspberry Pi 4 (4Gb). I nee…

---

## [No display when my processing is enabled for video](https://discourse.processing.org/t/no-display-when-my-processing-is-enabled-for-video/23148)

<div class="topic-metadata">

**Author:** [@LYY](https://discourse.processing.org/u/LYY)\
**Replies:** 1\
**Last updated:** [August 9, 2020, 10:55am UTC](https://discourse.processing.org/t/no-display-when-my-processing-is-enabled-for-video/23148 "2020-08-09T10:55:39Z")

</div>

import processing.video.\*; Movie myMovie; void setup() { size(200, 200); myMovie = new Movie(this, “abc.mp4”); myMovie.play(); } void draw() { image(myMovie, 0, 0); } void movieEvent(Movie m) { m.read(); } N…

---

## [Iterate unknown named object properties](https://discourse.processing.org/t/iterate-unknown-named-object-properties/23137)

<div class="topic-metadata">

**Author:** [@ZAF](https://discourse.processing.org/u/ZAF)\
**Replies:** 1\
**Last updated:** [August 9, 2020, 1:39am UTC](https://discourse.processing.org/t/iterate-unknown-named-object-properties/23137 "2020-08-09T01:39:34Z")

</div>

Hi, im working on a function called howMuchOn(users) wich recieves an object filled with objects as the following example shows: let users = { toni: { age: 33, online: true }, emily: { age: 25, online: true }, …

---

## [How to coloring controlP5 item with different color?](https://discourse.processing.org/t/how-to-coloring-controlp5-item-with-different-color/23098)

<div class="topic-metadata">

**Author:** [@Rai](https://discourse.processing.org/u/Rai)\
**Replies:** 4\
**Last updated:** [August 8, 2020, 11:55pm UTC](https://discourse.processing.org/t/how-to-coloring-controlp5-item-with-different-color/23098 "2020-08-08T23:55:10Z")

</div>

import controlP5.\*; ControlP5 cp5; CheckBox Checkcomponent; Textlabel labelInfo; void setup() { size(640, 480); cp5 = new ControlP5(this); Checkcomponent = cp5.addCheckBox("checkBox") .setPosition(105, 60) …

---

## [FFT on OSC input](https://discourse.processing.org/t/fft-on-osc-input/23145)

<div class="topic-metadata">

**Author:** [@nimbinensis](https://discourse.processing.org/u/nimbinensis)\
**Replies:** 0\
**Last updated:** [August 8, 2020, 11:39pm UTC](https://discourse.processing.org/t/fft-on-osc-input/23145 "2020-08-08T23:39:48Z")

</div>

Hello all. I need some advice on how to analyse the OSC data I get streamed from a Muse headband with the Processing Audio or Minim libraries.

---

## [Modifying a game: score, random, display](https://discourse.processing.org/t/modifying-a-game-score-random-display/22785)

<div class="topic-metadata">

**Author:** [@greenArtist7](https://discourse.processing.org/u/greenArtist7)\
**Replies:** 23\
**Last updated:** [August 8, 2020, 10:55pm UTC](https://discourse.processing.org/t/modifying-a-game-score-random-display/22785 "2020-08-08T22:55:28Z")

</div>

Hello, I’m currently taking a ‘Learning Processing’ course and I need some help with a game I’m trying to create. It is a 2 person game (Player 1 controls the keyboard, Player 2 controls the mouse). It is a take on the …

---

## [Set uniform double in shader](https://discourse.processing.org/t/set-uniform-double-in-shader/23106)

<div class="topic-metadata">

**Author:** [@toby](https://discourse.processing.org/u/toby)\
**Replies:** 4\
**Last updated:** [August 8, 2020, 6:22pm UTC](https://discourse.processing.org/t/set-uniform-double-in-shader/23106 "2020-08-08T18:22:41Z")

</div>

Hello all I’m using a fragment shader to compute fractals, so I’d like to use doubles in the shader. However the PShader.set() method for setting shader uniforms only supports float. Can anyone suggest how I can set a d…

---

## [How can I make a color for the flower inside](https://discourse.processing.org/t/how-can-i-make-a-color-for-the-flower-inside/23127)

<div class="topic-metadata">

**Author:** [@Intissar](https://discourse.processing.org/u/Intissar)\
**Replies:** 2\
**Last updated:** [August 8, 2020, 8:33am UTC](https://discourse.processing.org/t/how-can-i-make-a-color-for-the-flower-inside/23127 "2020-08-08T08:33:42Z")

</div>

float xCenter = 600 /2; float yCenter = 600 /2; float scale = 200; float\[\] innerX; // store xPoints for the 6 points on the inner circle float\[\] innerY; // store yPoints for the 6 points on the inner circle float\[\] ou…

---

## [Trying to fill a shape with a pixel colour from a loaded image](https://discourse.processing.org/t/trying-to-fill-a-shape-with-a-pixel-colour-from-a-loaded-image/22996)

<div class="topic-metadata">

**Author:** [@jesspayne](https://discourse.processing.org/u/jesspayne)\
**Replies:** 7\
**Last updated:** [August 8, 2020, 4:53pm UTC](https://discourse.processing.org/t/trying-to-fill-a-shape-with-a-pixel-colour-from-a-loaded-image/22996 "2020-08-08T16:53:47Z")

</div>

Hi! Firstly please excuse my newbie question! Could anyone point me in the right direction please? I am trying to source a random pixel colour from a loaded image and load it in to a shape. I have spent a few hours look…

---

## [I cleaned up my Processing repositories at github(clone option...)](https://discourse.processing.org/t/i-cleaned-up-my-processing-repositories-at-github-clone-option/23135)

<div class="topic-metadata">

**Author:** [@Skys](https://discourse.processing.org/u/Skys)\
**Replies:** 0\
**Last updated:** [August 8, 2020, 10:18am UTC](https://discourse.processing.org/t/i-cleaned-up-my-processing-repositories-at-github-clone-option/23135 "2020-08-08T10:18:57Z")

</div>

You ask for a unziped download: i spend this night for cleaning up my stuff. all my repositories a now more github common. now you can use clone. btw. the pic-txt-converter is now more advance and adapt picture s…

---

## [What to do when two libraries share the same ".jar" file?](https://discourse.processing.org/t/what-to-do-when-two-libraries-share-the-same-jar-file/23124)

<div class="topic-metadata">

**Author:** [@iannisxenokiss](https://discourse.processing.org/u/iannisxenokiss)\
**Replies:** 4\
**Last updated:** [August 8, 2020, 9:01am UTC](https://discourse.processing.org/t/what-to-do-when-two-libraries-share-the-same-jar-file/23124 "2020-08-08T09:01:13Z")

</div>

Hi gals and guys! I’m using a Leap Motion for a project and have two libraries using the same “LeapJava.jar” file, so whenever I try to run the sketch it throws: “Duplicate libraries found for com.leapmotion.leap” Is t…

---

## [Syntax highlighting in Notepad++ external editor](https://discourse.processing.org/t/syntax-highlighting-in-notepad-external-editor/10862)

<div class="topic-metadata">

**Author:** [@raron](https://discourse.processing.org/u/raron)\
**Replies:** 5\
**Last updated:** [August 8, 2020, 4:00am UTC](https://discourse.processing.org/t/syntax-highlighting-in-notepad-external-editor/10862 "2020-08-08T04:00:13Z")

</div>

I wasn’t sure where to post this. I found this nice post about how to use Processing with Notepad++. So I’ve been playing a bit with that lately (Windows 7, 64-bit), and it seems to work great (But I’ll probably still u…

---

## [Accessing PApplet methods in static](https://discourse.processing.org/t/accessing-papplet-methods-in-static/23112)

<div class="topic-metadata">

**Author:** [@SemAntys](https://discourse.processing.org/u/SemAntys)\
**Replies:** 2\
**Last updated:** [August 7, 2020, 8:24pm UTC](https://discourse.processing.org/t/accessing-papplet-methods-in-static/23112 "2020-08-07T20:24:22Z")

</div>

Hi, I’m trying to access PApplet methods in a static class, in this case the color() method. I’ve tried following this discussion, but I can’t make it work. I’ve written this: static class myclass { static int myc…

---

## [Running an External Program Within Processing + Overlay Images & Text](https://discourse.processing.org/t/running-an-external-program-within-processing-overlay-images-text/23118)

<div class="topic-metadata">

**Author:** [@YellowGTM](https://discourse.processing.org/u/YellowGTM)\
**Replies:** 5\
**Last updated:** [August 7, 2020, 7:56pm UTC](https://discourse.processing.org/t/running-an-external-program-within-processing-overlay-images-text/23118 "2020-08-07T19:56:13Z")

</div>

I’m reading and searching on JFrame, etc. Everyone seems to have a different application than what I’m searching. I’d like to run a 3rd party software within my Processing exe, and allow images and text to be placed o…

---

## [How to get screen coordinates for "Fit To Screen" function](https://discourse.processing.org/t/how-to-get-screen-coordinates-for-fit-to-screen-function/22514)

<div class="topic-metadata">

**Author:** [@CND](https://discourse.processing.org/u/CND)\
**Replies:** 16\
**Last updated:** [August 7, 2020, 7:29pm UTC](https://discourse.processing.org/t/how-to-get-screen-coordinates-for-fit-to-screen-function/22514 "2020-08-07T19:29:13Z")

</div>

I want to make a “Fit to Screen” function if it does not already exist. I need the screen coordinates to find the max width of the image compared to “width”. I found a mention of “frame.getInsets().left”. If this is what…

---

## [Launch() with additional Parameters](https://discourse.processing.org/t/launch-with-additional-parameters/23114)

<div class="topic-metadata">

**Author:** [@YellowGTM](https://discourse.processing.org/u/YellowGTM)\
**Replies:** 1\
**Last updated:** [August 7, 2020, 6:37pm UTC](https://discourse.processing.org/t/launch-with-additional-parameters/23114 "2020-08-07T18:37:41Z")

</div>

Is Processing able to handle Launch strings with added parameters such as the example below? This is a path copied from a program shortcut: “C:\\Program Files (x86)\\Navigator19\\PC\_Navigator\\PC\_Navigator.exe” --atlas=‘C:…

---

## [p5.Vector.mult issue](https://discourse.processing.org/t/p5-vector-mult-issue/23108)

<div class="topic-metadata">

**Author:** [@subhash](https://discourse.processing.org/u/subhash)\
**Replies:** 1\
**Last updated:** [August 7, 2020, 6:12pm UTC](https://discourse.processing.org/t/p5-vector-mult-issue/23108 "2020-08-07T18:12:39Z")

</div>

I am trying to multiply two vectors elementwise using p5.Vector.mult(). It shows some odd behavior. Could you tell me what am I doing wrong? My code: let v1 = createVector(-1,1,0); const rot\_axis = p5.Vector.m…

---

## [Random Number Generation without Repetition](https://discourse.processing.org/t/random-number-generation-without-repetition/4767)

<div class="topic-metadata">

**Author:** [@danielo](https://discourse.processing.org/u/danielo)\
**Replies:** 4\
**Last updated:** [August 7, 2020, 3:21pm UTC](https://discourse.processing.org/t/random-number-generation-without-repetition/4767 "2020-08-07T15:21:51Z")

</div>

I am trying to generate random numbers of a specified range (0-35, for example) without generating any number twice until all numbers have been generated once. Thank you for any guidance. Regards, Daniel

---

## [Anyone use Twitter?](https://discourse.processing.org/t/anyone-use-twitter/21997)

<div class="topic-metadata">

**Author:** [@furinax](https://discourse.processing.org/u/furinax)\
**Replies:** 6\
**Last updated:** [August 2, 2020, 2:25pm UTC](https://discourse.processing.org/t/anyone-use-twitter/21997 "2020-08-02T14:25:50Z")

</div>

Just wondering if there are any hashtags or people worth subscribing to out there. I’ve found twitter a great resource for knowing what opinions coding professionals have on certain upcoming topics. Does the creative cod…

---

## [How to increase number?](https://discourse.processing.org/t/how-to-increase-number/23024)

<div class="topic-metadata">

**Author:** [@Rai](https://discourse.processing.org/u/Rai)\
**Replies:** 14\
**Last updated:** [August 7, 2020, 6:22am UTC](https://discourse.processing.org/t/how-to-increase-number/23024 "2020-08-07T06:22:42Z")

</div>

int i = 33; void setup() { } void draw() { for (char c = char(i); c \< i+58; c++) println( i + " : " + c); } how to increase number i to 34, 35, 36, etc thanks

---

## [How to use 'BeatDetect' correctly with Minim library?](https://discourse.processing.org/t/how-to-use-beatdetect-correctly-with-minim-library/23034)

<div class="topic-metadata">

**Author:** [@anon76195010](https://discourse.processing.org/u/anon76195010)\
**Replies:** 18\
**Last updated:** [August 7, 2020, 12:51am UTC](https://discourse.processing.org/t/how-to-use-beatdetect-correctly-with-minim-library/23034 "2020-08-07T00:51:46Z")

</div>

On this page http://code.compartmental.net/minim/beatdetect\_class\_beatdetect.html I am trying to figure out how to detect beats. There is some confusions that I have. void draw() { background(0); beat.detect(song.…

---

## [Cost to port ~800 loc in Processing to P5](https://discourse.processing.org/t/cost-to-port-800-loc-in-processing-to-p5/23062)

<div class="topic-metadata">

**Author:** [@ottenm](https://discourse.processing.org/u/ottenm)\
**Replies:** 4\
**Last updated:** [August 6, 2020, 10:54pm UTC](https://discourse.processing.org/t/cost-to-port-800-loc-in-processing-to-p5/23062 "2020-08-06T22:54:21Z")

</div>

We have a mature prototype built in Processing (NetBeans dev, about 800 lines of Java) and are looking to port it to P5 for browser accessibility and consumer release. Anyone venture a ballpark range of what it might co…

---

## [How to add Google AdMob to android sketch?](https://discourse.processing.org/t/how-to-add-google-admob-to-android-sketch/23022)

<div class="topic-metadata">

**Author:** [@Lucas](https://discourse.processing.org/u/Lucas)\
**Replies:** 13\
**Last updated:** [August 6, 2020, 10:00pm UTC](https://discourse.processing.org/t/how-to-add-google-admob-to-android-sketch/23022 "2020-08-06T22:00:02Z")

</div>

Hello everyone, I have created a game I would like to publish, but I need to add ads to it. I have looked through a lot of posts about adding Google AdMob to a sketch, but all of the post are out dated and when applied…

---

## [Network events synchronization problem](https://discourse.processing.org/t/network-events-synchronization-problem/22907)

<div class="topic-metadata">

**Author:** [@alexis.lacasse.1](https://discourse.processing.org/u/alexis.lacasse.1)\
**Replies:** 3\
**Last updated:** [August 6, 2020, 9:13pm UTC](https://discourse.processing.org/t/network-events-synchronization-problem/22907 "2020-08-06T21:13:19Z")

</div>

Hi, I’m using serverEvent, clientEvent and disconnectEvent events to make a basic HTTP server. There seems to be synchronization problems between each events. Here’s my code: import processing.net.\*; byte\[\]\[\] Files = …

---

## [Print Array of image in terminal](https://discourse.processing.org/t/print-array-of-image-in-terminal/23090)

<div class="topic-metadata">

**Author:** [@juanjoc](https://discourse.processing.org/u/juanjoc)\
**Replies:** 4\
**Last updated:** [August 6, 2020, 9:49pm UTC](https://discourse.processing.org/t/print-array-of-image-in-terminal/23090 "2020-08-06T21:49:26Z")

</div>

Hello everyone. I’m interested in printing the array data of an image in terminal. For example in python I load the image, then I only use print(image) to see the array list of the picture. In processing this is not as t…

---

## [I need Help with save a int](https://discourse.processing.org/t/i-need-help-with-save-a-int/20934)

<div class="topic-metadata">

**Author:** [@Rogo](https://discourse.processing.org/u/Rogo)\
**Replies:** 46\
**Last updated:** [August 6, 2020, 6:57pm UTC](https://discourse.processing.org/t/i-need-help-with-save-a-int/20934 "2020-08-06T18:57:04Z")

</div>

Hello I wanted to ask how I can Save the int below in the Text because someone has an idea? int score = 0; void setup(){ orientation(PORTRAIT); } void draw(){ background(0); fill(#FFFFFF); textSize(75); text…

---

## [Workflow in p5js](https://discourse.processing.org/t/workflow-in-p5js/23076)

<div class="topic-metadata">

**Author:** [@Tahsin](https://discourse.processing.org/u/Tahsin)\
**Replies:** 2\
**Last updated:** [August 6, 2020, 5:34pm UTC](https://discourse.processing.org/t/workflow-in-p5js/23076 "2020-08-06T17:34:57Z")

</div>

Hey! So, I mostly code in processing java and py. But I wanna get started with javascript. I’ve tried the online p5 editor. But I couldn’t find a way to integrate it with github. I tried using localhost just like Dan s…

---

## [Sketch Freezes/Stops When Going To Home And Lock Screen](https://discourse.processing.org/t/sketch-freezes-stops-when-going-to-home-and-lock-screen/23075)

<div class="topic-metadata">

**Author:** [@Lucas](https://discourse.processing.org/u/Lucas)\
**Replies:** 3\
**Last updated:** [August 6, 2020, 4:07pm UTC](https://discourse.processing.org/t/sketch-freezes-stops-when-going-to-home-and-lock-screen/23075 "2020-08-06T16:07:53Z")

</div>

Hello everyone, I was wondering if your android app sketch freezes when you go to the home screen and then go back to your app without fully closing and reopening the app. Does it freeze when you are on your app and yo…

---

## [Having trouble with a simple drawing program in p5.js](https://discourse.processing.org/t/having-trouble-with-a-simple-drawing-program-in-p5-js/23074)

<div class="topic-metadata">

**Author:** [@alligatorpears](https://discourse.processing.org/u/alligatorpears)\
**Replies:** 5\
**Last updated:** [August 6, 2020, 4:01pm UTC](https://discourse.processing.org/t/having-trouble-with-a-simple-drawing-program-in-p5-js/23074 "2020-08-06T16:01:27Z")

</div>

Okay, so I am working on a very basic drawing program that so far has drawing, erasing, color picking, stroke weight, etc. However, I am now trying to make an eyedropper tool. How I want it to work is: You click on the e…

---

## [String Array {}](https://discourse.processing.org/t/string-array/23082)

<div class="topic-metadata">

**Author:** [@NoName](https://discourse.processing.org/u/NoName)\
**Replies:** 9\
**Last updated:** [August 6, 2020, 3:13pm UTC](https://discourse.processing.org/t/string-array/23082 "2020-08-06T15:13:45Z")

</div>

can i re-declare the variables in curly braces after declaring the string array? / String \[\] test = new String \[500\]; void setup(){} void draw(){ test \[\] = {“shshsj”, “sjjsjsjs”, “2+288383”}; } \</ this does not w…

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

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