# Latest

**URL:** https://discourse.processing.org/latest.md?page=582

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

**Page:** 583

---

## [Start/Stop button | can't figure this out](https://discourse.processing.org/t/start-stop-button-cant-figure-this-out/3784)

<div class="topic-metadata">

**Author:** [@SolDrakibane](https://discourse.processing.org/u/SolDrakibane)\
**Replies:** 2\
**Last updated:** [September 24, 2018, 11:10am UTC](https://discourse.processing.org/t/start-stop-button-cant-figure-this-out/3784 "2018-09-24T11:10:34Z")

</div>

So, the code below creates a bullseye that moves from the middle to the right and starts at the left again and loops. When i click the Start button the bullseye moves, the text switches to Stop. When i click the button a…

---

## [Contributed Tools developed over the summer for Google Summer of Code!](https://discourse.processing.org/t/contributed-tools-developed-over-the-summer-for-google-summer-of-code/3380)

<div class="topic-metadata">

**Author:** [@jae\_notjane](https://discourse.processing.org/u/jae_notjane)\
**Replies:** 14\
**Last updated:** [September 24, 2018, 3:13am UTC](https://discourse.processing.org/t/contributed-tools-developed-over-the-summer-for-google-summer-of-code/3380 "2018-09-24T03:13:46Z")

</div>

Hi everyone, My name is Jae and I participated in Google Summer of Code with The Processing Foundation this summer! As part of my project, I created two contributed Tools–Getting Started and Reference Tool–for the PDE. …

---

## [Playing videos frame by frame](https://discourse.processing.org/t/playing-videos-frame-by-frame/2900)

<div class="topic-metadata">

**Author:** [@grumo](https://discourse.processing.org/u/grumo)\
**Replies:** 4\
**Last updated:** [September 24, 2018, 2:25am UTC](https://discourse.processing.org/t/playing-videos-frame-by-frame/2900 "2018-09-24T02:25:45Z")

</div>

I found a few posts in older forums but I can’t find a definitive answer. I have multiple videos in a collage. I want to save the frame of the whole composition to render it in a sequence of PNGs. The thing is: I can’t…

---

## [Transform text to colored pixels?](https://discourse.processing.org/t/transform-text-to-colored-pixels/3633)

<div class="topic-metadata">

**Author:** [@MAKESHADY](https://discourse.processing.org/u/MAKESHADY)\
**Replies:** 3\
**Last updated:** [September 24, 2018, 2:03am UTC](https://discourse.processing.org/t/transform-text-to-colored-pixels/3633 "2018-09-24T02:03:20Z")

</div>

I would like to create and image composed by a text. I would like to say on processing " a = blue pixel, b = red pixel … ". Transform 100 letters on 10x10 image ( or larger ). THX !

---

## [Drag and Drop Rectangle](https://discourse.processing.org/t/drag-and-drop-rectangle/3762)

<div class="topic-metadata">

**Author:** [@butterycowegg](https://discourse.processing.org/u/butterycowegg)\
**Replies:** 3\
**Last updated:** [September 23, 2018, 6:01pm UTC](https://discourse.processing.org/t/drag-and-drop-rectangle/3762 "2018-09-23T18:01:48Z")

</div>

I am new to Processing and am trying to write a program that allows you to drag and drop a rectangle. Whenever I click on the rectangle, the mouse locations becomes the new top left corner of the rectangle. How can I mak…

---

## [Can u help me with my code?](https://discourse.processing.org/t/can-u-help-me-with-my-code/3770)

<div class="topic-metadata">

**Author:** [@Blue\_Obsidian](https://discourse.processing.org/u/Blue_Obsidian)\
**Replies:** 1\
**Last updated:** [September 23, 2018, 5:07pm UTC](https://discourse.processing.org/t/can-u-help-me-with-my-code/3770 "2018-09-23T17:07:45Z")

</div>

The collisions don’t work and I don’t know why, here’s the link (the condition in checkCollisions doesn’t turn to true): https://editor.p5js.org/Dark\_Obsidian/sketches/SykuR3fKm

---

## [From 0 to 100 script](https://discourse.processing.org/t/from-0-to-100-script/3667)

<div class="topic-metadata">

**Author:** [@netillo](https://discourse.processing.org/u/netillo)\
**Replies:** 4\
**Last updated:** [September 23, 2018, 4:43am UTC](https://discourse.processing.org/t/from-0-to-100-script/3667 "2018-09-23T04:43:22Z")

</div>

Hello everyone, I’m trying to write a script that goes from which goes from 0 to 100 in 10 minutes with the look of a digital clock. I hope someone can help. Thank you! Cordially, Netillo

---

## [\[SOLVED\] Unexpected token:processing error in code drawn from an author's code](https://discourse.processing.org/t/solved-unexpected-token-processing-error-in-code-drawn-from-an-authors-code/3653)

<div class="topic-metadata">

**Author:** [@bobhurd](https://discourse.processing.org/u/bobhurd)\
**Replies:** 17\
**Last updated:** [September 23, 2018, 12:52am UTC](https://discourse.processing.org/t/solved-unexpected-token-processing-error-in-code-drawn-from-an-authors-code/3653 "2018-09-23T00:52:25Z")

</div>

The following code yields the error “unexpected token: processing”. What am I missing? It’s a straight copy of an author’s code (from “Arduino Projects Book”) that apparently did not get this error… Did I not install …

---

## [Focus on item from ArrayList in zty.pe like game](https://discourse.processing.org/t/focus-on-item-from-arraylist-in-zty-pe-like-game/3522)

<div class="topic-metadata">

**Author:** [@Pyrros](https://discourse.processing.org/u/Pyrros)\
**Replies:** 14\
**Last updated:** [September 22, 2018, 10:52pm UTC](https://discourse.processing.org/t/focus-on-item-from-arraylist-in-zty-pe-like-game/3522 "2018-09-22T22:52:21Z")

</div>

I am in the process of making a zty.pe game, and I have defined classes for own ship, enemies (those meant to be shot with words) as well as a projectile which own ship fires. The Enemy-class item has a string assigned w…

---

## [How to use a variable name that's stored inside the variable? Reflection?](https://discourse.processing.org/t/how-to-use-a-variable-name-thats-stored-inside-the-variable-reflection/3730)

<div class="topic-metadata">

**Author:** [@Luka](https://discourse.processing.org/u/Luka)\
**Replies:** 7\
**Last updated:** [September 22, 2018, 5:12pm UTC](https://discourse.processing.org/t/how-to-use-a-variable-name-thats-stored-inside-the-variable-reflection/3730 "2018-09-22T17:12:26Z")

</div>

I’m trying to control a sketch through OSC from another application (SuperCollider). I want to be able to pass control data (integers) to various variables in the sketch by naming them in the OSC message. For example I …

---

## [Nested loops, ending "early"](https://discourse.processing.org/t/nested-loops-ending-early/3726)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 3\
**Last updated:** [September 22, 2018, 4:49pm UTC](https://discourse.processing.org/t/nested-loops-ending-early/3726 "2018-09-22T16:49:00Z")

</div>

Now I have this question about nested loops. With the buildTiles() method, I would like to have the option to create fewer Tile objects than grid cells, but still number them in the “id” field, and assign the grid cell …

---

## [\[SOLVED\] Setting PGraphics background in setup() causes NullPointerException?](https://discourse.processing.org/t/solved-setting-pgraphics-background-in-setup-causes-nullpointerexception/3736)

<div class="topic-metadata">

**Author:** [@aaronshenhao](https://discourse.processing.org/u/aaronshenhao)\
**Replies:** 1\
**Last updated:** [September 22, 2018, 1:35pm UTC](https://discourse.processing.org/t/solved-setting-pgraphics-background-in-setup-causes-nullpointerexception/3736 "2018-09-22T13:35:00Z")

</div>

I’m using the Java version for Processing and I’ve been following a tutorial on PGraphics which uses p5.js. At one point, they initialize the background for the PGraphics layer in setup. However, when I try it, it produc…

---

## [Quiz game - need help](https://discourse.processing.org/t/quiz-game-need-help/3166)

<div class="topic-metadata">

**Author:** [@Pedro](https://discourse.processing.org/u/Pedro)\
**Replies:** 30\
**Last updated:** [September 22, 2018, 12:42pm UTC](https://discourse.processing.org/t/quiz-game-need-help/3166 "2018-09-22T12:42:24Z")

</div>

I’m doing a Quiz game, so I want to put the questions in a different order automatically. I would have to number each question and use random (), but I do not know how it is numbered. I have not done anything yet.

---

## [Accessing functions from Java Generics](https://discourse.processing.org/t/accessing-functions-from-java-generics/3391)

<div class="topic-metadata">

**Author:** [@Sarah](https://discourse.processing.org/u/Sarah)\
**Replies:** 18\
**Last updated:** [September 10, 2018, 11:58am UTC](https://discourse.processing.org/t/accessing-functions-from-java-generics/3391 "2018-09-10T11:58:30Z")

</div>

Hi! Recently I’ve been making some classes to carry out functions, but when making them, I’ve only been able to use 1 class for one object. For example, class Sorter { Point\[\] points; Sorter(Point\[\] points\_) { …

---

## [Centering a point cloud/OBJ object](https://discourse.processing.org/t/centering-a-point-cloud-obj-object/3493)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 11\
**Last updated:** [September 22, 2018, 6:11am UTC](https://discourse.processing.org/t/centering-a-point-cloud-obj-object/3493 "2018-09-22T06:11:25Z")

</div>

Hi all, I have a problem locating on the canvas a large point cloud file (.txt / .xyz) that I have created with Meshlab. I’ve tried to translate the coordinates numerous times with the translate() function but not onl…

---

## [Processing sketch as Mac Os Screen Saver error](https://discourse.processing.org/t/processing-sketch-as-mac-os-screen-saver-error/3724)

<div class="topic-metadata">

**Author:** [@mchelle](https://discourse.processing.org/u/mchelle)\
**Replies:** 2\
**Last updated:** [September 22, 2018, 1:31am UTC](https://discourse.processing.org/t/processing-sketch-as-mac-os-screen-saver-error/3724 "2018-09-22T01:31:44Z")

</div>

I made a sketch and I saved it as an executable file for mac os. I changed the extension from .app to .saver and installed it as a screen saver but my System Preferences is showing me an error when I preview the screen s…

---

## [Creative Coding for Artists, Oxford UK (workshop series)](https://discourse.processing.org/t/creative-coding-for-artists-oxford-uk-workshop-series/3720)

<div class="topic-metadata">

**Author:** [@neilcsmith](https://discourse.processing.org/u/neilcsmith)\
**Replies:** 0\
**Last updated:** [September 21, 2018, 7:02pm UTC](https://discourse.processing.org/t/creative-coding-for-artists-oxford-uk-workshop-series/3720 "2018-09-21T19:02:24Z")

</div>

I’ll be leading a series of workshops at OVADA in Oxford on Creative Coding for Artists, starting on October 2nd. This six-week short course is an opportunity for any skill level, from complete beginners to those with p…

---

## [\[SOLVED\] serial port write with no delay between bytes when sending hex values](https://discourse.processing.org/t/solved-serial-port-write-with-no-delay-between-bytes-when-sending-hex-values/3712)

<div class="topic-metadata">

**Author:** [@matt6ft9](https://discourse.processing.org/u/matt6ft9)\
**Replies:** 2\
**Last updated:** [September 21, 2018, 3:27pm UTC](https://discourse.processing.org/t/solved-serial-port-write-with-no-delay-between-bytes-when-sending-hex-values/3712 "2018-09-21T15:27:58Z")

</div>

I’m trying to send hex data out of the FTDI serial port IC at 19200, 8N1. (windows 7, processing 3.3.6) When I use this code: public void button2(){ int i; int collect\[\] = {0x55,0x02,0x50,0xFE,0x20,0x20,0x20,0x20,0…

---

## [\[SOLVED\] Making the contents of a frame relative to its size](https://discourse.processing.org/t/solved-making-the-contents-of-a-frame-relative-to-its-size/3595)

<div class="topic-metadata">

**Author:** [@delsey](https://discourse.processing.org/u/delsey)\
**Replies:** 4\
**Last updated:** [September 21, 2018, 10:56am UTC](https://discourse.processing.org/t/solved-making-the-contents-of-a-frame-relative-to-its-size/3595 "2018-09-21T10:56:15Z")

</div>

Is there a way of making the contents in a frame relative to its size to make it completely resizable without losing functionality? I already have an idea of how to it but a small tutorial would be quite nice.

---

## [Comic Book Colors](https://discourse.processing.org/t/comic-book-colors/1824)

<div class="topic-metadata">

**Author:** [@Kevin](https://discourse.processing.org/u/Kevin)\
**Replies:** 4\
**Last updated:** [September 21, 2018, 7:59am UTC](https://discourse.processing.org/t/comic-book-colors/1824 "2018-09-21T07:59:27Z")

</div>

I recently put together a visualization that takes the first 100 pages of various comic books and shows the colors used by them. For example here is Saga: And here is Pretty Deadly: It’s really interesting to co…

---

## [Clearing an ArrayList](https://discourse.processing.org/t/clearing-an-arraylist/3697)

<div class="topic-metadata">

**Author:** [@eduzal](https://discourse.processing.org/u/eduzal)\
**Replies:** 12\
**Last updated:** [September 21, 2018, 1:25am UTC](https://discourse.processing.org/t/clearing-an-arraylist/3697 "2018-09-21T01:25:25Z")

</div>

I’ve around this issue a few times. I have a particle system that contains an ArrayList of particles. I use a separate window for the interface programmed using Control P5. usually my particle system lies under a boolea…

---

## [\[SOLVED\] SinOsc in draw loop is very choppy (Sound Library)](https://discourse.processing.org/t/solved-sinosc-in-draw-loop-is-very-choppy-sound-library/3701)

<div class="topic-metadata">

**Author:** [@bobhurd](https://discourse.processing.org/u/bobhurd)\
**Replies:** 3\
**Last updated:** [September 20, 2018, 7:13pm UTC](https://discourse.processing.org/t/solved-sinosc-in-draw-loop-is-very-choppy-sound-library/3701 "2018-09-20T19:13:45Z")

</div>

I am a novice programmer having a problem with the Sound library. I am trying to use the SinOsc function to generate a smooth sine wave. I also want it to vary the pitch as it reads serial data (range 0 to 255) that is…

---

## [Setting all drum machine buttons to 0 with Minim Library](https://discourse.processing.org/t/setting-all-drum-machine-buttons-to-0-with-minim-library/3516)

<div class="topic-metadata">

**Author:** [@anon57009815](https://discourse.processing.org/u/anon57009815)\
**Replies:** 19\
**Last updated:** [September 20, 2018, 6:52pm UTC](https://discourse.processing.org/t/setting-all-drum-machine-buttons-to-0-with-minim-library/3516 "2018-09-20T18:52:51Z")

</div>

Hello everyone! I am using Processing Audio Library Minim and the example -\> Drum Machine I can post the code here, but it is an example of the library so I dont think its needed :stuck\_out\_tongue: Well, I am trying t…

---

## [Dragging a constrained object, and problems with conditional fill color](https://discourse.processing.org/t/dragging-a-constrained-object-and-problems-with-conditional-fill-color/3554)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 7\
**Last updated:** [September 20, 2018, 5:29pm UTC](https://discourse.processing.org/t/dragging-a-constrained-object-and-problems-with-conditional-fill-color/3554 "2018-09-20T17:29:51Z")

</div>

Hello. I have a sketch that draws a grid, and places a rectangular cursor which is constrained to the grid area, and snaps to the center of the nearest grid cell when the mouse is released. The center “Tile” for a grid c…

---

## [Using colors with variables](https://discourse.processing.org/t/using-colors-with-variables/3679)

<div class="topic-metadata">

**Author:** [@Lore](https://discourse.processing.org/u/Lore)\
**Replies:** 13\
**Last updated:** [September 20, 2018, 4:56pm UTC](https://discourse.processing.org/t/using-colors-with-variables/3679 "2018-09-20T16:56:12Z")

</div>

Hello. My problem is that when you press tab (to make the ellipse color be random) it works fine. But, when you change the size of the ellipse (with keys 1-3) the ellipse color isn’t random anymore, but on the last rando…

---

## [Eclipse setup and Processing core.jar for Libraries](https://discourse.processing.org/t/eclipse-setup-and-processing-core-jar-for-libraries/3686)

<div class="topic-metadata">

**Author:** [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Replies:** 1\
**Last updated:** [September 20, 2018, 2:13pm UTC](https://discourse.processing.org/t/eclipse-setup-and-processing-core-jar-for-libraries/3686 "2018-09-20T14:13:11Z")

</div>

Any advice for people who have used Eclipse with processing (especially for Library development) greatly appreciated. I’m curious about best practices – specifically, how you connect core.jar to Eclipse, and how/if that…

---

## [\[SOLVED\] Where are support files that are in the examples?](https://discourse.processing.org/t/solved-where-are-support-files-that-are-in-the-examples/3692)

<div class="topic-metadata">

**Author:** [@bobhurd](https://discourse.processing.org/u/bobhurd)\
**Replies:** 6\
**Last updated:** [September 20, 2018, 12:43pm UTC](https://discourse.processing.org/t/solved-where-are-support-files-that-are-in-the-examples/3692 "2018-09-20T12:43:57Z")

</div>

I am a novice programmer and brand new to the Processing language. I am trying to do the Processing code in the Examples webpage. I keep running across files that are referred to in the code that I can’t seem to find. …

---

## [Tabs, or keeping projects tidy](https://discourse.processing.org/t/tabs-or-keeping-projects-tidy/3690)

<div class="topic-metadata">

**Author:** [@jkagli](https://discourse.processing.org/u/jkagli)\
**Replies:** 7\
**Last updated:** [September 20, 2018, 12:43pm UTC](https://discourse.processing.org/t/tabs-or-keeping-projects-tidy/3690 "2018-09-20T12:43:36Z")

</div>

In Processing I got into the habit of using the tabs to split things up and keep it all tidy. I want to do something similar in p5js. If you check the link you can see that in the JS tab I have a huge (and ever expanding…

---

## [Debugger - symbols next to variables](https://discourse.processing.org/t/debugger-symbols-next-to-variables/3688)

<div class="topic-metadata">

**Author:** [@buc](https://discourse.processing.org/u/buc)\
**Replies:** 2\
**Last updated:** [September 20, 2018, 11:58am UTC](https://discourse.processing.org/t/debugger-symbols-next-to-variables/3688 "2018-09-20T11:58:29Z")

</div>

Hi, can anybody tell me what the symbols next to the variables mean when using the debugger? Thanks a lot!

---

## [Need help with mouseY](https://discourse.processing.org/t/need-help-with-mousey/3680)

<div class="topic-metadata">

**Author:** [@Lore](https://discourse.processing.org/u/Lore)\
**Replies:** 1\
**Last updated:** [September 19, 2018, 8:40pm UTC](https://discourse.processing.org/t/need-help-with-mousey/3680 "2018-09-19T20:40:34Z")

</div>

Hello, below I have pasted my code. What I have been working on, but couldn’t figure out how to preform it, is to not be able to draw the ellipse (when pressing on the mouse) on the text at the top of the screen. I have …

[Previous page](https://discourse.processing.org/latest.md?page=581)

[Next page](https://discourse.processing.org/latest.md?page=583)
