# Latest

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

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

**Page:** 335

---

## [Trouble running the IDE and file placement](https://discourse.processing.org/t/trouble-running-the-ide-and-file-placement/21922)

<div class="topic-metadata">

**Author:** [@dmazzoni](https://discourse.processing.org/u/dmazzoni)\
**Replies:** 1\
**Last updated:** [June 16, 2020, 9:11pm UTC](https://discourse.processing.org/t/trouble-running-the-ide-and-file-placement/21922 "2020-06-16T21:11:39Z")

</div>

I’m having a heck of a time trying to get I3 running consistently. I thought I figured out the required directory structure, but now nothing works. I’m trying to run examples in Chapter 3 of the book. Today, however, all…

---

## [How to draw bitmap array in Processing?](https://discourse.processing.org/t/how-to-draw-bitmap-array-in-processing/21875)

<div class="topic-metadata">

**Author:** [@R1S8K](https://discourse.processing.org/u/R1S8K)\
**Replies:** 5\
**Last updated:** [June 16, 2020, 8:07pm UTC](https://discourse.processing.org/t/how-to-draw-bitmap-array-in-processing/21875 "2020-06-16T20:07:27Z")

</div>

Hi, I have three points in my question: How to draw this bitmap array in Processing ? I also want to scale up the final output drawing. Would Processing accept my C coding ? This is my code: bitmap draw file: void…

---

## [Problem loading json url](https://discourse.processing.org/t/problem-loading-json-url/21898)

<div class="topic-metadata">

**Author:** [@maddyna](https://discourse.processing.org/u/maddyna)\
**Replies:** 3\
**Last updated:** [June 16, 2020, 7:20pm UTC](https://discourse.processing.org/t/problem-loading-json-url/21898 "2020-06-16T19:20:09Z")

</div>

function setup() { createCanvas(400, 400); let url=‘http://api.open-notify.org/iss-now.json’; loadJSON(url,drawEarthquakes,‘jsonp’); } function draw() { background(220); } function drawEarthquakes(earthquakes){ …

---

## [How would I create function to select newest object in array list](https://discourse.processing.org/t/how-would-i-create-function-to-select-newest-object-in-array-list/21925)

<div class="topic-metadata">

**Author:** [@s.k9](https://discourse.processing.org/u/s.k9)\
**Replies:** 2\
**Last updated:** [June 16, 2020, 5:39pm UTC](https://discourse.processing.org/t/how-would-i-create-function-to-select-newest-object-in-array-list/21925 "2020-06-16T17:39:30Z")

</div>

For a project, I am making a game where users can press a key to add legos. However, I also want there to be a key for them to delete the last lego placed. Right now I can delete the first lego placed using Legos.remove(…

---

## [Fullscreen, what do I miss here?](https://discourse.processing.org/t/fullscreen-what-do-i-miss-here/21917)

<div class="topic-metadata">

**Author:** [@klap](https://discourse.processing.org/u/klap)\
**Replies:** 4\
**Last updated:** [June 16, 2020, 1:19pm UTC](https://discourse.processing.org/t/fullscreen-what-do-i-miss-here/21917 "2020-06-16T13:19:21Z")

</div>

Objects doesn’t adapt to fullscreen size. A tiny ball in on a large screen. What do I miss here? float ellipseX = (width / 2); float ellipseY = (height / 10); int rectX = ((width / 2) - 10); int rectY = (height - 10); f…

---

## [Processing Network Client.available();](https://discourse.processing.org/t/processing-network-client-available/21886)

<div class="topic-metadata">

**Author:** [@Moritz](https://discourse.processing.org/u/Moritz)\
**Replies:** 6\
**Last updated:** [June 16, 2020, 9:57am UTC](https://discourse.processing.org/t/processing-network-client-available/21886 "2020-06-16T09:57:27Z")

</div>

Hi Guys, I work with the processing library and would like to know if there are any servers before I write. The Problem: client.available doesn’t work before writing: Server: import processing.net.\*; Server myServer; …

---

## [In p5.js web editor, can I reuse an image from assets folder in several projects?](https://discourse.processing.org/t/in-p5-js-web-editor-can-i-reuse-an-image-from-assets-folder-in-several-projects/21899)

<div class="topic-metadata">

**Author:** [@carbonne](https://discourse.processing.org/u/carbonne)\
**Replies:** 3\
**Last updated:** [June 16, 2020, 9:35am UTC](https://discourse.processing.org/t/in-p5-js-web-editor-can-i-reuse-an-image-from-assets-folder-in-several-projects/21899 "2020-06-16T09:35:14Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I’m beginning to explore p5.js web editor, and I was wondering if there is a way to reuse an image from a previous project without uploading it …

---

## [How to save last selections on Processing](https://discourse.processing.org/t/how-to-save-last-selections-on-processing/21695)

<div class="topic-metadata">

**Author:** [@jensenphan](https://discourse.processing.org/u/jensenphan)\
**Replies:** 3\
**Last updated:** [June 16, 2020, 6:08am UTC](https://discourse.processing.org/t/how-to-save-last-selections-on-processing/21695 "2020-06-16T06:08:36Z")

</div>

Hi everyone, i am an amatur coder. I want to use Processing as user interface to controll my arduino with LED color. I want to save config i choose on Processing. My mean the User interface will show last select when i…

---

## [MouseClick the screen to play music randomly](https://discourse.processing.org/t/mouseclick-the-screen-to-play-music-randomly/21909)

<div class="topic-metadata">

**Author:** [@beryl1997](https://discourse.processing.org/u/beryl1997)\
**Replies:** 5\
**Last updated:** [June 16, 2020, 6:07am UTC](https://discourse.processing.org/t/mouseclick-the-screen-to-play-music-randomly/21909 "2020-06-16T06:07:41Z")

</div>

Now I have 15 pieces of music (15 files), I hope that when the mouse clicks on the screen, these 15 pieces of music can be played randomly Now I only know what to do when playing one piece of music… This is the current…

---

## [Why the pixel isn't squared?](https://discourse.processing.org/t/why-the-pixel-isnt-squared/21877)

<div class="topic-metadata">

**Author:** [@R1S8K](https://discourse.processing.org/u/R1S8K)\
**Replies:** 6\
**Last updated:** [June 16, 2020, 12:06am UTC](https://discourse.processing.org/t/why-the-pixel-isnt-squared/21877 "2020-06-16T00:06:35Z")

</div>

Hi, I’m trying to draw a bitmap with C arrays, but the pixel turned out that it’s not squared and rather rectangular in horizontal shape. This is the code: void setup(){ size(1280, 640); } void draw() { backgro…

---

## [Help combining the start of one easing function with the end of a different one](https://discourse.processing.org/t/help-combining-the-start-of-one-easing-function-with-the-end-of-a-different-one/21901)

<div class="topic-metadata">

**Author:** [@ottenm](https://discourse.processing.org/u/ottenm)\
**Replies:** 0\
**Last updated:** [June 15, 2020, 10:44pm UTC](https://discourse.processing.org/t/help-combining-the-start-of-one-easing-function-with-the-end-of-a-different-one/21901 "2020-06-15T22:44:09Z")

</div>

This sketch draws an oval as the user drags horizontally across the screen from right-to-left . But the oval starts and completes too quickly to match the feel of the mouse drag. I’d like to use easing to a) start out …

---

## [Creating software mirrors in processing](https://discourse.processing.org/t/creating-software-mirrors-in-processing/21897)

<div class="topic-metadata">

**Author:** [@maddyna](https://discourse.processing.org/u/maddyna)\
**Replies:** 1\
**Last updated:** [June 15, 2020, 9:15pm UTC](https://discourse.processing.org/t/creating-software-mirrors-in-processing/21897 "2020-06-15T21:15:32Z")

</div>

I am trying to create software mirrors in processing but the moment i am trying to scale down my video beyond size(320,240) I am getting error import processing.video.\*; Capture video; int vScale=8; int cols,rows; vo…

---

## [PShape vs PGraphics](https://discourse.processing.org/t/pshape-vs-pgraphics/21834)

<div class="topic-metadata">

**Author:** [@mgood7123](https://discourse.processing.org/u/mgood7123)\
**Replies:** 2\
**Last updated:** [June 15, 2020, 6:38pm UTC](https://discourse.processing.org/t/pshape-vs-pgraphics/21834 "2020-06-15T18:38:18Z")

</div>

can PShape do everything that a PGraphics object can? if so, would it be faster in a multi-object context? for example for PGraphics, i get 29 FPS without beginDraw and endDraw for each draw() mostly due to PGraphics …

---

## [Tint() issue when used in Class Object - Does tint() interact across objects?](https://discourse.processing.org/t/tint-issue-when-used-in-class-object-does-tint-interact-across-objects/21812)

<div class="topic-metadata">

**Author:** [@poltergeister](https://discourse.processing.org/u/poltergeister)\
**Replies:** 2\
**Last updated:** [June 15, 2020, 6:51pm UTC](https://discourse.processing.org/t/tint-issue-when-used-in-class-object-does-tint-interact-across-objects/21812 "2020-06-15T18:51:15Z")

</div>

I’m trying to build a program that displays different slide-shows in multiple locations on the screen. I’ve created class to build individual slide-shows. I’m using tint() to fade one image to the next. This works when…

---

## [Can someone help me delete the boundary inside？](https://discourse.processing.org/t/can-someone-help-me-delete-the-boundary-inside/21816)

<div class="topic-metadata">

**Author:** [@IAN](https://discourse.processing.org/u/IAN)\
**Replies:** 2\
**Last updated:** [June 15, 2020, 6:51pm UTC](https://discourse.processing.org/t/can-someone-help-me-delete-the-boundary-inside/21816 "2020-06-15T18:51:12Z")

</div>

/\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* \*Copyright (c) 2014, Stephen Macke \*All rights reserved. \* \*Redistribution and use in source and binary forms, with or without \*modification,…

---

## [How to control a Softbody ball](https://discourse.processing.org/t/how-to-control-a-softbody-ball/21796)

<div class="topic-metadata">

**Author:** [@IAN](https://discourse.processing.org/u/IAN)\
**Replies:** 2\
**Last updated:** [June 12, 2020, 12:44pm UTC](https://discourse.processing.org/t/how-to-control-a-softbody-ball/21796 "2020-06-12T12:44:04Z")

</div>

float r = 10; float grav = 1100;//gravity float resolution = 30; float dt = 0.01; float mouseR = 200; Softbody softbody; void setup(){ fullScreen(); //size(500, 500); softbody = new Softbody(r, resolution); } voi…

---

## [PGraphicsOpenGL - beginDraw, image, endDraw optimising](https://discourse.processing.org/t/pgraphicsopengl-begindraw-image-enddraw-optimising/21890)

<div class="topic-metadata">

**Author:** [@mgood7123](https://discourse.processing.org/u/mgood7123)\
**Replies:** 0\
**Last updated:** [June 15, 2020, 10:52am UTC](https://discourse.processing.org/t/pgraphicsopengl-begindraw-image-enddraw-optimising/21890 "2020-06-15T10:52:21Z")

</div>

how would i optimize PGraphicsOpenGL.beginDraw(); and PGraphicsOpenGL.endDraw() in the context of being called 3,840 times per second or more as i do have this which works for noLoop() but not for loop, im not sure why …

---

## [Video problems only in p5.js editor](https://discourse.processing.org/t/video-problems-only-in-p5-js-editor/21852)

<div class="topic-metadata">

**Author:** [@rbgtoffolo](https://discourse.processing.org/u/rbgtoffolo)\
**Replies:** 2\
**Last updated:** [June 15, 2020, 6:21pm UTC](https://discourse.processing.org/t/video-problems-only-in-p5-js-editor/21852 "2020-06-15T18:21:34Z")

</div>

I’m trying to create a test project based on Daniel Shiffman’s Game of Life. In code, I’m using the webcam to create a new matrix every 20 frames. In offline everything works fine. Someone can help why this code does not…

---

## [Clip not behaving as expected in relation to graphic transformations (eg rotateX)](https://discourse.processing.org/t/clip-not-behaving-as-expected-in-relation-to-graphic-transformations-eg-rotatex/21828)

<div class="topic-metadata">

**Author:** [@mgood7123](https://discourse.processing.org/u/mgood7123)\
**Replies:** 15\
**Last updated:** [June 15, 2020, 5:17pm UTC](https://discourse.processing.org/t/clip-not-behaving-as-expected-in-relation-to-graphic-transformations-eg-rotatex/21828 "2020-06-15T17:17:06Z")

</div>

why does clip not behave as expected? as my clip seems to be rotating the entire boarder instead of the contents inside of the border clipping to GRAPHICS 400 400 200 200 clipping to WINDOW 3 20 194 177 clipping to W…

---

## [Problems working with p5.PolySynth - reference is not clear](https://discourse.processing.org/t/problems-working-with-p5-polysynth-reference-is-not-clear/21892)

<div class="topic-metadata">

**Author:** [@umutreldem](https://discourse.processing.org/u/umutreldem)\
**Replies:** 0\
**Last updated:** [June 15, 2020, 2:59pm UTC](https://discourse.processing.org/t/problems-working-with-p5-polysynth-reference-is-not-clear/21892 "2020-06-15T14:59:57Z")

</div>

Getting into p5.PolySynth the last few days, I have noticed that there are some things in the reference that are not very clear to me: \*When calling .play(), the function requires at least three arguments. The refer…

---

## [Python mode is not working](https://discourse.processing.org/t/python-mode-is-not-working/21818)

<div class="topic-metadata">

**Author:** [@glkr](https://discourse.processing.org/u/glkr)\
**Replies:** 5\
**Last updated:** [June 15, 2020, 1:06pm UTC](https://discourse.processing.org/t/python-mode-is-not-working/21818 "2020-06-15T13:06:53Z")

</div>

I couldn’t run Processing in Python mode. Nothing happens when I click the run button. When I click the Run, it glows green but turns gray again instantly. I deleted the program and reinstalled it, but again the same t…

---

## [Graphics output distorted, rainbow noise](https://discourse.processing.org/t/graphics-output-distorted-rainbow-noise/21563)

<div class="topic-metadata">

**Author:** [@andyandyandy](https://discourse.processing.org/u/andyandyandy)\
**Replies:** 3\
**Last updated:** [June 15, 2020, 12:02pm UTC](https://discourse.processing.org/t/graphics-output-distorted-rainbow-noise/21563 "2020-06-15T12:02:19Z")

</div>

Hello! I’m running a simple program that should create a new sketch and draw it on the screen, but the output is this interesting rainbow noise: I’m compiling manually with Java using Processing 3.5.4. Let me know i…

---

## [Is Processing a game engine?](https://discourse.processing.org/t/is-processing-a-game-engine/21879)

<div class="topic-metadata">

**Author:** [@Cybernet](https://discourse.processing.org/u/Cybernet)\
**Replies:** 4\
**Last updated:** [June 15, 2020, 9:59am UTC](https://discourse.processing.org/t/is-processing-a-game-engine/21879 "2020-06-15T09:59:42Z")

</div>

Is Processing a game engine? Or is it more of a framework?

---

## [PGraphics.beginDraw(), PGraphics.endDraw() alternatives](https://discourse.processing.org/t/pgraphics-begindraw-pgraphics-enddraw-alternatives/21769)

<div class="topic-metadata">

**Author:** [@mgood7123](https://discourse.processing.org/u/mgood7123)\
**Replies:** 12\
**Last updated:** [June 15, 2020, 9:03am UTC](https://discourse.processing.org/t/pgraphics-begindraw-pgraphics-enddraw-alternatives/21769 "2020-06-15T09:03:14Z")

</div>

are there any alternatives to beginDraw() and endDraw()? as using beginDraw and endDraw are expensive if i do graphics.endDraw(); if (displayFPS) { window.graphics.beginDraw(); int oldColor = windo…

---

## [Changing coordinate system without mirroring objects](https://discourse.processing.org/t/changing-coordinate-system-without-mirroring-objects/21846)

<div class="topic-metadata">

**Author:** [@renec112](https://discourse.processing.org/u/renec112)\
**Replies:** 4\
**Last updated:** [June 15, 2020, 7:25am UTC](https://discourse.processing.org/t/changing-coordinate-system-without-mirroring-objects/21846 "2020-06-15T07:25:02Z")

</div>

I would love to change my coordinate to be in the middle instead. It’s easily done with translate(width/2, height/2). Like so: def setup(): size(1920, 1080) def draw(): background(255) translate(width/2,hei…

---

## [textAlign(CENTER, CENTER)](https://discourse.processing.org/t/textalign-center-center/21866)

<div class="topic-metadata">

**Author:** [@slashwreck](https://discourse.processing.org/u/slashwreck)\
**Replies:** 1\
**Last updated:** [June 14, 2020, 2:37pm UTC](https://discourse.processing.org/t/textalign-center-center/21866 "2020-06-14T14:37:08Z")

</div>

In processing I make a two dimensional grid of petri dishes, and then center a name under each petridish. I get aligned text by using textAlign(CENTER, CENTER). beginRecord(SVG, svgs\[2\]) textAlign(CENTER, CENT…

---

## [Fast Pixel by Pixel Image Editing](https://discourse.processing.org/t/fast-pixel-by-pixel-image-editing/21876)

<div class="topic-metadata">

**Author:** [@F53](https://discourse.processing.org/u/F53)\
**Replies:** 3\
**Last updated:** [June 14, 2020, 11:47pm UTC](https://discourse.processing.org/t/fast-pixel-by-pixel-image-editing/21876 "2020-06-14T23:47:37Z")

</div>

I have an array of PImages upscaledImages\[\] pulled from a folder How would I: Edit Individual pixel’s based on their contents Save the array of edited images, overwriting the unedited ones All of this needs to be don…

---

## [Having an issue running Processing](https://discourse.processing.org/t/having-an-issue-running-processing/21543)

<div class="topic-metadata">

**Author:** [@Sand\_Echidna](https://discourse.processing.org/u/Sand_Echidna)\
**Replies:** 2\
**Last updated:** [June 14, 2020, 11:45pm UTC](https://discourse.processing.org/t/having-an-issue-running-processing/21543 "2020-06-14T23:45:03Z")

</div>

I don’t use forums to often and i’ve never used this forum so i apologies in advance if i make a mistake in the rules. The issue is when i run processing i get the normal loading screen, How ever, i am then greeted wit…

---

## [Multiply Matrix and Point to apply transformation](https://discourse.processing.org/t/multiply-matrix-and-point-to-apply-transformation/21874)

<div class="topic-metadata">

**Author:** [@stephanschulz](https://discourse.processing.org/u/stephanschulz)\
**Replies:** 0\
**Last updated:** [June 14, 2020, 8:39pm UTC](https://discourse.processing.org/t/multiply-matrix-and-point-to-apply-transformation/21874 "2020-06-14T20:39:49Z")

</div>

openframeworks has makeRotationMatrix, makeTranslationMatrix, etc. and apply it to any stored coordinate. p5js has applyMatirx() but it applies to the elements being drawn not to variables. It seems http://glmatrix.net …

---

## [Issues Overlaying HTML Buttons on a P5 Canvas](https://discourse.processing.org/t/issues-overlaying-html-buttons-on-a-p5-canvas/21227)

<div class="topic-metadata">

**Author:** [@swan](https://discourse.processing.org/u/swan)\
**Replies:** 9\
**Last updated:** [June 14, 2020, 6:06pm UTC](https://discourse.processing.org/t/issues-overlaying-html-buttons-on-a-p5-canvas/21227 "2020-06-14T18:06:25Z")

</div>

Hi, I am creating a little evolutionary algorithm app as a side project. Anyway, I’m having troubles creating a hamburger button that will reveal a sidebar menu for changing settings and maybe returning to home. I would …

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

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