# Latest

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

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

**Page:** 363

---

## [Run p5ks sketch in specific div from string](https://discourse.processing.org/t/run-p5ks-sketch-in-specific-div-from-string/19999)

<div class="topic-metadata">

**Author:** [@anon57009815](https://discourse.processing.org/u/anon57009815)\
**Replies:** 4\
**Last updated:** [April 21, 2020, 12:16pm UTC](https://discourse.processing.org/t/run-p5ks-sketch-in-specific-div-from-string/19999 "2020-04-21T12:16:35Z")

</div>

Hello and good day. I am currently acessing a string of a small p5js project and I want to use it to run a new project in a specific div. Any quick help with this? /\*\* small project multiline string \*/ function setup…

---

## [Hello all I have problem with a sound](https://discourse.processing.org/t/hello-all-i-have-problem-with-a-sound/3492)

<div class="topic-metadata">

**Author:** [@cupko24](https://discourse.processing.org/u/cupko24)\
**Replies:** 6\
**Last updated:** [April 21, 2020, 5:16am UTC](https://discourse.processing.org/t/hello-all-i-have-problem-with-a-sound/3492 "2020-04-21T05:16:27Z")

</div>

I got this report, and the sound after every click is lagging more and more. sep 12, 2018 8:09:41 PM com.jsyn.devices.javasound.JavaSoundAudioDevice INFO: JSyn: default output latency set to 80 msec for Windows 7 se…

---

## [Can't get any audio using AudioIn](https://discourse.processing.org/t/cant-get-any-audio-using-audioin/8490)

<div class="topic-metadata">

**Author:** [@SkinnyPete](https://discourse.processing.org/u/SkinnyPete)\
**Replies:** 1\
**Last updated:** [April 21, 2020, 4:54am UTC](https://discourse.processing.org/t/cant-get-any-audio-using-audioin/8490 "2020-04-21T04:54:49Z")

</div>

Hello, I am new to processing.sound and not that experienced generally so please forgive any silly mistakes. import processing.sound.\*; FFT fft; AudioIn in; SoundFile snd; int bands = 256; float\[\] spectrum = new floa…

---

## [How to get the file path of a file dropped in the webpage](https://discourse.processing.org/t/how-to-get-the-file-path-of-a-file-dropped-in-the-webpage/19870)

<div class="topic-metadata">

**Author:** [@CodingIsLife](https://discourse.processing.org/u/CodingIsLife)\
**Replies:** 3\
**Last updated:** [April 21, 2020, 1:38am UTC](https://discourse.processing.org/t/how-to-get-the-file-path-of-a-file-dropped-in-the-webpage/19870 "2020-04-21T01:38:59Z")

</div>

I was trying to make a drag and drop just like this video by Daniel Shiffman https://www.youtube.com/watch?v=o4UmGrPst\_c&t=317s But I was wandering if I could get the file path of the dropped file and thus download the …

---

## [SVG file does not rotate in place on it's center](https://discourse.processing.org/t/svg-file-does-not-rotate-in-place-on-its-center/19829)

<div class="topic-metadata">

**Author:** [@moziauddin](https://discourse.processing.org/u/moziauddin)\
**Replies:** 10\
**Last updated:** [April 21, 2020, 12:45am UTC](https://discourse.processing.org/t/svg-file-does-not-rotate-in-place-on-its-center/19829 "2020-04-21T00:45:52Z")

</div>

Hello, I have an svg file I would like to load and rotate. I have tried it by the traditional translate() and rotate() methods, but they don’t seem to have any effect. I was successfully able to rotate the svg shape usi…

---

## [Trying to convert 2 objects into a super class and a subclass](https://discourse.processing.org/t/trying-to-convert-2-objects-into-a-super-class-and-a-subclass/19977)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 2\
**Last updated:** [April 21, 2020, 12:21am UTC](https://discourse.processing.org/t/trying-to-convert-2-objects-into-a-super-class-and-a-subclass/19977 "2020-04-21T00:21:58Z")

</div>

I’ve watched the videos, read the reference, but am hitting a wall. Not sure what I’m overlooking at this point. Attempting to convert an earlier sketch into one implementing inheritance classes. I think part of the pr…

---

## [Sorting ArrayList of Objects](https://discourse.processing.org/t/sorting-arraylist-of-objects/19552)

<div class="topic-metadata">

**Author:** [@eduzal](https://discourse.processing.org/u/eduzal)\
**Replies:** 11\
**Last updated:** [April 20, 2020, 8:58pm UTC](https://discourse.processing.org/t/sorting-arraylist-of-objects/19552 "2020-04-20T20:58:42Z")

</div>

Hi. I’m having some trouble with sorting ArrayLists of Objects. I’m studying the Comprable interface but still have doubts on it’s implementation. I’m doing a sketch that reads and compile local Covid-19 data. All my da…

---

## [Question: Index Values of Arrays](https://discourse.processing.org/t/question-index-values-of-arrays/19975)

<div class="topic-metadata">

**Author:** [@confusedstudent](https://discourse.processing.org/u/confusedstudent)\
**Replies:** 1\
**Last updated:** [April 20, 2020, 9:15pm UTC](https://discourse.processing.org/t/question-index-values-of-arrays/19975 "2020-04-20T21:15:18Z")

</div>

I was just wondering, if I have an array with 1,000 elements, what is the range of index values for that array?

---

## [Generating Arguments in Functions](https://discourse.processing.org/t/generating-arguments-in-functions/19859)

<div class="topic-metadata">

**Author:** [@confusedstudent](https://discourse.processing.org/u/confusedstudent)\
**Replies:** 2\
**Last updated:** [April 20, 2020, 8:58pm UTC](https://discourse.processing.org/t/generating-arguments-in-functions/19859 "2020-04-20T20:58:55Z")

</div>

Hello! I need some help with functions. My teacher has asked, “Write a function named distance that accepts a vehicle’s speed and time as arguments, and returns the distance the vehicle has traveled.” I am able to c…

---

## [Error Message on console "createElement"](https://discourse.processing.org/t/error-message-on-console-createelement/19765)

<div class="topic-metadata">

**Author:** [@Mem](https://discourse.processing.org/u/Mem)\
**Replies:** 7\
**Last updated:** [April 20, 2020, 8:17pm UTC](https://discourse.processing.org/t/error-message-on-console-createelement/19765 "2020-04-20T20:17:16Z")

</div>

Hello, Any code that I try will give me this console message, (working with chrome) Some code works others not, that’s a very recent issue. There is no createElement on any of my code “p5 had problems creating the gl…

---

## [Using Save() and exporting application macOS](https://discourse.processing.org/t/using-save-and-exporting-application-macos/19549)

<div class="topic-metadata">

**Author:** [@sarina](https://discourse.processing.org/u/sarina)\
**Replies:** 16\
**Last updated:** [April 20, 2020, 6:41pm UTC](https://discourse.processing.org/t/using-save-and-exporting-application-macos/19549 "2020-04-20T18:41:15Z")

</div>

I have used save() in my code to save images of the window to the sketch folder as a ‘screenshot’ function and have exported my program to an application. When I run the application and tried to screenshot the image is …

---

## [Understanding millis()](https://discourse.processing.org/t/understanding-millis/19964)

<div class="topic-metadata">

**Author:** [@14mmss](https://discourse.processing.org/u/14mmss)\
**Replies:** 1\
**Last updated:** [April 20, 2020, 4:10pm UTC](https://discourse.processing.org/t/understanding-millis/19964 "2020-04-20T16:10:46Z")

</div>

hello, I never seem to understand how the mills() function works, I am working on the variation simple stimulus assignment now and the time only continues counting if I keep pressing space, where should I put my initial…

---

## [Is there any way to split a string into an array of characters?](https://discourse.processing.org/t/is-there-any-way-to-split-a-string-into-an-array-of-characters/19521)

<div class="topic-metadata">

**Author:** [@Math\_Machine](https://discourse.processing.org/u/Math_Machine)\
**Replies:** 8\
**Last updated:** [April 20, 2020, 5:31pm UTC](https://discourse.processing.org/t/is-there-any-way-to-split-a-string-into-an-array-of-characters/19521 "2020-04-20T17:31:38Z")

</div>

Is there any way that I can split up a string into an array of its individual components? Like, for example, if I had the string “hello?”, is there any way I could convert that into an array in the form {“h”,“e”,“l”,“l”…

---

## [Help with lab "Changeable Chain"](https://discourse.processing.org/t/help-with-lab-changeable-chain/19966)

<div class="topic-metadata">

**Author:** [@Jonathan25711](https://discourse.processing.org/u/Jonathan25711)\
**Replies:** 3\
**Last updated:** [April 20, 2020, 5:16pm UTC](https://discourse.processing.org/t/help-with-lab-changeable-chain/19966 "2020-04-20T17:16:50Z")

</div>

please format code with \</\> button \* homework policy \* asking questions The labs require this. Instructions for Lab 7.5 Changeable Chain First Lab: First declare two Integer arrays of size 5 to store the x locati…

---

## [Is there any way to get the current state of a checkbox in G4P?](https://discourse.processing.org/t/is-there-any-way-to-get-the-current-state-of-a-checkbox-in-g4p/19963)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 2\
**Last updated:** [April 20, 2020, 4:01pm UTC](https://discourse.processing.org/t/is-there-any-way-to-get-the-current-state-of-a-checkbox-in-g4p/19963 "2020-04-20T16:01:36Z")

</div>

Is there any way to get the current state of a checkbox in G4P? I can get the value of a slider or knob with the function ‘getValueF’, but I couldn’t find any corresponding function to get the value of a checkbox (ie, on…

---

## [Is there a library that allows for the convenient use of doubles?](https://discourse.processing.org/t/is-there-a-library-that-allows-for-the-convenient-use-of-doubles/19532)

<div class="topic-metadata">

**Author:** [@Math\_Machine](https://discourse.processing.org/u/Math_Machine)\
**Replies:** 21\
**Last updated:** [April 20, 2020, 10:44am UTC](https://discourse.processing.org/t/is-there-a-library-that-allows-for-the-convenient-use-of-doubles/19532 "2020-04-20T10:44:36Z")

</div>

So, from what I understand, processing functions aren’t built to handle double floating points. Are there any external libraries I can download that can overload functions so they can handle doubles? Or is there no rea…

---

## [Computer vision brightness or colour tracking](https://discourse.processing.org/t/computer-vision-brightness-or-colour-tracking/19811)

<div class="topic-metadata">

**Author:** [@maddyna](https://discourse.processing.org/u/maddyna)\
**Replies:** 3\
**Last updated:** [April 20, 2020, 9:53am UTC](https://discourse.processing.org/t/computer-vision-brightness-or-colour-tracking/19811 "2020-04-20T09:53:31Z")

</div>

while doing color tracking using the camera as a sensor is thr a way to get a continuous line as you move the tracker around the way i am doing is using an ellipse to follow the tracker but am not getting a continuous …

---

## [Read from 2 videos at the same time](https://discourse.processing.org/t/read-from-2-videos-at-the-same-time/19937)

<div class="topic-metadata">

**Author:** [@costachemadalin](https://discourse.processing.org/u/costachemadalin)\
**Replies:** 4\
**Last updated:** [April 20, 2020, 9:51am UTC](https://discourse.processing.org/t/read-from-2-videos-at-the-same-time/19937 "2020-04-20T09:51:11Z")

</div>

Hi, for my algorithm i want to process first frame from videoA and first frame from videoB at the same time and so on until the last frame. In my implementation i have a problem,in theory it should read alternately lik…

---

## [Android question / Normal Mode-\> AR Mode-\> Normal Mode](https://discourse.processing.org/t/android-question-normal-mode-ar-mode-normal-mode/19950)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 0\
**Last updated:** [April 20, 2020, 7:11am UTC](https://discourse.processing.org/t/android-question-normal-mode-ar-mode-normal-mode/19950 "2020-04-20T07:11:50Z")

</div>

Normal Mode-\> AR Mode-\> Normal Mode Is it possible? Please see the image attachment. Create UI through ‘processing’. Click the AR MODE button to perform the AR function. Press the Exit button to return to the MAIN …

---

## ['Processing Android Mode' downloaded Problem](https://discourse.processing.org/t/processing-android-mode-downloaded-problem/19852)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 4\
**Last updated:** [April 20, 2020, 6:41am UTC](https://discourse.processing.org/t/processing-android-mode-downloaded-problem/19852 "2020-04-20T06:41:52Z")

</div>

Hi. -Version: android mode 4.1.1 -SDK: 28 Please look at the image. Android SDK is not downloaded. Is there a workaround?

---

## [Get image from webcam capture](https://discourse.processing.org/t/get-image-from-webcam-capture/19381)

<div class="topic-metadata">

**Author:** [@SenseiJae](https://discourse.processing.org/u/SenseiJae)\
**Replies:** 2\
**Last updated:** [April 19, 2020, 11:18pm UTC](https://discourse.processing.org/t/get-image-from-webcam-capture/19381 "2020-04-19T23:18:24Z")

</div>

I’m trying to follow “coding train’s” example of capturing images from a webcam for a “photo booth”. It was working great up until I go to the for loop to capture the images. When I use “get()” on the createCapture() o…

---

## [Helping students with their homework](https://discourse.processing.org/t/helping-students-with-their-homework/17745)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 58\
**Last updated:** [April 19, 2020, 10:56pm UTC](https://discourse.processing.org/t/helping-students-with-their-homework/17745 "2020-04-19T22:56:17Z")

</div>

I tried to find some guidelines in the forum about how to help students who are asking for help with their homework. It may be useful to have this information in a very visible place on the site? In the past week have …

---

## [Preguntas Frecuentes (FAQ/Guidelines)](https://discourse.processing.org/t/preguntas-frecuentes-faq-guidelines/19943)

<div class="topic-metadata">

**Author:** [@montoyamoraga](https://discourse.processing.org/u/montoyamoraga)\
**Replies:** 0\
**Last updated:** [April 19, 2020, 8:15pm UTC](https://discourse.processing.org/t/preguntas-frecuentes-faq-guidelines/19943 "2020-04-19T20:15:22Z")

</div>

FAQ: English | Español (Para ayudar a traducir, contáctenos.) Este es un lugar civilizado para discutir públicamente Por favor trata este foro de discusión con el mismo respeto que le tienes a un parque público. Noso…

---

## [Pong multiple keys](https://discourse.processing.org/t/pong-multiple-keys/19915)

<div class="topic-metadata">

**Author:** [@alphakay](https://discourse.processing.org/u/alphakay)\
**Replies:** 2\
**Last updated:** [April 19, 2020, 9:12pm UTC](https://discourse.processing.org/t/pong-multiple-keys/19915 "2020-04-19T21:12:51Z")

</div>

Hey guys, im programming a pong game and I want to use multiples keys. I want for the left paddle ‘‘w’’ and ‘’ s’’ to move and for the right side up and down. it is based on coding trains pong game but i want to make it …

---

## ["Get" as color detector?](https://discourse.processing.org/t/get-as-color-detector/19912)

<div class="topic-metadata">

**Author:** [@mnoble](https://discourse.processing.org/u/mnoble)\
**Replies:** 13\
**Last updated:** [April 19, 2020, 8:41pm UTC](https://discourse.processing.org/t/get-as-color-detector/19912 "2020-04-19T20:41:48Z")

</div>

Hello Forum :slight\_smile: On Processing, I love this program for detecting colors: color c; void setup (){ size (200,200); } void draw() { background (0); fill (255); rect (0,0,100,200); c = get (mouseX,m…

---

## [How to use threads in a sketch?](https://discourse.processing.org/t/how-to-use-threads-in-a-sketch/17832)

<div class="topic-metadata">

**Author:** [@spflanze](https://discourse.processing.org/u/spflanze)\
**Replies:** 7\
**Last updated:** [April 19, 2020, 5:23pm UTC](https://discourse.processing.org/t/how-to-use-threads-in-a-sketch/17832 "2020-04-19T17:23:05Z")

</div>

The need has arisen to make the draw() function the run function of a consumer thread that receives from a producer thread, as is demonstrated in this example: In my application the producer thread reads data from a …

---

## [Blending fill colors across mouse movements](https://discourse.processing.org/t/blending-fill-colors-across-mouse-movements/19899)

<div class="topic-metadata">

**Author:** [@sixfeet](https://discourse.processing.org/u/sixfeet)\
**Replies:** 2\
**Last updated:** [April 19, 2020, 4:02pm UTC](https://discourse.processing.org/t/blending-fill-colors-across-mouse-movements/19899 "2020-04-19T16:02:19Z")

</div>

I saw this cool video the other day and am trying to replicate how its done. It’s pretty straight forward but the thing I’m stuck on is how to get the drawn shapes to be more blurred and have a smooth gradient across th…

---

## [mousePressed() to change image on openCV](https://discourse.processing.org/t/mousepressed-to-change-image-on-opencv/19931)

<div class="topic-metadata">

**Author:** [@uwu](https://discourse.processing.org/u/uwu)\
**Replies:** 3\
**Last updated:** [April 19, 2020, 3:23pm UTC](https://discourse.processing.org/t/mousepressed-to-change-image-on-opencv/19931 "2020-04-19T15:23:54Z")

</div>

Hey, I’m just starting out with Processing! I’m trying to make a simple ‘digital fitting room’. I’m using openCV to attach the clothes to the body (it isn’t perfect but it’s enough). I want to change the clothes attach…

---

## [N-dimensional sorting and color](https://discourse.processing.org/t/n-dimensional-sorting-and-color/19711)

<div class="topic-metadata">

**Author:** [@Pisicandru](https://discourse.processing.org/u/Pisicandru)\
**Replies:** 25\
**Last updated:** [April 19, 2020, 3:47pm UTC](https://discourse.processing.org/t/n-dimensional-sorting-and-color/19711 "2020-04-19T15:47:09Z")

</div>

---

## [P5.js and Django: Saving a soundfile to a server](https://discourse.processing.org/t/p5-js-and-django-saving-a-soundfile-to-a-server/19930)

<div class="topic-metadata">

**Author:** [@grasshopper314159](https://discourse.processing.org/u/grasshopper314159)\
**Replies:** 0\
**Last updated:** [April 19, 2020, 11:44am UTC](https://discourse.processing.org/t/p5-js-and-django-saving-a-soundfile-to-a-server/19930 "2020-04-19T11:44:45Z")

</div>

I am trying to record audio through the user’s microphone and then save it as a .wav file on the server running Django. I based my code on this: https://discourse.processing.org/t/uploading-recorded-audio-to-web-server-n…

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

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