# Processing

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

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

**Page:** 163

---

## [Need help with function copy() and video](https://discourse.processing.org/t/need-help-with-function-copy-and-video/26207)

<div class="topic-metadata">

**Author:** [@toc\_toc\_toc](https://discourse.processing.org/u/toc_toc_toc)\
**Replies:** 11\
**Last updated:** [December 17, 2020, 8:09pm UTC](https://discourse.processing.org/t/need-help-with-function-copy-and-video/26207 "2020-12-17T20:09:07Z")

</div>

\< import processing.video.\*; String PATH = “MVI\_3180.MP4”; Movie gare; void setup() { size(1440, 900); frameRate(30); gare = new Movie(this, PATH); gare.play(); } void movieEvent(Movie m) { m.read(); } void …

---

## [Load and display Table in "textbox"](https://discourse.processing.org/t/load-and-display-table-in-textbox/26305)

<div class="topic-metadata">

**Author:** [@hannes](https://discourse.processing.org/u/hannes)\
**Replies:** 6\
**Last updated:** [December 17, 2020, 3:12pm UTC](https://discourse.processing.org/t/load-and-display-table-in-textbox/26305 "2020-12-17T15:12:46Z")

</div>

Hey Guys, im struggling to load and display my .csv the right way. I have 4 columns, each with 10 words and I want to display each column in one textbox. (I found that textbox example here on the forums) I know how to …

---

## [Help with a exercise (making circle packing 3d)](https://discourse.processing.org/t/help-with-a-exercise-making-circle-packing-3d/26332)

<div class="topic-metadata">

**Author:** [@DariaSuzanne](https://discourse.processing.org/u/DariaSuzanne)\
**Replies:** 13\
**Last updated:** [December 17, 2020, 2:34pm UTC](https://discourse.processing.org/t/help-with-a-exercise-making-circle-packing-3d/26332 "2020-12-17T14:34:00Z")

</div>

Hello! I need help turning this 2d code into 3d. I have recently started using processing, so 3d processing is a bit of a stretch for me. I am basically just trying to turn the circles into spheres, nothing more extreme…

---

## [Problem with inconsistent framerate (contains screenshot of the running sketch)](https://discourse.processing.org/t/problem-with-inconsistent-framerate-contains-screenshot-of-the-running-sketch/26336)

<div class="topic-metadata">

**Author:** [@regularsam](https://discourse.processing.org/u/regularsam)\
**Replies:** 0\
**Last updated:** [December 17, 2020, 2:07pm UTC](https://discourse.processing.org/t/problem-with-inconsistent-framerate-contains-screenshot-of-the-running-sketch/26336 "2020-12-17T14:07:33Z")

</div>

Hi, I’ve been working with this issue for a while and now it’s driving me crazy. Basically when I run my sketch in fullscreen using P2D render (some shaders work going on) I get a framerate cap at 30 fps no matter what.…

---

## [Creating a rose drawing with sine function and other trig functions](https://discourse.processing.org/t/creating-a-rose-drawing-with-sine-function-and-other-trig-functions/26315)

<div class="topic-metadata">

**Author:** [@SadCSstudent](https://discourse.processing.org/u/SadCSstudent)\
**Replies:** 12\
**Last updated:** [December 17, 2020, 12:55pm UTC](https://discourse.processing.org/t/creating-a-rose-drawing-with-sine-function-and-other-trig-functions/26315 "2020-12-17T12:55:00Z")

</div>

Hey its me again… I’m trying to create a rose drawing using a for loop(compulsory) AKA a polar curve but i cant point out whats wrong with my code.(this is not an assignment this is personal study) int STEPS=100; final…

---

## [Pacman game with grid and custom character](https://discourse.processing.org/t/pacman-game-with-grid-and-custom-character/26311)

<div class="topic-metadata">

**Author:** [@Lozza](https://discourse.processing.org/u/Lozza)\
**Replies:** 2\
**Last updated:** [December 17, 2020, 7:51am UTC](https://discourse.processing.org/t/pacman-game-with-grid-and-custom-character/26311 "2020-12-17T07:51:57Z")

</div>

Im making a pac-man game but with my own character(.png of the character’s run cycle), I’m using a grid to make the maze barriers but cant get my sprite’s walk cycle to appear on the grid, is there even a way to use cust…

---

## [How to know that a pixel is semi-transparent？](https://discourse.processing.org/t/how-to-know-that-a-pixel-is-semi-transparent/26325)

<div class="topic-metadata">

**Author:** [@AbleYudada](https://discourse.processing.org/u/AbleYudada)\
**Replies:** 2\
**Last updated:** [December 17, 2020, 6:51am UTC](https://discourse.processing.org/t/how-to-know-that-a-pixel-is-semi-transparent/26325 "2020-12-17T06:51:49Z")

</div>

Hi guys, is there any way to know if a pixel is semi-transparent？No matter what color it is, I just want to know if it is semi-transparent.

---

## [Help with a project (game to guess words)](https://discourse.processing.org/t/help-with-a-project-game-to-guess-words/26196)

<div class="topic-metadata">

**Author:** [@Chesire](https://discourse.processing.org/u/Chesire)\
**Replies:** 51\
**Last updated:** [December 16, 2020, 11:34pm UTC](https://discourse.processing.org/t/help-with-a-project-game-to-guess-words/26196 "2020-12-16T23:34:31Z")

</div>

sorry for deleting the post earlier but i dont really understand how to use the forum. Also im quite new to processing too. Problem: the full word wont print and i have tried using if(keyPressed) text(“s”,x,y) to screen…

---

## [Simple random string question](https://discourse.processing.org/t/simple-random-string-question/26273)

<div class="topic-metadata">

**Author:** [@SadCSstudent](https://discourse.processing.org/u/SadCSstudent)\
**Replies:** 8\
**Last updated:** [December 15, 2020, 6:21pm UTC](https://discourse.processing.org/t/simple-random-string-question/26273 "2020-12-15T18:21:35Z")

</div>

Hi, I’m trying to make the characters appear on the canvas one the character is pressed but they all seem to appear on the same location and overlap each other. int x=int(random(25,450)); int y=int(random(25,450)); St…

---

## [Trouble manipulating single cells in an array](https://discourse.processing.org/t/trouble-manipulating-single-cells-in-an-array/26291)

<div class="topic-metadata">

**Author:** [@Aerosault](https://discourse.processing.org/u/Aerosault)\
**Replies:** 2\
**Last updated:** [December 16, 2020, 2:14pm UTC](https://discourse.processing.org/t/trouble-manipulating-single-cells-in-an-array/26291 "2020-12-16T14:14:58Z")

</div>

Hello! I any currently working on a grid of gradients. Each gradient is a shape. I want to tie the right and left mouse clicks to expand or contract the width of the object the mouse is hovering over. I also want the row…

---

## [Plz help my program](https://discourse.processing.org/t/plz-help-my-program/26261)

<div class="topic-metadata">

**Author:** [@kokobab](https://discourse.processing.org/u/kokobab)\
**Replies:** 2\
**Last updated:** [December 16, 2020, 2:11pm UTC](https://discourse.processing.org/t/plz-help-my-program/26261 "2020-12-16T14:11:10Z")

</div>

\<arduino code\> const int sampleWindow=38; unsigned int sample; unsigned long startMillis=millis(); unsigned int peakToPeak=0; unsigned int signalMax=0; unsigned int signalMin=1024; //clipping indicator variable…

---

## [Collision with Spring Dynamics](https://discourse.processing.org/t/collision-with-spring-dynamics/26148)

<div class="topic-metadata">

**Author:** [@papaboo](https://discourse.processing.org/u/papaboo)\
**Replies:** 7\
**Last updated:** [December 16, 2020, 11:35am UTC](https://discourse.processing.org/t/collision-with-spring-dynamics/26148 "2020-12-16T11:35:59Z")

</div>

Hi I’m trying to enable bouncing balls effect with spring dynamics. I’ve tweaked the chain example a bit a here’s the code I’m working on: Spring2D s1, s2; float gravity = 9.0; float mass = 5; void setup() { size(…

---

## [Is there a trick to getting .otf fonts to work?](https://discourse.processing.org/t/is-there-a-trick-to-getting-otf-fonts-to-work/26277)

<div class="topic-metadata">

**Author:** [@CaseyJ](https://discourse.processing.org/u/CaseyJ)\
**Replies:** 2\
**Last updated:** [December 16, 2020, 12:22am UTC](https://discourse.processing.org/t/is-there-a-trick-to-getting-otf-fonts-to-work/26277 "2020-12-16T00:22:54Z")

</div>

Hello, Working on a project using the “Bookmania” font. It is an .otf font and I am on Windows 10 using Processing 3. For whatever reason it works fine on Mac OSX… https://allbestfonts.com/bookmania/ When I run the co…

---

## [Can anyone point out what I'm doing wrong?](https://discourse.processing.org/t/can-anyone-point-out-what-im-doing-wrong/26239)

<div class="topic-metadata">

**Author:** [@Marsquid](https://discourse.processing.org/u/Marsquid)\
**Replies:** 4\
**Last updated:** [December 14, 2020, 4:21pm UTC](https://discourse.processing.org/t/can-anyone-point-out-what-im-doing-wrong/26239 "2020-12-14T16:21:49Z")

</div>

Hey all! I was given a task by my Lecturer to make a Baloon popping game but for some reason when I run the code the screen is completely gray. I have absolutely no clue as to how/why this is happening and was wondering…

---

## [Don\`t work void mousePressed](https://discourse.processing.org/t/don-t-work-void-mousepressed/26280)

<div class="topic-metadata">

**Author:** [@pundy](https://discourse.processing.org/u/pundy)\
**Replies:** 2\
**Last updated:** [December 15, 2020, 9:20pm UTC](https://discourse.processing.org/t/don-t-work-void-mousepressed/26280 "2020-12-15T21:20:45Z")

</div>

int K = 2; int L1 = 1; int P1 = 0; int L2 = 3; int P2 = 4; color k1,k2,l1,l2,p1,p2,l3,l4,p3,p4,len,len2,ban,ban2; void setup(){ size(500,500); background(145, 209, 189); k1=color(255,70,64); k2=color(194,53,48)…

---

## [Issues with arrayLists2](https://discourse.processing.org/t/issues-with-arraylists2/26221)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 5\
**Last updated:** [December 15, 2020, 8:13pm UTC](https://discourse.processing.org/t/issues-with-arraylists2/26221 "2020-12-15T20:13:03Z")

</div>

Hi! I am doing a customizable fractal tree program. I have some issues; Why does this happen? why this (“kinda”) works: ArrayList\<Float\> x = new ArrayList\<Float\>(); ArrayList\<Float\> y = new ArrayList\<Float\>(); ArrayLis…

---

## [Needing help to rotate the camera around an object by moving the mouse away from the middle of the screen](https://discourse.processing.org/t/needing-help-to-rotate-the-camera-around-an-object-by-moving-the-mouse-away-from-the-middle-of-the-screen/26247)

<div class="topic-metadata">

**Author:** [@SailorToei](https://discourse.processing.org/u/SailorToei)\
**Replies:** 1\
**Last updated:** [December 15, 2020, 3:23pm UTC](https://discourse.processing.org/t/needing-help-to-rotate-the-camera-around-an-object-by-moving-the-mouse-away-from-the-middle-of-the-screen/26247 "2020-12-15T15:23:00Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hello everybody, I want to create a game, where you can walk sideways straight forward etc, with the camera always 200 pixels behind the “Figur”…

---

## [Needing help for camera rotation in 3D with rotateY](https://discourse.processing.org/t/needing-help-for-camera-rotation-in-3d-with-rotatey/26195)

<div class="topic-metadata">

**Author:** [@SailorToei](https://discourse.processing.org/u/SailorToei)\
**Replies:** 1\
**Last updated:** [December 15, 2020, 3:20pm UTC](https://discourse.processing.org/t/needing-help-for-camera-rotation-in-3d-with-rotatey/26195 "2020-12-15T15:20:38Z")

</div>

Hello, I already asked a question about turning the movement direction withmovingthe mouse in3D. It was successfully answered. However, now I want to turn the camera as well. \< void kamera() { camera(xCam,yCam,zCam…

---

## [Parse SVG file from Adobe Illustrator](https://discourse.processing.org/t/parse-svg-file-from-adobe-illustrator/1226)

<div class="topic-metadata">

**Author:** [@josephh](https://discourse.processing.org/u/josephh)\
**Replies:** 11\
**Last updated:** [December 15, 2020, 11:31am UTC](https://discourse.processing.org/t/parse-svg-file-from-adobe-illustrator/1226 "2020-12-15T11:31:20Z")

</div>

Hello there, I’m trying to parse a SVG file exported from Adobe Illustrator by using the PShape method ps.getChild(index);. At the end I want to extract the coordinates and the size of all the rectangles. The problem …

---

## [Creating a clickable dynamic grid](https://discourse.processing.org/t/creating-a-clickable-dynamic-grid/26259)

<div class="topic-metadata">

**Author:** [@Reynaert98](https://discourse.processing.org/u/Reynaert98)\
**Replies:** 1\
**Last updated:** [December 15, 2020, 11:25am UTC](https://discourse.processing.org/t/creating-a-clickable-dynamic-grid/26259 "2020-12-15T11:25:57Z")

</div>

I have to create a dynamic grid for a memory game in which cards are placed within a rectangle on my screen which have to be clickable. Before the grid is drawn I have a starting screen in which the user has to select th…

---

## [Switching between scenes with buttons as choices](https://discourse.processing.org/t/switching-between-scenes-with-buttons-as-choices/19400)

<div class="topic-metadata">

**Author:** [@haree2000](https://discourse.processing.org/u/haree2000)\
**Replies:** 21\
**Last updated:** [December 15, 2020, 8:01am UTC](https://discourse.processing.org/t/switching-between-scenes-with-buttons-as-choices/19400 "2020-12-15T08:01:12Z")

</div>

Hi! I am sooo new to coding, I got to where I am through my friends and jumping around a lot but I am basically trying to make an interactive story and I found out how to make the text bubbles and to go to the next scen…

---

## [Making something spin/rotate](https://discourse.processing.org/t/making-something-spin-rotate/26244)

<div class="topic-metadata">

**Author:** [@Khwarizmi](https://discourse.processing.org/u/Khwarizmi)\
**Replies:** 2\
**Last updated:** [December 14, 2020, 10:00pm UTC](https://discourse.processing.org/t/making-something-spin-rotate/26244 "2020-12-14T22:00:34Z")

</div>

I made this small survival game where you are a ball and are supposed to dodge shurikens using the arrow keys.I want to draw the 2 shuriken triangles in a way so that they rotate around the center of the shuriken at a co…

---

## [Downloading Example Files](https://discourse.processing.org/t/downloading-example-files/26249)

<div class="topic-metadata">

**Author:** [@jeromeernestgarcia](https://discourse.processing.org/u/jeromeernestgarcia)\
**Replies:** 2\
**Last updated:** [December 14, 2020, 9:54pm UTC](https://discourse.processing.org/t/downloading-example-files/26249 "2020-12-14T21:54:22Z")

</div>

I am trying to experiment with the scrollbar example. How to I download the image files associated with the example. img1 = loadImage(“seedTop.jpg”); img2 = loadImage(“seedBottom.jpg”); Thanks, Jerome

---

## [Video library processing 3.5.4](https://discourse.processing.org/t/video-library-processing-3-5-4/26241)

<div class="topic-metadata">

**Author:** [@Tickie](https://discourse.processing.org/u/Tickie)\
**Replies:** 0\
**Last updated:** [December 14, 2020, 4:38pm UTC](https://discourse.processing.org/t/video-library-processing-3-5-4/26241 "2020-12-14T16:38:38Z")

</div>

Hello! I have a problem with my code involving gstreamer apparently. The exact same code was working fine for weeks and until a week ago, today re-opening it I had an error stating “a library used by this sketch is not …

---

## [Change text height depending on position](https://discourse.processing.org/t/change-text-height-depending-on-position/25833)

<div class="topic-metadata">

**Author:** [@hannes](https://discourse.processing.org/u/hannes)\
**Replies:** 6\
**Last updated:** [December 14, 2020, 1:58am UTC](https://discourse.processing.org/t/change-text-height-depending-on-position/25833 "2020-12-14T01:58:53Z")

</div>

Hey Guys, I wanted to achieve something like a “text roll”. Here is an example: I want that, when scrolling up and down through my text, the type will change its text height. Like when text is written on a tube. Hope …

---

## [Problem with ArrayList\<Float\>](https://discourse.processing.org/t/problem-with-arraylist-float/26215)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 3\
**Last updated:** [December 13, 2020, 10:08pm UTC](https://discourse.processing.org/t/problem-with-arraylist-float/26215 "2020-12-13T22:08:19Z")

</div>

I stumbled upon a problem a few times. It’s either this or error: index: 0 size: 0. Why is this happening. I am relatively new to this but I can’t do anything. It sometimes fixes on itself and at other times it just does…

---

## [Need help with my project](https://discourse.processing.org/t/need-help-with-my-project/26210)

<div class="topic-metadata">

**Author:** [@Cheshire1](https://discourse.processing.org/u/Cheshire1)\
**Replies:** 9\
**Last updated:** [December 13, 2020, 9:19pm UTC](https://discourse.processing.org/t/need-help-with-my-project/26210 "2020-12-13T21:19:11Z")

</div>

Hello I’m stuck on my project I just need to end my game after the timer is 0 and display a screen that says game over with the score but the timer just keeps going to negative and wouldn’t stop. I would also like if any…

---

## [How to create an infinite 2D array list map](https://discourse.processing.org/t/how-to-create-an-infinite-2d-array-list-map/26191)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 2\
**Last updated:** [December 13, 2020, 9:13pm UTC](https://discourse.processing.org/t/how-to-create-an-infinite-2d-array-list-map/26191 "2020-12-13T21:13:52Z")

</div>

Hi! I recently made the game of life. I am interested in how to create infinite map (in all directions) The arrays would be like (imagine a graph window): So the arrays would be ++, ±, -+, --. Would this be a viabl…

---

## [I have an assignment to do but its kind of confusing and I want to know if what I did is correct (get Minimum)](https://discourse.processing.org/t/i-have-an-assignment-to-do-but-its-kind-of-confusing-and-i-want-to-know-if-what-i-did-is-correct-get-minimum/26140)

<div class="topic-metadata">

**Author:** [@DijaAngel](https://discourse.processing.org/u/DijaAngel)\
**Replies:** 1\
**Last updated:** [December 11, 2020, 6:14pm UTC](https://discourse.processing.org/t/i-have-an-assignment-to-do-but-its-kind-of-confusing-and-i-want-to-know-if-what-i-did-is-correct-get-minimum/26140 "2020-12-11T18:14:47Z")

</div>

Write a program which has a global array of integers with values assigned to the array. • Write a function ‘getArrayMin’ to return the minimum value in the array. • Draw a circle in the centre of the window with the…

---

## [Move objekt with mouse](https://discourse.processing.org/t/move-objekt-with-mouse/26185)

<div class="topic-metadata">

**Author:** [@Wengi](https://discourse.processing.org/u/Wengi)\
**Replies:** 1\
**Last updated:** [December 13, 2020, 2:59pm UTC](https://discourse.processing.org/t/move-objekt-with-mouse/26185 "2020-12-13T14:59:54Z")

</div>

Good Morning Does anyone of you know how to move an object with the mouse. So if I go to the left with the mouse, the object also goes to the left. With kind regards

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

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