# Latest

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

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

**Page:** 359

---

## [Console is printing a vague/incorrect error](https://discourse.processing.org/t/console-is-printing-a-vague-incorrect-error/20303)

<div class="topic-metadata">

**Author:** [@PKFire17](https://discourse.processing.org/u/PKFire17)\
**Replies:** 1\
**Last updated:** [May 1, 2020, 6:17am UTC](https://discourse.processing.org/t/console-is-printing-a-vague-incorrect-error/20303 "2020-05-01T06:17:19Z")

</div>

Hi, I’m trying to make a polyhedron renderer thing but when I try to draw a vertex, it prints out Script error. (: line 0) and p5 had problems creating the global function "createElement", possibly because your code is…

---

## [Move two shapes at a time with the keyboard](https://discourse.processing.org/t/move-two-shapes-at-a-time-with-the-keyboard/20203)

<div class="topic-metadata">

**Author:** [@Ear1yT](https://discourse.processing.org/u/Ear1yT)\
**Replies:** 6\
**Last updated:** [May 1, 2020, 1:22am UTC](https://discourse.processing.org/t/move-two-shapes-at-a-time-with-the-keyboard/20203 "2020-05-01T01:22:51Z")

</div>

Hi I’m trying to write a little Pong Game with a multi and a singleplayer. Almost everything works, I just can’t get the control of the two paddles in multiplayer right. I honestly don’t know what’s the problem, but as …

---

## [More an issue rather a coding question](https://discourse.processing.org/t/more-an-issue-rather-a-coding-question/19925)

<div class="topic-metadata">

**Author:** [@f42ter](https://discourse.processing.org/u/f42ter)\
**Replies:** 3\
**Last updated:** [May 1, 2020, 1:05am UTC](https://discourse.processing.org/t/more-an-issue-rather-a-coding-question/19925 "2020-05-01T01:05:27Z")

</div>

I start to play with an implementation of brainf\*ck. Works well so far, until it come to more complex bf code, like the mandelbrot.bf. Issue is, that while printig the result using the print statement sometime some prin…

---

## [Can you distinguish between the first time pressing a space bar and the second?](https://discourse.processing.org/t/can-you-distinguish-between-the-first-time-pressing-a-space-bar-and-the-second/19846)

<div class="topic-metadata">

**Author:** [@14mmss](https://discourse.processing.org/u/14mmss)\
**Replies:** 1\
**Last updated:** [April 16, 2020, 8:20pm UTC](https://discourse.processing.org/t/can-you-distinguish-between-the-first-time-pressing-a-space-bar-and-the-second/19846 "2020-04-16T20:20:12Z")

</div>

for my code, I need to use the space bar for both actions. but as one does something and the other does another, they end up clashing, is there any way to distinguish them? my code is for a reaction time experiment, and…

---

## [Can somebody help me with this question?](https://discourse.processing.org/t/can-somebody-help-me-with-this-question/20323)

<div class="topic-metadata">

**Author:** [@oliver\_humsafah](https://discourse.processing.org/u/oliver_humsafah)\
**Replies:** 1\
**Last updated:** [April 30, 2020, 8:08pm UTC](https://discourse.processing.org/t/can-somebody-help-me-with-this-question/20323 "2020-04-30T20:08:12Z")

</div>

Write a public function called HW8C which accepts an array of int(s) ( integers) anreturns an ArrayList containing those numbers in an appropriate form. Please use aloop to do the copy.

---

## [Custom class that extends PGraphics class not working](https://discourse.processing.org/t/custom-class-that-extends-pgraphics-class-not-working/20199)

<div class="topic-metadata">

**Author:** [@Ayfri](https://discourse.processing.org/u/Ayfri)\
**Replies:** 5\
**Last updated:** [April 30, 2020, 7:06pm UTC](https://discourse.processing.org/t/custom-class-that-extends-pgraphics-class-not-working/20199 "2020-04-30T19:06:09Z")

</div>

I have this custom Button class that extends PGraphics but I can’t figure it out how to make it working, the draw function just do nothing, I inspected the pixels and before sketch(this, x, y);, all pixels are equals to 0…

---

## [Detecting eye color using PoseNet](https://discourse.processing.org/t/detecting-eye-color-using-posenet/20254)

<div class="topic-metadata">

**Author:** [@gjs](https://discourse.processing.org/u/gjs)\
**Replies:** 2\
**Last updated:** [April 30, 2020, 1:57pm UTC](https://discourse.processing.org/t/detecting-eye-color-using-posenet/20254 "2020-04-30T13:57:55Z")

</div>

Building on Dan Shiffman’s PoseNet example, I built a model to get eye color using the left and right eye points. I applied a 6 pixel offset from each point’s center to avoid the pupil and, ideally, land on the iris. It …

---

## [Contours with Bezier Vertex](https://discourse.processing.org/t/contours-with-bezier-vertex/20306)

<div class="topic-metadata">

**Author:** [@rebeccajkaye](https://discourse.processing.org/u/rebeccajkaye)\
**Replies:** 4\
**Last updated:** [April 30, 2020, 5:14pm UTC](https://discourse.processing.org/t/contours-with-bezier-vertex/20306 "2020-04-30T17:14:42Z")

</div>

Hello I was hoping somebody may be able to help me figure out what I’ve done wrong with my code. I’m just trying to create a square with a circle cut out and it’s not seeming to do what I want. This is my code - any he…

---

## [Fresnel effect in PShader not working right?](https://discourse.processing.org/t/fresnel-effect-in-pshader-not-working-right/20283)

<div class="topic-metadata">

**Author:** [@Bordin](https://discourse.processing.org/u/Bordin)\
**Replies:** 1\
**Last updated:** [April 30, 2020, 4:09pm UTC](https://discourse.processing.org/t/fresnel-effect-in-pshader-not-working-right/20283 "2020-04-30T16:09:54Z")

</div>

I’m currently trying to follow the famous Nvidia guide to water simulation, and I’m making some okay progress. My waves are oddly flat but that’s not really the issue. I got to the point where I wanted to implemented a r…

---

## [Advancing loop one frame at a time then save frame as a PDF -- doesn’t always save frame seen on screen](https://discourse.processing.org/t/advancing-loop-one-frame-at-a-time-then-save-frame-as-a-pdf-doesn-t-always-save-frame-seen-on-screen/20287)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 2\
**Last updated:** [April 30, 2020, 3:52pm UTC](https://discourse.processing.org/t/advancing-loop-one-frame-at-a-time-then-save-frame-as-a-pdf-doesn-t-always-save-frame-seen-on-screen/20287 "2020-04-30T15:52:16Z")

</div>

This is a piece of a larger sketch I have reduced down to basic elements for the question. It is currently set up to redraw one frame at a time when keyPressed. And with mousePressed to record a PDF of the frame shown …

---

## [Problem running code via HC-05 module](https://discourse.processing.org/t/problem-running-code-via-hc-05-module/20216)

<div class="topic-metadata">

**Author:** [@masterjader](https://discourse.processing.org/u/masterjader)\
**Replies:** 2\
**Last updated:** [April 30, 2020, 2:53pm UTC](https://discourse.processing.org/t/problem-running-code-via-hc-05-module/20216 "2020-04-30T14:53:38Z")

</div>

So I created a program to control a robot using 5 servos. I’m controlling the robot using a wireless PS4 controller using Game Controller Plus. Everything works fine when plugged in but I have to make this wireless so I …

---

## [Problem using GPanel and child windows in G4P library](https://discourse.processing.org/t/problem-using-gpanel-and-child-windows-in-g4p-library/20137)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 30\
**Last updated:** [April 30, 2020, 1:36pm UTC](https://discourse.processing.org/t/problem-using-gpanel-and-child-windows-in-g4p-library/20137 "2020-04-30T13:36:37Z")

</div>

This is a further refinement to the sketch I posted in my previous question. I want to divide the main window into panels, and from some of the panels, I want to open a child window. The code below works fine without pan…

---

## [Android Processing App](https://discourse.processing.org/t/android-processing-app/20267)

<div class="topic-metadata">

**Author:** [@Rogo](https://discourse.processing.org/u/Rogo)\
**Replies:** 17\
**Last updated:** [April 30, 2020, 12:55pm UTC](https://discourse.processing.org/t/android-processing-app/20267 "2020-04-30T12:55:17Z")

</div>

English: Hello I wanted to ask how you can play a video on the phone in the processing app. I have to do something similar to netflix. xD Deutsch: Hallo ich wollte mal fragen wie man am Handy in der Processing App ein…

---

## [Color randomizing time reaction game](https://discourse.processing.org/t/color-randomizing-time-reaction-game/20222)

<div class="topic-metadata">

**Author:** [@stanley](https://discourse.processing.org/u/stanley)\
**Replies:** 1\
**Last updated:** [April 30, 2020, 12:08pm UTC](https://discourse.processing.org/t/color-randomizing-time-reaction-game/20222 "2020-04-30T12:08:51Z")

</div>

Hello all, I am relativity new to Processing and I have challenged myself to evolve a previous art project into a game based on reaction time. Below is an image of this project with my Processing interface open on the c…

---

## [Making an object appear multiple times when required](https://discourse.processing.org/t/making-an-object-appear-multiple-times-when-required/20236)

<div class="topic-metadata">

**Author:** [@captainmajere](https://discourse.processing.org/u/captainmajere)\
**Replies:** 1\
**Last updated:** [April 30, 2020, 11:41am UTC](https://discourse.processing.org/t/making-an-object-appear-multiple-times-when-required/20236 "2020-04-30T11:41:58Z")

</div>

I am trying to make a game about consuming balls and I have yet to find a solution for these two problems. 1- Making collision a one time thing without using a flag 2-Making my redorbs spawn exponantially after consumi…

---

## [Bubbles transform to black rectangles](https://discourse.processing.org/t/bubbles-transform-to-black-rectangles/20258)

<div class="topic-metadata">

**Author:** [@gurki](https://discourse.processing.org/u/gurki)\
**Replies:** 6\
**Last updated:** [April 30, 2020, 11:18am UTC](https://discourse.processing.org/t/bubbles-transform-to-black-rectangles/20258 "2020-04-30T11:18:04Z")

</div>

Hello Guys, I need help from an task where I am not quite sure where I am wrong. The task is in German but I will translate it via Deppl.com to english: Write the class Blubb with the four properties x, y, d (all floa…

---

## [Checking if a file exists - strange runtime error](https://discourse.processing.org/t/checking-if-a-file-exists-strange-runtime-error/20276)

<div class="topic-metadata">

**Author:** [@PhilHaw](https://discourse.processing.org/u/PhilHaw)\
**Replies:** 7\
**Last updated:** [April 30, 2020, 11:14am UTC](https://discourse.processing.org/t/checking-if-a-file-exists-strange-runtime-error/20276 "2020-04-30T11:14:00Z")

</div>

I’m trying to write a routine that will load from a user’s file (required filename is, say “My patches.txt”) in the data folder but that will default to another file if the user’s file does not exist. I found the ‘file e…

---

## [I can't create a keystore on APDE](https://discourse.processing.org/t/i-cant-create-a-keystore-on-apde/20271)

<div class="topic-metadata">

**Author:** [@TheDoctor27](https://discourse.processing.org/u/TheDoctor27)\
**Replies:** 18\
**Last updated:** [April 30, 2020, 10:58am UTC](https://discourse.processing.org/t/i-cant-create-a-keystore-on-apde/20271 "2020-04-30T10:58:36Z")

</div>

Hi, i recently downloaded APDE on my phone to create games. I wanted to export the game to share it, with the “export signed package” but I don’t understand how to create the keystore. I first tried to select a random pi…

---

## [Video help please - no content type found for .webm](https://discourse.processing.org/t/video-help-please-no-content-type-found-for-webm/20234)

<div class="topic-metadata">

**Author:** [@samthetinkerer](https://discourse.processing.org/u/samthetinkerer)\
**Replies:** 1\
**Last updated:** [April 30, 2020, 7:10am UTC](https://discourse.processing.org/t/video-help-please-no-content-type-found-for-webm/20234 "2020-04-30T07:10:28Z")

</div>

I am writing an interactive video animation with a series of video clips in .webm format. It runs correctly but the console log shows the error: no content type found for .webm. I have tried looking at MIME types but hav…

---

## [Importing processing.video](https://discourse.processing.org/t/importing-processing-video/20290)

<div class="topic-metadata">

**Author:** [@cupofcalculus](https://discourse.processing.org/u/cupofcalculus)\
**Replies:** 2\
**Last updated:** [April 30, 2020, 4:32am UTC](https://discourse.processing.org/t/importing-processing-video/20290 "2020-04-30T04:32:19Z")

</div>

I’m trying to import the processing.video and it doesn’t seem to be working. It raises an exception stating ‘This sketch requires the “video” library.’ Where/how do I get it?

---

## [Multiple canvases](https://discourse.processing.org/t/multiple-canvases/20237)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 1\
**Last updated:** [April 29, 2020, 11:16pm UTC](https://discourse.processing.org/t/multiple-canvases/20237 "2020-04-29T23:16:25Z")

</div>

How do I get passed the following problem. I want to use PGraphics to create multiple canvases so that I can have proper overflow control on my menus however the following happens note the rectangle square in the bac…

---

## [Volume dips when connecting to p5.Amp](https://discourse.processing.org/t/volume-dips-when-connecting-to-p5-amp/20285)

<div class="topic-metadata">

**Author:** [@unofficial](https://discourse.processing.org/u/unofficial)\
**Replies:** 0\
**Last updated:** [April 29, 2020, 8:17pm UTC](https://discourse.processing.org/t/volume-dips-when-connecting-to-p5-amp/20285 "2020-04-29T20:17:03Z")

</div>

Hey all I have been crazy about what I thought was a more complicated problem, but it seems like it is perhaps just a simple bug? If you connect an audio source to a p5.Gain it seems to drastically reduce the level of th…

---

## [P5 Envelope Sound Clipping/Crackle](https://discourse.processing.org/t/p5-envelope-sound-clipping-crackle/18310)

<div class="topic-metadata">

**Author:** [@godmach1ne](https://discourse.processing.org/u/godmach1ne)\
**Replies:** 1\
**Last updated:** [April 29, 2020, 8:04pm UTC](https://discourse.processing.org/t/p5-envelope-sound-clipping-crackle/18310 "2020-04-29T20:04:01Z")

</div>

Hi all, Have been trying to create a sequencer using the p5.sound library with the use of Parts. It works smoothly with sample files, however I would like to add more parameters (ADSR) to the sound to play with by using…

---

## [Different screen sizes android](https://discourse.processing.org/t/different-screen-sizes-android/2233)

<div class="topic-metadata">

**Author:** [@hugo](https://discourse.processing.org/u/hugo)\
**Replies:** 20\
**Last updated:** [April 29, 2020, 7:55pm UTC](https://discourse.processing.org/t/different-screen-sizes-android/2233 "2020-04-29T19:55:02Z")

</div>

Hello, While writing a little program on android processing, I noticed that the rendering was not the same depending on the screen I was using. Here is the code: void setup () { background (0); fullScreen(); } void…

---

## [Contributing to p5.js - where to put function?](https://discourse.processing.org/t/contributing-to-p5-js-where-to-put-function/20213)

<div class="topic-metadata">

**Author:** [@rizz0s](https://discourse.processing.org/u/rizz0s)\
**Replies:** 3\
**Last updated:** [April 29, 2020, 6:32pm UTC](https://discourse.processing.org/t/contributing-to-p5-js-where-to-put-function/20213 "2020-04-29T18:32:05Z")

</div>

Hey folks! Beginner dev here. I’m a big fan of Processing and have used p5.js in personal projects. I wanted to try contributing to open source code to get some practice so I thought, why not p5? Anyway, I watched The …

---

## [Split/separate exported files/classes in Android Studio?](https://discourse.processing.org/t/split-separate-exported-files-classes-in-android-studio/20280)

<div class="topic-metadata">

**Author:** [@shedMusic](https://discourse.processing.org/u/shedMusic)\
**Replies:** 0\
**Last updated:** [April 29, 2020, 6:31pm UTC](https://discourse.processing.org/t/split-separate-exported-files-classes-in-android-studio/20280 "2020-04-29T18:31:17Z")

</div>

Hi All Have just exported and imported to Android Studio … all works fine but the whole project is now contained in one java file … everything nested within public class Sketch extends PApplet { } The app in Processin…

---

## [Regarding Gsoc slots](https://discourse.processing.org/t/regarding-gsoc-slots/20279)

<div class="topic-metadata">

**Author:** [@Akshjain99](https://discourse.processing.org/u/Akshjain99)\
**Replies:** 0\
**Last updated:** [April 29, 2020, 6:29pm UTC](https://discourse.processing.org/t/regarding-gsoc-slots/20279 "2020-04-29T18:29:36Z")

</div>

how many Slots we will be going to have this year in Gsoc 2020

---

## [Continuation of flocking example](https://discourse.processing.org/t/continuation-of-flocking-example/20018)

<div class="topic-metadata">

**Author:** [@alfrandell](https://discourse.processing.org/u/alfrandell)\
**Replies:** 7\
**Last updated:** [April 29, 2020, 6:26pm UTC](https://discourse.processing.org/t/continuation-of-flocking-example/20018 "2020-04-29T18:26:42Z")

</div>

I have continued with the arraylist example called flocking. I add health, age of boid, and a pecking order. Then, i can add predators. To amuse myself during a plague, i have been adding lifelike avoidance and hunting …

---

## [\[Unfolding Maps\] load custom map style](https://discourse.processing.org/t/unfolding-maps-load-custom-map-style/20245)

<div class="topic-metadata">

**Author:** [@eduzal](https://discourse.processing.org/u/eduzal)\
**Replies:** 2\
**Last updated:** [April 29, 2020, 2:58pm UTC](https://discourse.processing.org/t/unfolding-maps-load-custom-map-style/20245 "2020-04-29T14:58:23Z")

</div>

Hi.i’m trying to use online custom styled maps with Unfolding Maps. i wanna know how do I call a custom styled Mapbox or Google Maps maps. for instance, i have this mapbox style mapbox://styles/eduzal/ck9k5tj3b0n121jwa…

---

## [Need Help with play video](https://discourse.processing.org/t/need-help-with-play-video/20260)

<div class="topic-metadata">

**Author:** [@MonteliaRO](https://discourse.processing.org/u/MonteliaRO)\
**Replies:** 2\
**Last updated:** [April 29, 2020, 2:42pm UTC](https://discourse.processing.org/t/need-help-with-play-video/20260 "2020-04-29T14:42:57Z")

</div>

I need Help with the code from @noel import android.view.View; import android.content.Context; import android.widget.Button; import android.app.Activity; import android.view.Gravity; import android.graphics.Color; …

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

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