# Processing

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

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

**Page:** 243

---

## [Arrays with vectors](https://discourse.processing.org/t/arrays-with-vectors/17179)

<div class="topic-metadata">

**Author:** [@asherzelig](https://discourse.processing.org/u/asherzelig)\
**Replies:** 3\
**Last updated:** [January 19, 2020, 5:33pm UTC](https://discourse.processing.org/t/arrays-with-vectors/17179 "2020-01-19T17:33:52Z")

</div>

Is it possible to make an array of vectors? I tried; PVector \[ \] vtest = new PVector \[20\]; It lets me write it but gives me null messages when I execute.

---

## [Translate mistake in the console](https://discourse.processing.org/t/translate-mistake-in-the-console/17171)

<div class="topic-metadata">

**Author:** [@Alrox](https://discourse.processing.org/u/Alrox)\
**Replies:** 3\
**Last updated:** [January 19, 2020, 3:28pm UTC](https://discourse.processing.org/t/translate-mistake-in-the-console/17171 "2020-01-19T15:28:05Z")

</div>

Dear friends, I’m working on a code for my college and I’ve made a game with processing. Unfortunately there is a mistake in the console: “translate(), or this particular variation of it, is not available with this rende…

---

## [Automatic type conversion?](https://discourse.processing.org/t/automatic-type-conversion/17175)

<div class="topic-metadata">

**Author:** [@beckerc](https://discourse.processing.org/u/beckerc)\
**Replies:** 9\
**Last updated:** [January 19, 2020, 5:17am UTC](https://discourse.processing.org/t/automatic-type-conversion/17175 "2020-01-19T05:17:17Z")

</div>

The parameters for ellipse() are all of type float (https://processing.org/reference/ellipse\_.html). Why does this work when I pass in all ints? Is there type conversion happening in the background? I have been using the…

---

## [I am having trouble with assigning a key press to a image and boolean variable](https://discourse.processing.org/t/i-am-having-trouble-with-assigning-a-key-press-to-a-image-and-boolean-variable/17144)

<div class="topic-metadata">

**Author:** [@NinjaKittens](https://discourse.processing.org/u/NinjaKittens)\
**Replies:** 13\
**Last updated:** [January 19, 2020, 12:33am UTC](https://discourse.processing.org/t/i-am-having-trouble-with-assigning-a-key-press-to-a-image-and-boolean-variable/17144 "2020-01-19T00:33:48Z")

</div>

This is what I came up with on the spot. void keyReleased() { if (keyPressed && ((key == 'a' || key == 'A')) { flagC1 =true } } void draw() { if (keyPressed) { if (key == 'a' || key == 'A') { background(255…

---

## [Is there a way to recognize Microsoft Chinese Input in Processing?](https://discourse.processing.org/t/is-there-a-way-to-recognize-microsoft-chinese-input-in-processing/17166)

<div class="topic-metadata">

**Author:** [@LoliProcessor](https://discourse.processing.org/u/LoliProcessor)\
**Replies:** 0\
**Last updated:** [January 18, 2020, 9:39pm UTC](https://discourse.processing.org/t/is-there-a-way-to-recognize-microsoft-chinese-input-in-processing/17166 "2020-01-18T21:39:53Z")

</div>

Is there a way to recognize Microsoft IME input?

---

## [Is there a way to do this progressively?](https://discourse.processing.org/t/is-there-a-way-to-do-this-progressively/17099)

<div class="topic-metadata">

**Author:** [@moitapjoao](https://discourse.processing.org/u/moitapjoao)\
**Replies:** 9\
**Last updated:** [January 18, 2020, 11:02am UTC](https://discourse.processing.org/t/is-there-a-way-to-do-this-progressively/17099 "2020-01-18T11:02:00Z")

</div>

Hello, I need to make a mathematical flower as shown in this Coding Train video (https://www.youtube.com/watch?v=f5QBExMNB1I&t=6s) but I’d like it to appear progressively, as starting in the middle and drawing out the t…

---

## [Create Login using Processing](https://discourse.processing.org/t/create-login-using-processing/17151)

<div class="topic-metadata">

**Author:** [@Grad](https://discourse.processing.org/u/Grad)\
**Replies:** 3\
**Last updated:** [January 18, 2020, 9:05am UTC](https://discourse.processing.org/t/create-login-using-processing/17151 "2020-01-18T09:05:20Z")

</div>

Hi, I’m new using processing and I want to create a login can you please give me something like ideas to start with?. I advance thank you for any help that you may give.

---

## [Integrate Processing with any Text Editor](https://discourse.processing.org/t/integrate-processing-with-any-text-editor/14792)

<div class="topic-metadata">

**Author:** [@tinku.kvs](https://discourse.processing.org/u/tinku.kvs)\
**Replies:** 5\
**Last updated:** [January 18, 2020, 3:15am UTC](https://discourse.processing.org/t/integrate-processing-with-any-text-editor/14792 "2020-01-18T03:15:43Z")

</div>

If you are like me, you want to write processing sketches from your favourite text editor. But it can be quite a pain, at least it was for me. I have googled all the way reading here and there about a solution. I found a…

---

## [Making a for loop with timer](https://discourse.processing.org/t/making-a-for-loop-with-timer/17085)

<div class="topic-metadata">

**Author:** [@Salttt](https://discourse.processing.org/u/Salttt)\
**Replies:** 1\
**Last updated:** [January 14, 2020, 6:06pm UTC](https://discourse.processing.org/t/making-a-for-loop-with-timer/17085 "2020-01-14T18:06:16Z")

</div>

int delay = 2000; void setup() { size(200, 200); time = millis(); fill(#989696); stroke(#747373); rectMode(CENTER); rect(width - 70, 35, 120, 40); } void draw() { for (int i = width - 130; i \< width - 10;…

---

## [Trying to get object to collide with player](https://discourse.processing.org/t/trying-to-get-object-to-collide-with-player/17142)

<div class="topic-metadata">

**Author:** [@Banana132](https://discourse.processing.org/u/Banana132)\
**Replies:** 2\
**Last updated:** [January 17, 2020, 6:19pm UTC](https://discourse.processing.org/t/trying-to-get-object-to-collide-with-player/17142 "2020-01-17T18:19:47Z")

</div>

Hi there, hoping someone is able to help with this issue I have, I am making a very basic game for an assignment and I am struggling to get an object to collide with the player to end the game. I have use the same collis…

---

## [Time class, carry, don't understand how it works exactly](https://discourse.processing.org/t/time-class-carry-dont-understand-how-it-works-exactly/17098)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 2\
**Last updated:** [January 17, 2020, 12:52pm UTC](https://discourse.processing.org/t/time-class-carry-dont-understand-how-it-works-exactly/17098 "2020-01-17T12:52:26Z")

</div>

I need help understanding how the pre() function in this Time class works. Edit: I think maybe I have it, does this seem sound? So far it seems to be working. The thing I don’t like about this is that I made it work by…

---

## [Audio visualising](https://discourse.processing.org/t/audio-visualising/17120)

<div class="topic-metadata">

**Author:** [@Alxryn](https://discourse.processing.org/u/Alxryn)\
**Replies:** 0\
**Last updated:** [January 16, 2020, 5:54pm UTC](https://discourse.processing.org/t/audio-visualising/17120 "2020-01-16T17:54:25Z")

</div>

Hello people, Im fairly new to processing and Im hoping someone could help me with the next step of my project. Im trying to make an audio visualisation of the frequency range of a song, Im trying to make something that…

---

## [selectInput() exception recovery](https://discourse.processing.org/t/selectinput-exception-recovery/17044)

<div class="topic-metadata">

**Author:** [@harrih](https://discourse.processing.org/u/harrih)\
**Replies:** 2\
**Last updated:** [January 17, 2020, 6:38am UTC](https://discourse.processing.org/t/selectinput-exception-recovery/17044 "2020-01-17T06:38:29Z")

</div>

Hi All, Am just learning Processing Not Java literate I am experimenting with selectInput() for loading files, All is good, as i can select a file load it etc. However if instead of selecting the file by mouse poi…

---

## [Push matrix and trig functions help (robot BD-1)](https://discourse.processing.org/t/push-matrix-and-trig-functions-help-robot-bd-1/16795)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 20\
**Last updated:** [January 16, 2020, 6:41pm UTC](https://discourse.processing.org/t/push-matrix-and-trig-functions-help-robot-bd-1/16795 "2020-01-16T18:41:19Z")

</div>

I am trying to model a robot in processing that I will build in real life. I already made a leg. Here is a pic, I will have 3 points of inflection per leg, plus 3 more for the neck. I would like to start by modeli…

---

## [Mouse click doesn't change back on time table](https://discourse.processing.org/t/mouse-click-doesnt-change-back-on-time-table/16987)

<div class="topic-metadata">

**Author:** [@Rango](https://discourse.processing.org/u/Rango)\
**Replies:** 11\
**Last updated:** [January 16, 2020, 5:39pm UTC](https://discourse.processing.org/t/mouse-click-doesnt-change-back-on-time-table/16987 "2020-01-16T17:39:30Z")

</div>

I have created a time table everything works, the only problem is when I click my mouse it changes to what I wanted but doesn’t go back. Can any one help. Thanks PImage chemistry; // Declare a PImage named chemistry PI…

---

## [A key that when clicked will increase the speed of the square](https://discourse.processing.org/t/a-key-that-when-clicked-will-increase-the-speed-of-the-square/16939)

<div class="topic-metadata">

**Author:** [@Rango](https://discourse.processing.org/u/Rango)\
**Replies:** 18\
**Last updated:** [January 16, 2020, 5:33pm UTC](https://discourse.processing.org/t/a-key-that-when-clicked-will-increase-the-speed-of-the-square/16939 "2020-01-16T17:33:15Z")

</div>

int x=20; int y=650; int w=20; int h=20; int c=1; int d=20; String a= ""; String b= "Warning: Wormhole detected ahead. Approach with caution."; float rectX; float rectY; float rectA; float rectB; float rectC; float…

---

## [Arduino - processing: serial data to toggle mp3 file in minim](https://discourse.processing.org/t/arduino-processing-serial-data-to-toggle-mp3-file-in-minim/17068)

<div class="topic-metadata">

**Author:** [@clara\_h](https://discourse.processing.org/u/clara_h)\
**Replies:** 9\
**Last updated:** [January 16, 2020, 11:48am UTC](https://discourse.processing.org/t/arduino-processing-serial-data-to-toggle-mp3-file-in-minim/17068 "2020-01-16T11:48:50Z")

</div>

Hi, I’m sending data through the serial port to toggle a sound file on and off in minim. The string data is all being read correctly in Processing, but the code isn’t accessing the if loops for some reason?? here’s th…

---

## [fullScreen(2) still opens on primary screen](https://discourse.processing.org/t/fullscreen-2-still-opens-on-primary-screen/17052)

<div class="topic-metadata">

**Author:** [@nicnut](https://discourse.processing.org/u/nicnut)\
**Replies:** 4\
**Last updated:** [January 15, 2020, 8:29pm UTC](https://discourse.processing.org/t/fullscreen-2-still-opens-on-primary-screen/17052 "2020-01-15T20:29:48Z")

</div>

Hi, I have a bunch of sketches with fullScreen(2). When I run the sketch it opens on my primary screen, not the secondary one. I’m on a Mac powerbook. I tried plugging/unplugging the other monitor, restarting, etc. Not…

---

## [Music visualization - detecting the volume of a song](https://discourse.processing.org/t/music-visualization-detecting-the-volume-of-a-song/17090)

<div class="topic-metadata">

**Author:** [@ella](https://discourse.processing.org/u/ella)\
**Replies:** 1\
**Last updated:** [January 15, 2020, 7:04pm UTC](https://discourse.processing.org/t/music-visualization-detecting-the-volume-of-a-song/17090 "2020-01-15T19:04:05Z")

</div>

Done! I worked it out.

---

## [G4P GUI Builder, I am getting an error!](https://discourse.processing.org/t/g4p-gui-builder-i-am-getting-an-error/16790)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 16\
**Last updated:** [January 15, 2020, 10:44am UTC](https://discourse.processing.org/t/g4p-gui-builder-i-am-getting-an-error/16790 "2020-01-15T10:44:54Z")

</div>

Unable to create data logger I used this library and I love it. Peter , I hope you’re there, thank you I upgraded to the newest and I get this in in red. Thanks

---

## [Decreasing opacity in a text String](https://discourse.processing.org/t/decreasing-opacity-in-a-text-string/17006)

<div class="topic-metadata">

**Author:** [@VictoireCl](https://discourse.processing.org/u/VictoireCl)\
**Replies:** 4\
**Last updated:** [January 15, 2020, 10:52am UTC](https://discourse.processing.org/t/decreasing-opacity-in-a-text-string/17006 "2020-01-15T10:52:32Z")

</div>

Hello everyone, I am new to Processing and trying to code a clock for a school project. I would like the opacity to gradually decrease across several pieces of text but none of the things I’ve tried worked out. Here is…

---

## [splitTokens() question](https://discourse.processing.org/t/splittokens-question/17076)

<div class="topic-metadata">

**Author:** [@pandl](https://discourse.processing.org/u/pandl)\
**Replies:** 4\
**Last updated:** [January 15, 2020, 4:15am UTC](https://discourse.processing.org/t/splittokens-question/17076 "2020-01-15T04:15:30Z")

</div>

Thank you for reading this. The following is a section from a piece of code that I copied for an Internet project. It fails with an exception error on the line float hum = float(list\[1\]);. Some Internet searching reveal…

---

## [Problem coding an easy game / how to make it restart](https://discourse.processing.org/t/problem-coding-an-easy-game-how-to-make-it-restart/17030)

<div class="topic-metadata">

**Author:** [@mezza](https://discourse.processing.org/u/mezza)\
**Replies:** 5\
**Last updated:** [January 15, 2020, 2:11am UTC](https://discourse.processing.org/t/problem-coding-an-easy-game-how-to-make-it-restart/17030 "2020-01-15T02:11:57Z")

</div>

Hi everyone! I’m doing a game using processing. The game’s pretty simple: there’s a black bar that slowly rises when you get a point and your goal is to bring the bar up to the top. To get a point it works pretty much l…

---

## [How to make a game with many different objects (ArrayList)](https://discourse.processing.org/t/how-to-make-a-game-with-many-different-objects-arraylist/16839)

<div class="topic-metadata">

**Author:** [@BennyHacker](https://discourse.processing.org/u/BennyHacker)\
**Replies:** 5\
**Last updated:** [January 14, 2020, 10:46pm UTC](https://discourse.processing.org/t/how-to-make-a-game-with-many-different-objects-arraylist/16839 "2020-01-14T22:46:17Z")

</div>

Hello forum, I’m not sure how to make many unique objects that can all be defined in a single class. The problem stems from the fact that I’m trying to put many different entities into a single ArrayList for efficiency…

---

## [controlP5: controller already exists with RadioButton with same options](https://discourse.processing.org/t/controlp5-controller-already-exists-with-radiobutton-with-same-options/17084)

<div class="topic-metadata">

**Author:** [@hamoid](https://discourse.processing.org/u/hamoid)\
**Replies:** 1\
**Last updated:** [January 14, 2020, 5:22pm UTC](https://discourse.processing.org/t/controlp5-controller-already-exists-with-radiobutton-with-same-options/17084 "2020-01-14T17:22:01Z")

</div>

Hi! I think I solved this in the past but can’t remember how atm. The code: import controlP5.\*; ControlP5 cp5; void setup() { cp5 = new ControlP5(this); RadioButton r1 = cp5.addRadioButton("foo") .setPosition(…

---

## [Collision detection issues](https://discourse.processing.org/t/collision-detection-issues/17009)

<div class="topic-metadata">

**Author:** [@gibbo7997](https://discourse.processing.org/u/gibbo7997)\
**Replies:** 14\
**Last updated:** [January 14, 2020, 4:56pm UTC](https://discourse.processing.org/t/collision-detection-issues/17009 "2020-01-14T16:56:32Z")

</div>

Hi guys, currently working on a uni project where we have to incorporate a piece of hardware into our code. I have tried to create a code based on the flappy bird game and found someone who had created a ‘flappy code’ ga…

---

## [Check if line intersects a polygon](https://discourse.processing.org/t/check-if-line-intersects-a-polygon/16978)

<div class="topic-metadata">

**Author:** [@AndreasRef](https://discourse.processing.org/u/AndreasRef)\
**Replies:** 7\
**Last updated:** [January 14, 2020, 2:07pm UTC](https://discourse.processing.org/t/check-if-line-intersects-a-polygon/16978 "2020-01-14T14:07:02Z")

</div>

Hi How do I find out if a line between two points are intersecting a polygon? To give a bit of context I am trying to build a small tool that draws perspective lines between a flat polygon and a vanishing point. It is …

---

## [Recursive Tree without using rotate()](https://discourse.processing.org/t/recursive-tree-without-using-rotate/17080)

<div class="topic-metadata">

**Author:** [@AndreasRef](https://discourse.processing.org/u/AndreasRef)\
**Replies:** 6\
**Last updated:** [January 14, 2020, 1:15pm UTC](https://discourse.processing.org/t/recursive-tree-without-using-rotate/17080 "2020-01-14T13:15:32Z")

</div>

This might be a weird question :thinking:, but here goes: Would it be possible to draw a Recursive Tree WITHOUT using rotate()? I ask because I am preparing a couple of interactive projects where I use Processing to co…

---

## [P2Matrix to turn around axis](https://discourse.processing.org/t/p2matrix-to-turn-around-axis/17031)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 6\
**Last updated:** [January 14, 2020, 12:58pm UTC](https://discourse.processing.org/t/p2matrix-to-turn-around-axis/17031 "2020-01-14T12:58:47Z")

</div>

Hi, I’m trying to turn a PVector to 60 degree with a PMatrix2D. I found this formula : https://en.wikipedia.org/wiki/Rotation\_matrix But I don’t find the right way to code it. Results are always on the down of the scre…

---

## [Capture and preview multiple computer outputs](https://discourse.processing.org/t/capture-and-preview-multiple-computer-outputs/17056)

<div class="topic-metadata">

**Author:** [@rkdnson](https://discourse.processing.org/u/rkdnson)\
**Replies:** 2\
**Last updated:** [January 14, 2020, 5:08am UTC](https://discourse.processing.org/t/capture-and-preview-multiple-computer-outputs/17056 "2020-01-14T05:08:16Z")

</div>

Hello! General question, I am looking into a way to capture multiple video outs. I would love to be able to preview all video going to different monitors / projectors from a computer. If there is a library or even an ap…

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

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