# Processing

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

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

**Page:** 185

---

## [Controlling an array of Blinking Eyes Independently of Each Other](https://discourse.processing.org/t/controlling-an-array-of-blinking-eyes-independently-of-each-other/23761)

<div class="topic-metadata">

**Author:** [@jcser](https://discourse.processing.org/u/jcser)\
**Replies:** 3\
**Last updated:** [September 10, 2020, 8:10am UTC](https://discourse.processing.org/t/controlling-an-array-of-blinking-eyes-independently-of-each-other/23761 "2020-09-10T08:10:23Z")

</div>

Hi, I am very new to processing and I am making a program based on a Coding Train Video. I have created an Eye Class that display’s an eye and then makes it blink. At the moment I can populate the scene with an array of …

---

## [Do PApplet work in the Itch.io](https://discourse.processing.org/t/do-papplet-work-in-the-itch-io/18546)

<div class="topic-metadata">

**Author:** [@AkaiKenshi](https://discourse.processing.org/u/AkaiKenshi)\
**Replies:** 2\
**Last updated:** [September 10, 2020, 12:57am UTC](https://discourse.processing.org/t/do-papplet-work-in-the-itch-io/18546 "2020-09-10T00:57:43Z")

</div>

there is an option to upload an applet to the itch.io to be played at the web. however it doesn’t seem to work with the PApplet. anyone nows if this is the case or might be just a mistake that I made… P.D. Just a begin…

---

## [Class may need some refinement](https://discourse.processing.org/t/class-may-need-some-refinement/23768)

<div class="topic-metadata">

**Author:** [@pandl](https://discourse.processing.org/u/pandl)\
**Replies:** 0\
**Last updated:** [September 10, 2020, 12:55am UTC](https://discourse.processing.org/t/class-may-need-some-refinement/23768 "2020-09-10T00:55:48Z")

</div>

Thank you for reading this. I have created a simple LED class that, no doubt, needs some refinement. I thought about adding a capability to have square LEDS as well as a size option. I also wanted to have the colours as…

---

## [How to keep a shape in center, when the window size is changing?](https://discourse.processing.org/t/how-to-keep-a-shape-in-center-when-the-window-size-is-changing/23766)

<div class="topic-metadata">

**Author:** [@newtothis](https://discourse.processing.org/u/newtothis)\
**Replies:** 1\
**Last updated:** [September 10, 2020, 12:50am UTC](https://discourse.processing.org/t/how-to-keep-a-shape-in-center-when-the-window-size-is-changing/23766 "2020-09-10T00:50:03Z")

</div>

void setup() { size(800,1200); background(200); } //\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* void draw() { stroke(75); strokeWeight(5); fill(25); rect(135,310,500,500); }

---

## [Drawing a font "in code" - AxiDraw + Processing](https://discourse.processing.org/t/drawing-a-font-in-code-axidraw-processing/18344)

<div class="topic-metadata">

**Author:** [@AndreasRef](https://discourse.processing.org/u/AndreasRef)\
**Replies:** 10\
**Last updated:** [September 10, 2020, 12:38am UTC](https://discourse.processing.org/t/drawing-a-font-in-code-axidraw-processing/18344 "2020-09-10T00:38:05Z")

</div>

I am working with the AxiDraw penplotter and want to interactively draw text using Processing as the interface. For fonts I am running into trouble, since the way I communicative with AxiDraw through Processing only let…

---

## [Creating field for integer input](https://discourse.processing.org/t/creating-field-for-integer-input/23749)

<div class="topic-metadata">

**Author:** [@Jaguar](https://discourse.processing.org/u/Jaguar)\
**Replies:** 3\
**Last updated:** [September 9, 2020, 9:01pm UTC](https://discourse.processing.org/t/creating-field-for-integer-input/23749 "2020-09-09T21:01:46Z")

</div>

Could you please guide me where to look for creating a field to enter integer/digits in processing? Would appreciate your help!

---

## [How to put text in motion?](https://discourse.processing.org/t/how-to-put-text-in-motion/23762)

<div class="topic-metadata">

**Author:** [@carole\_line](https://discourse.processing.org/u/carole_line)\
**Replies:** 1\
**Last updated:** [September 9, 2020, 8:56pm UTC](https://discourse.processing.org/t/how-to-put-text-in-motion/23762 "2020-09-09T20:56:11Z")

</div>

Good evening, so there you go. I’m doing my college semester on Processing programming, but I don’t know how to get the text moving. A series of numbers appears, but my texts remain motionless.

---

## [PGraphics color and saving](https://discourse.processing.org/t/pgraphics-color-and-saving/23748)

<div class="topic-metadata">

**Author:** [@mr\_riptano](https://discourse.processing.org/u/mr_riptano)\
**Replies:** 10\
**Last updated:** [September 9, 2020, 6:22pm UTC](https://discourse.processing.org/t/pgraphics-color-and-saving/23748 "2020-09-09T18:22:52Z")

</div>

Trying to get offscreen graphics working. Two issues I’m running into: (1) The coloring is off. HSB(0, 100, 100) should be a nice bright red. And when I draw directly on the main canvas, it is. Drawing to pg first a…

---

## [Bounce ray casting recursion problem](https://discourse.processing.org/t/bounce-ray-casting-recursion-problem/23667)

<div class="topic-metadata">

**Author:** [@arcadeperfect](https://discourse.processing.org/u/arcadeperfect)\
**Replies:** 1\
**Last updated:** [September 9, 2020, 2:47pm UTC](https://discourse.processing.org/t/bounce-ray-casting-recursion-problem/23667 "2020-09-09T14:47:30Z")

</div>

Hello! TLDR; trying to add recursive bounces to a raycasting algorithm first set of rays works, subsequent ones sort of work but are very buggy indeed. I’m working on a 2D ray casting idea based on my hero Dan Schiff…

---

## [Successive draws of a transparent object don't end up fully opaque?](https://discourse.processing.org/t/successive-draws-of-a-transparent-object-dont-end-up-fully-opaque/23715)

<div class="topic-metadata">

**Author:** [@pablohotsauce](https://discourse.processing.org/u/pablohotsauce)\
**Replies:** 3\
**Last updated:** [September 8, 2020, 6:55pm UTC](https://discourse.processing.org/t/successive-draws-of-a-transparent-object-dont-end-up-fully-opaque/23715 "2020-09-08T18:55:56Z")

</div>

In this example, I draw a semi-transparent black rectangle to cover the canvas on every run-through of draw(), to gradually cover up and darken the results of the stuff I’d drawn in all previous draw() runs. Shouldn’t th…

---

## [Why doesn't this halftone code work?](https://discourse.processing.org/t/why-doesnt-this-halftone-code-work/23738)

<div class="topic-metadata">

**Author:** [@gatz\_gaz](https://discourse.processing.org/u/gatz_gaz)\
**Replies:** 1\
**Last updated:** [September 8, 2020, 3:29pm UTC](https://discourse.processing.org/t/why-doesnt-this-halftone-code-work/23738 "2020-09-08T15:29:47Z")

</div>

PImage foto; int maxImages = 6; // Img in totale int imageIndex = 0; // Img iniziale PImage\[\] images = new PImage\[maxImages\]; // Serie di Img void setup() { size(2300, 1700); foto = loadImage("Data/nin0.jpg")…

---

## [How can I mask graphics to a resizable rectangle?](https://discourse.processing.org/t/how-can-i-mask-graphics-to-a-resizable-rectangle/23632)

<div class="topic-metadata">

**Author:** [@Brastin](https://discourse.processing.org/u/Brastin)\
**Replies:** 13\
**Last updated:** [September 8, 2020, 1:54pm UTC](https://discourse.processing.org/t/how-can-i-mask-graphics-to-a-resizable-rectangle/23632 "2020-09-08T13:54:17Z")

</div>

Hey, I’m in the process of writing a windowed environment in processing. An issue that I’ve struggled with for a while now is being able to mask the contents of a window to the window. Say if I wanted to scroll some text…

---

## [Question about S4P Sprites](https://discourse.processing.org/t/question-about-s4p-sprites/23694)

<div class="topic-metadata">

**Author:** [@mikechr](https://discourse.processing.org/u/mikechr)\
**Replies:** 6\
**Last updated:** [September 8, 2020, 11:38am UTC](https://discourse.processing.org/t/question-about-s4p-sprites/23694 "2020-09-08T11:38:30Z")

</div>

Hi. Two questions about using S4P Sprites library I cant make Sprite.addEventHandler() work. I am getting an Null pointer exception when I press the sprite button. I am aware there is an alternative method but I like …

---

## [Multiple windows with idle for user response](https://discourse.processing.org/t/multiple-windows-with-idle-for-user-response/23660)

<div class="topic-metadata">

**Author:** [@MiguelSanches](https://discourse.processing.org/u/MiguelSanches)\
**Replies:** 0\
**Last updated:** [September 3, 2020, 2:18pm UTC](https://discourse.processing.org/t/multiple-windows-with-idle-for-user-response/23660 "2020-09-03T14:18:43Z")

</div>

Hi all, I was wondering if it is possible with processing to create a second window but with blocking implementation. I know that Processing examples as a multiple window sketch, but in that example, I can interact wit…

---

## [Pong Trail Question](https://discourse.processing.org/t/pong-trail-question/23718)

<div class="topic-metadata">

**Author:** [@FloorBean](https://discourse.processing.org/u/FloorBean)\
**Replies:** 7\
**Last updated:** [September 7, 2020, 2:18am UTC](https://discourse.processing.org/t/pong-trail-question/23718 "2020-09-07T02:18:03Z")

</div>

Hi, I am making a variation of pong, and I want to make the ball have a trail when I press my mouse. I conceptually know this means I need to stop my background from updating, but I am having difficulty in having this ac…

---

## [Full Screen application performance](https://discourse.processing.org/t/full-screen-application-performance/21760)

<div class="topic-metadata">

**Author:** [@mgood7123](https://discourse.processing.org/u/mgood7123)\
**Replies:** 8\
**Last updated:** [September 6, 2020, 10:28pm UTC](https://discourse.processing.org/t/full-screen-application-performance/21760 "2020-09-06T22:28:32Z")

</div>

what would some techiques be for optiming full screen application performance? in particular with a lot of image(PGraphicsObjectInstance) calls with a 400x400 size and 4 Window objects being rendered i can achieve 60FPS…

---

## [Cant run any sketch with windows 10](https://discourse.processing.org/t/cant-run-any-sketch-with-windows-10/23716)

<div class="topic-metadata">

**Author:** [@howler](https://discourse.processing.org/u/howler)\
**Replies:** 0\
**Last updated:** [September 6, 2020, 9:32pm UTC](https://discourse.processing.org/t/cant-run-any-sketch-with-windows-10/23716 "2020-09-06T21:32:30Z")

</div>

Hello everyone, I juste download processing with Windows 10. I tried to run some sketch that i found in Exemples. But it does’t work. I tried Win 64bits and Win 32bits, but it’s the same. Could any one tell me what’s g…

---

## [How can I get this halftone effect on a folder containing images, and then export them to another folder?](https://discourse.processing.org/t/how-can-i-get-this-halftone-effect-on-a-folder-containing-images-and-then-export-them-to-another-folder/23711)

<div class="topic-metadata">

**Author:** [@gatz\_gaz](https://discourse.processing.org/u/gatz_gaz)\
**Replies:** 3\
**Last updated:** [September 6, 2020, 6:17pm UTC](https://discourse.processing.org/t/how-can-i-get-this-halftone-effect-on-a-folder-containing-images-and-then-export-them-to-another-folder/23711 "2020-09-06T18:17:59Z")

</div>

---

## [I would like to use the badwitch effect on the images in the "date" folder and export it to the "output" folder](https://discourse.processing.org/t/i-would-like-to-use-the-badwitch-effect-on-the-images-in-the-date-folder-and-export-it-to-the-output-folder/23698)

<div class="topic-metadata">

**Author:** [@gatz\_gaz](https://discourse.processing.org/u/gatz_gaz)\
**Replies:** 6\
**Last updated:** [September 6, 2020, 5:25pm UTC](https://discourse.processing.org/t/i-would-like-to-use-the-badwitch-effect-on-the-images-in-the-date-folder-and-export-it-to-the-output-folder/23698 "2020-09-06T17:25:23Z")

</div>

please format code with \</\> button \* homework policy \* asking questions PImage foto; int maxImages = 4; // Img in totale int imageIndex = 0; // Img iniziale PImage images = new PImage\[maxImages\]; // Serie di Img …

---

## [Why isn't the font chosen in the pdf that is exported?](https://discourse.processing.org/t/why-isnt-the-font-chosen-in-the-pdf-that-is-exported/23710)

<div class="topic-metadata">

**Author:** [@gatz\_gaz](https://discourse.processing.org/u/gatz_gaz)\
**Replies:** 1\
**Last updated:** [September 6, 2020, 4:58pm UTC](https://discourse.processing.org/t/why-isnt-the-font-chosen-in-the-pdf-that-is-exported/23710 "2020-09-06T16:58:55Z")

</div>

import processing.pdf.\*; PGraphicsPDF pdf; PFont font; String s="NOT THE ACTUAL EVENTS"; void setup(){ size(400,600); font=createFont("Programme-RegularAlt",10); textFont(font); //fill(0); frameRate(30); p…

---

## [Equivalent of p5's "on-demand global mode" for regular (Java) Processing?](https://discourse.processing.org/t/equivalent-of-p5s-on-demand-global-mode-for-regular-java-processing/23701)

<div class="topic-metadata">

**Author:** [@pablohotsauce](https://discourse.processing.org/u/pablohotsauce)\
**Replies:** 8\
**Last updated:** [September 6, 2020, 7:49am UTC](https://discourse.processing.org/t/equivalent-of-p5s-on-demand-global-mode-for-regular-java-processing/23701 "2020-09-06T07:49:49Z")

</div>

Is there an equivalent of p5’s on-demand global mode … new p5(); // in global space … but for regular (Java) Processing? I want to be able to use all Processing functions / methods outside of setup() and draw(). Searche…

---

## [Keeping a ball within bounds](https://discourse.processing.org/t/keeping-a-ball-within-bounds/23700)

<div class="topic-metadata">

**Author:** [@FloorBean](https://discourse.processing.org/u/FloorBean)\
**Replies:** 3\
**Last updated:** [September 6, 2020, 7:35am UTC](https://discourse.processing.org/t/keeping-a-ball-within-bounds/23700 "2020-09-06T07:35:58Z")

</div>

I am trying to keep the ball in the display window and it only is sometimes working. I am not really sure where to go from here. (Ignore the paddle for now). float gap; //Assign variables float ballX = random(300); …

---

## [How to get current stroke weight?](https://discourse.processing.org/t/how-to-get-current-stroke-weight/23695)

<div class="topic-metadata">

**Author:** [@mr\_riptano](https://discourse.processing.org/u/mr_riptano)\
**Replies:** 4\
**Last updated:** [September 5, 2020, 6:29pm UTC](https://discourse.processing.org/t/how-to-get-current-stroke-weight/23695 "2020-09-05T18:29:23Z")

</div>

I can set strokeWeight(x) but I can’t find a method to return the current weight.

---

## [GIFAnimation Library](https://discourse.processing.org/t/gifanimation-library/2229)

<div class="topic-metadata">

**Author:** [@nvwingh](https://discourse.processing.org/u/nvwingh)\
**Replies:** 8\
**Last updated:** [September 5, 2020, 11:19am UTC](https://discourse.processing.org/t/gifanimation-library/2229 "2020-09-05T11:19:43Z")

</div>

I have some issues importing the GIFAnimation library in Processing. In my Contribution Manager, in Processing IDE, I get the notification that GifAnimation 2.3.1. is not compatible with my Processing Version. So I cann…

---

## [HeatMap colours without if else](https://discourse.processing.org/t/heatmap-colours-without-if-else/23670)

<div class="topic-metadata">

**Author:** [@tribblesontoast](https://discourse.processing.org/u/tribblesontoast)\
**Replies:** 1\
**Last updated:** [September 5, 2020, 10:12am UTC](https://discourse.processing.org/t/heatmap-colours-without-if-else/23670 "2020-09-05T10:12:12Z")

</div>

Hi, I’m working on a heat map and I’m trying to improve my colour code. I have a grid of squares with each having a value for the heat map, based on that value I have been assigning a colour from an array. I have been …

---

## [Processing Network Library does not work over 2 computers](https://discourse.processing.org/t/processing-network-library-does-not-work-over-2-computers/23687)

<div class="topic-metadata">

**Author:** [@TechMaster04](https://discourse.processing.org/u/TechMaster04)\
**Replies:** 2\
**Last updated:** [September 5, 2020, 2:36am UTC](https://discourse.processing.org/t/processing-network-library-does-not-work-over-2-computers/23687 "2020-09-05T02:36:36Z")

</div>

Hello I was messing around with the Processing Network Library examples earlier today and noticed that they dont seem to work on 2 different computers (Connected to the same network). They only work if I run both exampl…

---

## [Is there a 'Search period' or 'Date search' interface?](https://discourse.processing.org/t/is-there-a-search-period-or-date-search-interface/22582)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 19\
**Last updated:** [September 5, 2020, 1:26am UTC](https://discourse.processing.org/t/is-there-a-search-period-or-date-search-interface/22582 "2020-09-05T01:26:52Z")

</div>

If you look at the picture, you can search for time as above. Is there an interface library or source code like that? help me.

---

## [Help) The type MouseEvent is ambiguous / java.awt.event vs g4p\_controls](https://discourse.processing.org/t/help-the-type-mouseevent-is-ambiguous-java-awt-event-vs-g4p-controls/23686)

<div class="topic-metadata">

**Author:** [@GWAK](https://discourse.processing.org/u/GWAK)\
**Replies:** 1\
**Last updated:** [September 5, 2020, 12:50am UTC](https://discourse.processing.org/t/help-the-type-mouseevent-is-ambiguous-java-awt-event-vs-g4p-controls/23686 "2020-09-05T00:50:36Z")

</div>

Hello. Nice to meet you. It seems that the two libraries are conflicting. Is there a workaround? import java.awt.event.; import g4p\_controls.; GWindow window1; public void windowMouse1(PApplet appc, GWinData data,…

---

## [Write code in Gradle](https://discourse.processing.org/t/write-code-in-gradle/23684)

<div class="topic-metadata">

**Author:** [@Ultrawinzer](https://discourse.processing.org/u/Ultrawinzer)\
**Replies:** 0\
**Last updated:** [September 4, 2020, 11:13pm UTC](https://discourse.processing.org/t/write-code-in-gradle/23684 "2020-09-04T23:13:05Z")

</div>

Hello. I want to build a qr code reader with zxing. Therefore I need to write some code in the gradle files. If i export my project, I can change these files, but how can I run that on my device?

---

## ["zoom" into image based on window center only](https://discourse.processing.org/t/zoom-into-image-based-on-window-center-only/23647)

<div class="topic-metadata">

**Author:** [@jetjaguar](https://discourse.processing.org/u/jetjaguar)\
**Replies:** 3\
**Last updated:** [September 4, 2020, 3:53pm UTC](https://discourse.processing.org/t/zoom-into-image-based-on-window-center-only/23647 "2020-09-04T15:53:01Z")

</div>

Hello everyone! I am trying to create the effect of zooming in on an image based on the center of the program window, NOT based on the center of an image whose mode has been set to CENTER. The code below shows what hap…

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

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