# Processing

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

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

**Page:** 193

---

## [Best instagram programming comunity](https://discourse.processing.org/t/best-instagram-programming-comunity/22788)

<div class="topic-metadata">

**Author:** [@Arnau](https://discourse.processing.org/u/Arnau)\
**Replies:** 0\
**Last updated:** [July 23, 2020, 6:50am UTC](https://discourse.processing.org/t/best-instagram-programming-comunity/22788 "2020-07-23T06:50:51Z")

</div>

I discovered best programming account on instagram! The only drawback is that the account is in spanish… Anyway I recomend it: @honkcode

---

## [Toggle Button Dependency](https://discourse.processing.org/t/toggle-button-dependency/22755)

<div class="topic-metadata">

**Author:** [@carlos.411](https://discourse.processing.org/u/carlos.411)\
**Replies:** 14\
**Last updated:** [July 22, 2020, 5:24pm UTC](https://discourse.processing.org/t/toggle-button-dependency/22755 "2020-07-22T17:24:50Z")

</div>

Hello everyone! I have a program with some toggles running, and I want a 'Main" Button to be able to reset the toggles to their initial position/value. Is there a way to do this? and if so how should I go about it. Th…

---

## [How to generate a multi-color blur gradation from a specified image?](https://discourse.processing.org/t/how-to-generate-a-multi-color-blur-gradation-from-a-specified-image/22779)

<div class="topic-metadata">

**Author:** [@Soh](https://discourse.processing.org/u/Soh)\
**Replies:** 2\
**Last updated:** [July 22, 2020, 1:03pm UTC](https://discourse.processing.org/t/how-to-generate-a-multi-color-blur-gradation-from-a-specified-image/22779 "2020-07-22T13:03:44Z")

</div>

Is there any possible way to generate a multi-color blur gradation depends on an image via Processing? For example, the lyrics UI background of Apple Music. It’s auto-generated from CD jacket image.

---

## [Making tons of bullets flying in random directions](https://discourse.processing.org/t/making-tons-of-bullets-flying-in-random-directions/22745)

<div class="topic-metadata">

**Author:** [@qewer3322](https://discourse.processing.org/u/qewer3322)\
**Replies:** 9\
**Last updated:** [July 22, 2020, 7:30am UTC](https://discourse.processing.org/t/making-tons-of-bullets-flying-in-random-directions/22745 "2020-07-22T07:30:02Z")

</div>

So I have a game here: int x = 500; int y = 300; int f1 = 255; int f2 = 255; int f3 = 255; int ap = 120; int hp = 190; boolean showrange = true; PFont font; float xSpeed = 0; float ySpeed = 0; BulletSystem b1; boolean…

---

## [Top-down game template](https://discourse.processing.org/t/top-down-game-template/22770)

<div class="topic-metadata">

**Author:** [@Edgard142ofWelshdale](https://discourse.processing.org/u/Edgard142ofWelshdale)\
**Replies:** 1\
**Last updated:** [July 22, 2020, 1:51am UTC](https://discourse.processing.org/t/top-down-game-template/22770 "2020-07-22T01:51:03Z")

</div>

This is a template I have been using personally to get started quick with a new top-down game without doing all the simple stuff like player movement for the tenth time. I’m posting this in the Beginners section because …

---

## [Moving a player rectangle smoothly](https://discourse.processing.org/t/moving-a-player-rectangle-smoothly/22763)

<div class="topic-metadata">

**Author:** [@Edgard142ofWelshdale](https://discourse.processing.org/u/Edgard142ofWelshdale)\
**Replies:** 3\
**Last updated:** [July 21, 2020, 10:18pm UTC](https://discourse.processing.org/t/moving-a-player-rectangle-smoothly/22763 "2020-07-21T22:18:03Z")

</div>

Hello! I like making simple arcade-like games in processing and have always had an issue with smooth movement. At first, I was using the void keyPressed() function to move the player. void keyPressed()//keypressed fuct…

---

## [Fancy gradient rainbow color on text?](https://discourse.processing.org/t/fancy-gradient-rainbow-color-on-text/22686)

<div class="topic-metadata">

**Author:** [@qewer3322](https://discourse.processing.org/u/qewer3322)\
**Replies:** 5\
**Last updated:** [July 21, 2020, 5:55pm UTC](https://discourse.processing.org/t/fancy-gradient-rainbow-color-on-text/22686 "2020-07-21T17:55:25Z")

</div>

What I want to do is basically this: but it is going through the text like this: I don’t exactly know where to start here or what I should do.

---

## [Delete post (no longer necessary)](https://discourse.processing.org/t/delete-post-no-longer-necessary/22694)

<div class="topic-metadata">

**Author:** [@carlos.411](https://discourse.processing.org/u/carlos.411)\
**Replies:** 3\
**Last updated:** [July 21, 2020, 12:01pm UTC](https://discourse.processing.org/t/delete-post-no-longer-necessary/22694 "2020-07-21T12:01:12Z")

</div>

DELETE POST (did not receive the necessary help, and was able to solve on my own).

---

## [ArrayIndexoutofboundsexception: 9](https://discourse.processing.org/t/arrayindexoutofboundsexception-9/22702)

<div class="topic-metadata">

**Author:** [@KGS](https://discourse.processing.org/u/KGS)\
**Replies:** 2\
**Last updated:** [July 21, 2020, 10:33am UTC](https://discourse.processing.org/t/arrayindexoutofboundsexception-9/22702 "2020-07-21T10:33:31Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Im getting ArrayIndexoutofboundsexception: 9 error as I read data from serial port.

---

## [Objects in objects](https://discourse.processing.org/t/objects-in-objects/22486)

<div class="topic-metadata">

**Author:** [@carnalizer](https://discourse.processing.org/u/carnalizer)\
**Replies:** 10\
**Last updated:** [July 21, 2020, 10:13am UTC](https://discourse.processing.org/t/objects-in-objects/22486 "2020-07-21T10:13:42Z")

</div>

Hi, I have a mostly theoretical question about objects that have objects (or contain an ArrayList of objects). Inside the nested objects, there’s no ‘built in’ way of getting to the original object, right? I can solve t…

---

## [Help me please how to remove little circle?](https://discourse.processing.org/t/help-me-please-how-to-remove-little-circle/22564)

<div class="topic-metadata">

**Author:** [@Rai](https://discourse.processing.org/u/Rai)\
**Replies:** 26\
**Last updated:** [July 21, 2020, 6:24am UTC](https://discourse.processing.org/t/help-me-please-how-to-remove-little-circle/22564 "2020-07-21T06:24:28Z")

</div>

void setup() { size(640, 480); background(255); } void draw() { strokeWeight(10); stroke(255, 0, 0, 50); line(pmouseX, pmouseY, mouseX, mouseY); }

---

## [Downscaling an image to an array](https://discourse.processing.org/t/downscaling-an-image-to-an-array/22746)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 4\
**Last updated:** [July 20, 2020, 11:07pm UTC](https://discourse.processing.org/t/downscaling-an-image-to-an-array/22746 "2020-07-20T23:07:39Z")

</div>

currently stuck with this problem, and its probably easy however m brain cant figure it out. PImage img; ArrayList\<Float\> array = new ArrayList\<Float\>(); int cols = 202; int rows = 200; int res,ry; void setup(){ size…

---

## [Adjust text size based on screen resolution](https://discourse.processing.org/t/adjust-text-size-based-on-screen-resolution/22747)

<div class="topic-metadata">

**Author:** [@TechMaster04](https://discourse.processing.org/u/TechMaster04)\
**Replies:** 2\
**Last updated:** [July 20, 2020, 11:03pm UTC](https://discourse.processing.org/t/adjust-text-size-based-on-screen-resolution/22747 "2020-07-20T23:03:15Z")

</div>

Hello Recently I discovered how to make my programs resizable in Windows (Add surface.setResizable(true); in setup()) This led me to make a function that changes the location of certain elements based on resoloution…

---

## [Hi guys, I'm new to processing and I need help](https://discourse.processing.org/t/hi-guys-im-new-to-processing-and-i-need-help/22625)

<div class="topic-metadata">

**Author:** [@nhghi](https://discourse.processing.org/u/nhghi)\
**Replies:** 5\
**Last updated:** [July 20, 2020, 10:46pm UTC](https://discourse.processing.org/t/hi-guys-im-new-to-processing-and-i-need-help/22625 "2020-07-20T22:46:16Z")

</div>

so I’m trying to make an effect is like “Newton’s cradle”. I have n number of circles that go around my mouse. so the first n-1 circle go around my mouse with SPEED constance and the other circle go with 2\*SPEED with opp…

---

## [Beginner help with sound and interaction of objects](https://discourse.processing.org/t/beginner-help-with-sound-and-interaction-of-objects/22743)

<div class="topic-metadata">

**Author:** [@ahagele](https://discourse.processing.org/u/ahagele)\
**Replies:** 3\
**Last updated:** [July 20, 2020, 1:18pm UTC](https://discourse.processing.org/t/beginner-help-with-sound-and-interaction-of-objects/22743 "2020-07-20T13:18:43Z")

</div>

I am very VERY new at coding and I’m not sure how to make it so if the apple touches the basket then the score will increase by one; instead the score increases by one when it crosses the Y-axis of the basket so every ti…

---

## [Use of inches in the Canvas](https://discourse.processing.org/t/use-of-inches-in-the-canvas/22733)

<div class="topic-metadata">

**Author:** [@edduda1](https://discourse.processing.org/u/edduda1)\
**Replies:** 2\
**Last updated:** [July 20, 2020, 10:30am UTC](https://discourse.processing.org/t/use-of-inches-in-the-canvas/22733 "2020-07-20T10:30:46Z")

</div>

Hello, I working on a project to simulate an arm swinging (ex. pendulum) but want to se the actual dimensions of an arm. For example 27 inches in length. How can I actually get the length when the canvas is in pixels? …

---

## [Diagonal line - gap](https://discourse.processing.org/t/diagonal-line-gap/22724)

<div class="topic-metadata">

**Author:** [@Niprro](https://discourse.processing.org/u/Niprro)\
**Replies:** 4\
**Last updated:** [July 19, 2020, 3:24pm UTC](https://discourse.processing.org/t/diagonal-line-gap/22724 "2020-07-19T15:24:05Z")

</div>

Trying to make a diagonal line from 0,0 to 600,600 Please help me understand why is there a gap at the end of my line. Why is the line ending before the last bottom right point on the canvas ? void setup () { size (6…

---

## [3D room map by TFmini Lidar](https://discourse.processing.org/t/3d-room-map-by-tfmini-lidar/22709)

<div class="topic-metadata">

**Author:** [@eladsoll](https://discourse.processing.org/u/eladsoll)\
**Replies:** 6\
**Last updated:** [July 19, 2020, 2:26pm UTC](https://discourse.processing.org/t/3d-room-map-by-tfmini-lidar/22709 "2020-07-19T14:26:11Z")

</div>

Hi, I’m a beginner so I hope this time I worte as should. I’m trying to simulate room with TFmini lidar by using arduino Mega with serial port communication. The simulation is not good at all. I need help. My Arduino…

---

## [TFmini lidar simulation](https://discourse.processing.org/t/tfmini-lidar-simulation/22608)

<div class="topic-metadata">

**Author:** [@eladsoll](https://discourse.processing.org/u/eladsoll)\
**Replies:** 2\
**Last updated:** [July 19, 2020, 11:45am UTC](https://discourse.processing.org/t/tfmini-lidar-simulation/22608 "2020-07-19T11:45:50Z")

</div>

Hi, I’m a begginer and I’m tring to create a room simulation with my TFmini Lidar, the device works with serial communication. I diffeculties with my code, I’m trying to read from arduino and plot 3D as is. \</\> import…

---

## [3D simulation by TFmini lidar](https://discourse.processing.org/t/3d-simulation-by-tfmini-lidar/22708)

<div class="topic-metadata">

**Author:** [@eladsoll](https://discourse.processing.org/u/eladsoll)\
**Replies:** 2\
**Last updated:** [July 19, 2020, 11:38am UTC](https://discourse.processing.org/t/3d-simulation-by-tfmini-lidar/22708 "2020-07-19T11:38:52Z")

</div>

Hi, I’m a beginner , I’m trying to simulate 3D room map by TFmini LIDAR. I connected the sensor to arduino mega 2560 to communication pins. Moreover, I control 2 servo’s inorder to scan the room. This is my arduino cod…

---

## [Each argument is accessed by a MIDI controller. Camera eyeX,Y,Z control](https://discourse.processing.org/t/each-argument-is-accessed-by-a-midi-controller-camera-eyex-y-z-control/22716)

<div class="topic-metadata">

**Author:** [@sq20](https://discourse.processing.org/u/sq20)\
**Replies:** 1\
**Last updated:** [July 19, 2020, 9:48am UTC](https://discourse.processing.org/t/each-argument-is-accessed-by-a-midi-controller-camera-eyex-y-z-control/22716 "2020-07-19T09:48:39Z")

</div>

I’m trying to control the camera view using a MIDI controller. For each knob, we want to control it by attaching it to X, Y, and Z. But when I do X,Y,Z control in my code, when I touch the X knob, other knobs such as Y…

---

## [Is it possible to draw main graphics on a PGraphics?](https://discourse.processing.org/t/is-it-possible-to-draw-main-graphics-on-a-pgraphics/10055)

<div class="topic-metadata">

**Author:** [@clankill3r](https://discourse.processing.org/u/clankill3r)\
**Replies:** 13\
**Last updated:** [July 18, 2020, 8:55pm UTC](https://discourse.processing.org/t/is-it-possible-to-draw-main-graphics-on-a-pgraphics/10055 "2020-07-18T20:55:46Z")

</div>

Is it possible to draw g on a PGraphics? It should be done in P3D and it should be done without using loadPixels(); So something like this: PGraphics pg; void setup() { size(512, 512, P3D); pg = createGraphi…

---

## [Is Processing 4 more performant than Processing 3.x in graphics?](https://discourse.processing.org/t/is-processing-4-more-performant-than-processing-3-x-in-graphics/21307)

<div class="topic-metadata">

**Author:** [@erkosone](https://discourse.processing.org/u/erkosone)\
**Replies:** 2\
**Last updated:** [July 18, 2020, 8:48pm UTC](https://discourse.processing.org/t/is-processing-4-more-performant-than-processing-3-x-in-graphics/21307 "2020-07-18T20:48:08Z")

</div>

Hi comunity! I have a question… Is processing 4 significatively more performant than processign 3.x in P2D and P3D render modes?

---

## [Desperate for Help, due in 2 days! Beginner & Confused, Rotating STRING text](https://discourse.processing.org/t/desperate-for-help-due-in-2-days-beginner-confused-rotating-string-text/22692)

<div class="topic-metadata">

**Author:** [@Sugar](https://discourse.processing.org/u/Sugar)\
**Replies:** 7\
**Last updated:** [July 18, 2020, 7:56pm UTC](https://discourse.processing.org/t/desperate-for-help-due-in-2-days-beginner-confused-rotating-string-text/22692 "2020-07-18T19:56:28Z")

</div>

Hi there, I am an Intern to an artist, and I have 0 experience coding, and frankly, I’m hating every second of it. But I have been tasked for Monday (July 20th 2020) to create a code for the show where the words “Press”…

---

## [Could not run the sketch (Target VM failed to initialize). Kinect V2](https://discourse.processing.org/t/could-not-run-the-sketch-target-vm-failed-to-initialize-kinect-v2/22687)

<div class="topic-metadata">

**Author:** [@HugoD](https://discourse.processing.org/u/HugoD)\
**Replies:** 0\
**Last updated:** [July 17, 2020, 2:20pm UTC](https://discourse.processing.org/t/could-not-run-the-sketch-target-vm-failed-to-initialize-kinect-v2/22687 "2020-07-17T14:20:30Z")

</div>

Hi, I’m getting this error when I run the examples from the OpenCV\_Processing library with a kinect V2. “Could not run the sketch (Target VM failed to initialize).” I’m using Windows 10 Pro 64-bit Intel® Core™ i7-975…

---

## [Pyramid Rect Pattern](https://discourse.processing.org/t/pyramid-rect-pattern/22689)

<div class="topic-metadata">

**Author:** [@chemicalite](https://discourse.processing.org/u/chemicalite)\
**Replies:** 7\
**Last updated:** [July 17, 2020, 8:15pm UTC](https://discourse.processing.org/t/pyramid-rect-pattern/22689 "2020-07-17T20:15:22Z")

</div>

Hello! I’m making a pyramid pattern with rects using for loops. It’s a bit hard to explain, but basically, I would like to divide a square canvas into four triangular quadrants and fill each side with pyramids made from…

---

## [Download file from FTP server?](https://discourse.processing.org/t/download-file-from-ftp-server/22651)

<div class="topic-metadata">

**Author:** [@jetjaguar](https://discourse.processing.org/u/jetjaguar)\
**Replies:** 3\
**Last updated:** [July 17, 2020, 5:03pm UTC](https://discourse.processing.org/t/download-file-from-ftp-server/22651 "2020-07-17T17:03:05Z")

</div>

I feel like I’m missing something simple here. I just want to download and then display an image file from a remote, public FTP server. When I try to do so I get “The file xxx is missing or inaccessible, make sure the U…

---

## [Object Property Implementation](https://discourse.processing.org/t/object-property-implementation/22628)

<div class="topic-metadata">

**Author:** [@VegasBob](https://discourse.processing.org/u/VegasBob)\
**Replies:** 18\
**Last updated:** [July 17, 2020, 3:43pm UTC](https://discourse.processing.org/t/object-property-implementation/22628 "2020-07-17T15:43:51Z")

</div>

Just getting started with Java using the Processing IDE, and I can’t seem to find a way to properly code my Classes to produce properties that will behave like genuine properties - meaning that I can use: Employee.Name …

---

## [Imported SVG is PShape GROUP, cannot convert to ArrayList of PVector](https://discourse.processing.org/t/imported-svg-is-pshape-group-cannot-convert-to-arraylist-of-pvector/22642)

<div class="topic-metadata">

**Author:** [@loremipsum](https://discourse.processing.org/u/loremipsum)\
**Replies:** 2\
**Last updated:** [July 17, 2020, 2:06pm UTC](https://discourse.processing.org/t/imported-svg-is-pshape-group-cannot-convert-to-arraylist-of-pvector/22642 "2020-07-17T14:06:38Z")

</div>

I’ve been trying to read in a .svg i made in Illustrator. It imports/displays properly as a PShape, but I’m hoping to convert the shape into an ArrayList of PVectors so I can manipulate the shape. Here’s what I’ve done: …

---

## [Did macOS Catalina (or something) break the Video library?](https://discourse.processing.org/t/did-macos-catalina-or-something-break-the-video-library/14699)

<div class="topic-metadata">

**Author:** [@E\_R](https://discourse.processing.org/u/E_R)\
**Replies:** 23\
**Last updated:** [July 17, 2020, 4:02am UTC](https://discourse.processing.org/t/did-macos-catalina-or-something-break-the-video-library/14699 "2020-07-17T04:02:33Z")

</div>

Hi, I am currently unable to run any code using processing.video's Capture object- including the basic Example sketches. It seems that instantiating the Capture object is where the crash occurs, and it happens regardle…

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

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