# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=336

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

**Page:** 337

---

## [Creating animated Triangle Patterns](https://discourse.processing.org/t/creating-animated-triangle-patterns/6702)

<div class="topic-metadata">

**Author:** [@mmrpl](https://discourse.processing.org/u/mmrpl)\
**Replies:** 3\
**Last updated:** [December 19, 2018, 9:10pm UTC](https://discourse.processing.org/t/creating-animated-triangle-patterns/6702 "2018-12-19T21:10:30Z")

</div>

Hi there, I’d like to create a loop animation of a triangle mesh or pattern - like this. I started looking through toxiclibs and voronoi in general. My problem though is that I don’t really know where to start and what’…

---

## [How can you block the key "Escape"](https://discourse.processing.org/t/how-can-you-block-the-key-escape/6765)

<div class="topic-metadata">

**Author:** [@fritzpal](https://discourse.processing.org/u/fritzpal)\
**Replies:** 2\
**Last updated:** [December 19, 2018, 7:57pm UTC](https://discourse.processing.org/t/how-can-you-block-the-key-escape/6765 "2018-12-19T19:57:41Z")

</div>

Hi, does somebody know how to block processing from closing the sketch when you press escape? I tried this but it did not work: void draw(){ if(key == ESC)key = 0; } Thank you

---

## [Where to find GLSL ES tutorial?](https://discourse.processing.org/t/where-to-find-glsl-es-tutorial/6721)

<div class="topic-metadata">

**Author:** [@lord\_berto](https://discourse.processing.org/u/lord_berto)\
**Replies:** 1\
**Last updated:** [December 19, 2018, 7:34pm UTC](https://discourse.processing.org/t/where-to-find-glsl-es-tutorial/6721 "2018-12-19T19:34:38Z")

</div>

hello, I’m working on a paint program that I hope to port to mobile devices and want to use some shaders. GLSL ES is apparently the shader language to use, anywhere where I may find a website or videos to learn how to…

---

## [Disabling serialEvent() for COM11 null](https://discourse.processing.org/t/disabling-serialevent-for-com11-null/6689)

<div class="topic-metadata">

**Author:** [@shady24](https://discourse.processing.org/u/shady24)\
**Replies:** 1\
**Last updated:** [December 19, 2018, 1:44pm UTC](https://discourse.processing.org/t/disabling-serialevent-for-com11-null/6689 "2018-12-19T13:44:57Z")

</div>

Hi, I am trying to make a game controller using Arduino mega and ADXL 335 & linear potentiometer. The controller works fine but most of the time it gives the error Error, disabling serialEvent() for COM11 null I am…

---

## [Launch() function on linux (Ubuntu)](https://discourse.processing.org/t/launch-function-on-linux-ubuntu/6725)

<div class="topic-metadata">

**Author:** [@phoebus](https://discourse.processing.org/u/phoebus)\
**Replies:** 3\
**Last updated:** [December 19, 2018, 7:36am UTC](https://discourse.processing.org/t/launch-function-on-linux-ubuntu/6725 "2018-12-19T07:36:38Z")

</div>

Hello :slight\_smile: I’m trying to use the launch() function in a stketch I developped and exported for Linux. The machine I am trying it on is using Ubuntu it says " On Linux, it first tries gnome-open, then kde-op…

---

## [How can I put a program into a pp presentation?](https://discourse.processing.org/t/how-can-i-put-a-program-into-a-pp-presentation/6645)

<div class="topic-metadata">

**Author:** [@daniel110066](https://discourse.processing.org/u/daniel110066)\
**Replies:** 8\
**Last updated:** [December 19, 2018, 12:56am UTC](https://discourse.processing.org/t/how-can-i-put-a-program-into-a-pp-presentation/6645 "2018-12-19T00:56:37Z")

</div>

Please answer my question, or ask for more details if you think you can help.

---

## [Start functions displaced in time?](https://discourse.processing.org/t/start-functions-displaced-in-time/6718)

<div class="topic-metadata">

**Author:** [@Anaibuk](https://discourse.processing.org/u/Anaibuk)\
**Replies:** 5\
**Last updated:** [December 19, 2018, 12:53am UTC](https://discourse.processing.org/t/start-functions-displaced-in-time/6718 "2018-12-19T00:53:59Z")

</div>

Hey, I’m just starting processing at university, so I feel a little lost in my code. I want to start my first void line1 and then, after some seconds, start the second void line2 too. I know that it should be possible t…

---

## [Custom world map how to draw country shapes](https://discourse.processing.org/t/custom-world-map-how-to-draw-country-shapes/6712)

<div class="topic-metadata">

**Author:** [@carlesgutierrez](https://discourse.processing.org/u/carlesgutierrez)\
**Replies:** 2\
**Last updated:** [December 19, 2018, 12:26am UTC](https://discourse.processing.org/t/custom-world-map-how-to-draw-country-shapes/6712 "2018-12-19T00:26:21Z")

</div>

Hi all, I’m wondering if anyone has an idea how to create a dynamic world map… I would love to get all the countries as vector of polygon, then redraw them in different shapes styles and positions. After this I want to…

---

## [VR help can it be done](https://discourse.processing.org/t/vr-help-can-it-be-done/6690)

<div class="topic-metadata">

**Author:** [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Replies:** 2\
**Last updated:** [December 18, 2018, 11:31pm UTC](https://discourse.processing.org/t/vr-help-can-it-be-done/6690 "2018-12-18T23:31:33Z")

</div>

Anyone know if it possible to create a VR in processing & what VR headset would i use if I even made one? Any suggestions will be great.

---

## [Trying to connect an ELP Camera , but i get an error](https://discourse.processing.org/t/trying-to-connect-an-elp-camera-but-i-get-an-error/6499)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 5\
**Last updated:** [December 18, 2018, 10:34pm UTC](https://discourse.processing.org/t/trying-to-connect-an-elp-camera-but-i-get-an-error/6499 "2018-12-18T22:34:53Z")

</div>

(java.exe:4496): GStreamer-CRITICAL \*\*: Trying to dispose element Video Capture, but it is in READY instead of the NULL state. You need to explicitly set elements to the NULL state before dropping the final reference,…

---

## [Problem writing number on stripes. Drone interface](https://discourse.processing.org/t/problem-writing-number-on-stripes-drone-interface/6698)

<div class="topic-metadata">

**Author:** [@jcduino](https://discourse.processing.org/u/jcduino)\
**Replies:** 5\
**Last updated:** [December 18, 2018, 8:21pm UTC](https://discourse.processing.org/t/problem-writing-number-on-stripes-drone-interface/6698 "2018-12-18T20:21:11Z")

</div>

Hello I am implementing an interface for my drone and I am blocked in the algorithm that draws the course. The idea is to make vertical stripes along a landscape rectangle. The long lines are every 50px and they have t…

---

## [Marking code parts](https://discourse.processing.org/t/marking-code-parts/6655)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 6\
**Last updated:** [December 18, 2018, 6:07pm UTC](https://discourse.processing.org/t/marking-code-parts/6655 "2018-12-18T18:07:09Z")

</div>

Hi, ive been coding for past 6 months and i have a questions; i dont know how how or if its possible to “color” certain parts of code. Like rect touching part of code is completley unrecognisable between X check and Y …

---

## [Rotate an image when it's moving with "if"](https://discourse.processing.org/t/rotate-an-image-when-its-moving-with-if/6633)

<div class="topic-metadata">

**Author:** [@Alexander](https://discourse.processing.org/u/Alexander)\
**Replies:** 3\
**Last updated:** [December 18, 2018, 5:25pm UTC](https://discourse.processing.org/t/rotate-an-image-when-its-moving-with-if/6633 "2018-12-18T17:25:43Z")

</div>

Hello! My name is Alex and i want to was a question. i’ ve been doing a race game the previous 2 days and i got to a serious problem. I have the menus, the track and a car, i made the car move.In the first place it’s hor…

---

## [Long, modulo and RSA-algorithm](https://discourse.processing.org/t/long-modulo-and-rsa-algorithm/6727)

<div class="topic-metadata">

**Author:** [@crizzer](https://discourse.processing.org/u/crizzer)\
**Replies:** 2\
**Last updated:** [December 18, 2018, 5:00pm UTC](https://discourse.processing.org/t/long-modulo-and-rsa-algorithm/6727 "2018-12-18T17:00:16Z")

</div>

As a school project, I have to make a program that can encrypt and decrypt code, whilst also registering the encoded code in a database. But I’ve encountered a problem: To encrypt a message using RSA, you need to lift …

---

## [Instagram geolocate](https://discourse.processing.org/t/instagram-geolocate/6728)

<div class="topic-metadata">

**Author:** [@MarsatAE](https://discourse.processing.org/u/MarsatAE)\
**Replies:** 3\
**Last updated:** [December 18, 2018, 4:31pm UTC](https://discourse.processing.org/t/instagram-geolocate/6728 "2018-12-18T16:31:46Z")

</div>

Hello I want to work with instagram, and i want to know where someone will repost (or comment) my project. Do you know how to do it ? it’s easy with twitter but i have no clue about it on instagram :confused: Thank yo…

---

## [Help with school piano stairs project](https://discourse.processing.org/t/help-with-school-piano-stairs-project/5667)

<div class="topic-metadata">

**Author:** [@skNDstry](https://discourse.processing.org/u/skNDstry)\
**Replies:** 3\
**Last updated:** [November 20, 2018, 2:26am UTC](https://discourse.processing.org/t/help-with-school-piano-stairs-project/5667 "2018-11-20T02:26:22Z")

</div>

Hi all I am new to processing, but I need to use processing to complete a school electronic project. I am trying to clone a project by Helen Bang on Instructables (https://www.instructables.com/id/Arduino-IR-Musical-St…

---

## [Displaying Arabic text](https://discourse.processing.org/t/displaying-arabic-text/6710)

<div class="topic-metadata">

**Author:** [@Kata](https://discourse.processing.org/u/Kata)\
**Replies:** 2\
**Last updated:** [December 18, 2018, 10:28am UTC](https://discourse.processing.org/t/displaying-arabic-text/6710 "2018-12-18T10:28:59Z")

</div>

Hi Totally new and my first ever question in the forum . I tried to find a way to have arabic text appear when running my small example. It does work, and the Arabic word is displayed when running the sketch. But t…

---

## [Event called when canvas is resized](https://discourse.processing.org/t/event-called-when-canvas-is-resized/6643)

<div class="topic-metadata">

**Author:** [@Sarah](https://discourse.processing.org/u/Sarah)\
**Replies:** 9\
**Last updated:** [December 18, 2018, 7:39am UTC](https://discourse.processing.org/t/event-called-when-canvas-is-resized/6643 "2018-12-18T07:39:37Z")

</div>

Hi, Is there an event that is called when the canvas is resizable, and the canvas is resized? In p5.js there’s windowResized(), but I can’t seem to find anything for Processing besides using the native Java functions. T…

---

## [Face recognition](https://discourse.processing.org/t/face-recognition/6571)

<div class="topic-metadata">

**Author:** [@hadigh](https://discourse.processing.org/u/hadigh)\
**Replies:** 5\
**Last updated:** [December 18, 2018, 5:37am UTC](https://discourse.processing.org/t/face-recognition/6571 "2018-12-18T05:37:25Z")

</div>

Hello I have a project in image processing to detect faces from a webcam on you laptop and give ID or names to these face based on previous images saved Can anyone please help me? I’m done with the part where I can det…

---

## [I need help on Processing 3](https://discourse.processing.org/t/i-need-help-on-processing-3/6663)

<div class="topic-metadata">

**Author:** [@buddyduncan](https://discourse.processing.org/u/buddyduncan)\
**Replies:** 5\
**Last updated:** [December 18, 2018, 2:22am UTC](https://discourse.processing.org/t/i-need-help-on-processing-3/6663 "2018-12-18T02:22:21Z")

</div>

I am trying to create a maze but I can’t figure out how to make it so the ball doesn’t go through the walls. I have provided my code below, please help me by telling me what code to add. int x = 170; int y = 315; PImag…

---

## [\[RESOLVED\] Platformer player unable to fall in pits](https://discourse.processing.org/t/resolved-platformer-player-unable-to-fall-in-pits/6706)

<div class="topic-metadata">

**Author:** [@Quillbert1](https://discourse.processing.org/u/Quillbert1)\
**Replies:** 1\
**Last updated:** [December 18, 2018, 12:30am UTC](https://discourse.processing.org/t/resolved-platformer-player-unable-to-fall-in-pits/6706 "2018-12-18T00:30:55Z")

</div>

I am trying to make a basic platformer game, but the player is unable to fall in pits. It falls off of platforms, but not into pits. Does anybody know how to fix this? I have several files, so I put the code on github. …

---

## [Can a PeasyCam cube have clickable faces? (Plus other small PeasyCam questions)](https://discourse.processing.org/t/can-a-peasycam-cube-have-clickable-faces-plus-other-small-peasycam-questions/6549)

<div class="topic-metadata">

**Author:** [@rumeauc1](https://discourse.processing.org/u/rumeauc1)\
**Replies:** 4\
**Last updated:** [December 17, 2018, 9:40pm UTC](https://discourse.processing.org/t/can-a-peasycam-cube-have-clickable-faces-plus-other-small-peasycam-questions/6549 "2018-12-17T21:40:11Z")

</div>

Hi guys, I;m pretty sure I haven’t seen any questions similar enough to my problem. I’m wondering if I can, using the PeasyCam library for Processing v3.4, make each face of the cube a clickable button? I’m familiar with…

---

## [Inserting a vertex into a PShape](https://discourse.processing.org/t/inserting-a-vertex-into-a-pshape/6620)

<div class="topic-metadata">

**Author:** [@William3954](https://discourse.processing.org/u/William3954)\
**Replies:** 3\
**Last updated:** [December 17, 2018, 8:51pm UTC](https://discourse.processing.org/t/inserting-a-vertex-into-a-pshape/6620 "2018-12-17T20:51:52Z")

</div>

Is it possible to insert a vertex into a PShape at a specific index point? Example, I have a PShape with 10 vertex, I want to add a vertex between v3 and v4 which would increase the PShape vertex count to 11. Currently,…

---

## [I need help with randomizing (javascript)](https://discourse.processing.org/t/i-need-help-with-randomizing-javascript/6704)

<div class="topic-metadata">

**Author:** [@Wuoahter](https://discourse.processing.org/u/Wuoahter)\
**Replies:** 1\
**Last updated:** [December 17, 2018, 8:48pm UTC](https://discourse.processing.org/t/i-need-help-with-randomizing-javascript/6704 "2018-12-17T20:48:22Z")

</div>

//tells collision of ball with paddle void contactPaddle() { //left paddle collision with ball if(x - w/2 \< paddleXL + paddleW/2 && y - h/2 \< paddleYL + paddleH/2 && y + h/2 \> paddleYL - paddleH/2) { if(speedX \< 0) { …

---

## [Sounds bugging out when I try to play a lot of them](https://discourse.processing.org/t/sounds-bugging-out-when-i-try-to-play-a-lot-of-them/6527)

<div class="topic-metadata">

**Author:** [@Haxorouse](https://discourse.processing.org/u/Haxorouse)\
**Replies:** 8\
**Last updated:** [December 17, 2018, 8:05pm UTC](https://discourse.processing.org/t/sounds-bugging-out-when-i-try-to-play-a-lot-of-them/6527 "2018-12-17T20:05:45Z")

</div>

I have a project where I am trying to play a sound every time an enemy shoots at you, The only problem is that when too many sounds are played they all get super distorted and never actually stop playing, I will try to i…

---

## [Random circles controlled by keypress](https://discourse.processing.org/t/random-circles-controlled-by-keypress/6580)

<div class="topic-metadata">

**Author:** [@jonzamarripa](https://discourse.processing.org/u/jonzamarripa)\
**Replies:** 3\
**Last updated:** [December 17, 2018, 7:01pm UTC](https://discourse.processing.org/t/random-circles-controlled-by-keypress/6580 "2018-12-17T19:01:50Z")

</div>

Hey guys, I am working on a code and I am stuck. The idea is for the random circles to stop when you press a key if not continue working until it stops. There’s an image running in the background. Eventually I want to t…

---

## [Game with typing random characters](https://discourse.processing.org/t/game-with-typing-random-characters/6588)

<div class="topic-metadata">

**Author:** [@ari\_y](https://discourse.processing.org/u/ari_y)\
**Replies:** 3\
**Last updated:** [December 17, 2018, 6:42pm UTC](https://discourse.processing.org/t/game-with-typing-random-characters/6588 "2018-12-17T18:42:50Z")

</div>

Urgent please help with assignment this class is making my gpa suffer! My assignment is to create a program that generates a random char value from 97 to 122 and then stores the number in a char variable. The screen wil…

---

## [Moving ellipse stop on black color](https://discourse.processing.org/t/moving-ellipse-stop-on-black-color/6572)

<div class="topic-metadata">

**Author:** [@Legate](https://discourse.processing.org/u/Legate)\
**Replies:** 2\
**Last updated:** [December 17, 2018, 6:14pm UTC](https://discourse.processing.org/t/moving-ellipse-stop-on-black-color/6572 "2018-12-17T18:14:19Z")

</div>

Hello friends, i need help with my school programming problem. We need to create ellipse/dot that automatically stops if it’s registers black color in it’s way. And starts following it’s path. Something like robots find…

---

## [I'm in a hurry! Dual cycle of how to move up and down](https://discourse.processing.org/t/im-in-a-hurry-dual-cycle-of-how-to-move-up-and-down/6640)

<div class="topic-metadata">

**Author:** [@lin](https://discourse.processing.org/u/lin)\
**Replies:** 5\
**Last updated:** [December 17, 2018, 2:08pm UTC](https://discourse.processing.org/t/im-in-a-hurry-dual-cycle-of-how-to-move-up-and-down/6640 "2018-12-17T14:08:51Z")

</div>

void setup() { size(640, 360); noStroke(); rectMode(CENTER); } void draw() { background(51); fill(255, 204); rect(mouseX, height/2, mouseY/2+10, mouseY/2+10); fill(255, 204); int inverseX = width-mouse…

---

## [Help with character spawning](https://discourse.processing.org/t/help-with-character-spawning/6687)

<div class="topic-metadata">

**Author:** [@Tarvis](https://discourse.processing.org/u/Tarvis)\
**Replies:** 1\
**Last updated:** [December 17, 2018, 6:08am UTC](https://discourse.processing.org/t/help-with-character-spawning/6687 "2018-12-17T06:08:11Z")

</div>

I haven’t been programming in processing or java that long, but I am trying to make a game where and enemy spawns at random inter volts, but my enemy program isn’t working. Any help? Thank you //var setup int high = 2; …

[Previous page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=335)

[Next page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=337)
