# Latest

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

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

**Page:** 422

---

## [Difference between two times (measuring time)](https://discourse.processing.org/t/difference-between-two-times-measuring-time/15728)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 6\
**Last updated:** [November 25, 2019, 1:30am UTC](https://discourse.processing.org/t/difference-between-two-times-measuring-time/15728 "2019-11-25T01:30:21Z")

</div>

Hello all, \[Edited\] let’s say I have times like 00:36:04 and 03:16:05 as Strings (which is an actual time and not a duration). How can I have the difference (duration) between the two times like “4h, 23min, 13sec” or…

---

## [Help creating simple animation](https://discourse.processing.org/t/help-creating-simple-animation/14089)

<div class="topic-metadata">

**Author:** [@clpeng](https://discourse.processing.org/u/clpeng)\
**Replies:** 23\
**Last updated:** [November 25, 2019, 1:20am UTC](https://discourse.processing.org/t/help-creating-simple-animation/14089 "2019-11-25T01:20:20Z")

</div>

Trying to replicate a simple animation I did years ago in assembler. I want to draw a rectangle, display it for a set time, erase it, then draw another slightly larger rectangle, display for a time, erase, etc. Thanks! …

---

## [Issue with keyPressed](https://discourse.processing.org/t/issue-with-keypressed/15755)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 3\
**Last updated:** [November 25, 2019, 1:16am UTC](https://discourse.processing.org/t/issue-with-keypressed/15755 "2019-11-25T01:16:38Z")

</div>

I want to add some key functionality to my program, it works fine for arrow keys but not for other keys if(keyPressed && keyCode ==37){ flyingx += 0.1; } if(keyPressed && keyCode ==39){ …

---

## [Processing not writing on a file](https://discourse.processing.org/t/processing-not-writing-on-a-file/9037)

<div class="topic-metadata">

**Author:** [@begosustatx](https://discourse.processing.org/u/begosustatx)\
**Replies:** 10\
**Last updated:** [November 24, 2019, 11:27pm UTC](https://discourse.processing.org/t/processing-not-writing-on-a-file/9037 "2019-11-24T23:27:24Z")

</div>

Good morning, I am trying to save some data that my arduino is getting and save it into a file, the problem is the processing is not writing into the file, the data is correct and the processing is getting the data perfe…

---

## [Arduino To Processing Error For Capactive Sensor](https://discourse.processing.org/t/arduino-to-processing-error-for-capactive-sensor/15781)

<div class="topic-metadata">

**Author:** [@SusanAlyse001](https://discourse.processing.org/u/SusanAlyse001)\
**Replies:** 16\
**Last updated:** [November 25, 2019, 12:42am UTC](https://discourse.processing.org/t/arduino-to-processing-error-for-capactive-sensor/15781 "2019-11-25T00:42:57Z")

</div>

Hello, I have successfully drafted the Ardunio code for capacitive sensing. The serial Monitor shows right values. Also, I have successful drafted the processing code which shows the exact same values from Arduino’s se…

---

## [Issues classifying a drawing with ml5.js](https://discourse.processing.org/t/issues-classifying-a-drawing-with-ml5-js/14827)

<div class="topic-metadata">

**Author:** [@ishback](https://discourse.processing.org/u/ishback)\
**Replies:** 4\
**Last updated:** [November 24, 2019, 11:17pm UTC](https://discourse.processing.org/t/issues-classifying-a-drawing-with-ml5-js/14827 "2019-11-24T23:17:33Z")

</div>

Hello, I’m trying to classify drawings with a custom model generated by Teachable Machine. To do so I’m storing the doodle in a p5.Renderer object using createGraphics(), and sending that object to the classifier. I no…

---

## [How to separately animate characters in a string after scaling and centering](https://discourse.processing.org/t/how-to-separately-animate-characters-in-a-string-after-scaling-and-centering/15663)

<div class="topic-metadata">

**Author:** [@jimather](https://discourse.processing.org/u/jimather)\
**Replies:** 3\
**Last updated:** [November 24, 2019, 10:22pm UTC](https://discourse.processing.org/t/how-to-separately-animate-characters-in-a-string-after-scaling-and-centering/15663 "2019-11-24T22:22:20Z")

</div>

Hi, What I’m trying to do is animate the characters in a string independently of one another and have them all “home” into a centred and scaled position as one final string allowing the OS to adjust for different screen…

---

## [mouseOver created object does not trigger function in p5](https://discourse.processing.org/t/mouseover-created-object-does-not-trigger-function-in-p5/15752)

<div class="topic-metadata">

**Author:** [@gjs](https://discourse.processing.org/u/gjs)\
**Replies:** 6\
**Last updated:** [November 24, 2019, 9:36pm UTC](https://discourse.processing.org/t/mouseover-created-object-does-not-trigger-function-in-p5/15752 "2019-11-24T21:36:54Z")

</div>

Hi. I would be grateful for your thoughts as to why my code fails to print “mouse is over graphic” when I move the mouse over the image “pg.” (However, if I set it up as createCanvas rather than createGraphics, it works.…

---

## [Hi I'm new to Processing and struggling](https://discourse.processing.org/t/hi-im-new-to-processing-and-struggling/15774)

<div class="topic-metadata">

**Author:** [@ousmm](https://discourse.processing.org/u/ousmm)\
**Replies:** 9\
**Last updated:** [November 24, 2019, 9:12pm UTC](https://discourse.processing.org/t/hi-im-new-to-processing-and-struggling/15774 "2019-11-24T21:12:46Z")

</div>

Hi i’m new to processing and coding in general , i have a project that is due in 6 hours and i have problems everywhere in my code , i keep looking of them and cant find anything and i’m very desperate.can you guys help…

---

## [Template.pde variables?](https://discourse.processing.org/t/template-pde-variables/15767)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 4\
**Last updated:** [November 24, 2019, 8:24pm UTC](https://discourse.processing.org/t/template-pde-variables/15767 "2019-11-24T20:24:32Z")

</div>

Are there any date/time variables available to use in a sketch.pde template so new files will have the current date inside them when a new sketch is created? I’m referring to the idea of creating a template as shown in h…

---

## [Cascaded function call question](https://discourse.processing.org/t/cascaded-function-call-question/15688)

<div class="topic-metadata">

**Author:** [@meow](https://discourse.processing.org/u/meow)\
**Replies:** 11\
**Last updated:** [November 24, 2019, 6:40pm UTC](https://discourse.processing.org/t/cascaded-function-call-question/15688 "2019-11-24T18:40:46Z")

</div>

int chi(int a) { int b = foo(a); if(b \< 5 ) { return a - b; } else { return a - b + 10; } } 47 283 0 how to do this question?

---

## [Add texts in markers using unfolding maps?](https://discourse.processing.org/t/add-texts-in-markers-using-unfolding-maps/15749)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 3\
**Last updated:** [November 24, 2019, 3:56pm UTC](https://discourse.processing.org/t/add-texts-in-markers-using-unfolding-maps/15749 "2019-11-24T15:56:23Z")

</div>

Hi, I was wondering, how to do this. The following is what I have tried so far. import de.fhpotsdam.unfolding.\*; import de.fhpotsdam.unfolding.geo.\*; import de.fhpotsdam.unfolding.utils.\*; import de.fhpotsdam.unfolding.…

---

## [How to remove a marker in unfolding?](https://discourse.processing.org/t/how-to-remove-a-marker-in-unfolding/15746)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 2\
**Last updated:** [November 24, 2019, 3:23pm UTC](https://discourse.processing.org/t/how-to-remove-a-marker-in-unfolding/15746 "2019-11-24T15:23:18Z")

</div>

Hi, I was wondering, how to remove a marker in unfolding map with processing 3. The following is some code: import de.fhpotsdam.unfolding.\*; import de.fhpotsdam.unfolding.geo.\*; import de.fhpotsdam.unfolding.utils.\*; im…

---

## [Ball on platforms \[School project\]](https://discourse.processing.org/t/ball-on-platforms-school-project/15764)

<div class="topic-metadata">

**Author:** [@alltimedreamcatcher](https://discourse.processing.org/u/alltimedreamcatcher)\
**Replies:** 5\
**Last updated:** [November 24, 2019, 1:28pm UTC](https://discourse.processing.org/t/ball-on-platforms-school-project/15764 "2019-11-24T13:28:43Z")

</div>

Hi ! Sorry if this is a bit random, I’ve never actually asked a question on here and english isn’t my first language but anyway, I have to do this project for school and I did like 85% of it no problem but I still have …

---

## [Get and Set System Output Volume](https://discourse.processing.org/t/get-and-set-system-output-volume/15761)

<div class="topic-metadata">

**Author:** [@mildyredbeard](https://discourse.processing.org/u/mildyredbeard)\
**Replies:** 1\
**Last updated:** [November 24, 2019, 12:13pm UTC](https://discourse.processing.org/t/get-and-set-system-output-volume/15761 "2019-11-24T12:13:29Z")

</div>

Hi Everyone, I’m working on a project that is supposed to take the Windows Output Volume, and map that to an LED strip. I’ve managed to get everything working exactly the way I want except for the part where I actually …

---

## [How to load image in Android Studio](https://discourse.processing.org/t/how-to-load-image-in-android-studio/15756)

<div class="topic-metadata">

**Author:** [@soet\_za](https://discourse.processing.org/u/soet_za)\
**Replies:** 3\
**Last updated:** [November 24, 2019, 11:05am UTC](https://discourse.processing.org/t/how-to-load-image-in-android-studio/15756 "2019-11-24T11:05:27Z")

</div>

How do I load an image and where do I place the image file, in which directory? example: public PImage img; public void setup(){ img = loadImage(“image.png”); } public void draw(){ image(img , 0, 0, 64, 64); }

---

## [What comes after cols and rows?](https://discourse.processing.org/t/what-comes-after-cols-and-rows/15729)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 5\
**Last updated:** [November 24, 2019, 2:42am UTC](https://discourse.processing.org/t/what-comes-after-cols-and-rows/15729 "2019-11-24T02:42:15Z")

</div>

General question. What is the standard/conventional name for a component in the z direction

---

## [MIDIBUS: Does using note.setTicks() still require "note off"?](https://discourse.processing.org/t/midibus-does-using-note-setticks-still-require-note-off/15667)

<div class="topic-metadata">

**Author:** [@mark\_orion](https://discourse.processing.org/u/mark_orion)\
**Replies:** 3\
**Last updated:** [November 24, 2019, 12:05am UTC](https://discourse.processing.org/t/midibus-does-using-note-setticks-still-require-note-off/15667 "2019-11-24T00:05:59Z")

</div>

The Midibus library contains a “note” object with an associated method “setTicks()”. Does this mean that midibus automatically sends “note off” when the ticks have passed or is it still required to send the “note off” m…

---

## [Random lines emanating from a sphere in 3D](https://discourse.processing.org/t/random-lines-emanating-from-a-sphere-in-3d/15707)

<div class="topic-metadata">

**Author:** [@nicnut](https://discourse.processing.org/u/nicnut)\
**Replies:** 2\
**Last updated:** [November 24, 2019, 12:05am UTC](https://discourse.processing.org/t/random-lines-emanating-from-a-sphere-in-3d/15707 "2019-11-24T00:05:38Z")

</div>

Hi, I am still pretty new to processing. There are a few things I don’t really have a great grasp on yet, including arrays and 3d space. I am trying to have a Sphere in 3D that has lines emanating from the sphere in r…

---

## [Input does not work on mobile devices](https://discourse.processing.org/t/input-does-not-work-on-mobile-devices/15660)

<div class="topic-metadata">

**Author:** [@CodingIsLife](https://discourse.processing.org/u/CodingIsLife)\
**Replies:** 9\
**Last updated:** [November 23, 2019, 10:17pm UTC](https://discourse.processing.org/t/input-does-not-work-on-mobile-devices/15660 "2019-11-23T22:17:50Z")

</div>

I have a very simple p5 sketch that is running in my desktop computer pretty well. But when I hosted that with github pages just to see if it works on mobile devices I found it not working properly. I had just a single i…

---

## [Beat unstable in graphic animation](https://discourse.processing.org/t/beat-unstable-in-graphic-animation/15493)

<div class="topic-metadata">

**Author:** [@byxx](https://discourse.processing.org/u/byxx)\
**Replies:** 33\
**Last updated:** [November 23, 2019, 11:34am UTC](https://discourse.processing.org/t/beat-unstable-in-graphic-animation/15493 "2019-11-23T11:34:12Z")

</div>

Dear p5 community, https://editor.p5js.org/byxx/sketches/EuJCp1iVI Although the basic functionality is there, it seems that the beat is not really(!) stable, which I considered to be cared for by p5 accurately… thanks…

---

## [Setting up background](https://discourse.processing.org/t/setting-up-background/15689)

<div class="topic-metadata">

**Author:** [@ProcessingNam](https://discourse.processing.org/u/ProcessingNam)\
**Replies:** 2\
**Last updated:** [November 23, 2019, 8:54pm UTC](https://discourse.processing.org/t/setting-up-background/15689 "2019-11-23T20:54:55Z")

</div>

I just moved on from Scratch to Processing. I want to make a project that generates certain tesselations as the background just like scratch. e.g. you can set up certain backgrounds and randomly generate them on scratch.…

---

## [Char to int producing different result](https://discourse.processing.org/t/char-to-int-producing-different-result/15655)

<div class="topic-metadata">

**Author:** [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Replies:** 5\
**Last updated:** [November 23, 2019, 9:34am UTC](https://discourse.processing.org/t/char-to-int-producing-different-result/15655 "2019-11-23T09:34:34Z")

</div>

String bin ="100"; char bit; float sum; void setup(){ size(500,200); noLoop(); sum=0; } void draw(){ background(0); for(int i=0;i\<bin.length();i++){ bit = bin.charAt(bin.length()-1-i); //println(bi…

---

## [Can't run emulator make\_ext4fs\_from\_dir](https://discourse.processing.org/t/cant-run-emulator-make-ext4fs-from-dir/15742)

<div class="topic-metadata">

**Author:** [@soet\_za](https://discourse.processing.org/u/soet_za)\
**Replies:** 7\
**Last updated:** [November 23, 2019, 3:59pm UTC](https://discourse.processing.org/t/cant-run-emulator-make-ext4fs-from-dir/15742 "2019-11-23T15:59:32Z")

</div>

cmd: emulator -avd processing-phone error: make\_ext4fs\_from\_dir: open: Permission denied I have the processing-phone under avd in my documents processing folder and the sdk is installed, I also reinstalled I can’t g…

---

## [Arduino-processing glove](https://discourse.processing.org/t/arduino-processing-glove/15619)

<div class="topic-metadata">

**Author:** [@neneeangulo](https://discourse.processing.org/u/neneeangulo)\
**Replies:** 4\
**Last updated:** [November 23, 2019, 3:26pm UTC](https://discourse.processing.org/t/arduino-processing-glove/15619 "2019-11-23T15:26:09Z")

</div>

Hi! I am trying to make a glove with flex sensors using the arduino UNO board and connecting it to processing to create an animation of a hand. The idea is to have a hand drawn in processing and every time a finger from…

---

## [Glowing ellipse](https://discourse.processing.org/t/glowing-ellipse/15099)

<div class="topic-metadata">

**Author:** [@Yash](https://discourse.processing.org/u/Yash)\
**Replies:** 14\
**Last updated:** [November 23, 2019, 3:35pm UTC](https://discourse.processing.org/t/glowing-ellipse/15099 "2019-11-23T15:35:19Z")

</div>

This is how my sketch (game)looks like.How can i make the ellipse glow and look more appealing? I tried blendmode and understood that doesn’t fit in the game because 1.It takes input as pixels 2.frame rate drops 3…

---

## [Is this realizable in Processing?](https://discourse.processing.org/t/is-this-realizable-in-processing/15544)

<div class="topic-metadata">

**Author:** [@ImDaGr3en](https://discourse.processing.org/u/ImDaGr3en)\
**Replies:** 4\
**Last updated:** [November 23, 2019, 3:08pm UTC](https://discourse.processing.org/t/is-this-realizable-in-processing/15544 "2019-11-23T15:08:50Z")

</div>

Hi folks! I just need your help for a simple question. I’m about on doing a sort of mini-game in which you can choose between playing against the CPU or another player… but I don’t know how! In fact, I need to have a “…

---

## [Processing 3.5 not detecting Pixel 3 XL](https://discourse.processing.org/t/processing-3-5-not-detecting-pixel-3-xl/15735)

<div class="topic-metadata">

**Author:** [@ssdesign](https://discourse.processing.org/u/ssdesign)\
**Replies:** 1\
**Last updated:** [November 23, 2019, 12:52pm UTC](https://discourse.processing.org/t/processing-3-5-not-detecting-pixel-3-xl/15735 "2019-11-23T12:52:51Z")

</div>

Hi, I am trying to connect Android phone to processing and it does not seem to show up on Processing when I look at : Android \> Devices menu. My Pixel3XL settings: Connected via USB to my MacBook Pro USB preferences:…

---

## [Trouble with box transparency](https://discourse.processing.org/t/trouble-with-box-transparency/15708)

<div class="topic-metadata">

**Author:** [@graysonh](https://discourse.processing.org/u/graysonh)\
**Replies:** 4\
**Last updated:** [November 23, 2019, 12:37pm UTC](https://discourse.processing.org/t/trouble-with-box-transparency/15708 "2019-11-23T12:37:14Z")

</div>

I am drawing boxes with color from 0-255 with the same value for alpha. It appears that each box being drawn is only visible from certain angles. The images show the sketch rotating to the left and as it rotates the boxe…

---

## [Are createFont and loadFont unusable in Processing iOS?](https://discourse.processing.org/t/are-createfont-and-loadfont-unusable-in-processing-ios/15714)

<div class="topic-metadata">

**Author:** [@Qwqwwqqqweeewqw](https://discourse.processing.org/u/Qwqwwqqqweeewqw)\
**Replies:** 2\
**Last updated:** [November 23, 2019, 10:43am UTC](https://discourse.processing.org/t/are-createfont-and-loadfont-unusable-in-processing-ios/15714 "2019-11-23T10:43:18Z")

</div>

void setup() { size(screen.width, screen.height); textAlign(CENTER); textFont(createFont("Lato-Medium.ttf", 30)); frameRate(60); } void draw() { ... } I wanted to use Lato font, ant I wrote this code, but …

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

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