# Latest

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

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

**Page:** 439

---

## [TextView with icon](https://discourse.processing.org/t/textview-with-icon/14630)

<div class="topic-metadata">

**Author:** [@noel](https://discourse.processing.org/u/noel)\
**Replies:** 0\
**Last updated:** [October 12, 2019, 1:21pm UTC](https://discourse.processing.org/t/textview-with-icon/14630 "2019-10-12T13:21:00Z")

</div>

Hi. I want to add an icon to my TextView with something like: TextView tv = (TextView) findViewById(TxtViewIdNumber); tv.setCompoundDrawablesWithIntrinsicBounds(R.drawable.icon, 0, 0, 0) But since I only have the data…

---

## [Processing with pi4](https://discourse.processing.org/t/processing-with-pi4/14617)

<div class="topic-metadata">

**Author:** [@maddyna](https://discourse.processing.org/u/maddyna)\
**Replies:** 3\
**Last updated:** [October 12, 2019, 1:27am UTC](https://discourse.processing.org/t/processing-with-pi4/14617 "2019-10-12T01:27:34Z")

</div>

I am trying to use raspberrypi 4 model with processing I am using the GLvideo library to capture live footage using a v2 camera module of raspberry pi. While trying to run the sample code I am not being able to get the…

---

## [Convert Image into ascii value](https://discourse.processing.org/t/convert-image-into-ascii-value/14602)

<div class="topic-metadata">

**Author:** [@shonerudeetha](https://discourse.processing.org/u/shonerudeetha)\
**Replies:** 6\
**Last updated:** [October 11, 2019, 9:46pm UTC](https://discourse.processing.org/t/convert-image-into-ascii-value/14602 "2019-10-11T21:46:33Z")

</div>

sir,i am a beginner for processing…my aim is convert any image into a blinking LED.i did any ascii value into blinking LEd via arduino…Now i need to know how to convert a given image into ascii value… …because i did asci…

---

## [Draw line on image?](https://discourse.processing.org/t/draw-line-on-image/14587)

<div class="topic-metadata">

**Author:** [@darinb](https://discourse.processing.org/u/darinb)\
**Replies:** 12\
**Last updated:** [October 11, 2019, 9:37pm UTC](https://discourse.processing.org/t/draw-line-on-image/14587 "2019-10-11T21:37:53Z")

</div>

This maybe be the most newbie question of the day. :slight\_smile: The boiled down version: I want to display a photograph. Before I display it I want to draw a line, top to bottom, through the image. The line won’t be c…

---

## [Stop() method for p5.Part not working?](https://discourse.processing.org/t/stop-method-for-p5-part-not-working/14618)

<div class="topic-metadata">

**Author:** [@leobrooks](https://discourse.processing.org/u/leobrooks)\
**Replies:** 0\
**Last updated:** [October 11, 2019, 9:07pm UTC](https://discourse.processing.org/t/stop-method-for-p5-part-not-working/14618 "2019-10-11T21:07:35Z")

</div>

Hello, I’m working on a program where the p5.Part and p5.Phrases are at the core of what I want it to be able to do. However, the stop() method, which says it should reset the Part to step 0 doesn’t seem to work. I know…

---

## [Two microphone inputs](https://discourse.processing.org/t/two-microphone-inputs/14321)

<div class="topic-metadata">

**Author:** [@l3ehfar](https://discourse.processing.org/u/l3ehfar)\
**Replies:** 3\
**Last updated:** [October 11, 2019, 8:40pm UTC](https://discourse.processing.org/t/two-microphone-inputs/14321 "2019-10-11T20:40:11Z")

</div>

I wanna know how to get two mic inputs in my p5js code. actually my sound card has two input channels and I wanna process each channel’s signal separated from the other in my code.

---

## [Custom AlertDialog box](https://discourse.processing.org/t/custom-alertdialog-box/14588)

<div class="topic-metadata">

**Author:** [@noel](https://discourse.processing.org/u/noel)\
**Replies:** 1\
**Last updated:** [October 11, 2019, 8:39pm UTC](https://discourse.processing.org/t/custom-alertdialog-box/14588 "2019-10-11T20:39:32Z")

</div>

Hi. The code below will popup a dialog box, giving the option to continue or end the program. I want to customize the box using a text view. The uncommented setting does however not work. How can I link this? import…

---

## [Analyzing two SoundFile objects at the same time](https://discourse.processing.org/t/analyzing-two-soundfile-objects-at-the-same-time/14616)

<div class="topic-metadata">

**Author:** [@Brunehilde](https://discourse.processing.org/u/Brunehilde)\
**Replies:** 3\
**Last updated:** [October 11, 2019, 8:25pm UTC](https://discourse.processing.org/t/analyzing-two-soundfile-objects-at-the-same-time/14616 "2019-10-11T20:25:20Z")

</div>

Hi there, I was setting up a test scene to, well, test stuff, when I stumbled across this problem : it would seem that I can’t analyze two SoundFile objects at the same time. I’ve tried with a WhiteNoise and an AudioIn a…

---

## [Git Bash and how to get repository with it](https://discourse.processing.org/t/git-bash-and-how-to-get-repository-with-it/14527)

<div class="topic-metadata">

**Author:** [@mathilde.lavoie](https://discourse.processing.org/u/mathilde.lavoie)\
**Replies:** 1\
**Last updated:** [October 11, 2019, 8:15pm UTC](https://discourse.processing.org/t/git-bash-and-how-to-get-repository-with-it/14527 "2019-10-11T20:15:07Z")

</div>

Hi there can someone explain me how to get a repository from Git Hub and open it in Processing using the application Git Bash, i dont find the answer online. Thanks for the answer!

---

## [TextView with border stroke](https://discourse.processing.org/t/textview-with-border-stroke/14570)

<div class="topic-metadata">

**Author:** [@noel](https://discourse.processing.org/u/noel)\
**Replies:** 1\
**Last updated:** [October 11, 2019, 7:06pm UTC](https://discourse.processing.org/t/textview-with-border-stroke/14570 "2019-10-11T19:06:38Z")

</div>

Hi. I want a textView with a gray background, white text and a red border stroke. In the code below I get the border and text but the background becomes transparent. What is the right way to achieve this? import andro…

---

## [Rotating vectors around the Y-axis](https://discourse.processing.org/t/rotating-vectors-around-the-y-axis/14613)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 1\
**Last updated:** [October 11, 2019, 4:58pm UTC](https://discourse.processing.org/t/rotating-vectors-around-the-y-axis/14613 "2019-10-11T16:58:00Z")

</div>

Dear all, I would need your help to compute the vectors of a 3D curl field. In 2D I used to: create a vector field in 2D place a bunch of points randomly in that field have the vectors pointing to their closest point …

---

## [Interactive Light up Grid Game](https://discourse.processing.org/t/interactive-light-up-grid-game/14606)

<div class="topic-metadata">

**Author:** [@JPG](https://discourse.processing.org/u/JPG)\
**Replies:** 4\
**Last updated:** [October 11, 2019, 3:14pm UTC](https://discourse.processing.org/t/interactive-light-up-grid-game/14606 "2019-10-11T15:14:27Z")

</div>

Hi everyone, The outline of the project is we create a simple 3 x 3 grid of boxes. Then what I want to achieve is a random box will light up and you have to put the mouse in that box. Then another box will light up and …

---

## [Unable to use P3D](https://discourse.processing.org/t/unable-to-use-p3d/1873)

<div class="topic-metadata">

**Author:** [@JohnAo](https://discourse.processing.org/u/JohnAo)\
**Replies:** 6\
**Last updated:** [October 11, 2019, 2:03pm UTC](https://discourse.processing.org/t/unable-to-use-p3d/1873 "2019-10-11T14:03:34Z")

</div>

Everything worked just fine yesterday, but now I cannot even run a simple sketch like this: void setup() { size(200,200,P3D); } void draw() { } When I click “Run”, nothing happens. Please let me know if I can provi…

---

## [How To Draw An Image File As PShapes?](https://discourse.processing.org/t/how-to-draw-an-image-file-as-pshapes/14597)

<div class="topic-metadata">

**Author:** [@XXX](https://discourse.processing.org/u/XXX)\
**Replies:** 9\
**Last updated:** [October 11, 2019, 12:34pm UTC](https://discourse.processing.org/t/how-to-draw-an-image-file-as-pshapes/14597 "2019-10-11T12:34:47Z")

</div>

I would like to draw an image file as PShapes; however, the result is a black canvas. How may I correct this to display the image as PShapes? // Global Variables. PImage img; // Setup. void setup() { // Size of c…

---

## [Arduino/Processing Radar](https://discourse.processing.org/t/arduino-processing-radar/14599)

<div class="topic-metadata">

**Author:** [@WildMan98](https://discourse.processing.org/u/WildMan98)\
**Replies:** 1\
**Last updated:** [October 11, 2019, 11:47am UTC](https://discourse.processing.org/t/arduino-processing-radar/14599 "2019-10-11T11:47:16Z")

</div>

I’m making a Radar with the help of Arduino. However, the processing code shows this error message. RuntimeException: Error opening serial port COM3: Port busy This is my code; import processing.serial.\*; // imports l…

---

## [Spirograph with matrix transformations](https://discourse.processing.org/t/spirograph-with-matrix-transformations/14567)

<div class="topic-metadata">

**Author:** [@neotechnic](https://discourse.processing.org/u/neotechnic)\
**Replies:** 2\
**Last updated:** [October 11, 2019, 6:27am UTC](https://discourse.processing.org/t/spirograph-with-matrix-transformations/14567 "2019-10-11T06:27:06Z")

</div>

I am trying to create a simple spirograph project with matrix transformation technique. I took an algorithm based on sin math, but in the end driving paths do not match. Any idea why I get a different trajectory? trans…

---

## [Sketch path is not set](https://discourse.processing.org/t/sketch-path-is-not-set/2279)

<div class="topic-metadata">

**Author:** [@Rfblock](https://discourse.processing.org/u/Rfblock)\
**Replies:** 5\
**Last updated:** [October 11, 2019, 4:49am UTC](https://discourse.processing.org/t/sketch-path-is-not-set/2279 "2019-10-11T04:49:04Z")

</div>

I’m using the Yahoo Weather Library GitHub - delvedor/YahooWeatherProcessing: Yahoo Weather library for Processing however I get an error whenever i try to create a weather object. My code: import processing.serial…

---

## [Adding an Array but gets NullPointException](https://discourse.processing.org/t/adding-an-array-but-gets-nullpointexception/14595)

<div class="topic-metadata">

**Author:** [@DatSoi](https://discourse.processing.org/u/DatSoi)\
**Replies:** 1\
**Last updated:** [October 11, 2019, 3:48am UTC](https://discourse.processing.org/t/adding-an-array-but-gets-nullpointexception/14595 "2019-10-11T03:48:32Z")

</div>

Hi, so im working on a code where it will track a users face through the OpenCV library. At the moment the code works with a single image and will trace the users face. However when i add an Array to it to add a element …

---

## [Audio plays but screen stays black](https://discourse.processing.org/t/audio-plays-but-screen-stays-black/14586)

<div class="topic-metadata">

**Author:** [@SimonRedfox](https://discourse.processing.org/u/SimonRedfox)\
**Replies:** 1\
**Last updated:** [October 11, 2019, 1:52am UTC](https://discourse.processing.org/t/audio-plays-but-screen-stays-black/14586 "2019-10-11T01:52:20Z")

</div>

Here is my code, the scenario is opened from Arduino button. One button plays 1 and the other 2. The buttons and the printing work good. The screen opens, audio plays but the movie/frames don’t. import processing.serial…

---

## [Keyboard controls for multiplayer games](https://discourse.processing.org/t/keyboard-controls-for-multiplayer-games/14580)

<div class="topic-metadata">

**Author:** [@KowtowToMao](https://discourse.processing.org/u/KowtowToMao)\
**Replies:** 2\
**Last updated:** [October 11, 2019, 12:27am UTC](https://discourse.processing.org/t/keyboard-controls-for-multiplayer-games/14580 "2019-10-11T00:27:19Z")

</div>

I’m trying to make a variant of pong, as well as a tanks game, but I can’t find a good way to make multiplayer work. Advice? Current method in the pong variant is shown below, but it has trouble taking multiple inputs at…

---

## [Arduino – Processing – Java](https://discourse.processing.org/t/arduino-processing-java/14581)

<div class="topic-metadata">

**Author:** [@Jojo43](https://discourse.processing.org/u/Jojo43)\
**Replies:** 1\
**Last updated:** [October 10, 2019, 5:18pm UTC](https://discourse.processing.org/t/arduino-processing-java/14581 "2019-10-10T17:18:00Z")

</div>

I want to reach the values of the counter about processing. My problem is that my Arduino output is X20, and Y20 (step) and I want the output to be displayed on two surfaces One for X and Second Y. String X20 on X and 2…

---

## [Transparent images](https://discourse.processing.org/t/transparent-images/3337)

<div class="topic-metadata">

**Author:** [@ShowStopper](https://discourse.processing.org/u/ShowStopper)\
**Replies:** 8\
**Last updated:** [October 10, 2019, 2:30pm UTC](https://discourse.processing.org/t/transparent-images/3337 "2019-10-10T14:30:34Z")

</div>

Wondering if theres any good way to use transparent images (images that do not have a rectangular border) in processing. I remember being able to do this once before but every time I try it now the image always has a whi…

---

## [I can't find this error online](https://discourse.processing.org/t/i-cant-find-this-error-online/14569)

<div class="topic-metadata">

**Author:** [@SimonRedfox](https://discourse.processing.org/u/SimonRedfox)\
**Replies:** 1\
**Last updated:** [October 10, 2019, 12:02pm UTC](https://discourse.processing.org/t/i-cant-find-this-error-online/14569 "2019-10-10T12:02:41Z")

</div>

\*\* (Processing core video:1627): WARNING \*\*: gstvideo: failed to get framerate property of pad playsink1:audio\_sink This is the error I’m getting for the following codes processing: import processing.serial.\*; import …

---

## [Mirror video doodles. ArrayIndexOutOfBoundsException](https://discourse.processing.org/t/mirror-video-doodles-arrayindexoutofboundsexception/14557)

<div class="topic-metadata">

**Author:** [@elom1213](https://discourse.processing.org/u/elom1213)\
**Replies:** 2\
**Last updated:** [October 10, 2019, 9:17am UTC](https://discourse.processing.org/t/mirror-video-doodles-arrayindexoutofboundsexception/14557 "2019-10-10T09:17:38Z")

</div>

While I’m studying the book ‘Learning processing’, written by Daniel Shiffman, there’s keep error on my code. import processing.video.\*; Capture video; float x; float y; void setup() { size(352, 288); background(2…

---

## [Losing saved parts of sketches (tabs)](https://discourse.processing.org/t/losing-saved-parts-of-sketches-tabs/14391)

<div class="topic-metadata">

**Author:** [@GvB](https://discourse.processing.org/u/GvB)\
**Replies:** 9\
**Last updated:** [October 10, 2019, 9:10am UTC](https://discourse.processing.org/t/losing-saved-parts-of-sketches-tabs/14391 "2019-10-10T09:10:52Z")

</div>

Working on a larger project and having occasional reoccuring problems with saved sketches. They do not seem to save that well to files. My sketch exists of 7 different tabs. Every so often one of these tabs (x.pde) seem…

---

## [Problem with setup() loading order, instantiate an object with 'width' and 'height'](https://discourse.processing.org/t/problem-with-setup-loading-order-instantiate-an-object-with-width-and-height/14552)

<div class="topic-metadata">

**Author:** [@Protos](https://discourse.processing.org/u/Protos)\
**Replies:** 4\
**Last updated:** [October 10, 2019, 8:01am UTC](https://discourse.processing.org/t/problem-with-setup-loading-order-instantiate-an-object-with-width-and-height/14552 "2019-10-10T08:01:53Z")

</div>

Hi, How can I reliably provide width and height to the constructor while creating an object instance. I am constructing a “device object” from a class which is automatically loaded before setup() is executed. In the de…

---

## [Android width and height issue](https://discourse.processing.org/t/android-width-and-height-issue/14511)

<div class="topic-metadata">

**Author:** [@Yash](https://discourse.processing.org/u/Yash)\
**Replies:** 8\
**Last updated:** [October 10, 2019, 4:14am UTC](https://discourse.processing.org/t/android-width-and-height-issue/14511 "2019-10-10T04:14:34Z")

</div>

Hi…i am displaying text at width/2-100 , height/2 -100 ,the ellipse is at (width/2 , height/2 ,200,200)…The text is expected to start at the beginning of the ellipse…but it varies according to the phone…in some phones it…

---

## [Fireworks Question](https://discourse.processing.org/t/fireworks-question/14564)

<div class="topic-metadata">

**Author:** [@philspitler](https://discourse.processing.org/u/philspitler)\
**Replies:** 2\
**Last updated:** [October 10, 2019, 4:01am UTC](https://discourse.processing.org/t/fireworks-question/14564 "2019-10-10T04:01:04Z")

</div>

Hi, I have followed this great tutorial by @shiffman And am trying to weak one aspect of the animation without affecting other properties. Basically I want the tail (start of the firework) to shoot up fas…

---

## [Tracking high score for android](https://discourse.processing.org/t/tracking-high-score-for-android/678)

<div class="topic-metadata">

**Author:** [@CrispyCabot](https://discourse.processing.org/u/CrispyCabot)\
**Replies:** 6\
**Last updated:** [June 4, 2018, 3:03pm UTC](https://discourse.processing.org/t/tracking-high-score-for-android/678 "2018-06-04T15:03:28Z")

</div>

So it’s all in the title. I have no idea what to do. I was hoping loadStrings and saveStrings would work but it didn’t so I’m assuming these don’t work with processing for android. So how would I go about tracking a high…

---

## [Can someone help explain this to me?](https://discourse.processing.org/t/can-someone-help-explain-this-to-me/14563)

<div class="topic-metadata">

**Author:** [@isaacpowwow](https://discourse.processing.org/u/isaacpowwow)\
**Replies:** 1\
**Last updated:** [October 10, 2019, 2:12am UTC](https://discourse.processing.org/t/can-someone-help-explain-this-to-me/14563 "2019-10-10T02:12:54Z")

</div>

void draw(){ stroke(8,65,92); float steps29 = 1026.4 ; int distance29 = 670 ; int floors = 48; float pointAngle = 360.0/floors; int radius = 670; strokeWeight(1.5); for (float angle = 0; angle \< 360.0; angle = ang…

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

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