# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=200

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

**Page:** 201

---

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

---

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

---

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

---

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

---

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

---

## [Need help to make very simple game](https://discourse.processing.org/t/need-help-to-make-very-simple-game/21857)

<div class="topic-metadata">

**Author:** [@malik2712](https://discourse.processing.org/u/malik2712)\
**Replies:** 5\
**Last updated:** [June 14, 2020, 3:18pm UTC](https://discourse.processing.org/t/need-help-to-make-very-simple-game/21857 "2020-06-14T15:18:18Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I just need code made to run that game in processing It’s for an assessment due tomorrow I need to make a little game in the coding app processi…

---

## [FrameBuffer - draw directly to PImage or Texture](https://discourse.processing.org/t/framebuffer-draw-directly-to-pimage-or-texture/21864)

<div class="topic-metadata">

**Author:** [@mgood7123](https://discourse.processing.org/u/mgood7123)\
**Replies:** 0\
**Last updated:** [June 14, 2020, 1:13pm UTC](https://discourse.processing.org/t/framebuffer-draw-directly-to-pimage-or-texture/21864 "2020-06-14T13:13:25Z")

</div>

how would i set up a FrameBuffer such that, i can draw directly to some Texture or PImage and then immediatly image that to my screen for example PGraphics g2; void settings() { size(400, 400, P3D); } void setup() …

---

## [Possible bug in GTextField.isValid()? (G4P library)](https://discourse.processing.org/t/possible-bug-in-gtextfield-isvalid-g4p-library/21841)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 5\
**Last updated:** [June 14, 2020, 11:38am UTC](https://discourse.processing.org/t/possible-bug-in-gtextfield-isvalid-g4p-library/21841 "2020-06-14T11:38:41Z")

</div>

This seems to be a bug, although maybe it’s just a misunderstanding on my part. I’m initializing a text field with “0” and calling ‘setNumeric(0,16,0)’ to limit the range between 0 and 16, with a default of 0. If I just …

---

## [PGraphicsOpenGL - how to read from the framebuffer](https://discourse.processing.org/t/pgraphicsopengl-how-to-read-from-the-framebuffer/21842)

<div class="topic-metadata">

**Author:** [@mgood7123](https://discourse.processing.org/u/mgood7123)\
**Replies:** 0\
**Last updated:** [June 13, 2020, 2:45pm UTC](https://discourse.processing.org/t/pgraphicsopengl-how-to-read-from-the-framebuffer/21842 "2020-06-13T14:45:53Z")

</div>

how would i go about reading the FrameBuffer that PGraphics uses for rendering to AFTER beginDraw(); and BEFORE \`endDraw()’ as my goal is to only call beginDraw() ONCE during setup, then read LIVE pixel data in onDraw()…

---

## [I have a problem with the menu of my game](https://discourse.processing.org/t/i-have-a-problem-with-the-menu-of-my-game/21826)

<div class="topic-metadata">

**Author:** [@OohYuma](https://discourse.processing.org/u/OohYuma)\
**Replies:** 5\
**Last updated:** [June 14, 2020, 9:29am UTC](https://discourse.processing.org/t/i-have-a-problem-with-the-menu-of-my-game/21826 "2020-06-14T09:29:29Z")

</div>

Hi guys, I’m a beginner with processing and others languages. I started to do a Snake game for my exam but I have a problem with my code. When I’m in the menu, I can select to play (pic.1) or to go in the setting(pic.2) …

---

## [Ideal laptop for performances](https://discourse.processing.org/t/ideal-laptop-for-performances/16623)

<div class="topic-metadata">

**Author:** [@manu](https://discourse.processing.org/u/manu)\
**Replies:** 8\
**Last updated:** [June 14, 2020, 12:43am UTC](https://discourse.processing.org/t/ideal-laptop-for-performances/16623 "2020-06-14T00:43:27Z")

</div>

Hi Everyone! I’ve been doing processing for awhile, and I am scaling up my projects. I recently got into a group art show, and to have my code run in a gallery space for eight hours a day, 6 days a week for up to 6 mon…

---

## [3d Random Walker export-as-dxf](https://discourse.processing.org/t/3d-random-walker-export-as-dxf/21847)

<div class="topic-metadata">

**Author:** [@andresobregonl](https://discourse.processing.org/u/andresobregonl)\
**Replies:** 1\
**Last updated:** [June 13, 2020, 8:24pm UTC](https://discourse.processing.org/t/3d-random-walker-export-as-dxf/21847 "2020-06-13T20:24:19Z")

</div>

Hello I am trying to write a 3d random Walker P3D But I do not achieve to export all the boxes as .dxf my goal is to be able to open the file in Rhino and export it as .stl and send it to a 3d Printing I will apprecia…

---

## [Shading a polygon PShape](https://discourse.processing.org/t/shading-a-polygon-pshape/21833)

<div class="topic-metadata">

**Author:** [@opheliagame](https://discourse.processing.org/u/opheliagame)\
**Replies:** 1\
**Last updated:** [June 13, 2020, 3:50pm UTC](https://discourse.processing.org/t/shading-a-polygon-pshape/21833 "2020-06-13T15:50:34Z")

</div>

I am making a custom PShape and setting different colors to the different vertices. From my experimentation, I have understod that the PShape is triangulated and the colors given to the different vertices are interpolate…

---

## [How to get c++ for eclipse working I've followed all the steps for mac](https://discourse.processing.org/t/how-to-get-c-for-eclipse-working-ive-followed-all-the-steps-for-mac/21823)

<div class="topic-metadata">

**Author:** [@AntiViral\_Builder](https://discourse.processing.org/u/AntiViral_Builder)\
**Replies:** 1\
**Last updated:** [June 13, 2020, 5:28pm UTC](https://discourse.processing.org/t/how-to-get-c-for-eclipse-working-ive-followed-all-the-steps-for-mac/21823 "2020-06-13T17:28:15Z")

</div>

Hello there, to make a library I need to get my eclipse working. I have installed xcode. I’ve set the binary parser. There is a message ‘No binary’ I do not know what this means

---

## [Wrong language or a syntax error? (axidraw)](https://discourse.processing.org/t/wrong-language-or-a-syntax-error-axidraw/21727)

<div class="topic-metadata">

**Author:** [@slashwreck](https://discourse.processing.org/u/slashwreck)\
**Replies:** 10\
**Last updated:** [June 13, 2020, 12:49pm UTC](https://discourse.processing.org/t/wrong-language-or-a-syntax-error-axidraw/21727 "2020-06-13T12:49:30Z")

</div>

As an axidraw user, I was very interested in LingDong’s procedurally-generated plotter landscape. He includes the source code at the end of the page. I believe he did this in processing. I’m using Processing v3 in pyt…

---

## [Display Basics program](https://discourse.processing.org/t/display-basics-program/21808)

<div class="topic-metadata">

**Author:** [@mike\_z](https://discourse.processing.org/u/mike_z)\
**Replies:** 13\
**Last updated:** [June 13, 2020, 11:30am UTC](https://discourse.processing.org/t/display-basics-program/21808 "2020-06-13T11:30:16Z")

</div>

I a beginner with processing, but have had experience with coding in other languages. I am attempting to make a block of cyan color walk across a blue back gound in three steps. For some reason the first two blocks will …

---

## [Can Processing use MacOS X's native Picture-in-Picture (PIP) mode?](https://discourse.processing.org/t/can-processing-use-macos-xs-native-picture-in-picture-pip-mode/21806)

<div class="topic-metadata">

**Author:** [@DerTarchin](https://discourse.processing.org/u/DerTarchin)\
**Replies:** 1\
**Last updated:** [June 13, 2020, 11:03am UTC](https://discourse.processing.org/t/can-processing-use-macos-xs-native-picture-in-picture-pip-mode/21806 "2020-06-13T11:03:14Z")

</div>

I’m not sure how to do it and I see no references to it in the forums. Am I able to take advantage of the native PIP with Processing? Here is an example of what I’m talking about

[Previous page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=199)

[Next page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=201)
