# Processing

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

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

**Page:** 244

---

## [Window larger than screen: how to see all parts?](https://discourse.processing.org/t/window-larger-than-screen-how-to-see-all-parts/17074)

<div class="topic-metadata">

**Author:** [@mortap](https://discourse.processing.org/u/mortap)\
**Replies:** 2\
**Last updated:** [January 14, 2020, 4:29am UTC](https://discourse.processing.org/t/window-larger-than-screen-how-to-see-all-parts/17074 "2020-01-14T04:29:45Z")

</div>

Sometimes I use processing with larger photos (e.g. size(15000, 4000);). It would be great if I could scroll around (or even zoom in and out) to see if all the parts of the photo are ready before saving the image, but r…

---

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

<div class="topic-metadata">

**Author:** [@Morgy\_B](https://discourse.processing.org/u/Morgy_B)\
**Replies:** 3\
**Last updated:** [January 13, 2020, 5:07pm UTC](https://discourse.processing.org/t/collision-detection/17059 "2020-01-13T17:07:01Z")

</div>

hi I am trying to get the ball to bounce off my paddle like in the coding challenge ‘pong’ video. I have followed step by step and the ball is bouncing off random parts of the page and not off my paddle. can somebody h…

---

## [Reading byte array into float (expanding on SerialCallResponse example)](https://discourse.processing.org/t/reading-byte-array-into-float-expanding-on-serialcallresponse-example/16880)

<div class="topic-metadata">

**Author:** [@julianop](https://discourse.processing.org/u/julianop)\
**Replies:** 18\
**Last updated:** [January 13, 2020, 4:28pm UTC](https://discourse.processing.org/t/reading-byte-array-into-float-expanding-on-serialcallresponse-example/16880 "2020-01-13T16:28:06Z")

</div>

An old C programmer, I’m new to Processing (and not particularly skilled at C++, come to that…), so naturally I’m banging up against the stronger type discipline of Object Oriented languages, and could use a spot of help…

---

## [Removing first entry when next enters](https://discourse.processing.org/t/removing-first-entry-when-next-enters/16963)

<div class="topic-metadata">

**Author:** [@vanoevelenstef](https://discourse.processing.org/u/vanoevelenstef)\
**Replies:** 17\
**Last updated:** [January 13, 2020, 9:16am UTC](https://discourse.processing.org/t/removing-first-entry-when-next-enters/16963 "2020-01-13T09:16:16Z")

</div>

I’ve this code that lets you type words when keypressed but it only shows one word at the time. I want it to show multiply words (lets say 20) at the time and when word 21 is entered, the first word gets deleted and word…

---

## [Fixing laggy code (Minim, gradientline)](https://discourse.processing.org/t/fixing-laggy-code-minim-gradientline/17047)

<div class="topic-metadata">

**Author:** [@edarcie](https://discourse.processing.org/u/edarcie)\
**Replies:** 6\
**Last updated:** [January 12, 2020, 5:49pm UTC](https://discourse.processing.org/t/fixing-laggy-code-minim-gradientline/17047 "2020-01-12T17:49:13Z")

</div>

Hello, I wanted to ask for help regarding my painfully inefficent code. I am currently working on a project were I create an audio reactive circle, that has a gradient. The intention is to create a circle that expands t…

---

## [Documentation of Processing](https://discourse.processing.org/t/documentation-of-processing/17010)

<div class="topic-metadata">

**Author:** [@KT27](https://discourse.processing.org/u/KT27)\
**Replies:** 6\
**Last updated:** [January 12, 2020, 7:10am UTC](https://discourse.processing.org/t/documentation-of-processing/17010 "2020-01-12T07:10:48Z")

</div>

Is there a Processing software documentation? I mean PDF.

---

## [Problem i face in serial communication](https://discourse.processing.org/t/problem-i-face-in-serial-communication/17023)

<div class="topic-metadata">

**Author:** [@Cyjian](https://discourse.processing.org/u/Cyjian)\
**Replies:** 5\
**Last updated:** [January 12, 2020, 3:27am UTC](https://discourse.processing.org/t/problem-i-face-in-serial-communication/17023 "2020-01-12T03:27:59Z")

</div>

Hi, i am learning the serial communication by using the Arduino collect the data and use the processing to do a GUI to display the data. Here is my Arduino code and Processing code. Arduino #include \<Servo.h\> Servo mys…

---

## [Cannot get my soundtrack to play during game](https://discourse.processing.org/t/cannot-get-my-soundtrack-to-play-during-game/17040)

<div class="topic-metadata">

**Author:** [@Kasavee](https://discourse.processing.org/u/Kasavee)\
**Replies:** 4\
**Last updated:** [January 12, 2020, 2:25am UTC](https://discourse.processing.org/t/cannot-get-my-soundtrack-to-play-during-game/17040 "2020-01-12T02:25:30Z")

</div>

Hi, I’m totally new at this but I’ve made a game for a college project that’s centred around non-traditional interactions. It’s basically a mash-up of Flappy Bird and Chicken Scream where you use sound (or a mouseclick) …

---

## [Need help for a simple Grid](https://discourse.processing.org/t/need-help-for-a-simple-grid/17033)

<div class="topic-metadata">

**Author:** [@DeadApe](https://discourse.processing.org/u/DeadApe)\
**Replies:** 4\
**Last updated:** [January 12, 2020, 1:51am UTC](https://discourse.processing.org/t/need-help-for-a-simple-grid/17033 "2020-01-12T01:51:18Z")

</div>

Hello ppl, i don’t get the failure in my code. I just want to draw a simple grid out of rectangles. My Code: void settings(){ size(800, 800); } void setup(){ int blockSize = 30; int hBlocks = 10; int wBlocks …

---

## [Problem Saving Serial data into an Array](https://discourse.processing.org/t/problem-saving-serial-data-into-an-array/17003)

<div class="topic-metadata">

**Author:** [@hachimbala](https://discourse.processing.org/u/hachimbala)\
**Replies:** 3\
**Last updated:** [January 11, 2020, 3:40pm UTC](https://discourse.processing.org/t/problem-saving-serial-data-into-an-array/17003 "2020-01-11T15:40:18Z")

</div>

Hello, I am developing an Arduino 360 radar, my arduino is sending correctly the info, and the Processing app is receiving it correctly too, but when I try to save the data into an array, it doesn’t update the values. T…

---

## [Game 2D light and shadow ray casting with colors](https://discourse.processing.org/t/game-2d-light-and-shadow-ray-casting-with-colors/14025)

<div class="topic-metadata">

**Author:** [@GeorgeJava](https://discourse.processing.org/u/GeorgeJava)\
**Replies:** 6\
**Last updated:** [January 11, 2020, 9:23am UTC](https://discourse.processing.org/t/game-2d-light-and-shadow-ray-casting-with-colors/14025 "2020-01-11T09:23:17Z")

</div>

Hello, I create sketch that uses ray casting with shadows and lights, but i want to tint every single light with own color, how i can do it ? boolean lihghtsEnable = true; PImage background, screen; PGraphics lightMas…

---

## [Random Text Generator (using stored text/data)](https://discourse.processing.org/t/random-text-generator-using-stored-text-data/16956)

<div class="topic-metadata">

**Author:** [@marianne91](https://discourse.processing.org/u/marianne91)\
**Replies:** 5\
**Last updated:** [January 10, 2020, 6:26pm UTC](https://discourse.processing.org/t/random-text-generator-using-stored-text-data/16956 "2020-01-10T18:26:13Z")

</div>

Hi there, I would like to use a ‘random text generator’ in a project I’m doing using Processing. The idea is that a participant would do a ‘quiz’ on processing in which the answers would be stored as data and would the…

---

## [The algorithm is too slow](https://discourse.processing.org/t/the-algorithm-is-too-slow/16553)

<div class="topic-metadata">

**Author:** [@costachemadalin](https://discourse.processing.org/u/costachemadalin)\
**Replies:** 2\
**Last updated:** [January 10, 2020, 11:18pm UTC](https://discourse.processing.org/t/the-algorithm-is-too-slow/16553 "2020-01-10T23:18:21Z")

</div>

Hello, i am trying to calculate disparity from 2 rectified images and for that i need to take every pixel from left image and seach in one line from right image and find the similar pixel ,the dimension of the images is …

---

## [Flip upper case with lower case](https://discourse.processing.org/t/flip-upper-case-with-lower-case/17013)

<div class="topic-metadata">

**Author:** [@Andiwnl](https://discourse.processing.org/u/Andiwnl)\
**Replies:** 2\
**Last updated:** [January 10, 2020, 10:43pm UTC](https://discourse.processing.org/t/flip-upper-case-with-lower-case/17013 "2020-01-10T22:43:36Z")

</div>

hello, I want to swap upper case letters with lower case letters. But all I can find on the internet is just how I can completely convert the word either to lower case or to upper case. what I need is : Hello -\> hELLO

---

## [Small problem while making snake game](https://discourse.processing.org/t/small-problem-while-making-snake-game/16990)

<div class="topic-metadata">

**Author:** [@RoebenV](https://discourse.processing.org/u/RoebenV)\
**Replies:** 11\
**Last updated:** [January 10, 2020, 9:35pm UTC](https://discourse.processing.org/t/small-problem-while-making-snake-game/16990 "2020-01-10T21:35:21Z")

</div>

I’m making a snake game where you can control the snake using the mouse, so if you’re above the snake’s head it should go up etc. I don’t know how I can make this, I’ve tried switching around if statements but to no avai…

---

## [Text fields: cut&pasting to and from](https://discourse.processing.org/t/text-fields-cut-pasting-to-and-from/16985)

<div class="topic-metadata">

**Author:** [@obahama](https://discourse.processing.org/u/obahama)\
**Replies:** 4\
**Last updated:** [January 10, 2020, 6:47pm UTC](https://discourse.processing.org/t/text-fields-cut-pasting-to-and-from/16985 "2020-01-10T18:47:20Z")

</div>

I currently have code that reads a text file into an array, edits certain parts of the text, then writes the edits to a text file. Now I want to update this to a UI where I can paste the text into a text field, click a b…

---

## [Changing pages using button and assigning new rules to buttons](https://discourse.processing.org/t/changing-pages-using-button-and-assigning-new-rules-to-buttons/17011)

<div class="topic-metadata">

**Author:** [@B\_s](https://discourse.processing.org/u/B_s)\
**Replies:** 0\
**Last updated:** [January 10, 2020, 6:01pm UTC](https://discourse.processing.org/t/changing-pages-using-button-and-assigning-new-rules-to-buttons/17011 "2020-01-10T18:01:03Z")

</div>

Hi all. I am looking to create pages in my sketch in which the buttons I want to use are assigned different orders. For example, on the intro page, button A takes you to page 2. On page 2 button A changes the background…

---

## [Older versions of Processing](https://discourse.processing.org/t/older-versions-of-processing/16965)

<div class="topic-metadata">

**Author:** [@mortap](https://discourse.processing.org/u/mortap)\
**Replies:** 6\
**Last updated:** [January 10, 2020, 4:40pm UTC](https://discourse.processing.org/t/older-versions-of-processing/16965 "2020-01-10T16:40:02Z")

</div>

I have an older Mac that is running Java 1.4, and I want to try out Processing on it. How do I get the right version?

---

## [Creating a Grafica plot in Pgraphics or new window](https://discourse.processing.org/t/creating-a-grafica-plot-in-pgraphics-or-new-window/17000)

<div class="topic-metadata">

**Author:** [@Thomas](https://discourse.processing.org/u/Thomas)\
**Replies:** 0\
**Last updated:** [January 10, 2020, 12:41pm UTC](https://discourse.processing.org/t/creating-a-grafica-plot-in-pgraphics-or-new-window/17000 "2020-01-10T12:41:49Z")

</div>

Hi all, I would like to make a Grafica plot in a Pgraphics but soon realised that it is not possible in my case. So I followed the workaround suggested by @GoToLoop on: https://discourse.processing.org/t/plot-grafica-in…

---

## [Help with catcher game](https://discourse.processing.org/t/help-with-catcher-game/16715)

<div class="topic-metadata">

**Author:** [@Clay1](https://discourse.processing.org/u/Clay1)\
**Replies:** 6\
**Last updated:** [January 8, 2020, 11:36am UTC](https://discourse.processing.org/t/help-with-catcher-game/16715 "2020-01-08T11:36:19Z")

</div>

I am trying to make a catcher game (im a beginner) and some how the balls that fall are making a line and are not delating so, you don’t se a ball faling but a thick line. Can somebody help me out and look at my code? …

---

## [I want to clear these buttons from the canvas any tips? (processing 3+)](https://discourse.processing.org/t/i-want-to-clear-these-buttons-from-the-canvas-any-tips-processing-3/16962)

<div class="topic-metadata">

**Author:** [@NinjaKittens](https://discourse.processing.org/u/NinjaKittens)\
**Replies:** 10\
**Last updated:** [January 10, 2020, 8:25am UTC](https://discourse.processing.org/t/i-want-to-clear-these-buttons-from-the-canvas-any-tips-processing-3/16962 "2020-01-10T08:25:15Z")

</div>

This is the code that I have so far: PImage a; PImage b; void setup() { size(1000,1000); background(100,255,110); a = loadImage("https://www.openprocessing.org/sketch/813047/files/Screenshot\_2019-12-19\_at\_84649\_AM.png"…

---

## [Moving object Speed increases when key pressed](https://discourse.processing.org/t/moving-object-speed-increases-when-key-pressed/16993)

<div class="topic-metadata">

**Author:** [@jegg](https://discourse.processing.org/u/jegg)\
**Replies:** 1\
**Last updated:** [January 10, 2020, 1:12am UTC](https://discourse.processing.org/t/moving-object-speed-increases-when-key-pressed/16993 "2020-01-10T01:12:10Z")

</div>

I need help with a code i want to increase the speed of a moving object when the key “P” is pressed i cant find the code. I need this for a project Here is my code float x = 100; float y = 100; float xSpeed = 0; flo…

---

## [Interactive Video with Audience Options](https://discourse.processing.org/t/interactive-video-with-audience-options/16805)

<div class="topic-metadata">

**Author:** [@marianne91](https://discourse.processing.org/u/marianne91)\
**Replies:** 5\
**Last updated:** [January 8, 2020, 10:42pm UTC](https://discourse.processing.org/t/interactive-video-with-audience-options/16805 "2020-01-08T22:42:40Z")

</div>

Hey there! I’m currently working on a project based on ‘decision-making’ in which I want to create a video narrative and allow the viewer to determine what happens next… At each break in the video narrative they will b…

---

## [Reset Arraylist of "Enemies" in order to Replay the Game](https://discourse.processing.org/t/reset-arraylist-of-enemies-in-order-to-replay-the-game/16975)

<div class="topic-metadata">

**Author:** [@cp796](https://discourse.processing.org/u/cp796)\
**Replies:** 8\
**Last updated:** [January 9, 2020, 5:46pm UTC](https://discourse.processing.org/t/reset-arraylist-of-enemies-in-order-to-replay-the-game/16975 "2020-01-09T17:46:12Z")

</div>

Hi, So I’m trying to create a game and I have an Arraylist of enemies. I want upon collision to reset it, in order if chosen by the player to play again from the “lose” screen to take him back and totally restart the ga…

---

## [Use input methods like Microsoft Chinese and Japanese Input](https://discourse.processing.org/t/use-input-methods-like-microsoft-chinese-and-japanese-input/16982)

<div class="topic-metadata">

**Author:** [@LoliProcessor](https://discourse.processing.org/u/LoliProcessor)\
**Replies:** 0\
**Last updated:** [January 9, 2020, 3:47pm UTC](https://discourse.processing.org/t/use-input-methods-like-microsoft-chinese-and-japanese-input/16982 "2020-01-09T15:47:02Z")

</div>

Is there a way to create an interface that let’s you use the input from the Microsoft Chinese and Japanese Input for example? JTextInput seems to be able to detect it, but I already started writing my project in Process…

---

## [Count identical strings in array for each unique entry](https://discourse.processing.org/t/count-identical-strings-in-array-for-each-unique-entry/16678)

<div class="topic-metadata">

**Author:** [@AndreasRef](https://discourse.processing.org/u/AndreasRef)\
**Replies:** 6\
**Last updated:** [January 9, 2020, 12:24pm UTC](https://discourse.processing.org/t/count-identical-strings-in-array-for-each-unique-entry/16678 "2020-01-09T12:24:41Z")

</div>

If I have an array of strings, how do I count the number of times each unique string occurs in the array? I do not know the content of the array beforehand.

---

## [Println order help?](https://discourse.processing.org/t/println-order-help/16928)

<div class="topic-metadata">

**Author:** [@crazybob5](https://discourse.processing.org/u/crazybob5)\
**Replies:** 3\
**Last updated:** [January 9, 2020, 9:19am UTC](https://discourse.processing.org/t/println-order-help/16928 "2020-01-09T09:19:42Z")

</div>

Can someone explain me the order of printlines here? int a = 4; int b = 7; void setup() { println("Setup: " + knutsel(a, b)); } int knutsel(int b, int a) { println("Knutsel: " + a); println("Knutsel: " + b); return …

---

## [Is there a way to pivot an image around a certain point?](https://discourse.processing.org/t/is-there-a-way-to-pivot-an-image-around-a-certain-point/16947)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 3\
**Last updated:** [January 9, 2020, 1:22am UTC](https://discourse.processing.org/t/is-there-a-way-to-pivot-an-image-around-a-certain-point/16947 "2020-01-09T01:22:07Z")

</div>

I need to turn this image around the hole in bottom. The hole is located 323 pixels from the top and 182 from the left edge. I tried something like: PImage BD1; float R; void setup() { size(1790, 1100, JAVA2D); …

---

## [Can I put sounds generated via processing-sounds into Movie Maker "container"?](https://discourse.processing.org/t/can-i-put-sounds-generated-via-processing-sounds-into-movie-maker-container/16974)

<div class="topic-metadata">

**Author:** [@aurora](https://discourse.processing.org/u/aurora)\
**Replies:** 0\
**Last updated:** [January 9, 2020, 1:01am UTC](https://discourse.processing.org/t/can-i-put-sounds-generated-via-processing-sounds-into-movie-maker-container/16974 "2020-01-09T01:01:52Z")

</div>

I’d like to add a sound to each frame of animation - say frameRate=8, each with a 125 ms sound sample. Is anyone doing this?

---

## [Create game launcher](https://discourse.processing.org/t/create-game-launcher/16560)

<div class="topic-metadata">

**Author:** [@MonteliaRO](https://discourse.processing.org/u/MonteliaRO)\
**Replies:** 8\
**Last updated:** [January 8, 2020, 10:30pm UTC](https://discourse.processing.org/t/create-game-launcher/16560 "2020-01-08T22:30:45Z")

</div>

Hay, I would like to create a game launcher with you. I already do a lot with processing only I don’t know how to start there can someone help me? ~ Montelia’RO :wink:

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

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