# Processing

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

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

**Page:** 316

---

## [I can't see where i'm missing](https://discourse.processing.org/t/i-cant-see-where-im-missing/9190)

<div class="topic-metadata">

**Author:** [@JoseBri93](https://discourse.processing.org/u/JoseBri93)\
**Replies:** 2\
**Last updated:** [March 11, 2019, 2:36pm UTC](https://discourse.processing.org/t/i-cant-see-where-im-missing/9190 "2019-03-11T14:36:46Z")

</div>

Hi, i’ve got this sketch where i want to create a new circle whenever a mousePressed() event occurs. It’s been fine for me but now i want it to appear whenever my mouse is located so it continues its path and don’t follo…

---

## [Cannot find a class or type names "Particle"](https://discourse.processing.org/t/cannot-find-a-class-or-type-names-particle/9192)

<div class="topic-metadata">

**Author:** [@JennyMcCreadie](https://discourse.processing.org/u/JennyMcCreadie)\
**Replies:** 1\
**Last updated:** [March 11, 2019, 1:37pm UTC](https://discourse.processing.org/t/cannot-find-a-class-or-type-names-particle/9192 "2019-03-11T13:37:29Z")

</div>

Hi there, I’m following Daniel’s tutorials on Youtube for motion capture but I can’t get this right. I’ve read it and compared my code to his several times but keep getting the error that there’s no class or type named …

---

## [Warning on Shapes3D](https://discourse.processing.org/t/warning-on-shapes3d/9112)

<div class="topic-metadata">

**Author:** [@spiderdab](https://discourse.processing.org/u/spiderdab)\
**Replies:** 5\
**Last updated:** [March 11, 2019, 3:10am UTC](https://discourse.processing.org/t/warning-on-shapes3d/9112 "2019-03-11T03:10:22Z")

</div>

Hi, I’m trying to use Shapes3D library from Quark to use the pick function, but in the example, on the first click this warning is shown: smooth() can only be used before beginDraw() and no pick is performed. is it …

---

## [Trigger an image in interactive installation “sensor input cannot be resolved as a variable”](https://discourse.processing.org/t/trigger-an-image-in-interactive-installation-sensor-input-cannot-be-resolved-as-a-variable/8800)

<div class="topic-metadata">

**Author:** [@shiv94](https://discourse.processing.org/u/shiv94)\
**Replies:** 11\
**Last updated:** [March 11, 2019, 1:16am UTC](https://discourse.processing.org/t/trigger-an-image-in-interactive-installation-sensor-input-cannot-be-resolved-as-a-variable/8800 "2019-03-11T01:16:46Z")

</div>

Hello, I am currently working on an interactive canvas installation, where conductive ink is the Capsense input and the out is an image or gif that is projected onto the canvas via a projector linked to a laptop. This …

---

## [Frequencies not adding up](https://discourse.processing.org/t/frequencies-not-adding-up/9170)

<div class="topic-metadata">

**Author:** [@Aeggy](https://discourse.processing.org/u/Aeggy)\
**Replies:** 3\
**Last updated:** [March 11, 2019, 12:49am UTC](https://discourse.processing.org/t/frequencies-not-adding-up/9170 "2019-03-11T00:49:13Z")

</div>

Hi. I’m trying to make sure that I know where certain audio frequencies are located when I load an audio clip. The musical note A4 is 440Hz. If the frequencies of a clip with a sample rate of 44100Hz are split into 1024…

---

## [Transparent PNG texture tint not working](https://discourse.processing.org/t/transparent-png-texture-tint-not-working/9122)

<div class="topic-metadata">

**Author:** [@sjespers](https://discourse.processing.org/u/sjespers)\
**Replies:** 5\
**Last updated:** [March 11, 2019, 12:00am UTC](https://discourse.processing.org/t/transparent-png-texture-tint-not-working/9122 "2019-03-11T00:00:52Z")

</div>

Hello! Anyone have any idea why some transparent PNGs don’t seem to respond to tint? Example: size(200, 200, P3D); noStroke(); PImage img = loadImage("https://upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Apple\_lo…

---

## [How to create a point system](https://discourse.processing.org/t/how-to-create-a-point-system/9179)

<div class="topic-metadata">

**Author:** [@deanie](https://discourse.processing.org/u/deanie)\
**Replies:** 8\
**Last updated:** [March 10, 2019, 9:55pm UTC](https://discourse.processing.org/t/how-to-create-a-point-system/9179 "2019-03-10T21:55:37Z")

</div>

Hello all, I am trying to make a simple interactive game in Processing 3. I currently have a class set up to create bubbles on the screen starting at the bottom and slowly floating to the top. I also have the bubbles di…

---

## [Motion Detection with Clusters](https://discourse.processing.org/t/motion-detection-with-clusters/9071)

<div class="topic-metadata">

**Author:** [@JennyMcCreadie](https://discourse.processing.org/u/JennyMcCreadie)\
**Replies:** 1\
**Last updated:** [March 10, 2019, 8:43pm UTC](https://discourse.processing.org/t/motion-detection-with-clusters/9071 "2019-03-10T20:43:59Z")

</div>

Hi there, I’m trying to write code that will form a cluster of ellipses in the shape of a person as they approach the screen. I’m okay with the part of motion detection, but I can’t work out how to make the clusters app…

---

## [Change fill of multiple objects at the same time](https://discourse.processing.org/t/change-fill-of-multiple-objects-at-the-same-time/9048)

<div class="topic-metadata">

**Author:** [@xicolirou](https://discourse.processing.org/u/xicolirou)\
**Replies:** 3\
**Last updated:** [March 10, 2019, 6:23pm UTC](https://discourse.processing.org/t/change-fill-of-multiple-objects-at-the-same-time/9048 "2019-03-10T18:23:18Z")

</div>

Hi guys, im using a variable to loop a robot and i need a especific robot to change its entire color. Do you guys now how to change the fill of multiple objects?

---

## [Problems with rotating rectangles in a grid](https://discourse.processing.org/t/problems-with-rotating-rectangles-in-a-grid/9052)

<div class="topic-metadata">

**Author:** [@hkiri](https://discourse.processing.org/u/hkiri)\
**Replies:** 6\
**Last updated:** [March 10, 2019, 5:54pm UTC](https://discourse.processing.org/t/problems-with-rotating-rectangles-in-a-grid/9052 "2019-03-10T17:54:29Z")

</div>

Hi everyone, I try to create a grid of rectangles which are rotated by 45°. So something like this: But with a rotation of 45° of every rectangle. Whatever I try with “translate” I can’t get them to align back in a…

---

## [Move image around screen](https://discourse.processing.org/t/move-image-around-screen/9066)

<div class="topic-metadata">

**Author:** [@rose](https://discourse.processing.org/u/rose)\
**Replies:** 2\
**Last updated:** [March 10, 2019, 5:49pm UTC](https://discourse.processing.org/t/move-image-around-screen/9066 "2019-03-10T17:49:27Z")

</div>

The first task will be to get the images to appear on the screen and to give the interface a screen size that works with the background image. Once this is complete, try to get the image object to move around the screen…

---

## [Newbie - Trying to make a "Taiko"-like game](https://discourse.processing.org/t/newbie-trying-to-make-a-taiko-like-game/9120)

<div class="topic-metadata">

**Author:** [@Shii](https://discourse.processing.org/u/Shii)\
**Replies:** 3\
**Last updated:** [March 10, 2019, 5:41pm UTC](https://discourse.processing.org/t/newbie-trying-to-make-a-taiko-like-game/9120 "2019-03-10T17:41:41Z")

</div>

Hi, I started Processing recently, and I’m trying to make a project for school, but I’m stuck. (Before start to explain, I’m sorry for the possible mistakes I could make, I’m not english) Well, I assume you know what “…

---

## [Vertex skew by angle?](https://discourse.processing.org/t/vertex-skew-by-angle/8986)

<div class="topic-metadata">

**Author:** [@sjespers](https://discourse.processing.org/u/sjespers)\
**Replies:** 8\
**Last updated:** [March 10, 2019, 5:10pm UTC](https://discourse.processing.org/t/vertex-skew-by-angle/8986 "2019-03-10T17:10:03Z")

</div>

Hi there, I have a square vertex that I want to skew by a certain angle. I know how to get the angle between two points but how do I find the position of my vertex points based on a set angle? The angle between the top…

---

## [How to move object according to time of sound](https://discourse.processing.org/t/how-to-move-object-according-to-time-of-sound/8964)

<div class="topic-metadata">

**Author:** [@CodeTime](https://discourse.processing.org/u/CodeTime)\
**Replies:** 3\
**Last updated:** [March 10, 2019, 4:26pm UTC](https://discourse.processing.org/t/how-to-move-object-according-to-time-of-sound/8964 "2019-03-10T16:26:16Z")

</div>

So I am trying to make an audio player and am on the part with the time indicator at the bottom which tells how far you are into the song. The main problem is that the songs all have different lengths but the time indica…

---

## [Rect collision problem](https://discourse.processing.org/t/rect-collision-problem/9073)

<div class="topic-metadata">

**Author:** [@tobbykan](https://discourse.processing.org/u/tobbykan)\
**Replies:** 1\
**Last updated:** [March 10, 2019, 3:50am UTC](https://discourse.processing.org/t/rect-collision-problem/9073 "2019-03-10T03:50:38Z")

</div>

Halo everyone. I am quite a newbie in processing. Recently I am working on a project on rect moving around the screen and collision detection. Here is the script I found on a text book. It works perfectly. // Rotating S…

---

## [Trouble with multiple COM ports -import processing.serial.\*;](https://discourse.processing.org/t/trouble-with-multiple-com-ports-import-processing-serial/9049)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 3\
**Last updated:** [March 10, 2019, 3:06am UTC](https://discourse.processing.org/t/trouble-with-multiple-com-ports-import-processing-serial/9049 "2019-03-10T03:06:09Z")

</div>

I am trying to do a data gathering system on the PC. I was planning to use 5 or more HC-06 bluetooth dongles on arduinos and start receiving data in Processing. The system worked fine for one device I could talk back a…

---

## [Problems writing to a binary file](https://discourse.processing.org/t/problems-writing-to-a-binary-file/9158)

<div class="topic-metadata">

**Author:** [@xR4yd](https://discourse.processing.org/u/xR4yd)\
**Replies:** 1\
**Last updated:** [March 10, 2019, 1:50am UTC](https://discourse.processing.org/t/problems-writing-to-a-binary-file/9158 "2019-03-10T01:50:07Z")

</div>

I have recently been trying to write to a binary file using following code: void exportFile() { PrintWriter outFile; String out = ""; outFile = createWriter(outFileName + ".cgespr"); char c = 0; outFile.print…

---

## [Is the variable "width" not defined?](https://discourse.processing.org/t/is-the-variable-width-not-defined/9083)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 3\
**Last updated:** [March 9, 2019, 9:43pm UTC](https://discourse.processing.org/t/is-the-variable-width-not-defined/9083 "2019-03-09T21:43:31Z")

</div>

I’m reading this piece of code and somehow I’m confused. I can not find the definition of “width” anywhere… ////// MAIN INPUTS /////// String directoryName = "${DIRECTORY\_NAME}"; // directory name String date = "${DATE…

---

## [Bezier Curve move weight points](https://discourse.processing.org/t/bezier-curve-move-weight-points/8872)

<div class="topic-metadata">

**Author:** [@ankita](https://discourse.processing.org/u/ankita)\
**Replies:** 2\
**Last updated:** [March 9, 2019, 8:53pm UTC](https://discourse.processing.org/t/bezier-curve-move-weight-points/8872 "2019-03-09T20:53:33Z")

</div>

I have a java code which moves control points (Corner points) according to the mouse movement. I need to modify the code so that it moves the weight points (the points in between the control points) according to the mous…

---

## [Combined code error: "unexpected token: void"](https://discourse.processing.org/t/combined-code-error-unexpected-token-void/9058)

<div class="topic-metadata">

**Author:** [@20ramoant1](https://discourse.processing.org/u/20ramoant1)\
**Replies:** 2\
**Last updated:** [March 9, 2019, 8:56pm UTC](https://discourse.processing.org/t/combined-code-error-unexpected-token-void/9058 "2019-03-09T20:56:35Z")

</div>

I have written a code for a project and when combining the codes I got a “unexpected token: void” error. I get and error on the void “cansleft() {”. Pleas helppp Here is my code import processing.sound.\*; SoundFile fil…

---

## [Placement of objects next to each other](https://discourse.processing.org/t/placement-of-objects-next-to-each-other/9042)

<div class="topic-metadata">

**Author:** [@AmDiBy](https://discourse.processing.org/u/AmDiBy)\
**Replies:** 4\
**Last updated:** [March 9, 2019, 8:50pm UTC](https://discourse.processing.org/t/placement-of-objects-next-to-each-other/9042 "2019-03-09T20:50:55Z")

</div>

Hi Everyone ! I was wondering if any of you could help me by explaining, how to keep the displacement & rotation of the smileys, but make the top of every 2. row hit the middle of the upper row. See example on my sketc…

---

## [IntList in Processing 3](https://discourse.processing.org/t/intlist-in-processing-3/9075)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 2\
**Last updated:** [March 9, 2019, 8:40pm UTC](https://discourse.processing.org/t/intlist-in-processing-3/9075 "2019-03-09T20:40:18Z")

</div>

I encounter this piece of code. int totalSeconds; Table tripTable; // Table in Processing 3 ArrayList\<Trips\> trips = new ArrayList\<Trips\>(); /// an array which can grow and shrink as needed ArrayList\<String\> opera…

---

## [Why this would draw the trip?](https://discourse.processing.org/t/why-this-would-draw-the-trip/9086)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 3\
**Last updated:** [March 7, 2019, 5:36pm UTC](https://discourse.processing.org/t/why-this-would-draw-the-trip/9086 "2019-03-07T17:36:47Z")

</div>

I’m reading the following class class Trips { int tripFrames; int startFrame; int endFrame; Location start; Location end; Location currentLocation; ScreenPosition currentPosition; int s; float bearing; float …

---

## [Display full text string without overlap](https://discourse.processing.org/t/display-full-text-string-without-overlap/8946)

<div class="topic-metadata">

**Author:** [@jacobo](https://discourse.processing.org/u/jacobo)\
**Replies:** 12\
**Last updated:** [March 9, 2019, 2:18pm UTC](https://discourse.processing.org/t/display-full-text-string-without-overlap/8946 "2019-03-09T14:18:09Z")

</div>

Hi guys. My string of text overlaps itself instead of filling the x1, y1, x,2 and y,2 area. What is going on? size(700, 1000); String \[\] words2 = loadStrings("byer2.txt"); for ( int k = 0; k \< words2.length; k++) {…

---

## [Array and dist();](https://discourse.processing.org/t/array-and-dist/9150)

<div class="topic-metadata">

**Author:** [@mone](https://discourse.processing.org/u/mone)\
**Replies:** 2\
**Last updated:** [March 9, 2019, 12:55pm UTC](https://discourse.processing.org/t/array-and-dist/9150 "2019-03-09T12:55:18Z")

</div>

I did 2 Arrays of floats to make X and Y positions for a collision system that uses dist(); but I dont know how to put the arrays information on it. The function must work for 15 ellipses that are not implementated but …

---

## [PShape translate xyz](https://discourse.processing.org/t/pshape-translate-xyz/8914)

<div class="topic-metadata">

**Author:** [@coco](https://discourse.processing.org/u/coco)\
**Replies:** 6\
**Last updated:** [March 9, 2019, 9:51am UTC](https://discourse.processing.org/t/pshape-translate-xyz/8914 "2019-03-09T09:51:49Z")

</div>

I am desperately trying to find a workaround for a problem I’ve had for quite a while now with a PShape group (thisModel) that has 60000 BOX PShapes in it in retained mode. When I translate each BOX the program is very s…

---

## [What is the radii argument for rectangles?](https://discourse.processing.org/t/what-is-the-radii-argument-for-rectangles/9129)

<div class="topic-metadata">

**Author:** [@kkxxbdm](https://discourse.processing.org/u/kkxxbdm)\
**Replies:** 2\
**Last updated:** [March 9, 2019, 9:09am UTC](https://discourse.processing.org/t/what-is-the-radii-argument-for-rectangles/9129 "2019-03-09T09:09:34Z")

</div>

rectMode(CENTER); rect(0, 0, s\*xscale, s\*yscale, 7); /// 0: x-coordinate, 0: y-coordinate, s\*xscale: width, s\*yscale: height, 7: the radii for all four corner How to understand that 7 is the radii for all four corners …

---

## [Can't use commons math complex numbers](https://discourse.processing.org/t/cant-use-commons-math-complex-numbers/9124)

<div class="topic-metadata">

**Author:** [@aradarbel10](https://discourse.processing.org/u/aradarbel10)\
**Replies:** 2\
**Last updated:** [March 9, 2019, 8:26am UTC](https://discourse.processing.org/t/cant-use-commons-math-complex-numbers/9124 "2019-03-09T08:26:31Z")

</div>

Hello. I recently downloaded commons math liubrary for java and added it to processing. I can import it fine, but when I try writing code the NullPointerException error is sent. I tried creating a simple complex functi…

---

## [\[SOLVED\] Path to file in createWriter?](https://discourse.processing.org/t/solved-path-to-file-in-createwriter/8940)

<div class="topic-metadata">

**Author:** [@WyattStorch](https://discourse.processing.org/u/WyattStorch)\
**Replies:** 14\
**Last updated:** [March 9, 2019, 1:22am UTC](https://discourse.processing.org/t/solved-path-to-file-in-createwriter/8940 "2019-03-09T01:22:08Z")

</div>

Why am I getting this error and how do I fix it? I spent hours searching and am having little luck except discovering that file I/O is, ummm, problematic for beginners in Java. I am experimenting with Processing 3.5.3 i…

---

## [Text on a sphere](https://discourse.processing.org/t/text-on-a-sphere/8960)

<div class="topic-metadata">

**Author:** [@MathFinsen](https://discourse.processing.org/u/MathFinsen)\
**Replies:** 9\
**Last updated:** [March 9, 2019, 1:14am UTC](https://discourse.processing.org/t/text-on-a-sphere/8960 "2019-03-09T01:14:57Z")

</div>

Hi guys I would like to know how I wrap text around sphere shape that I can rotate? I’m asking for a similar look as www.spacetypegenerator.com If any of you can guide me in the right direction, I would be great full! …

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

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