# Latest

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

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

**Page:** 325

---

## [Map csv file data in a map of any country](https://discourse.processing.org/t/map-csv-file-data-in-a-map-of-any-country/22565)

<div class="topic-metadata">

**Author:** [@DeathEater](https://discourse.processing.org/u/DeathEater)\
**Replies:** 1\
**Last updated:** [July 13, 2020, 5:57am UTC](https://discourse.processing.org/t/map-csv-file-data-in-a-map-of-any-country/22565 "2020-07-13T05:57:57Z")

</div>

Hello guys , I am new to processing and I have a question about my program. I am planning to plot the Corona virus data in the map of Nepal. I have a SVG file for the map, and csv files for corona virus data and Latitud…

---

## [Volumetric visualizations from X-ray micro-CT datasets(s) in Processing 3.53](https://discourse.processing.org/t/volumetric-visualizations-from-x-ray-micro-ct-datasets-s-in-processing-3-53/22511)

<div class="topic-metadata">

**Author:** [@JSGauthier](https://discourse.processing.org/u/JSGauthier)\
**Replies:** 8\
**Last updated:** [July 10, 2020, 6:49pm UTC](https://discourse.processing.org/t/volumetric-visualizations-from-x-ray-micro-ct-datasets-s-in-processing-3-53/22511 "2020-07-10T18:49:23Z")

</div>

Hello, my name is JS Gauthier. I am a artist working with scientific datasets in Saskatoon, Canada (https://vimeo.com/jsgauthier or https://jsgauthier.com/ ). I have created a series of 3D scans using X-Ray micro-tomogra…

---

## [Preventing double tap to zoom on mobile (and other good practices)](https://discourse.processing.org/t/preventing-double-tap-to-zoom-on-mobile-and-other-good-practices/22581)

<div class="topic-metadata">

**Author:** [@kirkjerk](https://discourse.processing.org/u/kirkjerk)\
**Replies:** 0\
**Last updated:** [July 12, 2020, 9:06pm UTC](https://discourse.processing.org/t/preventing-double-tap-to-zoom-on-mobile-and-other-good-practices/22581 "2020-07-12T21:06:35Z")

</div>

is there a good way to prevent double taps from zooming in/out on the canvas? I found user-select: none; is good to stop the text from being highlighted… in theory touch-action: manipulation; should do similar for z…

---

## [Issues with different webcam resolutions & video capture](https://discourse.processing.org/t/issues-with-different-webcam-resolutions-video-capture/22568)

<div class="topic-metadata">

**Author:** [@Paraclete\_Pizza](https://discourse.processing.org/u/Paraclete_Pizza)\
**Replies:** 0\
**Last updated:** [July 12, 2020, 1:06pm UTC](https://discourse.processing.org/t/issues-with-different-webcam-resolutions-video-capture/22568 "2020-07-12T13:06:44Z")

</div>

Hi! I recently adapted my Processing curriculum to P5 for some remote teaching I’m doing, and an issue came up during our webcam project, owing to the students working on different computers with different webcam resolut…

---

## [Access SVG file path ID for plotting data into it](https://discourse.processing.org/t/access-svg-file-path-id-for-plotting-data-into-it/22572)

<div class="topic-metadata">

**Author:** [@DeathEater](https://discourse.processing.org/u/DeathEater)\
**Replies:** 1\
**Last updated:** [July 12, 2020, 6:42pm UTC](https://discourse.processing.org/t/access-svg-file-path-id-for-plotting-data-into-it/22572 "2020-07-12T18:42:38Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I have SVG file ( Map of Nepal). The map has 75 districts. The path has an id which is the same name as the district. As as example see the code…

---

## [About 3D Animations](https://discourse.processing.org/t/about-3d-animations/22556)

<div class="topic-metadata">

**Author:** [@SouSageYa](https://discourse.processing.org/u/SouSageYa)\
**Replies:** 1\
**Last updated:** [July 12, 2020, 3:01pm UTC](https://discourse.processing.org/t/about-3d-animations/22556 "2020-07-12T15:01:56Z")

</div>

I’m Trying to understand how “Collada Loader For SketchUp and Blender” works. Can I visualise my 3D Object and move it as I want ?

---

## [Export App Bag Processing 3.5.4 MacOS /app is not running\_solution/](https://discourse.processing.org/t/export-app-bag-processing-3-5-4-macos-app-is-not-running-solution/22570)

<div class="topic-metadata">

**Author:** [@danserme](https://discourse.processing.org/u/danserme)\
**Replies:** 0\
**Last updated:** [July 12, 2020, 3:01pm UTC](https://discourse.processing.org/t/export-app-bag-processing-3-5-4-macos-app-is-not-running-solution/22570 "2020-07-12T15:01:33Z")

</div>

I had some issues with export of applications from Processing 3.5.4 on my MacOS. I searched if someone has posted the answer and I did not find any. The problem was that the exported application did not run at all. If y…

---

## ['serverEvent' operates within the time of performing the delay in 'draw()'](https://discourse.processing.org/t/serverevent-operates-within-the-time-of-performing-the-delay-in-draw/22548)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 4\
**Last updated:** [July 11, 2020, 11:12pm UTC](https://discourse.processing.org/t/serverevent-operates-within-the-time-of-performing-the-delay-in-draw/22548 "2020-07-11T23:12:19Z")

</div>

import processing.net.\*; int port = 10002; Server myServer; long COUNT\_NUM = 0; void setup() { size(400, 400); background(0); myServer = new Server(this, port); } void draw() { background(255); delay(10000); …

---

## [Resizing problem: blurring images](https://discourse.processing.org/t/resizing-problem-blurring-images/22552)

<div class="topic-metadata">

**Author:** [@agrgal](https://discourse.processing.org/u/agrgal)\
**Replies:** 2\
**Last updated:** [July 12, 2020, 9:37am UTC](https://discourse.processing.org/t/resizing-problem-blurring-images/22552 "2020-07-12T09:37:00Z")

</div>

Hi to everybody, First of all, excuse my English. Besides of that, I’m a newbie on p5.js :slight\_smile: I developed a series of programs coded in p5.js and processing that you can find in: https://github.com/agrgal/sis…

---

## [Getting file length in minutes with minim](https://discourse.processing.org/t/getting-file-length-in-minutes-with-minim/22555)

<div class="topic-metadata">

**Author:** [@qewer3322](https://discourse.processing.org/u/qewer3322)\
**Replies:** 4\
**Last updated:** [July 12, 2020, 7:15am UTC](https://discourse.processing.org/t/getting-file-length-in-minutes-with-minim/22555 "2020-07-12T07:15:33Z")

</div>

The length() function gives it in miliseconds as an integer so dividing doesn’t work. Did some research but couldn’t find anything and it seems like there is no other function similar to length(). Can somebody help?

---

## [How would my graph and background color change for amp difference?](https://discourse.processing.org/t/how-would-my-graph-and-background-color-change-for-amp-difference/22560)

<div class="topic-metadata">

**Author:** [@hanacho0220](https://discourse.processing.org/u/hanacho0220)\
**Replies:** 0\
**Last updated:** [July 12, 2020, 1:26am UTC](https://discourse.processing.org/t/how-would-my-graph-and-background-color-change-for-amp-difference/22560 "2020-07-12T01:26:41Z")

</div>

Hi, I was following the coding train’s sound visualization with p5.js tuturial and decided to make it for the music I composed. However, I want also want to change the color as an amplification changes and I have no ide…

---

## [About text() function](https://discourse.processing.org/t/about-text-function/22440)

<div class="topic-metadata">

**Author:** [@SouSageYa](https://discourse.processing.org/u/SouSageYa)\
**Replies:** 7\
**Last updated:** [July 11, 2020, 8:15pm UTC](https://discourse.processing.org/t/about-text-function/22440 "2020-07-11T20:15:24Z")

</div>

//Pressure Chart Value fill(#D6CDCD); stroke(#000000); rect(260,325,200,40,50); fill(#FF301E); text(f\[7\],340,110); //Height Chart Value fill(#D6CDCD); stroke(#000000); rect(260,285,200,40,50); fill(#FF301E); text(f\[8\]…

---

## [Coding problem NullPointerException](https://discourse.processing.org/t/coding-problem-nullpointerexception/22551)

<div class="topic-metadata">

**Author:** [@christiank79](https://discourse.processing.org/u/christiank79)\
**Replies:** 4\
**Last updated:** [July 11, 2020, 5:56pm UTC](https://discourse.processing.org/t/coding-problem-nullpointerexception/22551 "2020-07-11T17:56:55Z")

</div>

I write a code who change a picture in Dithering,but show me a NullPointerException (line 16) What can I do? I have update Processing 3.5.4: This is coding: //variable to store image import processing.svg.\*; PImage th…

---

## [Pregunta | Ejecutar un objeto u otro](https://discourse.processing.org/t/pregunta-ejecutar-un-objeto-u-otro/22541)

<div class="topic-metadata">

**Author:** [@FireInTheSky](https://discourse.processing.org/u/FireInTheSky)\
**Replies:** 2\
**Last updated:** [July 11, 2020, 7:23pm UTC](https://discourse.processing.org/t/pregunta-ejecutar-un-objeto-u-otro/22541 "2020-07-11T19:23:32Z")

</div>

Hola. Es una consulta. Se puede hacer que, por ejemplo, tengo un círculo y un cuadrado en mi código, pero que al ejecutarse se vea uno solo. Es decir que el programa elija de manera random cual mostrar. No sé si se ent…

---

## [How to cube a sine/cosine function in processing](https://discourse.processing.org/t/how-to-cube-a-sine-cosine-function-in-processing/17257)

<div class="topic-metadata">

**Author:** [@prathmesh](https://discourse.processing.org/u/prathmesh)\
**Replies:** 25\
**Last updated:** [July 11, 2020, 7:16pm UTC](https://discourse.processing.org/t/how-to-cube-a-sine-cosine-function-in-processing/17257 "2020-07-11T19:16:31Z")

</div>

Hello, How do I write cos"raised to the power 3"(t) in my processing code? I am trying to write this equation : Thanks :smiley:

---

## [Finding the angle of an arc?](https://discourse.processing.org/t/finding-the-angle-of-an-arc/22543)

<div class="topic-metadata">

**Author:** [@rkdnson](https://discourse.processing.org/u/rkdnson)\
**Replies:** 3\
**Last updated:** [July 11, 2020, 12:21pm UTC](https://discourse.processing.org/t/finding-the-angle-of-an-arc/22543 "2020-07-11T12:21:54Z")

</div>

Hello, please excuse my crude drawing. I am looking to constrain the amount a circle rotates on the circumference of its parent circle. I have the center of both, and I already have a function that moves it around the an…

---

## [Arduino Nano33 BLE Sense Serial Port Locked by Processing](https://discourse.processing.org/t/arduino-nano33-ble-sense-serial-port-locked-by-processing/22469)

<div class="topic-metadata">

**Author:** [@baqwas](https://discourse.processing.org/u/baqwas)\
**Replies:** 4\
**Last updated:** [July 11, 2020, 1:20pm UTC](https://discourse.processing.org/t/arduino-nano33-ble-sense-serial-port-locked-by-processing/22469 "2020-07-11T13:20:36Z")

</div>

Hello, I’m a self-certified newbie. I was working on the example at https://blog.arduino.cc/2020/06/24/machine-vision-with-low-cost-camera-modules/. Unfortunately, Camera Pattern was not displayed by Processing. I close…

---

## [Point cloud in Processing: what are the limits?](https://discourse.processing.org/t/point-cloud-in-processing-what-are-the-limits/1089)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 12\
**Last updated:** [July 10, 2020, 10:55pm UTC](https://discourse.processing.org/t/point-cloud-in-processing-what-are-the-limits/1089 "2020-07-10T22:55:58Z")

</div>

Hi everyone, Upon reading this interview (japanese only) of Satoshi Horii, “Rhyzomatics” main creative coder, about one of his latest work involving 3D scanning, I started to wonder if such project was possible with Pro…

---

## [How to move pad with touch](https://discourse.processing.org/t/how-to-move-pad-with-touch/22506)

<div class="topic-metadata">

**Author:** [@bismarck](https://discourse.processing.org/u/bismarck)\
**Replies:** 2\
**Last updated:** [July 10, 2020, 10:00pm UTC](https://discourse.processing.org/t/how-to-move-pad-with-touch/22506 "2020-07-10T22:00:43Z")

</div>

let position1 = 100; let position2 = 100; function setup() { createCanvas(400, 400); } function draw() { background(220); rect(0,position2,10,100); rect(width-10,position1,10,100); if(mouseX \> width/2){…

---

## [Using Processing to find the value of a knob and send it through a serial port](https://discourse.processing.org/t/using-processing-to-find-the-value-of-a-knob-and-send-it-through-a-serial-port/22465)

<div class="topic-metadata">

**Author:** [@processingHax](https://discourse.processing.org/u/processingHax)\
**Replies:** 2\
**Last updated:** [July 10, 2020, 6:22pm UTC](https://discourse.processing.org/t/using-processing-to-find-the-value-of-a-knob-and-send-it-through-a-serial-port/22465 "2020-07-10T18:22:01Z")

</div>

hey i’m pretty new to processing and I was wondering if I could take a knob constantly get the value of it and send the value of the knob through the serial port. I have tried it and all I’ve gotten is this error Jul 0…

---

## [Making a photo scanner with transforming picture](https://discourse.processing.org/t/making-a-photo-scanner-with-transforming-picture/22539)

<div class="topic-metadata">

**Author:** [@lin.liangchen](https://discourse.processing.org/u/lin.liangchen)\
**Replies:** 0\
**Last updated:** [July 10, 2020, 5:04pm UTC](https://discourse.processing.org/t/making-a-photo-scanner-with-transforming-picture/22539 "2020-07-10T17:04:30Z")

</div>

Hi everyone, I am new here. I am trying to program a code which is making a photo scanner, to scan the photo pixels with mouse moving. However, I change the photo size by ratio to make smaller, but the scanner only up…

---

## [Garbage collection](https://discourse.processing.org/t/garbage-collection/22537)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 1\
**Last updated:** [July 10, 2020, 4:44pm UTC](https://discourse.processing.org/t/garbage-collection/22537 "2020-07-10T16:44:52Z")

</div>

I’m handling a big arrayList in my program to create a terrain, however I want the users to be able to load their own files, so that anything you can retrieve saves or simply create terrains using a txt file. Issue is on…

---

## [Webgl 3d point mouse interaction](https://discourse.processing.org/t/webgl-3d-point-mouse-interaction/22526)

<div class="topic-metadata">

**Author:** [@nomad](https://discourse.processing.org/u/nomad)\
**Replies:** 2\
**Last updated:** [July 10, 2020, 4:26pm UTC](https://discourse.processing.org/t/webgl-3d-point-mouse-interaction/22526 "2020-07-10T16:26:34Z")

</div>

Hello there, I have a collection of points in 3d space. they are rotating around a center. Would like to create a simple mouse interaction where they change color when I hover the mouse on them. my code is as follows …

---

## [MIDI: from Processing to DAW (Windows)](https://discourse.processing.org/t/midi-from-processing-to-daw-windows/22411)

<div class="topic-metadata">

**Author:** [@minty](https://discourse.processing.org/u/minty)\
**Replies:** 1\
**Last updated:** [July 10, 2020, 2:03pm UTC](https://discourse.processing.org/t/midi-from-processing-to-daw-windows/22411 "2020-07-10T14:03:54Z")

</div>

I’m trying to get my Processing sketch to send MIDI to my DAW. Running the AdvancedMIDIMessageIO example from TheMIDIBus, I can send note on / off messages to Microsoft Sound Mapper and hear the built-in general MIDI in…

---

## [HELP. How can I intersect three colors from these ellipses?](https://discourse.processing.org/t/help-how-can-i-intersect-three-colors-from-these-ellipses/22500)

<div class="topic-metadata">

**Author:** [@johncusack](https://discourse.processing.org/u/johncusack)\
**Replies:** 2\
**Last updated:** [July 10, 2020, 1:17pm UTC](https://discourse.processing.org/t/help-how-can-i-intersect-three-colors-from-these-ellipses/22500 "2020-07-10T13:17:49Z")

</div>

Hello! I need some help with this sketch. I’m trying to draw this shape filled with three different colors, in tree different vertex. I’m thinking I need to draw three ellipses of different colors, then they intersect wi…

---

## [Displaying PShapes](https://discourse.processing.org/t/displaying-pshapes/7686)

<div class="topic-metadata">

**Author:** [@stirman](https://discourse.processing.org/u/stirman)\
**Replies:** 4\
**Last updated:** [July 10, 2020, 12:48pm UTC](https://discourse.processing.org/t/displaying-pshapes/7686 "2020-07-10T12:48:42Z")

</div>

As part of my larger Scribble Portrait series, I’m trying to make all the scribbles shapes that I can add as children to a parent shape, to manipulate them all together after they’ve been drawn. I’m having trouble gettin…

---

## [Quote marks display as a box in the window](https://discourse.processing.org/t/quote-marks-display-as-a-box-in-the-window/22518)

<div class="topic-metadata">

**Author:** [@PawnMongo](https://discourse.processing.org/u/PawnMongo)\
**Replies:** 5\
**Last updated:** [July 10, 2020, 12:12pm UTC](https://discourse.processing.org/t/quote-marks-display-as-a-box-in-the-window/22518 "2020-07-10T12:12:27Z")

</div>

I read a text file with createReader() and then displayed the contents in a window with text(). The text displayed properly except that single and double quote marks displayed as boxes. Is there is simple way to fix th…

---

## [Help with classes and hexagon](https://discourse.processing.org/t/help-with-classes-and-hexagon/22510)

<div class="topic-metadata">

**Author:** [@jensemand](https://discourse.processing.org/u/jensemand)\
**Replies:** 2\
**Last updated:** [July 9, 2020, 6:04pm UTC](https://discourse.processing.org/t/help-with-classes-and-hexagon/22510 "2020-07-09T18:04:01Z")

</div>

Hi I have tried to make a hexagon by using vectors however when I try to put the shape into a class (so I later can make a grid where I can detect in which one my mouse is in) but the problem is I can’t display my shape.…

---

## [Pass parameter through selectFile()/selectFolder();](https://discourse.processing.org/t/pass-parameter-through-selectfile-selectfolder/22522)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 2\
**Last updated:** [July 9, 2020, 8:44pm UTC](https://discourse.processing.org/t/pass-parameter-through-selectfile-selectfolder/22522 "2020-07-09T20:44:07Z")

</div>

selectInput("Select a file to process:", "fileSelected"); How do I pass the parameter for a variable I wish to update in this type of function? void fileSelected(File selection){ if(selection != null)BMS.File.value =…

---

## [noFill() not working in p5js](https://discourse.processing.org/t/nofill-not-working-in-p5js/22416)

<div class="topic-metadata">

**Author:** [@CND](https://discourse.processing.org/u/CND)\
**Replies:** 11\
**Last updated:** [July 9, 2020, 7:29pm UTC](https://discourse.processing.org/t/nofill-not-working-in-p5js/22416 "2020-07-09T19:29:47Z")

</div>

noFill() in p5js is not working for me. Is this a bug?

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

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