# Processing

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

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

**Page:** 213

---

## [Confirm on Exit](https://discourse.processing.org/t/confirm-on-exit/20613)

<div class="topic-metadata">

**Author:** [@jamcdonald](https://discourse.processing.org/u/jamcdonald)\
**Replies:** 2\
**Last updated:** [May 8, 2020, 5:21am UTC](https://discourse.processing.org/t/confirm-on-exit/20613 "2020-05-08T05:21:35Z")

</div>

I am trying to make a program where when the X button is clicked, the user is prompted Would you like to save before quitting? Save, Dont Save, Cancel. The problem is, I cant figure out how to cancel closing the window.…

---

## [Accessing an external camera](https://discourse.processing.org/t/accessing-an-external-camera/16628)

<div class="topic-metadata">

**Author:** [@nabhyaparmar](https://discourse.processing.org/u/nabhyaparmar)\
**Replies:** 6\
**Last updated:** [May 8, 2020, 1:17am UTC](https://discourse.processing.org/t/accessing-an-external-camera/16628 "2020-05-08T01:17:45Z")

</div>

Hi, I am fairly new to processing and I want to be able to access an external camera in my processing sketch. It is a DSLR Nikon D5100. I am not able to find the necessary source for this anywhere. Can someone please hel…

---

## [Multitouch with Windows 10](https://discourse.processing.org/t/multitouch-with-windows-10/20417)

<div class="topic-metadata">

**Author:** [@Gabe](https://discourse.processing.org/u/Gabe)\
**Replies:** 2\
**Last updated:** [May 8, 2020, 12:19am UTC](https://discourse.processing.org/t/multitouch-with-windows-10/20417 "2020-05-08T00:19:59Z")

</div>

Has anyone managed to detect more than one touch at a time on a Windows 10 touchscreen device? I looked into the SMT library on github (https://github.com/vialab/SMT), but it seems very out of date and doesn’t work with …

---

## [Applying noSmooth() to a PImage](https://discourse.processing.org/t/applying-nosmooth-to-a-pimage/20193)

<div class="topic-metadata">

**Author:** [@AndJ](https://discourse.processing.org/u/AndJ)\
**Replies:** 2\
**Last updated:** [May 7, 2020, 11:59pm UTC](https://discourse.processing.org/t/applying-nosmooth-to-a-pimage/20193 "2020-05-07T23:59:42Z")

</div>

I was working with a PImage (size 17x12 pixels), and trying to scale it up much larger. When I did this, it made the image blurry like it had anti-aliasing enabled. I know that the noSmooth() method aliases (turns off an…

---

## [Get plane from 3D model in Processing](https://discourse.processing.org/t/get-plane-from-3d-model-in-processing/20006)

<div class="topic-metadata">

**Author:** [@Nirav\_Meghani](https://discourse.processing.org/u/Nirav_Meghani)\
**Replies:** 9\
**Last updated:** [May 7, 2020, 4:02pm UTC](https://discourse.processing.org/t/get-plane-from-3d-model-in-processing/20006 "2020-05-07T16:02:00Z")

</div>

i have define 3d model and a plane in PShape. I want to get a plane with modification as shown in above image.

---

## [Saving the sketch through code](https://discourse.processing.org/t/saving-the-sketch-through-code/20097)

<div class="topic-metadata">

**Author:** [@arcadeperfect](https://discourse.processing.org/u/arcadeperfect)\
**Replies:** 5\
**Last updated:** [May 7, 2020, 3:49pm UTC](https://discourse.processing.org/t/saving-the-sketch-through-code/20097 "2020-05-07T15:49:42Z")

</div>

Hi, Short question: Is it possible to script a Processing sketch to make a copy of itself through code? Reason: I keep running into an issue where I go back through some images and videos I’ve generated with processi…

---

## [Help with serial communication](https://discourse.processing.org/t/help-with-serial-communication/20103)

<div class="topic-metadata">

**Author:** [@ed\_from\_maine](https://discourse.processing.org/u/ed_from_maine)\
**Replies:** 8\
**Last updated:** [May 7, 2020, 3:23pm UTC](https://discourse.processing.org/t/help-with-serial-communication/20103 "2020-05-07T15:23:40Z")

</div>

Hi, First post. I’m an intermediate level programmer but relatively new to Processing. I have a Processing program on my desktop that sends a sequence of commands to an Arduino board by the serial port (actually a Teens…

---

## [Polygon collision mask](https://discourse.processing.org/t/polygon-collision-mask/19513)

<div class="topic-metadata">

**Author:** [@GeorgeJava](https://discourse.processing.org/u/GeorgeJava)\
**Replies:** 3\
**Last updated:** [May 7, 2020, 3:15pm UTC](https://discourse.processing.org/t/polygon-collision-mask/19513 "2020-05-07T15:15:13Z")

</div>

How to create from two polygons one polygon, where it will be solid, where will be collsions, if the object moves on that direction with speed. Shift 2nd shape, to the target move position by speed and direction Create…

---

## [SaveFrame function exporting black frames](https://discourse.processing.org/t/saveframe-function-exporting-black-frames/20582)

<div class="topic-metadata">

**Author:** [@hcanndesign](https://discourse.processing.org/u/hcanndesign)\
**Replies:** 1\
**Last updated:** [May 7, 2020, 3:08pm UTC](https://discourse.processing.org/t/saveframe-function-exporting-black-frames/20582 "2020-05-07T15:08:15Z")

</div>

Hi all, This is my first attempt at processing and I’m trying to export the frames of a sketch I’ve created. Unfortunately all the frames come out as a black png with no other content. This is the code I’m using in my s…

---

## [Key pressed variable](https://discourse.processing.org/t/key-pressed-variable/20555)

<div class="topic-metadata">

**Author:** [@ploop1](https://discourse.processing.org/u/ploop1)\
**Replies:** 7\
**Last updated:** [May 7, 2020, 11:52am UTC](https://discourse.processing.org/t/key-pressed-variable/20555 "2020-05-07T11:52:42Z")

</div>

Hi, I am a student and struggling to figure out what is wrong with my programme. It is simply to play/pause a video at the press of the space bar however it doesn’t seem to continue not playing when the spacebar is relea…

---

## [Analyzing sound problem in effect 03 (minim)](https://discourse.processing.org/t/analyzing-sound-problem-in-effect-03-minim/20578)

<div class="topic-metadata">

**Author:** [@firetryer](https://discourse.processing.org/u/firetryer)\
**Replies:** 2\
**Last updated:** [May 7, 2020, 11:41am UTC](https://discourse.processing.org/t/analyzing-sound-problem-in-effect-03-minim/20578 "2020-05-07T11:41:31Z")

</div>

float t; // currentTime int t1 = 2000; //2000ms = after 2s int t2 = 6000; //6000ms = after 6s int t3 = 10000; //10000ms = after 10s int t4 = 15000; //1500ms = after 15s int finish = 20000; //2000ms = 20s Amplitude a…

---

## [Motion detection send to arduino](https://discourse.processing.org/t/motion-detection-send-to-arduino/20533)

<div class="topic-metadata">

**Author:** [@kanktonk](https://discourse.processing.org/u/kanktonk)\
**Replies:** 1\
**Last updated:** [May 7, 2020, 8:43am UTC](https://discourse.processing.org/t/motion-detection-send-to-arduino/20533 "2020-05-07T08:43:03Z")

</div>

Hi you all! Im an art student from berlin and for my latest project I need to send Data I get from Processing to Arduino. I use a serial port to communicate and I basically want to find the x Position of an person in Fro…

---

## [Need help with processing ball game](https://discourse.processing.org/t/need-help-with-processing-ball-game/20561)

<div class="topic-metadata">

**Author:** [@kchabs](https://discourse.processing.org/u/kchabs)\
**Replies:** 1\
**Last updated:** [May 7, 2020, 7:59am UTC](https://discourse.processing.org/t/need-help-with-processing-ball-game/20561 "2020-05-07T07:59:03Z")

</div>

Create a program that displays a window, 300 by 400, randomly placing a red ball (circle) of diameter 20 randomly somewhere in that space. When any key is pressed, the ball will bounce back and forth horizontally on th…

---

## [Can't find a mistake or removeAll() doesn't work](https://discourse.processing.org/t/cant-find-a-mistake-or-removeall-doesnt-work/18368)

<div class="topic-metadata">

**Author:** [@LuckSmith](https://discourse.processing.org/u/LuckSmith)\
**Replies:** 10\
**Last updated:** [March 12, 2020, 3:43pm UTC](https://discourse.processing.org/t/cant-find-a-mistake-or-removeall-doesnt-work/18368 "2020-03-12T15:43:49Z")

</div>

Hello, Please check the sketch at https://www.openprocessing.org/sketch/851540 it seems that when run in openprocessing.org it passes but a few iterations of the while() loop of the getRandom() method, but it prints th…

---

## [I have a question about arc()](https://discourse.processing.org/t/i-have-a-question-about-arc/20396)

<div class="topic-metadata">

**Author:** [@356](https://discourse.processing.org/u/356)\
**Replies:** 14\
**Last updated:** [May 6, 2020, 7:28pm UTC](https://discourse.processing.org/t/i-have-a-question-about-arc/20396 "2020-05-06T19:28:52Z")

</div>

I have a question about arc(). I’m not good at English, so I’m using machine translation. The behavior below seems intuitive. // P5.js function setup(){ createCanvas(200, 400); } function draw(){ translate(0, hei…

---

## [Transforming object to a letter (text)](https://discourse.processing.org/t/transforming-object-to-a-letter-text/20548)

<div class="topic-metadata">

**Author:** [@LennieCZ](https://discourse.processing.org/u/LennieCZ)\
**Replies:** 5\
**Last updated:** [May 6, 2020, 5:58pm UTC](https://discourse.processing.org/t/transforming-object-to-a-letter-text/20548 "2020-05-06T17:58:00Z")

</div>

Hello everyone! I’ve got a question. I am absolute newbie in processing and I want to create some interactive typographic thing. Can you help me? I need to transform an ellipse to a letter (text). Let’s say “A”. It sh…

---

## [How to increase number of lines over time - till it reaches 150?](https://discourse.processing.org/t/how-to-increase-number-of-lines-over-time-till-it-reaches-150/20543)

<div class="topic-metadata">

**Author:** [@noa\_noa](https://discourse.processing.org/u/noa_noa)\
**Replies:** 1\
**Last updated:** [May 6, 2020, 5:31pm UTC](https://discourse.processing.org/t/how-to-increase-number-of-lines-over-time-till-it-reaches-150/20543 "2020-05-06T17:31:35Z")

</div>

I understand that i need it to start drawing 1 line, and then in another section update it, so that it keeps adding 1 line - so from 1 to i, when i is the current loop, and in the loop draw the line in the coordinates i …

---

## [Need help with moving one array rather than two](https://discourse.processing.org/t/need-help-with-moving-one-array-rather-than-two/20551)

<div class="topic-metadata">

**Author:** [@Salttt](https://discourse.processing.org/u/Salttt)\
**Replies:** 0\
**Last updated:** [May 6, 2020, 5:46pm UTC](https://discourse.processing.org/t/need-help-with-moving-one-array-rather-than-two/20551 "2020-05-06T17:46:39Z")

</div>

I am making a two-player top down dungeon game. The movement style I settled on is the level moving around the player, giving the illusion the player is always in the middle of the screen. The way it works is by taking a…

---

## [Display arduino values on a processing interface](https://discourse.processing.org/t/display-arduino-values-on-a-processing-interface/20176)

<div class="topic-metadata">

**Author:** [@amina](https://discourse.processing.org/u/amina)\
**Replies:** 1\
**Last updated:** [May 6, 2020, 4:49pm UTC](https://discourse.processing.org/t/display-arduino-values-on-a-processing-interface/20176 "2020-05-06T16:49:14Z")

</div>

I’m a beginner in processing and I want to make this diagram, I tried but I can’t do it can you help me?please

---

## [Help me! It is about making random color in ToxicLibs library](https://discourse.processing.org/t/help-me-it-is-about-making-random-color-in-toxiclibs-library/20541)

<div class="topic-metadata">

**Author:** [@narabagus](https://discourse.processing.org/u/narabagus)\
**Replies:** 2\
**Last updated:** [May 6, 2020, 3:33pm UTC](https://discourse.processing.org/t/help-me-it-is-about-making-random-color-in-toxiclibs-library/20541 "2020-05-06T15:33:36Z")

</div>

Hi! I’m currently making an abstract pattern project using a ToxicLibs. Below is the coding :slight\_smile: import toxi.sim.grayscott.\*; import toxi.color.\*; int NUM\_ITERATIONS = 5; GrayScott gs; ToneMap toneMap; void…

---

## [Help with color changing and display of drawn objects](https://discourse.processing.org/t/help-with-color-changing-and-display-of-drawn-objects/20508)

<div class="topic-metadata">

**Author:** [@Andrej](https://discourse.processing.org/u/Andrej)\
**Replies:** 3\
**Last updated:** [May 6, 2020, 3:09pm UTC](https://discourse.processing.org/t/help-with-color-changing-and-display-of-drawn-objects/20508 "2020-05-06T15:09:50Z")

</div>

Hello everybody, I am currently in 4th year of my college and I need some help with my code. (My coding skills aren’t that great…) We got assignment to create simpler version of MS Paint in Processing. Currently, my pr…

---

## [Simple Maze Game Problem](https://discourse.processing.org/t/simple-maze-game-problem/20391)

<div class="topic-metadata">

**Author:** [@Filo96ge](https://discourse.processing.org/u/Filo96ge)\
**Replies:** 6\
**Last updated:** [May 6, 2020, 1:54pm UTC](https://discourse.processing.org/t/simple-maze-game-problem/20391 "2020-05-06T13:54:36Z")

</div>

Hi there! I am using Processing for a school project and I am not able to resolve an issue. I don’t know how to stop the red ball when it hits the boundary of the maze. I’m thinking to put the pixels of the ball and the…

---

## [Animate .step model and show in a browser](https://discourse.processing.org/t/animate-step-model-and-show-in-a-browser/20348)

<div class="topic-metadata">

**Author:** [@emanuelegiampieri](https://discourse.processing.org/u/emanuelegiampieri)\
**Replies:** 2\
**Last updated:** [May 6, 2020, 8:31am UTC](https://discourse.processing.org/t/animate-step-model-and-show-in-a-browser/20348 "2020-05-06T08:31:48Z")

</div>

Hello everyone. Premised I’m completely new to computer graphics,apologize for the inappropriate terms used. I’m asked to get a 3D sketch, animate some parts of it reading varables from a database, and show the result in…

---

## [Function loadShader throwing a NullPointerException for no reason](https://discourse.processing.org/t/function-loadshader-throwing-a-nullpointerexception-for-no-reason/20038)

<div class="topic-metadata">

**Author:** [@Ayfri](https://discourse.processing.org/u/Ayfri)\
**Replies:** 2\
**Last updated:** [May 6, 2020, 7:04am UTC](https://discourse.processing.org/t/function-loadshader-throwing-a-nullpointerexception-for-no-reason/20038 "2020-05-06T07:04:41Z")

</div>

Hi, I’m trying to make shaders in my Program, I have this code that loads a simple vertex Shader from his name to find it in the resources folder : public void init() throws FileNotFoundException { try { Registry.reg…

---

## [Rotate vectors in 3D](https://discourse.processing.org/t/rotate-vectors-in-3d/18660)

<div class="topic-metadata">

**Author:** [@OrSarfati](https://discourse.processing.org/u/OrSarfati)\
**Replies:** 6\
**Last updated:** [May 6, 2020, 1:11am UTC](https://discourse.processing.org/t/rotate-vectors-in-3d/18660 "2020-05-06T01:11:59Z")

</div>

Hi there! I did some research about this topic on this forum and in general. The subject was discussed here before but with no-code solutions for 3D. I like to address that topic again with the hope to find an easy solu…

---

## [Processing Exporting](https://discourse.processing.org/t/processing-exporting/20520)

<div class="topic-metadata">

**Author:** [@jonuvug](https://discourse.processing.org/u/jonuvug)\
**Replies:** 1\
**Last updated:** [May 6, 2020, 1:03am UTC](https://discourse.processing.org/t/processing-exporting/20520 "2020-05-06T01:03:14Z")

</div>

What does “Embed Java” and “Presentation Mode” do?

---

## [How to go about making circles with collisions?](https://discourse.processing.org/t/how-to-go-about-making-circles-with-collisions/20497)

<div class="topic-metadata">

**Author:** [@Salttt](https://discourse.processing.org/u/Salttt)\
**Replies:** 2\
**Last updated:** [May 5, 2020, 9:51pm UTC](https://discourse.processing.org/t/how-to-go-about-making-circles-with-collisions/20497 "2020-05-05T21:51:20Z")

</div>

I want to make a projectile that is a sphere in a 2d game I am creating. I want to make it have a hitbox, is there a way to do it where the hitbox is smooth, rather than being a bunch of smaller rectangles?

---

## [Kinect how can I reveal a full canvas image by painting over a blank background with the tracking point as the paintbrush? Revealing the whole artwork](https://discourse.processing.org/t/kinect-how-can-i-reveal-a-full-canvas-image-by-painting-over-a-blank-background-with-the-tracking-point-as-the-paintbrush-revealing-the-whole-artwork/20501)

<div class="topic-metadata">

**Author:** [@12345](https://discourse.processing.org/u/12345)\
**Replies:** 2\
**Last updated:** [May 5, 2020, 7:42pm UTC](https://discourse.processing.org/t/kinect-how-can-i-reveal-a-full-canvas-image-by-painting-over-a-blank-background-with-the-tracking-point-as-the-paintbrush-revealing-the-whole-artwork/20501 "2020-05-05T19:42:03Z")

</div>

Hi, I’ve been working on a processing sketch that tracks movement using a Kinect. I’ve got an image as the tracking point and a white image as the background. I would like the tracking point to reveal more of the backgr…

---

## [Boolean Difference on Vertexes?](https://discourse.processing.org/t/boolean-difference-on-vertexes/20500)

<div class="topic-metadata">

**Author:** [@Marinus](https://discourse.processing.org/u/Marinus)\
**Replies:** 4\
**Last updated:** [May 5, 2020, 7:04pm UTC](https://discourse.processing.org/t/boolean-difference-on-vertexes/20500 "2020-05-05T19:04:09Z")

</div>

Hi all, I’m trying to get this ‘Unknown Pleasures’ cover to generate an SVG without the full vertex paths. This is the code I’m using, written by someone else: As you can see it generates full overlapping paths. When…

---

## [Lag with antialiasing on an SVG](https://discourse.processing.org/t/lag-with-antialiasing-on-an-svg/20141)

<div class="topic-metadata">

**Author:** [@henrylang](https://discourse.processing.org/u/henrylang)\
**Replies:** 3\
**Last updated:** [May 5, 2020, 7:04pm UTC](https://discourse.processing.org/t/lag-with-antialiasing-on-an-svg/20141 "2020-05-05T19:04:51Z")

</div>

Hello, I am creating a data visualizer for data that spans across the entire world. Because of this, I have imported an SVG and I am rendering it onto the screen. You can drag the mouse to pan across the map, and use th…

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

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