# Latest

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

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

**Page:** 403

---

## [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…

---

## [Sketch resets on rotating](https://discourse.processing.org/t/sketch-resets-on-rotating/5522)

<div class="topic-metadata">

**Author:** [@FurryNightShade](https://discourse.processing.org/u/FurryNightShade)\
**Replies:** 11\
**Last updated:** [January 16, 2020, 3:47pm UTC](https://discourse.processing.org/t/sketch-resets-on-rotating/5522 "2020-01-16T15:47:38Z")

</div>

Hello, on Android, every time I rotate the screen, the sketch resets / restarts. Is there a way to disable this or should I fix the orientation and use gyroscope to detect rotation? If this is duplicate, could you send…

---

## [Only take the Top One](https://discourse.processing.org/t/only-take-the-top-one/17115)

<div class="topic-metadata">

**Author:** [@phoebus](https://discourse.processing.org/u/phoebus)\
**Replies:** 3\
**Last updated:** [January 16, 2020, 12:18pm UTC](https://discourse.processing.org/t/only-take-the-top-one/17115 "2020-01-16T12:18:51Z")

</div>

Hi there, long time no see :slight\_smile: I want to make some sort of 2d picking on a 2D sketch: I made a test “isOver” on my objects, so my objects change color when mouse is over ( dist(mouseX…) So in my main I get …

---

## [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…

---

## [Font search for archive](https://discourse.processing.org/t/font-search-for-archive/17053)

<div class="topic-metadata">

**Author:** [@NoName](https://discourse.processing.org/u/NoName)\
**Replies:** 21\
**Last updated:** [January 16, 2020, 10:52am UTC](https://discourse.processing.org/t/font-search-for-archive/17053 "2020-01-16T10:52:39Z")

</div>

Please, ask for help. I need different fonts for my application. And in general, it’s nice to have a stock of different fonts. If you can, send me a link to your fonts. Archive a set or several pieces - how many are. …

---

## [P5.play - Create Sprite on a drawing canvas](https://discourse.processing.org/t/p5-play-create-sprite-on-a-drawing-canvas/17111)

<div class="topic-metadata">

**Author:** [@criacuervos](https://discourse.processing.org/u/criacuervos)\
**Replies:** 8\
**Last updated:** [January 16, 2020, 3:45am UTC](https://discourse.processing.org/t/p5-play-create-sprite-on-a-drawing-canvas/17111 "2020-01-16T03:45:29Z")

</div>

Hi everyone, I’m trying to figure out if it is possible to use createSprite/makeSprite from the p5.play library and render that on top of a drawing canvas I already have. Right now I call drawSprites() inside the draw(…

---

## [Upload a whole project to the p5 web editor](https://discourse.processing.org/t/upload-a-whole-project-to-the-p5-web-editor/16915)

<div class="topic-metadata">

**Author:** [@ursula](https://discourse.processing.org/u/ursula)\
**Replies:** 2\
**Last updated:** [January 15, 2020, 10:10pm UTC](https://discourse.processing.org/t/upload-a-whole-project-to-the-p5-web-editor/16915 "2020-01-15T22:10:58Z")

</div>

I understand how to download a full project, but is there a way to upload an entire project? I teach with P5.js and am exploring git education for collaboration and version control. I can’t find a graceful way to use …

---

## [Assigning mouseOver to object in instance mode](https://discourse.processing.org/t/assigning-mouseover-to-object-in-instance-mode/17104)

<div class="topic-metadata">

**Author:** [@lnp](https://discourse.processing.org/u/lnp)\
**Replies:** 4\
**Last updated:** [January 15, 2020, 9:40pm UTC](https://discourse.processing.org/t/assigning-mouseover-to-object-in-instance-mode/17104 "2020-01-15T21:40:40Z")

</div>

Hello peeps! I don’t really see how I can assign a mouseOver listener to generated objects in instance mode. This doesn’t work for obvious reasons (looking for the function in the object). I tried p.glyphs\_to\_show\[n\].m…

---

## [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.

---

## [Processing window not showing in screenshot](https://discourse.processing.org/t/processing-window-not-showing-in-screenshot/2009)

<div class="topic-metadata">

**Author:** [@ben\_suddenly](https://discourse.processing.org/u/ben_suddenly)\
**Replies:** 5\
**Last updated:** [January 15, 2020, 2:40pm UTC](https://discourse.processing.org/t/processing-window-not-showing-in-screenshot/2009 "2020-01-15T14:40:45Z")

</div>

after i finally got everything running reasonably well i’ve noticed that when i take a screenshot of the full desktop the processing sketch window is black button.py is running scrot (in terminal) on button press, whi…

---

## [How to play same GL video on two windows](https://discourse.processing.org/t/how-to-play-same-gl-video-on-two-windows/2623)

<div class="topic-metadata">

**Author:** [@AlexandreRangel](https://discourse.processing.org/u/AlexandreRangel)\
**Replies:** 10\
**Last updated:** [January 15, 2020, 12:30pm UTC](https://discourse.processing.org/t/how-to-play-same-gl-video-on-two-windows/2623 "2020-01-15T12:30:19Z")

</div>

Hello P5 friends, how can I play the same GLMovie instance on two windows? Here’s my code, with the error line marked: import gohai.glvideo.\*; ControlFrame cf; GLMovie myMovie; void settings() { size(400, 400, P3D)…

---

## [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…

---

## [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…

---

## [Which issue to pick for newcomers](https://discourse.processing.org/t/which-issue-to-pick-for-newcomers/16981)

<div class="topic-metadata">

**Author:** [@thegoodguy](https://discourse.processing.org/u/thegoodguy)\
**Replies:** 2\
**Last updated:** [January 14, 2020, 3:56am UTC](https://discourse.processing.org/t/which-issue-to-pick-for-newcomers/16981 "2020-01-14T03:56:09Z")

</div>

their aren’t any issues left in beginners label,i want to contribute but , which issue should i pick now…

---

## [A p5.js cheat sheet for beginners!](https://discourse.processing.org/t/a-p5-js-cheat-sheet-for-beginners/8236)

<div class="topic-metadata">

**Author:** [@bmoren](https://discourse.processing.org/u/bmoren)\
**Replies:** 27\
**Last updated:** [January 13, 2020, 11:53pm UTC](https://discourse.processing.org/t/a-p5-js-cheat-sheet-for-beginners/8236 "2020-01-13T23:53:57Z")

</div>

I’ve made a cheat sheet for beginners for my workshop at PCD @ Minneapolis tomorrow. I figured some folks here might like to see it / use it too! Download PDF here!

---

## [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…

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

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