# Latest

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

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

**Page:** 282

---

## [How to capture an area of pixels ? - Pro3 - Fr/En](https://discourse.processing.org/t/how-to-capture-an-area-of-pixels-pro3-fr-en/25747)

<div class="topic-metadata">

**Author:** [@Eli0kYd](https://discourse.processing.org/u/Eli0kYd)\
**Replies:** 4\
**Last updated:** [November 27, 2020, 3:33pm UTC](https://discourse.processing.org/t/how-to-capture-an-area-of-pixels-pro3-fr-en/25747 "2020-11-27T15:33:16Z")

</div>

Hello ! I’m still new to processing and code in general. I might ask a lot so I take everything you could give to me ! I’m here to ask you what title already announces : How to capture an area of pixel and to transpose…

---

## [Unexpected token: void](https://discourse.processing.org/t/unexpected-token-void/25757)

<div class="topic-metadata">

**Author:** [@muffininwinter](https://discourse.processing.org/u/muffininwinter)\
**Replies:** 3\
**Last updated:** [November 27, 2020, 2:48pm UTC](https://discourse.processing.org/t/unexpected-token-void/25757 "2020-11-27T14:48:02Z")

</div>

boolean running = false; PImage imgbk; PImage imgm; PImage albert; PImage imgnote; PImage\[\] img = new PImage\[2\]; int totalNum = 4; int dx, dy; int score; int startTime; int albertX, albertY, albertW, albertH; …

---

## [How do i add colour to each one of the 10 boxes i made](https://discourse.processing.org/t/how-do-i-add-colour-to-each-one-of-the-10-boxes-i-made/25739)

<div class="topic-metadata">

**Author:** [@DijaAngel](https://discourse.processing.org/u/DijaAngel)\
**Replies:** 3\
**Last updated:** [November 27, 2020, 2:25pm UTC](https://discourse.processing.org/t/how-do-i-add-colour-to-each-one-of-the-10-boxes-i-made/25739 "2020-11-27T14:25:27Z")

</div>

please format code with \</\> button \* homework policy \* asking questions void setup(){ size(500,500); } void draw(){ for(int i=0;i\<=450;i+=50){ rect(0,i,50,50); } }

---

## [Need help with setting up Random Walker (Coding Train)](https://discourse.processing.org/t/need-help-with-setting-up-random-walker-coding-train/25715)

<div class="topic-metadata">

**Author:** [@Epsilon](https://discourse.processing.org/u/Epsilon)\
**Replies:** 2\
**Last updated:** [November 27, 2020, 2:07pm UTC](https://discourse.processing.org/t/need-help-with-setting-up-random-walker-coding-train/25715 "2020-11-27T14:07:10Z")

</div>

Hello everyone, I’m a newcomer to Processing.py and I’ve been trying to follow the Nature of Code videos. They revolve around a subject I am very interested in, coming from 3D modelling and motion graphics I’ve been t…

---

## [Connecting Supercollider to Processing via QjackCtl](https://discourse.processing.org/t/connecting-supercollider-to-processing-via-qjackctl/25753)

<div class="topic-metadata">

**Author:** [@guillaumeazer](https://discourse.processing.org/u/guillaumeazer)\
**Replies:** 1\
**Last updated:** [November 27, 2020, 12:08pm UTC](https://discourse.processing.org/t/connecting-supercollider-to-processing-via-qjackctl/25753 "2020-11-27T12:08:09Z")

</div>

Hey everyone, I’m new to processing and I have a question for you. I added the processing.sound library because I want to create a real time spectrogram. My plan is to connect supercollider to processing via QjackCtl…

---

## [I have a rectangle that will bounce but i want it to change colour whenever it hits a side](https://discourse.processing.org/t/i-have-a-rectangle-that-will-bounce-but-i-want-it-to-change-colour-whenever-it-hits-a-side/25745)

<div class="topic-metadata">

**Author:** [@0w3n928](https://discourse.processing.org/u/0w3n928)\
**Replies:** 2\
**Last updated:** [November 27, 2020, 6:45am UTC](https://discourse.processing.org/t/i-have-a-rectangle-that-will-bounce-but-i-want-it-to-change-colour-whenever-it-hits-a-side/25745 "2020-11-27T06:45:31Z")

</div>

I cant seem to make this work but it changes colour but breaks the thing float rectx,recty,xspeed=7,yspeed=7; color bg = color(random(255),random(255),random(255)); void setup() { fullScreen(); } void draw() { bac…

---

## [I want to make a rectangle that will spawn when mouseclicked and bounce back and collide with another rectangle](https://discourse.processing.org/t/i-want-to-make-a-rectangle-that-will-spawn-when-mouseclicked-and-bounce-back-and-collide-with-another-rectangle/25743)

<div class="topic-metadata">

**Author:** [@0w3n928](https://discourse.processing.org/u/0w3n928)\
**Replies:** 0\
**Last updated:** [November 27, 2020, 1:02am UTC](https://discourse.processing.org/t/i-want-to-make-a-rectangle-that-will-spawn-when-mouseclicked-and-bounce-back-and-collide-with-another-rectangle/25743 "2020-11-27T01:02:43Z")

</div>

I’m trying to make another rectangle spawn when mouse is clicked once and it will collide to my first bouncing rectangle and I can add however many i want but my code doesn’t even need me to click and it doesn’t really w…

---

## [Custom 3d shapes in p5.js](https://discourse.processing.org/t/custom-3d-shapes-in-p5-js/25662)

<div class="topic-metadata">

**Author:** [@sarath.jasrin](https://discourse.processing.org/u/sarath.jasrin)\
**Replies:** 5\
**Last updated:** [November 26, 2020, 11:06pm UTC](https://discourse.processing.org/t/custom-3d-shapes-in-p5-js/25662 "2020-11-26T23:06:30Z")

</div>

I tried to create custom 3d shape using beginShape method. I have successfully created 2d view and added orbitControl. Now I can move around the shape but it looks flat. I tried to use z value but it’s looks different th…

---

## [Error on loadXML(URL) within P5js](https://discourse.processing.org/t/error-on-loadxml-url-within-p5js/25709)

<div class="topic-metadata">

**Author:** [@CAVUCO](https://discourse.processing.org/u/CAVUCO)\
**Replies:** 7\
**Last updated:** [November 26, 2020, 10:37pm UTC](https://discourse.processing.org/t/error-on-loadxml-url-within-p5js/25709 "2020-11-26T22:37:29Z")

</div>

var url ='https://www.aviationweather.gov/adds/dataserver\_current/httpparam?dataSource=metars&requestType=retrieve&format=xml&minLat=25&minLon=-125&maxLat=50&maxLon=-66&hoursBeforeNow=1&stationstring=K\*&fields=station\_id…

---

## [A game where there are circles and you press on them and they dissapear in processing](https://discourse.processing.org/t/a-game-where-there-are-circles-and-you-press-on-them-and-they-dissapear-in-processing/25729)

<div class="topic-metadata">

**Author:** [@JakeTheFake](https://discourse.processing.org/u/JakeTheFake)\
**Replies:** 6\
**Last updated:** [November 26, 2020, 7:11pm UTC](https://discourse.processing.org/t/a-game-where-there-are-circles-and-you-press-on-them-and-they-dissapear-in-processing/25729 "2020-11-26T19:11:38Z")

</div>

I need help, could someone give me code for processing not j5.js for a game that has circles where you press on them and they dissapear please. I really need an example asap and it would be amazing if you could give me o…

---

## [Wrapping classes - overlapping method](https://discourse.processing.org/t/wrapping-classes-overlapping-method/25733)

<div class="topic-metadata">

**Author:** [@Ellie98](https://discourse.processing.org/u/Ellie98)\
**Replies:** 1\
**Last updated:** [November 26, 2020, 6:21pm UTC](https://discourse.processing.org/t/wrapping-classes-overlapping-method/25733 "2020-11-26T18:21:29Z")

</div>

Hello, i’m stuck with my assignment. I’m not getting the result. I’m getting “Infinity” instead and the point numbers are turning in whole numbers. But I used float though. Am I doing the overlapping wrongly? Thanks in…

---

## [How can I put html text on top of a 5pjs sketch in html?](https://discourse.processing.org/t/how-can-i-put-html-text-on-top-of-a-5pjs-sketch-in-html/24895)

<div class="topic-metadata">

**Author:** [@olaf000olaf](https://discourse.processing.org/u/olaf000olaf)\
**Replies:** 1\
**Last updated:** [November 26, 2020, 5:41pm UTC](https://discourse.processing.org/t/how-can-i-put-html-text-on-top-of-a-5pjs-sketch-in-html/24895 "2020-11-26T17:41:56Z")

</div>

I have a project I want to put as my background on a website I’m making in HTML, and I want some text to be on top of the project, how do I do that?

---

## [How do I tint at 2D shape?](https://discourse.processing.org/t/how-do-i-tint-at-2d-shape/25727)

<div class="topic-metadata">

**Author:** [@olaf000olaf](https://discourse.processing.org/u/olaf000olaf)\
**Replies:** 2\
**Last updated:** [November 26, 2020, 5:11pm UTC](https://discourse.processing.org/t/how-do-i-tint-at-2d-shape/25727 "2020-11-26T17:11:08Z")

</div>

I tried tinting with tint(); but that only works with images, what should I do?

---

## [blendMode support on Android](https://discourse.processing.org/t/blendmode-support-on-android/25645)

<div class="topic-metadata">

**Author:** [@jasperamorgan](https://discourse.processing.org/u/jasperamorgan)\
**Replies:** 4\
**Last updated:** [November 26, 2020, 2:45pm UTC](https://discourse.processing.org/t/blendmode-support-on-android/25645 "2020-11-26T14:45:31Z")

</div>

Which blendMode types are supported on Android? I’ve been looking at this documentation: https://processing.org/reference/blendMode\_.html When running using blendMode(MULTIPLY) I get the warning: blendMode(), or this …

---

## [Making a Loto game (Lotto, Bingo)](https://discourse.processing.org/t/making-a-loto-game-lotto-bingo/25706)

<div class="topic-metadata">

**Author:** [@Marius](https://discourse.processing.org/u/Marius)\
**Replies:** 2\
**Last updated:** [November 25, 2020, 11:16pm UTC](https://discourse.processing.org/t/making-a-loto-game-lotto-bingo/25706 "2020-11-25T23:16:25Z")

</div>

Hello, I need for a school project to do a loto application in andoid. It is possible to do something like in the pictures below in processing ? Can anyone help me with some examples/ideas please ? Thank you.

---

## [Beginning (3D) superprogrammer (57 years)](https://discourse.processing.org/t/beginning-3d-superprogrammer-57-years/24565)

<div class="topic-metadata">

**Author:** [@flounder](https://discourse.processing.org/u/flounder)\
**Replies:** 2\
**Last updated:** [November 26, 2020, 11:34am UTC](https://discourse.processing.org/t/beginning-3d-superprogrammer-57-years/24565 "2020-11-26T11:34:30Z")

</div>

I have been a programmer for 57 years. Therefore, I find the introductory tutorials uninteresting. I have a very focused set of questions. I need to draw lines in 3D space. Just lines. No extrusions. Practically …

---

## [Drawing a second instance of a ball class in a game](https://discourse.processing.org/t/drawing-a-second-instance-of-a-ball-class-in-a-game/25713)

<div class="topic-metadata">

**Author:** [@Manoplo](https://discourse.processing.org/u/Manoplo)\
**Replies:** 8\
**Last updated:** [November 26, 2020, 11:27am UTC](https://discourse.processing.org/t/drawing-a-second-instance-of-a-ball-class-in-a-game/25713 "2020-11-26T11:27:52Z")

</div>

Hello everyone! Pretty new into processing and into programming as well! So first of all, I´d like to apologize if the format is wrong or if my doubt has been solved before (I´ve been trying to find a solution for two d…

---

## [Acerca de la licencia comercial de processing java](https://discourse.processing.org/t/acerca-de-la-licencia-comercial-de-processing-java/25711)

<div class="topic-metadata">

**Author:** [@datacolor](https://discourse.processing.org/u/datacolor)\
**Replies:** 3\
**Last updated:** [November 26, 2020, 2:14am UTC](https://discourse.processing.org/t/acerca-de-la-licencia-comercial-de-processing-java/25711 "2020-11-26T02:14:21Z")

</div>

Hola alguien puede explicarme lo siguiente,si yo hago un sketch que no usa ninguna libreria (excepto las del core de processing unicamente!),y hago una aplicacion exportando el sketch a aplicacion.exe…es posible comercia…

---

## [Solving and Visualizing Sudoku and Eight Queens puzzles w/ backtracking and JavaScript](https://discourse.processing.org/t/solving-and-visualizing-sudoku-and-eight-queens-puzzles-w-backtracking-and-javascript/25718)

<div class="topic-metadata">

**Author:** [@codeguppy](https://discourse.processing.org/u/codeguppy)\
**Replies:** 0\
**Last updated:** [November 26, 2020, 2:08am UTC](https://discourse.processing.org/t/solving-and-visualizing-sudoku-and-eight-queens-puzzles-w-backtracking-and-javascript/25718 "2020-11-26T02:08:26Z")

</div>

Sudoku Eight Queens

---

## [Recursive Sierpinski triangle (just a bit of fun)](https://discourse.processing.org/t/recursive-sierpinski-triangle-just-a-bit-of-fun/23546)

<div class="topic-metadata">

**Author:** [@raron](https://discourse.processing.org/u/raron)\
**Replies:** 59\
**Last updated:** [November 26, 2020, 2:03am UTC](https://discourse.processing.org/t/recursive-sierpinski-triangle-just-a-bit-of-fun/23546 "2020-11-26T02:03:43Z")

</div>

Nothing special, just a bit of fun. Plotting the good old Sierpinski triangle. The pattern is made from basically one simple rule: Go halfway towards a vertex, plot a point, repeat. Starting point doesn’t matter (or n…

---

## [Modbus RTU Library for Processing](https://discourse.processing.org/t/modbus-rtu-library-for-processing/25704)

<div class="topic-metadata">

**Author:** [@Samsanit](https://discourse.processing.org/u/Samsanit)\
**Replies:** 2\
**Last updated:** [November 26, 2020, 1:19am UTC](https://discourse.processing.org/t/modbus-rtu-library-for-processing/25704 "2020-11-26T01:19:40Z")

</div>

Hi All, Is there a library out there that can be used for sending serial modbus communications that hooks to processing? I have a pump which uses Modbus RTU in order to control the pump, as well as receive information …

---

## [Lambert conformal conic projection map coordinates](https://discourse.processing.org/t/lambert-conformal-conic-projection-map-coordinates/25665)

<div class="topic-metadata">

**Author:** [@CAVUCO](https://discourse.processing.org/u/CAVUCO)\
**Replies:** 4\
**Last updated:** [November 26, 2020, 12:32am UTC](https://discourse.processing.org/t/lambert-conformal-conic-projection-map-coordinates/25665 "2020-11-26T00:32:36Z")

</div>

I have a database of locations by lat/long. Trying to overlay on a background image that is a map using the Lambert conformal conic projection. I have the following specs on the map Map\_Projection: Map\_Projection\_Nam…

---

## [Help to make a radio button class](https://discourse.processing.org/t/help-to-make-a-radio-button-class/25716)

<div class="topic-metadata">

**Author:** [@datacolor](https://discourse.processing.org/u/datacolor)\
**Replies:** 3\
**Last updated:** [November 25, 2020, 11:38pm UTC](https://discourse.processing.org/t/help-to-make-a-radio-button-class/25716 "2020-11-25T23:38:09Z")

</div>

I found the code for a button class and I managed to make a sketch that makes a check button, but now I need help to make a sketch of several option or radio buttons using this button class, since the controlP5 library i…

---

## [Why can't we pass PVector to translate?](https://discourse.processing.org/t/why-cant-we-pass-pvector-to-translate/7888)

<div class="topic-metadata">

**Author:** [@Geeky](https://discourse.processing.org/u/Geeky)\
**Replies:** 6\
**Last updated:** [November 25, 2020, 11:07pm UTC](https://discourse.processing.org/t/why-cant-we-pass-pvector-to-translate/7888 "2020-11-25T23:07:15Z")

</div>

I’ve just started using P3D and while translating a cube I wonder that why can’t we pass a variable of type PVector to translate method. I think that functionality wise it should work. Correct me if I am wrong.

---

## [Solar system with multiple planets](https://discourse.processing.org/t/solar-system-with-multiple-planets/25671)

<div class="topic-metadata">

**Author:** [@N\_G](https://discourse.processing.org/u/N_G)\
**Replies:** 2\
**Last updated:** [November 25, 2020, 8:21pm UTC](https://discourse.processing.org/t/solar-system-with-multiple-planets/25671 "2020-11-25T20:21:33Z")

</div>

Hi, I’m just starting out with processing and I’m trying to build a little solar system. My problem is that I don’t know how to add another planet (like mars or venus). Because if I just ad the planet to my code it wil…

---

## [Need help making background transparent](https://discourse.processing.org/t/need-help-making-background-transparent/25700)

<div class="topic-metadata">

**Author:** [@Sijht](https://discourse.processing.org/u/Sijht)\
**Replies:** 2\
**Last updated:** [November 25, 2020, 4:51pm UTC](https://discourse.processing.org/t/need-help-making-background-transparent/25700 "2020-11-25T16:51:49Z")

</div>

I tried a lot of methods i saw, but none of them seem to work. I am trying to take an image, save it and when I paste it into my canvas turn the white pixels into transparent. here is some code that I have written so f…

---

## ["For" loop not stopping when I want](https://discourse.processing.org/t/for-loop-not-stopping-when-i-want/25701)

<div class="topic-metadata">

**Author:** [@Spomch](https://discourse.processing.org/u/Spomch)\
**Replies:** 1\
**Last updated:** [November 25, 2020, 4:26pm UTC](https://discourse.processing.org/t/for-loop-not-stopping-when-i-want/25701 "2020-11-25T16:26:13Z")

</div>

Hi everyone, I’m posting here because I’m facing a problem with a “for” loop. Here is the code that I am working on : import processing.sound.\*; SoundFile Son; PImage portrait; PImage portrait\_deux; PImage telephone; …

---

## [How does the red() function work](https://discourse.processing.org/t/how-does-the-red-function-work/25687)

<div class="topic-metadata">

**Author:** [@PyroDeathAdder](https://discourse.processing.org/u/PyroDeathAdder)\
**Replies:** 2\
**Last updated:** [November 25, 2020, 2:05pm UTC](https://discourse.processing.org/t/how-does-the-red-function-work/25687 "2020-11-25T14:05:05Z")

</div>

i was just wondering what processing does so it can do red(colorObject) and return the red value of that color

---

## [Mascara de recorte](https://discourse.processing.org/t/mascara-de-recorte/24935)

<div class="topic-metadata">

**Author:** [@pescemc](https://discourse.processing.org/u/pescemc)\
**Replies:** 2\
**Last updated:** [November 25, 2020, 1:28pm UTC](https://discourse.processing.org/t/mascara-de-recorte/24935 "2020-11-25T13:28:04Z")

</div>

Hola, necesito crear un programa como el del video que dejo a continuación, se trata de 2 imágenes superpuestas, con una máscara de recorte en forma circular manejada por el mouse, que muestra el exterior de una imagen, …

---

## [Colour Change Of Ellipse](https://discourse.processing.org/t/colour-change-of-ellipse/25697)

<div class="topic-metadata">

**Author:** [@Tyler](https://discourse.processing.org/u/Tyler)\
**Replies:** 1\
**Last updated:** [November 25, 2020, 1:11pm UTC](https://discourse.processing.org/t/colour-change-of-ellipse/25697 "2020-11-25T13:11:01Z")

</div>

I’ve been trying to make a code where if I press a specific box it will change the colour of the pen (that I’m using ellipse to make). I was able to make it change to red when I press a certain box but I can’t make it do…

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

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