# Latest

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

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

**Page:** 298

---

## [How to open maximized window?](https://discourse.processing.org/t/how-to-open-maximized-window/22941)

<div class="topic-metadata">

**Author:** [@Rafsing](https://discourse.processing.org/u/Rafsing)\
**Replies:** 8\
**Last updated:** [July 31, 2020, 3:05pm UTC](https://discourse.processing.org/t/how-to-open-maximized-window/22941 "2020-07-31T15:05:10Z")

</div>

How to open maximized window with windows taskbar. I’m using the newest version of processing, and any version of size(displayWidth, displayHeight); surface.setResizable(true); surface.setLocation(0, 0); doesn’t work.

---

## [How to change the state of a checkbox created with createCheckbox()?](https://discourse.processing.org/t/how-to-change-the-state-of-a-checkbox-created-with-createcheckbox/24514)

<div class="topic-metadata">

**Author:** [@sipe40](https://discourse.processing.org/u/sipe40)\
**Replies:** 2\
**Last updated:** [October 11, 2020, 1:06pm UTC](https://discourse.processing.org/t/how-to-change-the-state-of-a-checkbox-created-with-createcheckbox/24514 "2020-10-11T13:06:44Z")

</div>

Hi! I’ve created a checkbox using box1 = createCheckbox('test', true); and I want to be able to change the state of that checkbox. However, box1.elt.checked returns undefined. This seems to be, because box1.elt returns …

---

## [Declare a 3x3 empty array](https://discourse.processing.org/t/declare-a-3x3-empty-array/24515)

<div class="topic-metadata">

**Author:** [@learningL](https://discourse.processing.org/u/learningL)\
**Replies:** 3\
**Last updated:** [October 11, 2020, 11:54am UTC](https://discourse.processing.org/t/declare-a-3x3-empty-array/24515 "2020-10-11T11:54:27Z")

</div>

Hello I would like to know how to declare a 3x3 empty array which data type is char. Thanks in advance.

---

## [Add method to float\[\]\[\]](https://discourse.processing.org/t/add-method-to-float/24502)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 1\
**Last updated:** [October 11, 2020, 9:44am UTC](https://discourse.processing.org/t/add-method-to-float/24502 "2020-10-11T09:44:19Z")

</div>

I’m currently writing a Mathlibrary. And it is kind of annoying to always have to use new Matrix(m) it would be better if I could use something like m.toMatrix() Is there a possibility to do that?

---

## [Mouse draw sketch](https://discourse.processing.org/t/mouse-draw-sketch/24449)

<div class="topic-metadata">

**Author:** [@joe\_processing](https://discourse.processing.org/u/joe_processing)\
**Replies:** 4\
**Last updated:** [October 11, 2020, 7:01am UTC](https://discourse.processing.org/t/mouse-draw-sketch/24449 "2020-10-11T07:01:28Z")

</div>

hi, |'m trying to write a code that demonstrates a spread of infected pixels that appear from and after the user draws a line in processing (I added a picture that demonstrates the stages that code makes). But my code …

---

## [Can't get the balls to move correctly](https://discourse.processing.org/t/cant-get-the-balls-to-move-correctly/18518)

<div class="topic-metadata">

**Author:** [@GKBeginner](https://discourse.processing.org/u/GKBeginner)\
**Replies:** 6\
**Last updated:** [October 11, 2020, 12:14am UTC](https://discourse.processing.org/t/cant-get-the-balls-to-move-correctly/18518 "2020-10-11T00:14:09Z")

</div>

One ball should be randomly moving and the other is controlled by the arrow keys on the keyboard. They are not working correctly and I can’t figure out why. int x1=30; int y1; int x2; int y2=30; int r=255; int g=255; i…

---

## [Petit question sur processing](https://discourse.processing.org/t/petit-question-sur-processing/24487)

<div class="topic-metadata">

**Author:** [@nina](https://discourse.processing.org/u/nina)\
**Replies:** 10\
**Last updated:** [October 10, 2020, 8:27pm UTC](https://discourse.processing.org/t/petit-question-sur-processing/24487 "2020-10-10T20:27:12Z")

</div>

Bonsoir, j’ai une petit question je ne comprends pas à quoi elle sert l’instruction return? Voulez-vous bien m’aider, s’il vous plait. Je vous remercie d’avance . cordialement , Nina

---

## [Accidental fractal pattern using line(), and wonky line() behavior](https://discourse.processing.org/t/accidental-fractal-pattern-using-line-and-wonky-line-behavior/24425)

<div class="topic-metadata">

**Author:** [@KaliBrain](https://discourse.processing.org/u/KaliBrain)\
**Replies:** 3\
**Last updated:** [October 10, 2020, 8:18pm UTC](https://discourse.processing.org/t/accidental-fractal-pattern-using-line-and-wonky-line-behavior/24425 "2020-10-10T20:18:38Z")

</div>

So playing around with vectors for the first time I created a circle by drawing a line and rotating it: let count = 0 let slice = 6 let oddSize = 0.0625 function unitVectorGrade() { translate(width / 2, height / 2) …

---

## [Very basic traffic light](https://discourse.processing.org/t/very-basic-traffic-light/24451)

<div class="topic-metadata">

**Author:** [@rk0945](https://discourse.processing.org/u/rk0945)\
**Replies:** 7\
**Last updated:** [October 10, 2020, 7:51pm UTC](https://discourse.processing.org/t/very-basic-traffic-light/24451 "2020-10-10T19:51:00Z")

</div>

Thanks - problem solved!!!

---

## [API 29 for Processing for Android](https://discourse.processing.org/t/api-29-for-processing-for-android/24473)

<div class="topic-metadata">

**Author:** [@Erald](https://discourse.processing.org/u/Erald)\
**Replies:** 2\
**Last updated:** [October 10, 2020, 5:35pm UTC](https://discourse.processing.org/t/api-29-for-processing-for-android/24473 "2020-10-10T17:35:34Z")

</div>

Good day to everyone, to the developers of this mode: I am on the process of uploading my apk file to Google Play Console but it is requiring me an API of 29 or above for the release… But unfortunately Processing for A…

---

## [loadTable - how to handle missing file error?](https://discourse.processing.org/t/loadtable-how-to-handle-missing-file-error/24476)

<div class="topic-metadata">

**Author:** [@RichardDL](https://discourse.processing.org/u/RichardDL)\
**Replies:** 3\
**Last updated:** [October 10, 2020, 5:00pm UTC](https://discourse.processing.org/t/loadtable-how-to-handle-missing-file-error/24476 "2020-10-10T17:00:38Z")

</div>

Hi, I have a web-page served by node.js. In the web-page is a loadTable which loads a csv file from disk. loadTable is async and the draw action is controlled by iLoadData. In the good callback, this is incremented …

---

## [Difference between loadPixels and get()](https://discourse.processing.org/t/difference-between-loadpixels-and-get/24491)

<div class="topic-metadata">

**Author:** [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Replies:** 1\
**Last updated:** [October 10, 2020, 4:52am UTC](https://discourse.processing.org/t/difference-between-loadpixels-and-get/24491 "2020-10-10T04:52:57Z")

</div>

As the title implies just after a bit of info. Looking through some examples I came across the histogram image sketch which makes use of get to retrieve pixel values. for (int i = 0; i \< img.width; i++) { for (int j …

---

## [Lighting for 3d gravity sim](https://discourse.processing.org/t/lighting-for-3d-gravity-sim/24388)

<div class="topic-metadata">

**Author:** [@Kport1](https://discourse.processing.org/u/Kport1)\
**Replies:** 5\
**Last updated:** [October 10, 2020, 1:58pm UTC](https://discourse.processing.org/t/lighting-for-3d-gravity-sim/24388 "2020-10-10T13:58:11Z")

</div>

Hello! Im having trouble with the lighting in my 3d gravity sim. I am trying to programm stars but the lighting function in processing doesnt give of direct light to the camera, so the stars appear like planets, but they…

---

## [Using multiple mouse functions](https://discourse.processing.org/t/using-multiple-mouse-functions/24485)

<div class="topic-metadata">

**Author:** [@thughes](https://discourse.processing.org/u/thughes)\
**Replies:** 6\
**Last updated:** [October 10, 2020, 1:03pm UTC](https://discourse.processing.org/t/using-multiple-mouse-functions/24485 "2020-10-10T13:03:39Z")

</div>

this is what i’m trying to do: Create a program that will change the background color based on the mouse. You will create a setup(), draw() function. The size of the frame will by 400 by 400. Create a mousePressed() …

---

## [Connect dots with lines](https://discourse.processing.org/t/connect-dots-with-lines/24493)

<div class="topic-metadata">

**Author:** [@fernanda\_123](https://discourse.processing.org/u/fernanda_123)\
**Replies:** 1\
**Last updated:** [October 10, 2020, 10:52am UTC](https://discourse.processing.org/t/connect-dots-with-lines/24493 "2020-10-10T10:52:54Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi, I’m new in processing and I hope someone can help me with a proyect :smiley: So, I have to make a program where I make points and each poin…

---

## [HTTP Requests for JSON string and next release with upgrade version](https://discourse.processing.org/t/http-requests-for-json-string-and-next-release-with-upgrade-version/24496)

<div class="topic-metadata">

**Author:** [@YuneeBird](https://discourse.processing.org/u/YuneeBird)\
**Replies:** 0\
**Last updated:** [October 10, 2020, 8:23am UTC](https://discourse.processing.org/t/http-requests-for-json-string-and-next-release-with-upgrade-version/24496 "2020-10-10T08:23:58Z")

</div>

Hi, I am grateful the code and library is available and Thanks for the contributors. However, the jsonpost.pde example for adddata( string ) method does seem to work when I install the library 0.1.4 from ‘contrib…

---

## [Why isn't my canvas resizing in p5.js?](https://discourse.processing.org/t/why-isnt-my-canvas-resizing-in-p5-js/24466)

<div class="topic-metadata">

**Author:** [@sam101](https://discourse.processing.org/u/sam101)\
**Replies:** 2\
**Last updated:** [October 10, 2020, 3:25am UTC](https://discourse.processing.org/t/why-isnt-my-canvas-resizing-in-p5-js/24466 "2020-10-10T03:25:27Z")

</div>

Hey everyone, so I was editing my code and I believe when I added the translate function in my function draw, it somehow prevented my text and other contexts of my sketch to resize when I would resize my browser. Not sur…

---

## [Deep Reinforcement Learning with Pytorch and Processing](https://discourse.processing.org/t/deep-reinforcement-learning-with-pytorch-and-processing/24453)

<div class="topic-metadata">

**Author:** [@willtl](https://discourse.processing.org/u/willtl)\
**Replies:** 6\
**Last updated:** [October 10, 2020, 1:48am UTC](https://discourse.processing.org/t/deep-reinforcement-learning-with-pytorch-and-processing/24453 "2020-10-10T01:48:26Z")

</div>

I was checking how to use Processing with Python support. However, I read that in order to use Python libraries I would have to place then in the folder of my Processing project. Moreover, I also read that I would not be…

---

## [Calculating angle of triangle](https://discourse.processing.org/t/calculating-angle-of-triangle/24483)

<div class="topic-metadata">

**Author:** [@arcadeperfect](https://discourse.processing.org/u/arcadeperfect)\
**Replies:** 15\
**Last updated:** [October 9, 2020, 10:33pm UTC](https://discourse.processing.org/t/calculating-angle-of-triangle/24483 "2020-10-09T22:33:36Z")

</div>

Sorry, this is a math question more than a Processing one. I’m trying to calculate an angle “a” that will always give a specified constant length “d” for any given position of p. P can move, and the other two points ar…

---

## [Can you use a Slider to change a circle to square in p5.js?](https://discourse.processing.org/t/can-you-use-a-slider-to-change-a-circle-to-square-in-p5-js/24405)

<div class="topic-metadata">

**Author:** [@sam101](https://discourse.processing.org/u/sam101)\
**Replies:** 2\
**Last updated:** [October 9, 2020, 7:04pm UTC](https://discourse.processing.org/t/can-you-use-a-slider-to-change-a-circle-to-square-in-p5-js/24405 "2020-10-09T19:04:22Z")

</div>

Hey everyone was hoping if someone could direct me in a direction of how to code a slider to change a circle into a square? I’ve achieved being able to change the colour and shape and rotating it, but I haven’t been able…

---

## [Most of My Games now for Linux](https://discourse.processing.org/t/most-of-my-games-now-for-linux/24413)

<div class="topic-metadata">

**Author:** [@Skys](https://discourse.processing.org/u/Skys)\
**Replies:** 0\
**Last updated:** [October 7, 2020, 3:51pm UTC](https://discourse.processing.org/t/most-of-my-games-now-for-linux/24413 "2020-10-07T15:51:13Z")

</div>

At https://github.com/XQSkys?tab=repositories now nealy all of my work is ported to Linux. i used MX Linux. the Snake clone 3Dnatter and 3D Browser Helper isnt avalible due stability reasons. to use the games unzip th…

---

## [I need help asap BEFORE 19:00 PM](https://discourse.processing.org/t/i-need-help-asap-before-19-00-pm/24469)

<div class="topic-metadata">

**Author:** [@INEEDHELP](https://discourse.processing.org/u/INEEDHELP)\
**Replies:** 12\
**Last updated:** [October 9, 2020, 5:33pm UTC](https://discourse.processing.org/t/i-need-help-asap-before-19-00-pm/24469 "2020-10-09T17:33:18Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I'm making a bubble shoot game and I want to know when my bullet hit the bubble then it will vanish and i get a point. PLEASE explain

---

## [Rows of circles using while loop and if statement (processing.py)](https://discourse.processing.org/t/rows-of-circles-using-while-loop-and-if-statement-processing-py/24409)

<div class="topic-metadata">

**Author:** [@RoddyPiperVision](https://discourse.processing.org/u/RoddyPiperVision)\
**Replies:** 2\
**Last updated:** [October 7, 2020, 4:57pm UTC](https://discourse.processing.org/t/rows-of-circles-using-while-loop-and-if-statement-processing-py/24409 "2020-10-07T16:57:17Z")

</div>

Hello there! Absolute beginner here. I’ve started to learn about processing.py but I’m struggling with iteration and modulo operator. Using a while loop, I have to recreate this arrangement : I’ve followed some ind…

---

## [How to rotate a single image?](https://discourse.processing.org/t/how-to-rotate-a-single-image/24465)

<div class="topic-metadata">

**Author:** [@Emilia444](https://discourse.processing.org/u/Emilia444)\
**Replies:** 2\
**Last updated:** [October 9, 2020, 1:56pm UTC](https://discourse.processing.org/t/how-to-rotate-a-single-image/24465 "2020-10-09T13:56:08Z")

</div>

Hey guys, I’m rather unfamiliar with ps5, and have recently been trying it out. I’ve tried looking this up and couldn’t find an answer for it, but I’m creating a program with multiple images in it. I was wondering if the…

---

## [Processing coding help - Sliders](https://discourse.processing.org/t/processing-coding-help-sliders/24462)

<div class="topic-metadata">

**Author:** [@Ellie98](https://discourse.processing.org/u/Ellie98)\
**Replies:** 3\
**Last updated:** [October 9, 2020, 12:54pm UTC](https://discourse.processing.org/t/processing-coding-help-sliders/24462 "2020-10-09T12:54:29Z")

</div>

Hello, could someone look into my code? I don’t know how to continue. I had to code 4 Sliders. Two are following the Y-direction and two the X-direction. But one of the two sliders have to go to the opposide direction a…

---

## [How to save an image from sketch windows](https://discourse.processing.org/t/how-to-save-an-image-from-sketch-windows/24436)

<div class="topic-metadata">

**Author:** [@rafaelb](https://discourse.processing.org/u/rafaelb)\
**Replies:** 4\
**Last updated:** [October 9, 2020, 12:43pm UTC](https://discourse.processing.org/t/how-to-save-an-image-from-sketch-windows/24436 "2020-10-09T12:43:36Z")

</div>

please format code with \</\> button \* homework policy \* asking questions PArdon my beginnereness!!! When I have a Sketch window and want to save it as a single figure (image) in .png or .jpg, what do I have to do??. …

---

## [Image Manipulation](https://discourse.processing.org/t/image-manipulation/24459)

<div class="topic-metadata">

**Author:** [@stellakramer](https://discourse.processing.org/u/stellakramer)\
**Replies:** 1\
**Last updated:** [October 9, 2020, 12:36pm UTC](https://discourse.processing.org/t/image-manipulation/24459 "2020-10-09T12:36:09Z")

</div>

Could someone help me? I’m trying to make a code in Processing where you have an image, and on the image an ellipse moves with your mouse. But the ellipse is not blank or filled but rather it warps the image. Bloats, inf…

---

## [Processing mapping function - help](https://discourse.processing.org/t/processing-mapping-function-help/24463)

<div class="topic-metadata">

**Author:** [@Ellie98](https://discourse.processing.org/u/Ellie98)\
**Replies:** 1\
**Last updated:** [October 9, 2020, 12:28pm UTC](https://discourse.processing.org/t/processing-mapping-function-help/24463 "2020-10-09T12:28:22Z")

</div>

Hello, I have to code 2 circles that are following the mouse. But the red one stays inside the square and I have to do it with the map() function but I don’t really understand it. It’s not working. Could someone help me…

---

## [Tint Speed Adjustment](https://discourse.processing.org/t/tint-speed-adjustment/24446)

<div class="topic-metadata">

**Author:** [@stellakramer](https://discourse.processing.org/u/stellakramer)\
**Replies:** 4\
**Last updated:** [October 9, 2020, 10:38am UTC](https://discourse.processing.org/t/tint-speed-adjustment/24446 "2020-10-09T10:38:40Z")

</div>

Helloooo I’m back with another question😊. This time it’s about the tint function. I like being able to set the tint to random but it moves very fast, is there any way to slow down the tint speed? I think I heard somewh…

---

## [macOS question pixels\[loc\] issue](https://discourse.processing.org/t/macos-question-pixels-loc-issue/24411)

<div class="topic-metadata">

**Author:** [@8SU](https://discourse.processing.org/u/8SU)\
**Replies:** 2\
**Last updated:** [October 9, 2020, 10:39am UTC](https://discourse.processing.org/t/macos-question-pixels-loc-issue/24411 "2020-10-09T10:39:06Z")

</div>

please format code with \</\> button \* homework policy \* asking questions i used macOS and processing 3 ver(3.5.4) before i have video library issue so fix that link but i have one more issue void draw() { //ima…

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

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