# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=519

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

**Page:** 520

---

## [Draw this Polygon using loops?](https://discourse.processing.org/t/draw-this-polygon-using-loops/1588)

<div class="topic-metadata">

**Author:** [@nerdboybi](https://discourse.processing.org/u/nerdboybi)\
**Replies:** 18\
**Last updated:** [February 26, 2019, 3:50pm UTC](https://discourse.processing.org/t/draw-this-polygon-using-loops/1588 "2019-02-26T15:50:35Z")

</div>

Its from a textbook and I just need a solution so I can get an idea on how to use loops

---

## [\[Very tiny little micro game\] 🐍 What do you think about this?](https://discourse.processing.org/t/very-tiny-little-micro-game-what-do-you-think-about-this/8697)

<div class="topic-metadata">

**Author:** [@Sky](https://discourse.processing.org/u/Sky)\
**Replies:** 5\
**Last updated:** [February 26, 2019, 12:43pm UTC](https://discourse.processing.org/t/very-tiny-little-micro-game-what-do-you-think-about-this/8697 "2019-02-26T12:43:11Z")

</div>

:snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake: :snake: :s…

---

## [P5.js on Chromebook offline without Linux?](https://discourse.processing.org/t/p5-js-on-chromebook-offline-without-linux/3422)

<div class="topic-metadata">

**Author:** [@steinlav](https://discourse.processing.org/u/steinlav)\
**Replies:** 2\
**Last updated:** [February 26, 2019, 12:27pm UTC](https://discourse.processing.org/t/p5-js-on-chromebook-offline-without-linux/3422 "2019-02-26T12:27:12Z")

</div>

Is it possible to run p5.js on a Chromebook offline without installing Linux? I have added Web Server for Chrome and Material Neutron. Is https://editor.p5js.org the best solution on a Chromebook?

---

## [How to take frame not from all window](https://discourse.processing.org/t/how-to-take-frame-not-from-all-window/8683)

<div class="topic-metadata">

**Author:** [@Grisha](https://discourse.processing.org/u/Grisha)\
**Replies:** 2\
**Last updated:** [February 26, 2019, 8:48am UTC](https://discourse.processing.org/t/how-to-take-frame-not-from-all-window/8683 "2019-02-26T08:48:45Z")

</div>

How to take frame not from all window? I need to save only one part of my window .

---

## [Animation for a quadrilateral polygon assistance](https://discourse.processing.org/t/animation-for-a-quadrilateral-polygon-assistance/8679)

<div class="topic-metadata">

**Author:** [@NationalRex22](https://discourse.processing.org/u/NationalRex22)\
**Replies:** 3\
**Last updated:** [February 25, 2019, 11:18pm UTC](https://discourse.processing.org/t/animation-for-a-quadrilateral-polygon-assistance/8679 "2019-02-25T23:18:05Z")

</div>

Hello, I’m interested in developing an animated loop for a quadrilateral polygon that slowly moves down vertically from its initial position to the exact position of a quadrilateral polygon of the same size. Finally, th…

---

## [SimpleOpenNI - Kinect depth map size](https://discourse.processing.org/t/simpleopenni-kinect-depth-map-size/8722)

<div class="topic-metadata">

**Author:** [@Jackieh111](https://discourse.processing.org/u/Jackieh111)\
**Replies:** 0\
**Last updated:** [February 25, 2019, 9:44pm UTC](https://discourse.processing.org/t/simpleopenni-kinect-depth-map-size/8722 "2019-02-25T21:44:04Z")

</div>

I’m using a Kinect for Windows on OSx with SimpleOpenNI - can anyone tell me why the depthMap is giving me a size of 640x480 when I am expecting it to be 512x424 which is the resolution for Kinect2?

---

## [How to mute minim filter](https://discourse.processing.org/t/how-to-mute-minim-filter/8610)

<div class="topic-metadata">

**Author:** [@b\_and\_z](https://discourse.processing.org/u/b_and_z)\
**Replies:** 6\
**Last updated:** [February 25, 2019, 5:30pm UTC](https://discourse.processing.org/t/how-to-mute-minim-filter/8610 "2019-02-25T17:30:01Z")

</div>

So I am building a synthesizer using the minim and oscP5 (controlling the synthesizer via touchOSC). Now I have this minim bandPass Filter set up, but I only want the filter to be active when a certain button is active (…

---

## [Draw from text file not working as expected](https://discourse.processing.org/t/draw-from-text-file-not-working-as-expected/8498)

<div class="topic-metadata">

**Author:** [@socraticbot](https://discourse.processing.org/u/socraticbot)\
**Replies:** 21\
**Last updated:** [February 25, 2019, 4:21pm UTC](https://discourse.processing.org/t/draw-from-text-file-not-working-as-expected/8498 "2019-02-25T16:21:52Z")

</div>

Hi all, I have a script which finds all the black pixels in an image along a spiral path and saves it to a text file. float r = 0; float theta = 0; PImage input; String\[\] output; void setup() { size(300, 300); bac…

---

## [keyPresssed not returning proper value](https://discourse.processing.org/t/keypresssed-not-returning-proper-value/8701)

<div class="topic-metadata">

**Author:** [@dragonheart0001](https://discourse.processing.org/u/dragonheart0001)\
**Replies:** 11\
**Last updated:** [February 25, 2019, 5:24am UTC](https://discourse.processing.org/t/keypresssed-not-returning-proper-value/8701 "2019-02-25T05:24:05Z")

</div>

I am trying to create a basic input interface for project I am working on and am running into a bug where the keyPressed variable always returns false. Here’s the basic idea of the code. void setup() { int startTime =…

---

## [Extending Kinect v2.0 cable](https://discourse.processing.org/t/extending-kinect-v2-0-cable/8649)

<div class="topic-metadata">

**Author:** [@Fausto](https://discourse.processing.org/u/Fausto)\
**Replies:** 2\
**Last updated:** [February 25, 2019, 4:49am UTC](https://discourse.processing.org/t/extending-kinect-v2-0-cable/8649 "2019-02-25T04:49:06Z")

</div>

Hi Processing community, for an installation I am working on at the moment, I need to have one Kinect v2.0 about 10m away from my computer. Ideally I would like to have the Kinect at 20m, but 10m away could potentially…

---

## [New Mac, Unable to Use Sound Library!](https://discourse.processing.org/t/new-mac-unable-to-use-sound-library/8695)

<div class="topic-metadata">

**Author:** [@storchzr](https://discourse.processing.org/u/storchzr)\
**Replies:** 1\
**Last updated:** [February 25, 2019, 12:50am UTC](https://discourse.processing.org/t/new-mac-unable-to-use-sound-library/8695 "2019-02-25T00:50:02Z")

</div>

Can anyone help me with this? I have a piece of code that uses input from the mic to create graphics. It worked on my old computer but won’t work on the new mac with touchbar for some reason. // Example 20-5: Live Input…

---

## [Scrubbing video with Microphone input](https://discourse.processing.org/t/scrubbing-video-with-microphone-input/8060)

<div class="topic-metadata">

**Author:** [@Sigsound](https://discourse.processing.org/u/Sigsound)\
**Replies:** 3\
**Last updated:** [February 25, 2019, 12:25am UTC](https://discourse.processing.org/t/scrubbing-video-with-microphone-input/8060 "2019-02-25T00:25:12Z")

</div>

Hello! I’m trying to create an animation that goes from very little complexity to very great complexity based on the volume level in a room. I started with the processing.sound library and this basic tutorial for mic i…

---

## [Sorting algorithms visualisation](https://discourse.processing.org/t/sorting-algorithms-visualisation/8686)

<div class="topic-metadata">

**Author:** [@crashxxl](https://discourse.processing.org/u/crashxxl)\
**Replies:** 3\
**Last updated:** [February 24, 2019, 9:19pm UTC](https://discourse.processing.org/t/sorting-algorithms-visualisation/8686 "2019-02-24T21:19:49Z")

</div>

Hi everyone ! I would share little work i did for array visualisation while a sorting algorithm is running, with p5.js You can choose array size, steps speed, algorithms, and 2 types of visualisations. It plays sound …

---

## [Array Sorting visually](https://discourse.processing.org/t/array-sorting-visually/803)

<div class="topic-metadata">

**Author:** [@bertin](https://discourse.processing.org/u/bertin)\
**Replies:** 5\
**Last updated:** [June 10, 2018, 2:19am UTC](https://discourse.processing.org/t/array-sorting-visually/803 "2018-06-10T02:19:24Z")

</div>

Hi everyone! This is my first topic, hoping not to do something wrong. I was trying to develop a simple sketch that shows in real time the sorting algorithms of an array of integers, through simple vertical lines which …

---

## [Color image to black and white image](https://discourse.processing.org/t/color-image-to-black-and-white-image/8662)

<div class="topic-metadata">

**Author:** [@Grisha](https://discourse.processing.org/u/Grisha)\
**Replies:** 2\
**Last updated:** [February 24, 2019, 7:07pm UTC](https://discourse.processing.org/t/color-image-to-black-and-white-image/8662 "2019-02-24T19:07:32Z")

</div>

How to make a black and white image from color image . Maybe using OpenCV? Because I don’t need combination of black and white pixels , but I need a gray gradient image ( I hope you understand what I mean )

---

## [Ball bouncing on a grid](https://discourse.processing.org/t/ball-bouncing-on-a-grid/8688)

<div class="topic-metadata">

**Author:** [@pritesh](https://discourse.processing.org/u/pritesh)\
**Replies:** 9\
**Last updated:** [February 24, 2019, 7:06pm UTC](https://discourse.processing.org/t/ball-bouncing-on-a-grid/8688 "2019-02-24T19:06:24Z")

</div>

Hello, I recently started learning processing and I have been trying to write a code in which a ball is bouncing off the four corners of a grid. Can someone plz help me with this? float x = 150; float y = 150; void…

---

## [Image capture with Processing and OpenCV](https://discourse.processing.org/t/image-capture-with-processing-and-opencv/8642)

<div class="topic-metadata">

**Author:** [@Grisha](https://discourse.processing.org/u/Grisha)\
**Replies:** 5\
**Last updated:** [February 24, 2019, 6:53pm UTC](https://discourse.processing.org/t/image-capture-with-processing-and-opencv/8642 "2019-02-24T18:53:30Z")

</div>

I need to take a photo from WebCamera. How to do it using OpenCV and Processing ?

---

## [How to use characters (and assign tasks to these characters) from a .txt file in Processing](https://discourse.processing.org/t/how-to-use-characters-and-assign-tasks-to-these-characters-from-a-txt-file-in-processing/8604)

<div class="topic-metadata">

**Author:** [@anon98404100](https://discourse.processing.org/u/anon98404100)\
**Replies:** 14\
**Last updated:** [February 24, 2019, 5:03pm UTC](https://discourse.processing.org/t/how-to-use-characters-and-assign-tasks-to-these-characters-from-a-txt-file-in-processing/8604 "2019-02-24T17:03:25Z")

</div>

We have a project called “generative art”. Our goal is to make a program, and that program creates something totally random that works as a form of art. My idea was the following, and I wanted to base it around the sub…

---

## [Save image by input name as jpg or to absolute path](https://discourse.processing.org/t/save-image-by-input-name-as-jpg-or-to-absolute-path/8674)

<div class="topic-metadata">

**Author:** [@angelman](https://discourse.processing.org/u/angelman)\
**Replies:** 6\
**Last updated:** [February 24, 2019, 4:32am UTC](https://discourse.processing.org/t/save-image-by-input-name-as-jpg-or-to-absolute-path/8674 "2019-02-24T04:32:18Z")

</div>

I am inputting a list of names and output images made as result of list of names. This works fine . It will out put them as tif . But how can I get them output as jpg. and also to a folder in the sketch folder rather th…

---

## [Creating multiple class instances in p5?](https://discourse.processing.org/t/creating-multiple-class-instances-in-p5/8665)

<div class="topic-metadata">

**Author:** [@Maximos118](https://discourse.processing.org/u/Maximos118)\
**Replies:** 6\
**Last updated:** [February 24, 2019, 2:22am UTC](https://discourse.processing.org/t/creating-multiple-class-instances-in-p5/8665 "2019-02-24T02:22:03Z")

</div>

I’d like to create a potentially unlimited amount of instances of a certain class within my javascript document: let trees; const treespawn = () =\> { let x = random(50, windowWidth - 50); let y = random(windowHeight…

---

## [Mouse interaction](https://discourse.processing.org/t/mouse-interaction/8673)

<div class="topic-metadata">

**Author:** [@Floralvxins](https://discourse.processing.org/u/Floralvxins)\
**Replies:** 3\
**Last updated:** [February 24, 2019, 12:56am UTC](https://discourse.processing.org/t/mouse-interaction/8673 "2019-02-24T00:56:35Z")

</div>

Okay so I understand the basic language needed to input a simple mouse click. My main question as a new student in coding is what else needs to be incorporated into this code for it to change from one data visualization …

---

## [Is it possible to "move" your coordinate by moving the mouse?](https://discourse.processing.org/t/is-it-possible-to-move-your-coordinate-by-moving-the-mouse/8574)

<div class="topic-metadata">

**Author:** [@LaLiia](https://discourse.processing.org/u/LaLiia)\
**Replies:** 4\
**Last updated:** [February 23, 2019, 8:45pm UTC](https://discourse.processing.org/t/is-it-possible-to-move-your-coordinate-by-moving-the-mouse/8574 "2019-02-23T20:45:10Z")

</div>

Hello, is it possible to “move” a coordinate (vector point) through the movement of the mouse? So that the effect is a form, for example a circle, to bend? Similar to the “Liquify” filter in Photoshop. I would be very …

---

## [Visual with 'forces' + musical accompaniment](https://discourse.processing.org/t/visual-with-forces-musical-accompaniment/8521)

<div class="topic-metadata">

**Author:** [@intermoon](https://discourse.processing.org/u/intermoon)\
**Replies:** 3\
**Last updated:** [February 23, 2019, 7:24pm UTC](https://discourse.processing.org/t/visual-with-forces-musical-accompaniment/8521 "2019-02-23T19:24:26Z")

</div>

I’ve been leaning the ropes of Processing and attempting to create visuals that fit the aesthetic of my electronic music instrumentals. This is my first post on this forum since I’ve started my Processing journey; I’d lo…

---

## [Loosing lives really fast when Collision happens](https://discourse.processing.org/t/loosing-lives-really-fast-when-collision-happens/8627)

<div class="topic-metadata">

**Author:** [@vinipineschi](https://discourse.processing.org/u/vinipineschi)\
**Replies:** 8\
**Last updated:** [February 23, 2019, 7:20pm UTC](https://discourse.processing.org/t/loosing-lives-really-fast-when-collision-happens/8627 "2019-02-23T19:20:36Z")

</div>

Hi, I was trying to create a simple collision code for my Asteroid game. Basically I managed to create the collision between the objects (Spaceship and Asteroid), however when I created this if condition bellow: if (xp…

---

## [How to draw a black and white cookie?](https://discourse.processing.org/t/how-to-draw-a-black-and-white-cookie/8634)

<div class="topic-metadata">

**Author:** [@sorenkirk](https://discourse.processing.org/u/sorenkirk)\
**Replies:** 4\
**Last updated:** [February 23, 2019, 7:14pm UTC](https://discourse.processing.org/t/how-to-draw-a-black-and-white-cookie/8634 "2019-02-23T19:14:54Z")

</div>

I am basically trying to draw something like this: I can draw a half circle and a larger surrounding circle, but I am having trouble simulating the uneven-ness of one of the half circles and making the shape look beve…

---

## [Issue when porting an example sketch from the Hemesh library to Python mode](https://discourse.processing.org/t/issue-when-porting-an-example-sketch-from-the-hemesh-library-to-python-mode/8570)

<div class="topic-metadata">

**Author:** [@solub](https://discourse.processing.org/u/solub)\
**Replies:** 7\
**Last updated:** [February 23, 2019, 6:49pm UTC](https://discourse.processing.org/t/issue-when-porting-an-example-sketch-from-the-hemesh-library-to-python-mode/8570 "2019-02-23T18:49:59Z")

</div>

Hi, For some reason I get a ClassCastException error when porting this sketch (code below) to Python mode. processing.app.SketchException: java.lang.ClassCastException: wblut.geom.WB\_Triangle cannot be cast to wblut.g…

---

## [Am I crazy, or is this a bug?](https://discourse.processing.org/t/am-i-crazy-or-is-this-a-bug/8612)

<div class="topic-metadata">

**Author:** [@Livaarleen](https://discourse.processing.org/u/Livaarleen)\
**Replies:** 3\
**Last updated:** [February 23, 2019, 12:02am UTC](https://discourse.processing.org/t/am-i-crazy-or-is-this-a-bug/8612 "2019-02-23T00:02:52Z")

</div>

I have been trying to make a Processing for Python variation of the Coding Train episode on the toothpick fractal. When I run my code, I get an error on line 56, saying that my method toothpick.intersects(x, y) takes tw…

---

## [Processing prompt does not install G4P, how to solve it?](https://discourse.processing.org/t/processing-prompt-does-not-install-g4p-how-to-solve-it/8549)

<div class="topic-metadata">

**Author:** [@aienzer](https://discourse.processing.org/u/aienzer)\
**Replies:** 3\
**Last updated:** [February 23, 2019, 5:43pm UTC](https://discourse.processing.org/t/processing-prompt-does-not-install-g4p-how-to-solve-it/8549 "2019-02-23T17:43:48Z")

</div>

---

## [Trying to get interaction with two objects](https://discourse.processing.org/t/trying-to-get-interaction-with-two-objects/8666)

<div class="topic-metadata">

**Author:** [@tkozeletz](https://discourse.processing.org/u/tkozeletz)\
**Replies:** 1\
**Last updated:** [February 23, 2019, 5:32pm UTC](https://discourse.processing.org/t/trying-to-get-interaction-with-two-objects/8666 "2019-02-23T17:32:33Z")

</div>

I am getting so confused by the code that I have created. I am trying to make it so that when the laser hits the alien, the alien would disappear. To make the laser work, you have to press and hold the mouse. Please help…

---

## [Midi and Object-Oriented Programming](https://discourse.processing.org/t/midi-and-object-oriented-programming/8633)

<div class="topic-metadata">

**Author:** [@Frappiert](https://discourse.processing.org/u/Frappiert)\
**Replies:** 1\
**Last updated:** [February 23, 2019, 5:27pm UTC](https://discourse.processing.org/t/midi-and-object-oriented-programming/8633 "2019-02-23T17:27:36Z")

</div>

Hello, I’m new here. I am trying to control an object oriented project with a midi controller. After doing my oop sketch (thanks to the coding train), I thought I should use the midiBus library. But I can’t figure how …

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=518)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=520)
