# Latest

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

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

**Page:** 309

---

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

---

## [blendMode in instance mode](https://discourse.processing.org/t/blendmode-in-instance-mode/23657)

<div class="topic-metadata">

**Author:** [@nikodemd](https://discourse.processing.org/u/nikodemd)\
**Replies:** 9\
**Last updated:** [September 9, 2020, 3:36pm UTC](https://discourse.processing.org/t/blendmode-in-instance-mode/23657 "2020-09-09T15:36:04Z")

</div>

Hi guys! I am running into issues while converting p5 global code into instance mode. I am making sliders that control blending of the images using blendMode(SCREEN). In global sketch, all was fine. When I transition to…

---

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

---

## [When using save() function my canvas is always grey](https://discourse.processing.org/t/when-using-save-function-my-canvas-is-always-grey/23492)

<div class="topic-metadata">

**Author:** [@PutridGospel](https://discourse.processing.org/u/PutridGospel)\
**Replies:** 7\
**Last updated:** [September 9, 2020, 12:53pm UTC](https://discourse.processing.org/t/when-using-save-function-my-canvas-is-always-grey/23492 "2020-09-09T12:53:43Z")

</div>

Hey I could use a little help, as my title says I am having trouble getting some high resolution files of my artwork. Here is my code please let me know what I could do to get high resolution images of the artwork I make…

---

## [Nf() as text() parameter?](https://discourse.processing.org/t/nf-as-text-parameter/23743)

<div class="topic-metadata">

**Author:** [@joepekoe](https://discourse.processing.org/u/joepekoe)\
**Replies:** 7\
**Last updated:** [September 8, 2020, 10:30pm UTC](https://discourse.processing.org/t/nf-as-text-parameter/23743 "2020-09-08T22:30:41Z")

</div>

I am developing code using Processing 3.5.4 on PC, exporting to Linux, copying exported files from armv6hf to Rpi Buster on Rpi 2 hardware. Since nf() returns a string, or at least I thought it did, I’m curious why the …

---

## [frameCount stopped working for no discernable reason](https://discourse.processing.org/t/framecount-stopped-working-for-no-discernable-reason/23745)

<div class="topic-metadata">

**Author:** [@BSiemens](https://discourse.processing.org/u/BSiemens)\
**Replies:** 3\
**Last updated:** [September 8, 2020, 10:27pm UTC](https://discourse.processing.org/t/framecount-stopped-working-for-no-discernable-reason/23745 "2020-09-08T22:27:02Z")

</div>

Has anyone else noticed this and found a solution?

---

## [Animated gif loading in version 1.0 of p5.js](https://discourse.processing.org/t/animated-gif-loading-in-version-1-0-of-p5-js/23744)

<div class="topic-metadata">

**Author:** [@jgl](https://discourse.processing.org/u/jgl)\
**Replies:** 2\
**Last updated:** [September 8, 2020, 7:26pm UTC](https://discourse.processing.org/t/animated-gif-loading-in-version-1-0-of-p5-js/23744 "2020-09-08T19:26:00Z")

</div>

Hey All, I was poking around in 1.0 of p5.js and saw that gif loading was supposed to be working: https://medium.com/processing-foundation/p5-js-1-0-is-here-b7267140753a So I tried looking in the source for how it wor…

---

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

---

## [https://p5js.org/reference/#/p5.Element/position](https://discourse.processing.org/t/https-p5js-org-reference-p5-element-position/23737)

<div class="topic-metadata">

**Author:** [@ats3788](https://discourse.processing.org/u/ats3788)\
**Replies:** 1\
**Last updated:** [September 8, 2020, 1:10pm UTC](https://discourse.processing.org/t/https-p5js-org-reference-p5-element-position/23737 "2020-09-08T13:10:36Z")

</div>

Hello I fiddle with P5 and tried this https://p5js.org/reference/#/p5.Element/positionPreformatted text let cnv = createCanvas(100, 100); // positions canvas 50px to the right and 100px // below upper left corner…

---

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

---

## [How to remove an object](https://discourse.processing.org/t/how-to-remove-an-object/23733)

<div class="topic-metadata">

**Author:** [@ats3788](https://discourse.processing.org/u/ats3788)\
**Replies:** 2\
**Last updated:** [September 8, 2020, 8:57am UTC](https://discourse.processing.org/t/how-to-remove-an-object/23733 "2020-09-08T08:57:00Z")

</div>

Hello I create an object like this let balls = \[\]; b = new Ball(random(150, ScreenX) , 0, r, red, green, blue); but how can I free / remove this Object

---

## [Android dynamic IP](https://discourse.processing.org/t/android-dynamic-ip/23725)

<div class="topic-metadata">

**Author:** [@Purr](https://discourse.processing.org/u/Purr)\
**Replies:** 0\
**Last updated:** [September 7, 2020, 2:54pm UTC](https://discourse.processing.org/t/android-dynamic-ip/23725 "2020-09-07T14:54:38Z")

</div>

Hello, I want to make a app who have a dynamic IP: I would like that you can enter a link when you lanch the app. After you enter link, the app receive information about the ip adress of the computer who receive inf…

---

## [Fonts -- Loading Base64 Encoded Fonts](https://discourse.processing.org/t/fonts-loading-base64-encoded-fonts/23721)

<div class="topic-metadata">

**Author:** [@DennisM](https://discourse.processing.org/u/DennisM)\
**Replies:** 2\
**Last updated:** [September 7, 2020, 1:37pm UTC](https://discourse.processing.org/t/fonts-loading-base64-encoded-fonts/23721 "2020-09-07T13:37:36Z")

</div>

Hi, is there, i was wondering if there is any possibility to load base64 encrypted font files. Or to use encrypted fonts through any method. cheers dennis

---

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

---

## [Play Videos in my apps](https://discourse.processing.org/t/play-videos-in-my-apps/23707)

<div class="topic-metadata">

**Author:** [@Magical](https://discourse.processing.org/u/Magical)\
**Replies:** 13\
**Last updated:** [September 6, 2020, 9:31pm UTC](https://discourse.processing.org/t/play-videos-in-my-apps/23707 "2020-09-06T21:31:46Z")

</div>

import android.media.MediaMetadataRetriever; import android.os.Looper; import android.app.Activity; import android.view.ViewGroup; import android.view.View; import android.view.SurfaceHolder; import android.view.SurfaceV…

---

## [Can you Help me dir my Game](https://discourse.processing.org/t/can-you-help-me-dir-my-game/23705)

<div class="topic-metadata">

**Author:** [@Magical](https://discourse.processing.org/u/Magical)\
**Replies:** 8\
**Last updated:** [September 6, 2020, 8:32pm UTC](https://discourse.processing.org/t/can-you-help-me-dir-my-game/23705 "2020-09-06T20:32:11Z")

</div>

bird b = new bird(); pillar\[\] p = new pillar\[3\]; boolean end=false; boolean intro=true; int score=0; void setup() { size(displayWidth, displayHeight); for (int i = 0; i\<3; i++) { p\[i\]=new pillar(i); } } void dr…

---

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

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

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