# Processing

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

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

**Page:** 325

---

## [Live coding visualisation](https://discourse.processing.org/t/live-coding-visualisation/8123)

<div class="topic-metadata">

**Author:** [@josephh](https://discourse.processing.org/u/josephh)\
**Replies:** 3\
**Last updated:** [February 6, 2019, 10:10am UTC](https://discourse.processing.org/t/live-coding-visualisation/8123 "2019-02-06T10:10:53Z")

</div>

Hi there, Since couple weeks, I am experiencing livecoding (amazing :slight\_smile:) with FoxDot (in python : http://foxdot.org/) and I would like to make a program in processing to visualize it. I was trying to use the …

---

## [To stop part of drawings from being removed at update](https://discourse.processing.org/t/to-stop-part-of-drawings-from-being-removed-at-update/8017)

<div class="topic-metadata">

**Author:** [@Ismaiel\_Ahmed](https://discourse.processing.org/u/Ismaiel_Ahmed)\
**Replies:** 4\
**Last updated:** [February 6, 2019, 6:03am UTC](https://discourse.processing.org/t/to-stop-part-of-drawings-from-being-removed-at-update/8017 "2019-02-06T06:03:42Z")

</div>

I’m trying to simulate DDMR (Differential Drive Mobile Robot) However, draw() method makes update to all the shape and erase the previous frame I need to draw a specific shape and prevent it from being updated or remov…

---

## [Save a text file without utf 8](https://discourse.processing.org/t/save-a-text-file-without-utf-8/8061)

<div class="topic-metadata">

**Author:** [@Grimtin10](https://discourse.processing.org/u/Grimtin10)\
**Replies:** 2\
**Last updated:** [February 6, 2019, 4:10am UTC](https://discourse.processing.org/t/save-a-text-file-without-utf-8/8061 "2019-02-06T04:10:08Z")

</div>

How do I save a text file in Processing without it converting to UTF-8? Please help. Thanks.

---

## [saveFrame location options processing](https://discourse.processing.org/t/saveframe-location-options-processing/8136)

<div class="topic-metadata">

**Author:** [@juriaan](https://discourse.processing.org/u/juriaan)\
**Replies:** 11\
**Last updated:** [February 6, 2019, 3:36am UTC](https://discourse.processing.org/t/saveframe-location-options-processing/8136 "2019-02-06T03:36:09Z")

</div>

Hey couldn’t find this anywhere online but is it possible to save a image from a specific location on my canvas. my canvas is 1400 x 800. but I want the image of only the right 600 x 800. Thanks This is what I have: i…

---

## [Programming question, pertaining to motion](https://discourse.processing.org/t/programming-question-pertaining-to-motion/8070)

<div class="topic-metadata">

**Author:** [@superman](https://discourse.processing.org/u/superman)\
**Replies:** 6\
**Last updated:** [February 6, 2019, 12:53am UTC](https://discourse.processing.org/t/programming-question-pertaining-to-motion/8070 "2019-02-06T00:53:04Z")

</div>

I have an item obeying the laws of “projectile throw” which travels expected. If it lands on a ramph(opposite the launch), I want it’s trajectory to change–from the former path, projectile throw, to a normal path up the…

---

## [Print class variables](https://discourse.processing.org/t/print-class-variables/8142)

<div class="topic-metadata">

**Author:** [@f42ter](https://discourse.processing.org/u/f42ter)\
**Replies:** 1\
**Last updated:** [February 5, 2019, 9:01pm UTC](https://discourse.processing.org/t/print-class-variables/8142 "2019-02-05T21:01:55Z")

</div>

Sorry to bother you again but I’m working on a class with a large number of variables (in C I would implement this as a struct). For debugging purposes I want to print (loop) over all variables inside this class. Unfortu…

---

## [Image Encryption/Decryption tool bug](https://discourse.processing.org/t/image-encryption-decryption-tool-bug/8119)

<div class="topic-metadata">

**Author:** [@cheetahdoesstuff](https://discourse.processing.org/u/cheetahdoesstuff)\
**Replies:** 2\
**Last updated:** [February 5, 2019, 6:05pm UTC](https://discourse.processing.org/t/image-encryption-decryption-tool-bug/8119 "2019-02-05T18:05:08Z")

</div>

Hello I am trying to make an image encryptor/decryptor for a hobby project of mine and I’ve gotten it to work but it has a weird bug. Here are the images (code further down) Original: Encrypted file(Slightly downsca…

---

## [Need help with creating a quiz](https://discourse.processing.org/t/need-help-with-creating-a-quiz/8133)

<div class="topic-metadata">

**Author:** [@juriaan](https://discourse.processing.org/u/juriaan)\
**Replies:** 6\
**Last updated:** [February 5, 2019, 3:53pm UTC](https://discourse.processing.org/t/need-help-with-creating-a-quiz/8133 "2019-02-05T15:53:21Z")

</div>

Hey guys, I’m new here to the forums and processing. For school I’m trying to create a quiz that makes a shape based on your answers. I want to have around 4 questions with just two answers. Now what I can’t seem to f…

---

## [mouseWheel on g4p window](https://discourse.processing.org/t/mousewheel-on-g4p-window/8134)

<div class="topic-metadata">

**Author:** [@Dennis](https://discourse.processing.org/u/Dennis)\
**Replies:** 2\
**Last updated:** [February 5, 2019, 1:36pm UTC](https://discourse.processing.org/t/mousewheel-on-g4p-window/8134 "2019-02-05T13:36:59Z")

</div>

Hi guys, I would translate a g4p label on g4p further window but i can’t do it. If I use the translate(x,y) function on main window it work fine but in another g4p window it doesn’t. The function mouseWheel works only w…

---

## [Unexpected token - void](https://discourse.processing.org/t/unexpected-token-void/8099)

<div class="topic-metadata">

**Author:** [@ClashAdam](https://discourse.processing.org/u/ClashAdam)\
**Replies:** 3\
**Last updated:** [February 5, 2019, 10:12am UTC](https://discourse.processing.org/t/unexpected-token-void/8099 "2019-02-05T10:12:49Z")

</div>

This errors shows for no reason, in first tab Drop\[\] drops = new Drop\[500\] void setup() { size(640, 360) ; for (int i = 0; i \< drops.length; i++) { drops\[i\] i = new Drop() ; } } void draw() { background(23…

---

## [Changing the size of shape based on values from Data Set](https://discourse.processing.org/t/changing-the-size-of-shape-based-on-values-from-data-set/8100)

<div class="topic-metadata">

**Author:** [@CalumDixon](https://discourse.processing.org/u/CalumDixon)\
**Replies:** 11\
**Last updated:** [February 5, 2019, 8:39am UTC](https://discourse.processing.org/t/changing-the-size-of-shape-based-on-values-from-data-set/8100 "2019-02-05T08:39:06Z")

</div>

Hey, I’m still pretty new to processing so I doubt this a very complicated issue. I’m trying to visualise a data set of earthquakes around the world, but I’m struggling to make the markers increase in size based on the …

---

## [Cannot refer to the non-final local variable ... defined in an enclosing scope](https://discourse.processing.org/t/cannot-refer-to-the-non-final-local-variable-defined-in-an-enclosing-scope/8023)

<div class="topic-metadata">

**Author:** [@Renaud](https://discourse.processing.org/u/Renaud)\
**Replies:** 4\
**Last updated:** [February 5, 2019, 7:51am UTC](https://discourse.processing.org/t/cannot-refer-to-the-non-final-local-variable-defined-in-an-enclosing-scope/8023 "2019-02-05T07:51:09Z")

</div>

Hi, I am trying a code found on the internet (below). When I run it, I obtain this message: “cannot refer to the non-final local variable startw defined in an enclosing scope” What is it supposed to mean ? What can I d…

---

## [Mic input animating something complex](https://discourse.processing.org/t/mic-input-animating-something-complex/8128)

<div class="topic-metadata">

**Author:** [@Sigsound](https://discourse.processing.org/u/Sigsound)\
**Replies:** 1\
**Last updated:** [February 5, 2019, 5:22am UTC](https://discourse.processing.org/t/mic-input-animating-something-complex/8128 "2019-02-05T05:22:03Z")

</div>

Hi! I grabbed this Plexus effect someone made, combined with the Mic Input from the sound gallery… I’d like to animate certain properties of the balls and lines with input from the Mic. Here’s what I have so far… what …

---

## [Connect to Socket.io](https://discourse.processing.org/t/connect-to-socket-io/7660)

<div class="topic-metadata">

**Author:** [@Quillbert1](https://discourse.processing.org/u/Quillbert1)\
**Replies:** 6\
**Last updated:** [February 5, 2019, 5:09am UTC](https://discourse.processing.org/t/connect-to-socket-io/7660 "2019-02-05T05:09:29Z")

</div>

I was wondering if it is possible to connect a processing sketch using the websockets library to socket.io. I tried it and got an error.

---

## [Basic PShader Issue](https://discourse.processing.org/t/basic-pshader-issue/8094)

<div class="topic-metadata">

**Author:** [@eduzal](https://discourse.processing.org/u/eduzal)\
**Replies:** 3\
**Last updated:** [February 5, 2019, 3:19am UTC](https://discourse.processing.org/t/basic-pshader-issue/8094 "2019-02-05T03:19:50Z")

</div>

Having some trouble passing an PImage to PShader. Doing something wrong, but can’t figure it out. First I’m trying to work with image before moving to video. tks in advance. basic code PShader displace; PImage moon; b…

---

## [Stacker game- game over if not properly stacked](https://discourse.processing.org/t/stacker-game-game-over-if-not-properly-stacked/8006)

<div class="topic-metadata">

**Author:** [@kjanek](https://discourse.processing.org/u/kjanek)\
**Replies:** 2\
**Last updated:** [February 5, 2019, 3:17am UTC](https://discourse.processing.org/t/stacker-game-game-over-if-not-properly-stacked/8006 "2019-02-05T03:17:37Z")

</div>

So I’m modifying this code, and I can’t figure out how to make it so that the only way to progress through the game is for the block the player places to land exactly on top of the block placed previously. Currently, the…

---

## [Animating an object from one position to other](https://discourse.processing.org/t/animating-an-object-from-one-position-to-other/7995)

<div class="topic-metadata">

**Author:** [@sim](https://discourse.processing.org/u/sim)\
**Replies:** 5\
**Last updated:** [February 4, 2019, 10:17pm UTC](https://discourse.processing.org/t/animating-an-object-from-one-position-to-other/7995 "2019-02-04T22:17:57Z")

</div>

Hello there, I would really appreciated some help with this question that I’m stuck on. im trying to get an object to move from one position (last mouse click) to a new position (most recent mouse click). I’m familiar…

---

## [Switching from menu to game](https://discourse.processing.org/t/switching-from-menu-to-game/8086)

<div class="topic-metadata">

**Author:** [@Corroas](https://discourse.processing.org/u/Corroas)\
**Replies:** 2\
**Last updated:** [February 4, 2019, 9:22pm UTC](https://discourse.processing.org/t/switching-from-menu-to-game/8086 "2019-02-04T21:22:36Z")

</div>

Hi ! So, I’m trying to make a game for a school project and I’ve only made a menu so far, anyway I’d like some help on switching from the menu screen to the game screen. Right now, when I click on my button, nothing real…

---

## [Problem with java](https://discourse.processing.org/t/problem-with-java/8084)

<div class="topic-metadata">

**Author:** [@franck](https://discourse.processing.org/u/franck)\
**Replies:** 4\
**Last updated:** [February 4, 2019, 9:22pm UTC](https://discourse.processing.org/t/problem-with-java/8084 "2019-02-04T21:22:31Z")

</div>

Hello, I have a problem with the executable file after the export. The executable does not work. When launching the executable my program stops at the line “cp5 = new ControlP5 (this);”. When I compile the program (run…

---

## [VISA support in Processing](https://discourse.processing.org/t/visa-support-in-processing/7728)

<div class="topic-metadata">

**Author:** [@parham](https://discourse.processing.org/u/parham)\
**Replies:** 6\
**Last updated:** [February 4, 2019, 8:47pm UTC](https://discourse.processing.org/t/visa-support-in-processing/7728 "2019-02-04T20:47:09Z")

</div>

Hi everyone I am using Visual Basic as RAD tool for writing code to control electronic measurement devices such as Digital Multi-meters, Programmable Power Supply, Signal Generators and Oscilloscopes. I am new to Proces…

---

## [Spaces between objects within an array and between arrays](https://discourse.processing.org/t/spaces-between-objects-within-an-array-and-between-arrays/8107)

<div class="topic-metadata">

**Author:** [@german\_guy](https://discourse.processing.org/u/german_guy)\
**Replies:** 2\
**Last updated:** [February 4, 2019, 8:43pm UTC](https://discourse.processing.org/t/spaces-between-objects-within-an-array-and-between-arrays/8107 "2019-02-04T20:43:32Z")

</div>

Guys, I got a question. I am a beginner at coding. I am trying to program a little game but I’m already stuck. Basically, I have set up two arrays with a number of objects within both of them. Now I’ve encountered a li…

---

## [Image tracking similar](https://discourse.processing.org/t/image-tracking-similar/8018)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 2\
**Last updated:** [February 4, 2019, 3:28pm UTC](https://discourse.processing.org/t/image-tracking-similar/8018 "2019-02-04T15:28:49Z")

</div>

Hi, I would like to see in this computer vision one image with red pixels and the other normal but here the both are with red pixels. void draw() { image(ps3eye.getFrame(), 0, 0); tracking = ps3eye.getFrame(); tr…

---

## [Run causes software to freeze](https://discourse.processing.org/t/run-causes-software-to-freeze/7832)

<div class="topic-metadata">

**Author:** [@AM369](https://discourse.processing.org/u/AM369)\
**Replies:** 3\
**Last updated:** [February 4, 2019, 9:52am UTC](https://discourse.processing.org/t/run-causes-software-to-freeze/7832 "2019-02-04T09:52:34Z")

</div>

Hi all, We have added this software to our school environment for student and staff to access on Windows 10. This is for guests to introduce coding to some of our students. They’ve advised that opening the software an…

---

## [Mac OS download currently leads to 'Not found'](https://discourse.processing.org/t/mac-os-download-currently-leads-to-not-found/8092)

<div class="topic-metadata">

**Author:** [@rherrema](https://discourse.processing.org/u/rherrema)\
**Replies:** 2\
**Last updated:** [February 4, 2019, 3:47am UTC](https://discourse.processing.org/t/mac-os-download-currently-leads-to-not-found/8092 "2019-02-04T03:47:00Z")

</div>

I have tried to download the Mac OS version from both Chrome and Safari and get the same ‘Not found’ result when clicking this link: https://github.com/processing/processing/releases/download/processing-0266-3.5/process…

---

## [Compile .pde file in git bash](https://discourse.processing.org/t/compile-pde-file-in-git-bash/8047)

<div class="topic-metadata">

**Author:** [@sumaghos](https://discourse.processing.org/u/sumaghos)\
**Replies:** 1\
**Last updated:** [February 4, 2019, 7:21am UTC](https://discourse.processing.org/t/compile-pde-file-in-git-bash/8047 "2019-02-04T07:21:17Z")

</div>

Is there any way to compile .pde file in git bash?

---

## [Pixelating Sketch](https://discourse.processing.org/t/pixelating-sketch/7791)

<div class="topic-metadata">

**Author:** [@henri](https://discourse.processing.org/u/henri)\
**Replies:** 7\
**Last updated:** [February 3, 2019, 6:58pm UTC](https://discourse.processing.org/t/pixelating-sketch/7791 "2019-02-03T18:58:01Z")

</div>

Hello, I would really appreciate any advice on how to approach this project I want to start. The basic notion is that I want to create a pixelation algorithm. The slightly odd thing I would like to do is pixelate the i…

---

## [\[SOLVED\] PGraphics.image gives NullPointerException](https://discourse.processing.org/t/solved-pgraphics-image-gives-nullpointerexception/8076)

<div class="topic-metadata">

**Author:** [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Replies:** 1\
**Last updated:** [February 3, 2019, 6:36pm UTC](https://discourse.processing.org/t/solved-pgraphics-image-gives-nullpointerexception/8076 "2019-02-03T18:36:22Z")

</div>

I created a sketch with a PImage that I was then going to draw into a PGraphics using PGraphics.image() – but I got a NullPointerException. Why is this happening? I have created an MCVE below to demonstrate the problem…

---

## [How to make an object smoothly transition to a new location?](https://discourse.processing.org/t/how-to-make-an-object-smoothly-transition-to-a-new-location/7980)

<div class="topic-metadata">

**Author:** [@kirkpatrick876](https://discourse.processing.org/u/kirkpatrick876)\
**Replies:** 3\
**Last updated:** [February 3, 2019, 5:55pm UTC](https://discourse.processing.org/t/how-to-make-an-object-smoothly-transition-to-a-new-location/7980 "2019-02-03T17:55:48Z")

</div>

Hello I am trying to make a program in which an ellipse is redrawn at any point in the canvas where the mouse is clicked, although I am stuck on one problem. I am trying to get the ellipse to move smoothly from point A (…

---

## [Showing variable value + text in one single line](https://discourse.processing.org/t/showing-variable-value-text-in-one-single-line/8041)

<div class="topic-metadata">

**Author:** [@Cas](https://discourse.processing.org/u/Cas)\
**Replies:** 2\
**Last updated:** [February 3, 2019, 5:55pm UTC](https://discourse.processing.org/t/showing-variable-value-text-in-one-single-line/8041 "2019-02-03T17:55:02Z")

</div>

Hello, In arduino I’m sending the following: Serial.println(float(mlGeschonkenTotaal/1000),1); This is a results in a number like 0.1 which increases which 0.1 over time. In processing I would like to draw this …

---

## [Class/Object as a PVector for Kinect repelling](https://discourse.processing.org/t/class-object-as-a-pvector-for-kinect-repelling/7966)

<div class="topic-metadata">

**Author:** [@wewantwok](https://discourse.processing.org/u/wewantwok)\
**Replies:** 2\
**Last updated:** [February 3, 2019, 12:07pm UTC](https://discourse.processing.org/t/class-object-as-a-pvector-for-kinect-repelling/7966 "2019-02-03T12:07:21Z")

</div>

Hi! First time posting on here. I’m writing a Sketch for a Kinect camera to make an attractor/repeller for some particles. I started out with an attraction/repelling tutorial from Daniel Shiffmann and tried to combine …

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

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