# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=370

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

**Page:** 371

---

## [How can I start filePlayer from a given second? - New and going bananas](https://discourse.processing.org/t/how-can-i-start-fileplayer-from-a-given-second-new-and-going-bananas/19403)

<div class="topic-metadata">

**Author:** [@goingbananas](https://discourse.processing.org/u/goingbananas)\
**Replies:** 13\
**Last updated:** [April 5, 2020, 12:26am UTC](https://discourse.processing.org/t/how-can-i-start-fileplayer-from-a-given-second-new-and-going-bananas/19403 "2020-04-05T00:26:19Z")

</div>

Hi, so I’m very very new to processing and minim and I’m trying to get a filePlayer to start playing from a given second/millisecond. This is the code part where I’m calling the file to play: void mousePressed(){ if(mou…

---

## [NFC on Android?](https://discourse.processing.org/t/nfc-on-android/19126)

<div class="topic-metadata">

**Author:** [@TechMaster04](https://discourse.processing.org/u/TechMaster04)\
**Replies:** 9\
**Last updated:** [April 5, 2020, 12:24am UTC](https://discourse.processing.org/t/nfc-on-android/19126 "2020-04-05T00:24:33Z")

</div>

Hello I had the idea of making a Monopoly money manager that uses NFC tags, kind of like contact less credit cards. I did some research and found the Ketai library, which appears to no longer support NFC, after both re…

---

## [Sprites library pp\_collision()](https://discourse.processing.org/t/sprites-library-pp-collision/19411)

<div class="topic-metadata">

**Author:** [@Odermonicon](https://discourse.processing.org/u/Odermonicon)\
**Replies:** 0\
**Last updated:** [April 5, 2020, 12:14am UTC](https://discourse.processing.org/t/sprites-library-pp-collision/19411 "2020-04-05T00:14:24Z")

</div>

pixel perfect collision is acting up right now, plz help. Codeimport sprites.\*; import sprites.maths.\*; import sprites.utils.\*; final double gravity = 20; float scale; Sprite level; Sprite player; Vector2D center; int s…

---

## [How to solve problems with CORS?](https://discourse.processing.org/t/how-to-solve-problems-with-cors/16048)

<div class="topic-metadata">

**Author:** [@willianxz](https://discourse.processing.org/u/willianxz)\
**Replies:** 3\
**Last updated:** [April 4, 2020, 11:26pm UTC](https://discourse.processing.org/t/how-to-solve-problems-with-cors/16048 "2020-04-04T23:26:43Z")

</div>

When you use: loadImage ('urldeoutrohost.jpg', img =\> { image (img, 0.0); }); It ends up giving CORS error if you are not using a CORS extension. I would like to know if there is any way to solve this ?, why didn’…

---

## [Sharing variables between different instance mode sketches](https://discourse.processing.org/t/sharing-variables-between-different-instance-mode-sketches/19264)

<div class="topic-metadata">

**Author:** [@calornorte](https://discourse.processing.org/u/calornorte)\
**Replies:** 2\
**Last updated:** [April 4, 2020, 10:20pm UTC](https://discourse.processing.org/t/sharing-variables-between-different-instance-mode-sketches/19264 "2020-04-04T22:20:23Z")

</div>

or having a global variable that could be accessed by different instance mode sketches. I have been looking around but I don’t seem to understand how to do it, any example that could illuminate me? best!

---

## [Looking for a Tutor](https://discourse.processing.org/t/looking-for-a-tutor/19229)

<div class="topic-metadata">

**Author:** [@Dan99](https://discourse.processing.org/u/Dan99)\
**Replies:** 2\
**Last updated:** [April 4, 2020, 10:12pm UTC](https://discourse.processing.org/t/looking-for-a-tutor/19229 "2020-04-04T22:12:51Z")

</div>

Anywhere I can find a tutor for cheap? New to processing and need help!

---

## [Modifying a grid](https://discourse.processing.org/t/modifying-a-grid/19298)

<div class="topic-metadata">

**Author:** [@senior](https://discourse.processing.org/u/senior)\
**Replies:** 7\
**Last updated:** [April 4, 2020, 7:15pm UTC](https://discourse.processing.org/t/modifying-a-grid/19298 "2020-04-04T19:15:14Z")

</div>

I am using processing connected to an Arduino with a sensor sheet. The output is a in java mode showing a mapped grid as shown in the attached image. I am wondering how I can curve the corners of the grid so that is in 3…

---

## ["2001: A Space Odyssey" retold using Processing](https://discourse.processing.org/t/2001-a-space-odyssey-retold-using-processing/13864)

<div class="topic-metadata">

**Author:** [@LoO93](https://discourse.processing.org/u/LoO93)\
**Replies:** 10\
**Last updated:** [April 4, 2020, 7:01pm UTC](https://discourse.processing.org/t/2001-a-space-odyssey-retold-using-processing/13864 "2020-04-04T19:01:44Z")

</div>

Hello World and dear Processing community! Here’s my first Processing project I’d like to share with you guys. The idea: feed the program with a database of images calculate the average color of each image in the dat…

---

## [Shader shows as white instead of the actual shader (Not applied correctly)](https://discourse.processing.org/t/shader-shows-as-white-instead-of-the-actual-shader-not-applied-correctly/19393)

<div class="topic-metadata">

**Author:** [@gbrochar](https://discourse.processing.org/u/gbrochar)\
**Replies:** 0\
**Last updated:** [April 4, 2020, 3:37pm UTC](https://discourse.processing.org/t/shader-shows-as-white-instead-of-the-actual-shader-not-applied-correctly/19393 "2020-04-04T15:37:22Z")

</div>

Hello, I programmed a little shader using C++ OpenGL to compile and run it today and I’m doing an numerical art exhibition using mainly processing, I want to use this shader in the show and thus have to make the shader w…

---

## [Rotating objects inside the canvas](https://discourse.processing.org/t/rotating-objects-inside-the-canvas/19387)

<div class="topic-metadata">

**Author:** [@eltrem](https://discourse.processing.org/u/eltrem)\
**Replies:** 3\
**Last updated:** [April 4, 2020, 3:44pm UTC](https://discourse.processing.org/t/rotating-objects-inside-the-canvas/19387 "2020-04-04T15:44:04Z")

</div>

I’m missuderstanding the combination of translate(), rotate(), pushmatrix() and popmatrix(); In the example, I’m trying to rotate the sinus functions after translating the matrix to its origin, but obviosuly there’s ma…

---

## [How could I make p5 work in a cartesian coordinate system?](https://discourse.processing.org/t/how-could-i-make-p5-work-in-a-cartesian-coordinate-system/19376)

<div class="topic-metadata">

**Author:** [@Night-11010](https://discourse.processing.org/u/Night-11010)\
**Replies:** 5\
**Last updated:** [April 4, 2020, 1:55pm UTC](https://discourse.processing.org/t/how-could-i-make-p5-work-in-a-cartesian-coordinate-system/19376 "2020-04-04T13:55:41Z")

</div>

I kind of get what I want but I still have problems using mouseX and mouseY, they don’t work propertly when I try to change it.

---

## [Turning on the android notification RGB LED](https://discourse.processing.org/t/turning-on-the-android-notification-rgb-led/19373)

<div class="topic-metadata">

**Author:** [@juanjoc](https://discourse.processing.org/u/juanjoc)\
**Replies:** 2\
**Last updated:** [April 4, 2020, 12:33pm UTC](https://discourse.processing.org/t/turning-on-the-android-notification-rgb-led/19373 "2020-04-04T12:33:46Z")

</div>

Hi Guys. I’m looking for a code that turn on the android notification LED in red or green or blue or mix between them. Do you know how to code that?

---

## [Bar chart to track Corona Virus increase in my country](https://discourse.processing.org/t/bar-chart-to-track-corona-virus-increase-in-my-country/19382)

<div class="topic-metadata">

**Author:** [@tomjuggler](https://discourse.processing.org/u/tomjuggler)\
**Replies:** 0\
**Last updated:** [April 4, 2020, 7:05am UTC](https://discourse.processing.org/t/bar-chart-to-track-corona-virus-increase-in-my-country/19382 "2020-04-04T07:05:29Z")

</div>

I am continuing building an Android app to track Corona Virus increase in my country (South Africa). Mostly using Processing for the visualisations. Here is the Chart component, with code linked on github (works in Ja…

---

## [Green NullPointerExeption](https://discourse.processing.org/t/green-nullpointerexeption/19377)

<div class="topic-metadata">

**Author:** [@Odermonicon](https://discourse.processing.org/u/Odermonicon)\
**Replies:** 8\
**Last updated:** [April 4, 2020, 4:14am UTC](https://discourse.processing.org/t/green-nullpointerexeption/19377 "2020-04-04T04:14:32Z")

</div>

MCVEimport Green.\*; class ExampleActor extends Actor { public ExampleActor(float x, float y, int w, int h) { super(x, y, w, h); // Line causing error } public void act(float deltaTime) { } } ExampleActor …

---

## [Python syntax to use File.separator](https://discourse.processing.org/t/python-syntax-to-use-file-separator/19378)

<div class="topic-metadata">

**Author:** [@cupofcalculus](https://discourse.processing.org/u/cupofcalculus)\
**Replies:** 2\
**Last updated:** [April 4, 2020, 4:12am UTC](https://discourse.processing.org/t/python-syntax-to-use-file-separator/19378 "2020-04-04T04:12:40Z")

</div>

My instructor uses the Java syntax in Processing, and I’m trying to convert it to Python. The relevant part of his code is: //Global variables String fname4 = "gumballs.jpg"; String loadName = fname4; int ncolors = 8; …

---

## [Self made class, not returning when it a loop?](https://discourse.processing.org/t/self-made-class-not-returning-when-it-a-loop/19220)

<div class="topic-metadata">

**Author:** [@Aldiery](https://discourse.processing.org/u/Aldiery)\
**Replies:** 2\
**Last updated:** [April 4, 2020, 2:04am UTC](https://discourse.processing.org/t/self-made-class-not-returning-when-it-a-loop/19220 "2020-04-04T02:04:36Z")

</div>

Ship findShip(int\[\] coordinates){ for (int i = 0; i \< ships.size();i++){ Ship ship = ships.get(i); int shipX = ship.x; int shipY = ship.y; for (int tile = 0; tile \< ship.size; tile++){ if (ship.ro…

---

## [Trying Curve on a Sphere. Can't seem to get the rise and fall of the curve right](https://discourse.processing.org/t/trying-curve-on-a-sphere-cant-seem-to-get-the-rise-and-fall-of-the-curve-right/19355)

<div class="topic-metadata">

**Author:** [@Samizen](https://discourse.processing.org/u/Samizen)\
**Replies:** 5\
**Last updated:** [April 4, 2020, 1:19am UTC](https://discourse.processing.org/t/trying-curve-on-a-sphere-cant-seem-to-get-the-rise-and-fall-of-the-curve-right/19355 "2020-04-04T01:19:55Z")

</div>

Was trying something like this: But my curves were all wrong…And I ended up with something like this. The code is inserted below: float angle; float r = 200; Table table; PImage earth; PShape globe; int rowCoun…

---

## [Multiple Volume Controls on Multiple Sound Files](https://discourse.processing.org/t/multiple-volume-controls-on-multiple-sound-files/19360)

<div class="topic-metadata">

**Author:** [@tia\_nooling123](https://discourse.processing.org/u/tia_nooling123)\
**Replies:** 1\
**Last updated:** [April 4, 2020, 1:11am UTC](https://discourse.processing.org/t/multiple-volume-controls-on-multiple-sound-files/19360 "2020-04-04T01:11:32Z")

</div>

Hello! I’m fairly new to p5.js and am trying to create a very simple audio crossfader that allows you to listen to 2 sound files at once, and control the mix by moving the mouse along the X axis. I am getting stuck whe…

---

## [Convert Latitude and Longitude from a Data sheet to points on canvas](https://discourse.processing.org/t/convert-latitude-and-longitude-from-a-data-sheet-to-points-on-canvas/19160)

<div class="topic-metadata">

**Author:** [@daileydrabble](https://discourse.processing.org/u/daileydrabble)\
**Replies:** 4\
**Last updated:** [April 3, 2020, 8:17pm UTC](https://discourse.processing.org/t/convert-latitude-and-longitude-from-a-data-sheet-to-points-on-canvas/19160 "2020-04-03T20:17:59Z")

</div>

Hi, I’m having an issue in my beginning coding class. I want to take the latitude and longitude for cave locations in Missouri and put them over an image of the state where they are. I have an excel sheet with the latitu…

---

## [Stuck on Loading](https://discourse.processing.org/t/stuck-on-loading/19370)

<div class="topic-metadata">

**Author:** [@corisco](https://discourse.processing.org/u/corisco)\
**Replies:** 4\
**Last updated:** [April 3, 2020, 6:57pm UTC](https://discourse.processing.org/t/stuck-on-loading/19370 "2020-04-03T18:57:35Z")

</div>

Hi. I’m trying to get familiar with JS using p5.js. I downloaded p5.js complete, headed to the Get Started page and, as described, typed ellipse(50, 50, 80, 80); in my (desktop) editor to test it out. In Firefox, the…

---

## [I need help making the pictures stay until next is pressed](https://discourse.processing.org/t/i-need-help-making-the-pictures-stay-until-next-is-pressed/19273)

<div class="topic-metadata">

**Author:** [@stacy](https://discourse.processing.org/u/stacy)\
**Replies:** 1\
**Last updated:** [April 3, 2020, 6:26pm UTC](https://discourse.processing.org/t/i-need-help-making-the-pictures-stay-until-next-is-pressed/19273 "2020-04-03T18:26:39Z")

</div>

Can someone please help Heres the code: var drop = \[\]; let images = \["images (9).jpeg","images (10).jpeg", "images (8).jpeg", "images (7).jpeg", "images (5).jpeg", "images (6).jpeg" \]; let current = 1; function setu…

---

## [My personal Processing trap](https://discourse.processing.org/t/my-personal-processing-trap/18985)

<div class="topic-metadata">

**Author:** [@eightohnine](https://discourse.processing.org/u/eightohnine)\
**Replies:** 6\
**Last updated:** [April 3, 2020, 12:57pm UTC](https://discourse.processing.org/t/my-personal-processing-trap/18985 "2020-04-03T12:57:43Z")

</div>

Soo… I’m writing this coming off of yet another frustrating experience trying to get a sketch to work. It’s wordy and somewhat meta, so bear with me. Also, I have yet no idea, if I’m actually looking for answers or just …

---

## [How to correcly apply SVG filters on the canvas?](https://discourse.processing.org/t/how-to-correcly-apply-svg-filters-on-the-canvas/19347)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 1\
**Last updated:** [April 3, 2020, 5:37pm UTC](https://discourse.processing.org/t/how-to-correcly-apply-svg-filters-on-the-canvas/19347 "2020-04-03T17:37:24Z")

</div>

Hi, I am trying to apply a SVG filter on a sketch by accessing the context of the canvas (ctx = canvas.getContext("2d")) and pasting the following in the index.html file: \<div id="stats"\>\</div\> \<svg xmlns="http://www.…

---

## [Introduction and adding Italian as new language](https://discourse.processing.org/t/introduction-and-adding-italian-as-new-language/18370)

<div class="topic-metadata">

**Author:** [@Yuki](https://discourse.processing.org/u/Yuki)\
**Replies:** 15\
**Last updated:** [April 3, 2020, 4:04pm UTC](https://discourse.processing.org/t/introduction-and-adding-italian-as-new-language/18370 "2020-04-03T16:04:05Z")

</div>

Hi, I’m Yuki, and I’m a computer science at Sapienza University of Rome. I’m interested in the Internationalization improvements project for the GSoC20 and, as a native Italian speaker, I would like to work on an Italia…

---

## [Circular coordinates](https://discourse.processing.org/t/circular-coordinates/19344)

<div class="topic-metadata">

**Author:** [@lumicon9](https://discourse.processing.org/u/lumicon9)\
**Replies:** 7\
**Last updated:** [April 3, 2020, 9:54am UTC](https://discourse.processing.org/t/circular-coordinates/19344 "2020-04-03T09:54:46Z")

</div>

how to make this circular coordinates more evenly distributed? …will say; the inner ring less dot frequency becoming more to the outer. maybe fibionacci like…? thank you! float px, py; float angle; float radius = width/…

---

## [Smartphone lantern flashlight on/off](https://discourse.processing.org/t/smartphone-lantern-flashlight-on-off/19324)

<div class="topic-metadata">

**Author:** [@dinoelectro](https://discourse.processing.org/u/dinoelectro)\
**Replies:** 10\
**Last updated:** [April 3, 2020, 12:39pm UTC](https://discourse.processing.org/t/smartphone-lantern-flashlight-on-off/19324 "2020-04-03T12:39:02Z")

</div>

Hello, dear friends, I am getting started in the programming for android, and I want to do something simple, by pressing the screen to turn on / off the flashlight of the smartphone. Does anyone know how to do it? Chee…

---

## [Can't open an url with loadJSONObject but it works with HTTP Library](https://discourse.processing.org/t/cant-open-an-url-with-loadjsonobject-but-it-works-with-http-library/19293)

<div class="topic-metadata">

**Author:** [@fedpep](https://discourse.processing.org/u/fedpep)\
**Replies:** 4\
**Last updated:** [April 3, 2020, 10:55am UTC](https://discourse.processing.org/t/cant-open-an-url-with-loadjsonobject-but-it-works-with-http-library/19293 "2020-04-03T10:55:52Z")

</div>

Hello! I got a problem that I can’t understand. I need to load this url into a Processing sketch: https://www.colourlovers.com/api/palettes/top?format=json I used loadJSONArray without any problem in the past but now I …

---

## [Renderer Problems - Login System and Menu](https://discourse.processing.org/t/renderer-problems-login-system-and-menu/19331)

<div class="topic-metadata">

**Author:** [@DaysLoop](https://discourse.processing.org/u/DaysLoop)\
**Replies:** 8\
**Last updated:** [April 3, 2020, 9:58am UTC](https://discourse.processing.org/t/renderer-problems-login-system-and-menu/19331 "2020-04-03T09:58:06Z")

</div>

Sorry, but I’m inexperienced in Processing. I have um little test code where one menu open after login accepted. The two functions work individually, but when I put them together I have this error “translate(), or this…

---

## [What does add() do?](https://discourse.processing.org/t/what-does-add-do/19356)

<div class="topic-metadata">

**Author:** [@Cybernet](https://discourse.processing.org/u/Cybernet)\
**Replies:** 3\
**Last updated:** [April 3, 2020, 3:04am UTC](https://discourse.processing.org/t/what-does-add-do/19356 "2020-04-03T03:04:07Z")

</div>

So I have a code: class Projectile extends PVector { PVector velocity; Projectile(PVector loc, PVector vel) { super(loc.x, loc.y); velocity = vel; } void Display() { add(velocity); // what…

---

## [Turn line on angle](https://discourse.processing.org/t/turn-line-on-angle/19349)

<div class="topic-metadata">

**Author:** [@yasinyer](https://discourse.processing.org/u/yasinyer)\
**Replies:** 1\
**Last updated:** [April 3, 2020, 2:00am UTC](https://discourse.processing.org/t/turn-line-on-angle/19349 "2020-04-03T02:00:31Z")

</div>

Hi, I’m kinda new here and need a little help! I made a line that moves along the arrrow keys and speeds up when the space bar is pressed. In my code when the line changes its direction it makes a corner (see left), but…

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=369)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=371)
