# Latest

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

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

**Page:** 189

---

## [Why is the bullet not shooting?](https://discourse.processing.org/t/why-is-the-bullet-not-shooting/32613)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 3\
**Last updated:** [October 4, 2021, 9:29pm UTC](https://discourse.processing.org/t/why-is-the-bullet-not-shooting/32613 "2021-10-04T21:29:40Z")

</div>

why is the bullet not shooting/ //visual PImage shrek; boolean invert= false; boolean shooting; PImage\[\] soldier= new PImage\[3\]; PImage crosseye; PImage nocrosseye; PImage eyebot; PImage heart; //timer //moving float…

---

## [Not shooting when inverted and eyebot not dissapearing](https://discourse.processing.org/t/not-shooting-when-inverted-and-eyebot-not-dissapearing/32615)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 0\
**Last updated:** [October 4, 2021, 8:30pm UTC](https://discourse.processing.org/t/not-shooting-when-inverted-and-eyebot-not-dissapearing/32615 "2021-10-04T20:30:57Z")

</div>

why can I not shoot when the screen is inverted? //visual PImage shrek; boolean invert= false; boolean shooting; PImage\[\] soldier= new PImage\[3\]; PImage crosseye; PImage nocrosseye; PImage eyebot; PImage heart; //time…

---

## [Help with improving my rect-rect collision detection](https://discourse.processing.org/t/help-with-improving-my-rect-rect-collision-detection/32609)

<div class="topic-metadata">

**Author:** [@Kenga123456](https://discourse.processing.org/u/Kenga123456)\
**Replies:** 1\
**Last updated:** [October 4, 2021, 5:21pm UTC](https://discourse.processing.org/t/help-with-improving-my-rect-rect-collision-detection/32609 "2021-10-04T17:21:30Z")

</div>

int ellipseRadius = 40; int r = 0; int b = 0; int g = 0; int rectPowerShowSize = 1; float xVel = 1; float yVel = 1; //images pImage img; void setup() { size(800, 400); background(0); frameRate(60); img = loadIm…

---

## [Hello,basic question, x is not a function](https://discourse.processing.org/t/hello-basic-question-x-is-not-a-function/32579)

<div class="topic-metadata">

**Author:** [@momo](https://discourse.processing.org/u/momo)\
**Replies:** 4\
**Last updated:** [October 4, 2021, 2:25pm UTC](https://discourse.processing.org/t/hello-basic-question-x-is-not-a-function/32579 "2021-10-04T14:25:47Z")

</div>

let img; let cnv; let points =\[\] let mult = 0.008 var vScale = 1; function preload(){ img = loadImage("assets/22.jpg"); } function setup() { cnv = createCanvas(img.width, img.height); //print img let newCanvasX…

---

## [Collision Detection with Bullet](https://discourse.processing.org/t/collision-detection-with-bullet/32557)

<div class="topic-metadata">

**Author:** [@MarkShaker](https://discourse.processing.org/u/MarkShaker)\
**Replies:** 4\
**Last updated:** [October 4, 2021, 7:32am UTC](https://discourse.processing.org/t/collision-detection-with-bullet/32557 "2021-10-04T07:32:40Z")

</div>

Hi everyone, I’m unsure on how to code collision detection in processing. I get the overall idea of how it works and have watched tutorials on YouTube however they mainly show collision detection in terms of changing col…

---

## [Repositioning my bird character](https://discourse.processing.org/t/repositioning-my-bird-character/32529)

<div class="topic-metadata">

**Author:** [@CharrR](https://discourse.processing.org/u/CharrR)\
**Replies:** 6\
**Last updated:** [October 4, 2021, 5:12am UTC](https://discourse.processing.org/t/repositioning-my-bird-character/32529 "2021-10-04T05:12:16Z")

</div>

Hi all, I’m new to processing and I’m sorta stuck. I made a bird character and I want to make a duplicate right beside it without having to re-enter and adjust all the codes. I’m also a bit confused by the “translate” fu…

---

## [simpleHTTPServer, saveStrings / ajax?](https://discourse.processing.org/t/simplehttpserver-savestrings-ajax/32591)

<div class="topic-metadata">

**Author:** [@rkdnson](https://discourse.processing.org/u/rkdnson)\
**Replies:** 1\
**Last updated:** [October 4, 2021, 3:48am UTC](https://discourse.processing.org/t/simplehttpserver-savestrings-ajax/32591 "2021-10-04T03:48:40Z")

</div>

Hello everyone, I am using the SimpleHTTPServer by transfluxus. It works great, but I am have some general HTTP questions. I want to host a local site that has constantly updating information. This is my current workf…

---

## [How to stop the ball from moving when no key is beying pressed?](https://discourse.processing.org/t/how-to-stop-the-ball-from-moving-when-no-key-is-beying-pressed/32559)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 4\
**Last updated:** [October 3, 2021, 9:07pm UTC](https://discourse.processing.org/t/how-to-stop-the-ball-from-moving-when-no-key-is-beying-pressed/32559 "2021-10-03T21:07:24Z")

</div>

how to stop the ellipse from moving when no key is being pressed? PImage shrek; float charx=0; float chary=0; boolean invert= false; void setup() { size(600, 500); shrek= loadImage("shrek.jpg"); chary= height/2; …

---

## [Wait between port writes](https://discourse.processing.org/t/wait-between-port-writes/32550)

<div class="topic-metadata">

**Author:** [@PaladinBobcat](https://discourse.processing.org/u/PaladinBobcat)\
**Replies:** 4\
**Last updated:** [October 3, 2021, 7:56pm UTC](https://discourse.processing.org/t/wait-between-port-writes/32550 "2021-10-03T19:56:37Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I’m trying to figure out a way to wait a certain amount of time between sending serial data to my arduino. I want to be a able to “animate” wha…

---

## [Multiple faculty vacancies in Computational Media Arts @ Hong Kong University of Science and Technology (Guangzhou campus)](https://discourse.processing.org/t/multiple-faculty-vacancies-in-computational-media-arts-hong-kong-university-of-science-and-technology-guangzhou-campus/32586)

<div class="topic-metadata">

**Author:** [@lobodelmar](https://discourse.processing.org/u/lobodelmar)\
**Replies:** 0\
**Last updated:** [October 3, 2021, 5:25pm UTC](https://discourse.processing.org/t/multiple-faculty-vacancies-in-computational-media-arts-hong-kong-university-of-science-and-technology-guangzhou-campus/32586 "2021-10-03T17:25:35Z")

</div>

The Hong Kong University of Science and Technology (Guangzhou campus) Multiple faculty positions in Computational Media and Arts Thrust Area, Information Hub The Hong Kong University of Science and Technology (HKUST) i…

---

## [Change variable alternatingly](https://discourse.processing.org/t/change-variable-alternatingly/32230)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 8\
**Last updated:** [October 2, 2021, 9:30am UTC](https://discourse.processing.org/t/change-variable-alternatingly/32230 "2021-10-02T09:30:57Z")

</div>

how to change i to 2 every couple of seconds/frames and then back direction\[1\]= loadImage("left.png"); direction\[2\]= loadImage("right.png"); i; void setup(){ fullScreen(); } void draw(){ image(direction\[i\], image…

---

## [Rotating object around camera](https://discourse.processing.org/t/rotating-object-around-camera/32401)

<div class="topic-metadata">

**Author:** [@SNICKRS](https://discourse.processing.org/u/SNICKRS)\
**Replies:** 9\
**Last updated:** [October 3, 2021, 6:51pm UTC](https://discourse.processing.org/t/rotating-object-around-camera/32401 "2021-10-03T18:51:35Z")

</div>

Hello everyone, I am trying to make an accurate sky simulation in the voxel game I am working on, as an update. So far, I have day and night working, with clouds (though they are kind of buggy). However, I want to make a…

---

## [How to draw a crescent](https://discourse.processing.org/t/how-to-draw-a-crescent/30771)

<div class="topic-metadata">

**Author:** [@Dan](https://discourse.processing.org/u/Dan)\
**Replies:** 26\
**Last updated:** [October 3, 2021, 6:41pm UTC](https://discourse.processing.org/t/how-to-draw-a-crescent/30771 "2021-10-03T18:41:42Z")

</div>

Hello friends, I would like to depict moon phases by laying a dark crescent shape over an image of the moon. I’m able to create a crescent shape using beginShape()/endShape() and generating lots of vertices inside a co…

---

## [Struggling with Webmidi library](https://discourse.processing.org/t/struggling-with-webmidi-library/32539)

<div class="topic-metadata">

**Author:** [@goldorak](https://discourse.processing.org/u/goldorak)\
**Replies:** 1\
**Last updated:** [October 3, 2021, 5:26pm UTC](https://discourse.processing.org/t/struggling-with-webmidi-library/32539 "2021-10-03T17:26:38Z")

</div>

Hi, I’m trying to make the simplest implementation of the Webmidi library. I can get my midi controllers to communicate with my sketch, however I’m really struggling with the code structure. So far I’ve been using: T…

---

## [Hardware device to be controlled by p5.js](https://discourse.processing.org/t/hardware-device-to-be-controlled-by-p5-js/32582)

<div class="topic-metadata">

**Author:** [@Pete\_r61](https://discourse.processing.org/u/Pete_r61)\
**Replies:** 0\
**Last updated:** [October 3, 2021, 4:27pm UTC](https://discourse.processing.org/t/hardware-device-to-be-controlled-by-p5-js/32582 "2021-10-03T16:27:24Z")

</div>

---

## [Cannot use array variable defined in setup()](https://discourse.processing.org/t/cannot-use-array-variable-defined-in-setup/32578)

<div class="topic-metadata">

**Author:** [@dirknbr](https://discourse.processing.org/u/dirknbr)\
**Replies:** 2\
**Last updated:** [October 3, 2021, 12:04pm UTC](https://discourse.processing.org/t/cannot-use-array-variable-defined-in-setup/32578 "2021-10-03T12:04:10Z")

</div>

I want each of 30 lines to have a distinct random colour, but I get a ‘cols cannnot be resolved’ error in the draw() part. //https://funprogramming.org/76-Slowly-morphing-bezier-curves.html void setup() { size(500, 40…

---

## [Stop ball less abruptly](https://discourse.processing.org/t/stop-ball-less-abruptly/32572)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 2\
**Last updated:** [October 3, 2021, 11:06am UTC](https://discourse.processing.org/t/stop-ball-less-abruptly/32572 "2021-10-03T11:06:22Z")

</div>

if you press space the ellipse jumps, but it stops very abruptly how can i slow it down instead? //visual PImage shrek; boolean invert= false; //timer //moving float charx=0; float chary=563-25; boolean jumping= false;…

---

## [How to connect to facebook glasses camera as camera feed in android mode](https://discourse.processing.org/t/how-to-connect-to-facebook-glasses-camera-as-camera-feed-in-android-mode/32566)

<div class="topic-metadata">

**Author:** [@flotowcameron](https://discourse.processing.org/u/flotowcameron)\
**Replies:** 0\
**Last updated:** [October 2, 2021, 8:42pm UTC](https://discourse.processing.org/t/how-to-connect-to-facebook-glasses-camera-as-camera-feed-in-android-mode/32566 "2021-10-02T20:42:23Z")

</div>

I need to connect to the camera feed on my facebook glasses I just bought. I am trying to get the feed while in android mode and have no idea what to do. Can anyone help me get the camera feed?

---

## [Using mousePressed to place different indexes of an array on the canvas](https://discourse.processing.org/t/using-mousepressed-to-place-different-indexes-of-an-array-on-the-canvas/32556)

<div class="topic-metadata">

**Author:** [@Cavemind](https://discourse.processing.org/u/Cavemind)\
**Replies:** 4\
**Last updated:** [October 2, 2021, 7:40pm UTC](https://discourse.processing.org/t/using-mousepressed-to-place-different-indexes-of-an-array-on-the-canvas/32556 "2021-10-02T19:40:28Z")

</div>

Hello Reaching out for some help, What I am trying to do is when I press mouse button a different part of an array is show and placed on the screen, what is happening is that even though the selected array index is the…

---

## [An event system for Processing 4!](https://discourse.processing.org/t/an-event-system-for-processing-4/32564)

<div class="topic-metadata">

**Author:** [@Stephcraft](https://discourse.processing.org/u/Stephcraft)\
**Replies:** 0\
**Last updated:** [October 2, 2021, 7:39pm UTC](https://discourse.processing.org/t/an-event-system-for-processing-4/32564 "2021-10-02T19:39:17Z")

</div>

I am back with a better version of event bindings for Processing. This system can be used with Processing 4 and Eclipse. Unfortunately, it cannot be used with Processing 3 because the library requires Java version 8+ for…

---

## [Why does my program return the error, RuntimeException: Too many popStyle() without enough pushStyle()?](https://discourse.processing.org/t/why-does-my-program-return-the-error-runtimeexception-too-many-popstyle-without-enough-pushstyle/32560)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 3\
**Last updated:** [October 2, 2021, 1:27pm UTC](https://discourse.processing.org/t/why-does-my-program-return-the-error-runtimeexception-too-many-popstyle-without-enough-pushstyle/32560 "2021-10-02T13:27:59Z")

</div>

why does my program return the error, RuntimeException: Too many popStyle() without enough pushStyle()? i have the same amount of pop as i do push (I want to have the screen be inverted, and go back to normal every fiv…

---

## [Help with making objects transparent and draggable](https://discourse.processing.org/t/help-with-making-objects-transparent-and-draggable/32545)

<div class="topic-metadata">

**Author:** [@Chigoz](https://discourse.processing.org/u/Chigoz)\
**Replies:** 5\
**Last updated:** [October 1, 2021, 7:46pm UTC](https://discourse.processing.org/t/help-with-making-objects-transparent-and-draggable/32545 "2021-10-01T19:46:56Z")

</div>

I need help with changing the opacity(transparency) of the objects and dragging the objects. I can change the opacity(transparency) but when I do the objects are no longer draggable. The image below sheds more light on …

---

## [Processing 3x with Simple MultiTouch library](https://discourse.processing.org/t/processing-3x-with-simple-multitouch-library/10566)

<div class="topic-metadata">

**Author:** [@ecor](https://discourse.processing.org/u/ecor)\
**Replies:** 2\
**Last updated:** [October 1, 2021, 2:59pm UTC](https://discourse.processing.org/t/processing-3x-with-simple-multitouch-library/10566 "2021-10-01T14:59:59Z")

</div>

Hello! I would like to create a sketch that allows the user to interact via touch events. At the moment I used keyboard and mouse events. I would like to convert them to touch events with the Simple Multi Touch library, …

---

## [3D rotation quirk](https://discourse.processing.org/t/3d-rotation-quirk/32500)

<div class="topic-metadata">

**Author:** [@Ariadne](https://discourse.processing.org/u/Ariadne)\
**Replies:** 10\
**Last updated:** [October 1, 2021, 12:58pm UTC](https://discourse.processing.org/t/3d-rotation-quirk/32500 "2021-10-01T12:58:27Z")

</div>

I am currently writing a small library for 3D wireframes, because I have an idea for a 3D wireframe game, and I couldn’t find any libraries for 3D wireframes in p5.js. Right now everything, except rotation, works perfect…

---

## [P5.Js sketch used to work but now it doesn't](https://discourse.processing.org/t/p5-js-sketch-used-to-work-but-now-it-doesnt/32524)

<div class="topic-metadata">

**Author:** [@alsumwas](https://discourse.processing.org/u/alsumwas)\
**Replies:** 2\
**Last updated:** [October 1, 2021, 12:32pm UTC](https://discourse.processing.org/t/p5-js-sketch-used-to-work-but-now-it-doesnt/32524 "2021-10-01T12:32:53Z")

</div>

The sketch below worked a year ago but now when I try to play it it just says loading indefinitely. Any thoughts on what the hangup is? \</var bgcolor; var abutton; var bbutton; var cbutton; var dbutton; var ebutto…

---

## [What would this code be in p5js?](https://discourse.processing.org/t/what-would-this-code-be-in-p5js/32541)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 2\
**Last updated:** [October 1, 2021, 9:16am UTC](https://discourse.processing.org/t/what-would-this-code-be-in-p5js/32541 "2021-10-01T09:16:32Z")

</div>

how to translate this to p5js? OpenVRLibrary openVR; public void setup() { frameRate(90); openVR = new OpenVRLibrary(this); }

---

## [Subtracting a 3D Sphere from a 3D Cube tutorials](https://discourse.processing.org/t/subtracting-a-3d-sphere-from-a-3d-cube-tutorials/32509)

<div class="topic-metadata">

**Author:** [@garyion](https://discourse.processing.org/u/garyion)\
**Replies:** 2\
**Last updated:** [October 1, 2021, 6:03am UTC](https://discourse.processing.org/t/subtracting-a-3d-sphere-from-a-3d-cube-tutorials/32509 "2021-10-01T06:03:49Z")

</div>

Hi, I am looking for a tutorial to subtract a 3D sphere shape from 3D cube similar to https://www.gograph.com/clipart/subtraction-of-cube-and-sphere-gg66311482.html thanks

---

## [Loading font from data folder in a second window](https://discourse.processing.org/t/loading-font-from-data-folder-in-a-second-window/32517)

<div class="topic-metadata">

**Author:** [@DonaldZhu](https://discourse.processing.org/u/DonaldZhu)\
**Replies:** 3\
**Last updated:** [October 1, 2021, 4:29am UTC](https://discourse.processing.org/t/loading-font-from-data-folder-in-a-second-window/32517 "2021-10-01T04:29:51Z")

</div>

The following code create two windows when my sketch is run: Main file: PWindow pwindow; PFont font; void setup() { size(800, 800); pwindow = new PWindow(); } Second file: class PWindow extends PApplet { PWind…

---

## [Python mode n'est pas dans la liste des modes](https://discourse.processing.org/t/python-mode-nest-pas-dans-la-liste-des-modes/32480)

<div class="topic-metadata">

**Author:** [@Proooog](https://discourse.processing.org/u/Proooog)\
**Replies:** 2\
**Last updated:** [September 30, 2021, 7:05pm UTC](https://discourse.processing.org/t/python-mode-nest-pas-dans-la-liste-des-modes/32480 "2021-09-30T19:05:00Z")

</div>

Bonjour, Python mode n’apparait pas dans la liste des modes disponibles, J’ai également essayé de place le mode Python (trouvé sur ce forum) dans le fichier modes de processing, mais rien n’y fait. Je suis en versio…

---

## [Running an easing animation to completion every time mouse is clicked](https://discourse.processing.org/t/running-an-easing-animation-to-completion-every-time-mouse-is-clicked/32512)

<div class="topic-metadata">

**Author:** [@miketaco](https://discourse.processing.org/u/miketaco)\
**Replies:** 5\
**Last updated:** [September 30, 2021, 6:32pm UTC](https://discourse.processing.org/t/running-an-easing-animation-to-completion-every-time-mouse-is-clicked/32512 "2021-09-30T18:32:56Z")

</div>

Im trying to get the line to rotate and ease to the target degree (targetX) then stop only when the mouse is clicked once. Subsequent mouse clicks should pick up where the last target degree and rotate the additional amo…

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

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