# Latest

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

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

**Page:** 296

---

## [Ellipse diameter depending on mouse position](https://discourse.processing.org/t/ellipse-diameter-depending-on-mouse-position/24678)

<div class="topic-metadata">

**Author:** [@mdhasan6230](https://discourse.processing.org/u/mdhasan6230)\
**Replies:** 6\
**Last updated:** [October 18, 2020, 8:51pm UTC](https://discourse.processing.org/t/ellipse-diameter-depending-on-mouse-position/24678 "2020-10-18T20:51:20Z")

</div>

i need help drawing an ellipse that’s diameter will depend on the mouse moving position… like when the y position increase and the x position decrease the diameter will in increase and vise versa… plus the ellipse shoul…

---

## [How to get space between the displayed letters](https://discourse.processing.org/t/how-to-get-space-between-the-displayed-letters/24682)

<div class="topic-metadata">

**Author:** [@Ellie98](https://discourse.processing.org/u/Ellie98)\
**Replies:** 2\
**Last updated:** [October 18, 2020, 7:36pm UTC](https://discourse.processing.org/t/how-to-get-space-between-the-displayed-letters/24682 "2020-10-18T19:36:06Z")

</div>

Hello, some of the letters are above other letters. How to get one letter behind another letter without overlapping? Thanks in advance! char alphabet = 'a'; char nextChar; float chatX = 20; int spacing; void setup()…

---

## [Getting an error while building APK while having imported the processing.video library](https://discourse.processing.org/t/getting-an-error-while-building-apk-while-having-imported-the-processing-video-library/24670)

<div class="topic-metadata">

**Author:** [@Ontropy](https://discourse.processing.org/u/Ontropy)\
**Replies:** 0\
**Last updated:** [October 18, 2020, 8:20am UTC](https://discourse.processing.org/t/getting-an-error-while-building-apk-while-having-imported-the-processing-video-library/24670 "2020-10-18T08:20:37Z")

</div>

I am working in the processing IDE. I am getting the com.android.builder.dexing.DexArchiveBuilderException while building the APK when I have imported the processing.video library. I have tried updating the android SDK,…

---

## [Pdf export settings](https://discourse.processing.org/t/pdf-export-settings/24659)

<div class="topic-metadata">

**Author:** [@Jean-no](https://discourse.processing.org/u/Jean-no)\
**Replies:** 0\
**Last updated:** [October 17, 2020, 4:48pm UTC](https://discourse.processing.org/t/pdf-export-settings/24659 "2020-10-17T16:48:38Z")

</div>

Do somebody know if it is possible to set otions while saving a pdf file with Processing’s dedicated library ? For instance I’d like to decide the jpeg quality.

---

## [Problems with loadImage("ran.png"); in processing 4.02a](https://discourse.processing.org/t/problems-with-loadimage-ran-png-in-processing-4-02a/24652)

<div class="topic-metadata">

**Author:** [@x13420x](https://discourse.processing.org/u/x13420x)\
**Replies:** 4\
**Last updated:** [October 18, 2020, 1:12am UTC](https://discourse.processing.org/t/problems-with-loadimage-ran-png-in-processing-4-02a/24652 "2020-10-18T01:12:56Z")

</div>

\<PImage paint; paint = loadImage(“ericarose.png”); \> getting back a null pointer exception worked fine in 4.01a

---

## [Shapes inside shapes](https://discourse.processing.org/t/shapes-inside-shapes/24665)

<div class="topic-metadata">

**Author:** [@charmypatel](https://discourse.processing.org/u/charmypatel)\
**Replies:** 1\
**Last updated:** [October 18, 2020, 12:34am UTC](https://discourse.processing.org/t/shapes-inside-shapes/24665 "2020-10-18T00:34:24Z")

</div>

Haven’t touched Processing in a while so need to refresh some things. I have these 2 circles that I’m trying to use as eyes for an animal. Is it possible to put shapes inside shapes? I want to add more circles within the…

---

## [Can someone help me convert this code from normal array\[\] to ArrayList](https://discourse.processing.org/t/can-someone-help-me-convert-this-code-from-normal-array-to-arraylist/24651)

<div class="topic-metadata">

**Author:** [@HumanoidX](https://discourse.processing.org/u/HumanoidX)\
**Replies:** 2\
**Last updated:** [October 18, 2020, 12:26am UTC](https://discourse.processing.org/t/can-someone-help-me-convert-this-code-from-normal-array-to-arraylist/24651 "2020-10-18T00:26:56Z")

</div>

When I tried to convert it to ArrayList code, it don’t work anymore. float fadeSpeed = 20; float mouseStrength = 100; float windStrength = 0.1; float gravityStrength = 0.2; int circleAmount = 12; Circle\[\] circles = n…

---

## [Is pixelDensity() locked into scaling only to the current displayDensity()?](https://discourse.processing.org/t/is-pixeldensity-locked-into-scaling-only-to-the-current-displaydensity/24585)

<div class="topic-metadata">

**Author:** [@pablohotsauce](https://discourse.processing.org/u/pablohotsauce)\
**Replies:** 1\
**Last updated:** [October 17, 2020, 11:42pm UTC](https://discourse.processing.org/t/is-pixeldensity-locked-into-scaling-only-to-the-current-displaydensity/24585 "2020-10-17T23:42:13Z")

</div>

I’ve got a standard (low-res) monitor. I tried to set pixelDensity() to 2, but that throws up an error at runtime saying that particular density isn’t available for my display. Only density 1 seems to be available. Shoul…

---

## [How to load an image without function image();](https://discourse.processing.org/t/how-to-load-an-image-without-function-image/24566)

<div class="topic-metadata">

**Author:** [@Ellie98](https://discourse.processing.org/u/Ellie98)\
**Replies:** 11\
**Last updated:** [October 17, 2020, 8:08pm UTC](https://discourse.processing.org/t/how-to-load-an-image-without-function-image/24566 "2020-10-17T20:08:56Z")

</div>

Hello, I have to get an europe-map image to the sketch-window by clicking the key l or L but without saving the picture and without using the function image(); I tried it like this but it’s not working. Maybe there is …

---

## [Help with making a calculator](https://discourse.processing.org/t/help-with-making-a-calculator/24631)

<div class="topic-metadata">

**Author:** [@yaboi999](https://discourse.processing.org/u/yaboi999)\
**Replies:** 4\
**Last updated:** [October 17, 2020, 3:50pm UTC](https://discourse.processing.org/t/help-with-making-a-calculator/24631 "2020-10-17T15:50:35Z")

</div>

Hello, I need help finishing my calculator. Unfortunatey the teacher has not been much help, and I have struggled with this for two and a half weeks now. This is my code. I will attach my flowchart as well. Please help…

---

## [Help with drawing a "rose" that draws each "petal" with a different random color](https://discourse.processing.org/t/help-with-drawing-a-rose-that-draws-each-petal-with-a-different-random-color/24654)

<div class="topic-metadata">

**Author:** [@kimchi](https://discourse.processing.org/u/kimchi)\
**Replies:** 3\
**Last updated:** [October 17, 2020, 11:26am UTC](https://discourse.processing.org/t/help-with-drawing-a-rose-that-draws-each-petal-with-a-different-random-color/24654 "2020-10-17T11:26:41Z")

</div>

Hi I need some help on this one program that draws a mathematical rose where it draws each petal of the rose as a different random color. When I run my code it only draws half of each petal as a random color and the othe…

---

## [Fill() in if statement not working](https://discourse.processing.org/t/fill-in-if-statement-not-working/24623)

<div class="topic-metadata">

**Author:** [@Khun](https://discourse.processing.org/u/Khun)\
**Replies:** 5\
**Last updated:** [October 17, 2020, 10:54am UTC](https://discourse.processing.org/t/fill-in-if-statement-not-working/24623 "2020-10-17T10:54:31Z")

</div>

Hello, I am a recent beginner towards processing api and I have an issue with fill(). (editted) int numRows; int rowLength; int startX; int startY; int rectWidth; int rectHeight; int takeaway; boolean isColour; boolea…

---

## [Running Processing in Raspi without Desktop environment](https://discourse.processing.org/t/running-processing-in-raspi-without-desktop-environment/24643)

<div class="topic-metadata">

**Author:** [@alkalino](https://discourse.processing.org/u/alkalino)\
**Replies:** 2\
**Last updated:** [October 17, 2020, 9:39am UTC](https://discourse.processing.org/t/running-processing-in-raspi-without-desktop-environment/24643 "2020-10-17T09:39:45Z")

</div>

Hi, I am working on a digital frame using an old screen and a Raspberry pi, i would love to show Processing sketches on it but i would love to avoid launching the desktop environment and run it from there. Do you know i…

---

## [Disappearance of curves in the order they appear](https://discourse.processing.org/t/disappearance-of-curves-in-the-order-they-appear/24553)

<div class="topic-metadata">

**Author:** [@qWici](https://discourse.processing.org/u/qWici)\
**Replies:** 2\
**Last updated:** [October 16, 2020, 7:40pm UTC](https://discourse.processing.org/t/disappearance-of-curves-in-the-order-they-appear/24553 "2020-10-16T19:40:45Z")

</div>

I have this code: var i = 0; function setup() { createCanvas(windowWidth, windowHeight); background(0); colorMode(HSB, 255); } function windowResized() { resizeCanvas(windowWidth, windowHeight); bac…

---

## [For statement to while statement](https://discourse.processing.org/t/for-statement-to-while-statement/24648)

<div class="topic-metadata">

**Author:** [@Ellie98](https://discourse.processing.org/u/Ellie98)\
**Replies:** 2\
**Last updated:** [October 16, 2020, 5:40pm UTC](https://discourse.processing.org/t/for-statement-to-while-statement/24648 "2020-10-16T17:40:23Z")

</div>

I have to change the for statement into a while statement. But i’m getting a different output. Where is my mistake? for (int k = 3; k \> 0; k--) { if (k%2 == 0) continue; println(k); } int k = 3; while (k \> 0) …

---

## [Issue with windowWidth under windowResize for mobile](https://discourse.processing.org/t/issue-with-windowwidth-under-windowresize-for-mobile/24621)

<div class="topic-metadata">

**Author:** [@minirachel](https://discourse.processing.org/u/minirachel)\
**Replies:** 2\
**Last updated:** [October 16, 2020, 5:01pm UTC](https://discourse.processing.org/t/issue-with-windowwidth-under-windowresize-for-mobile/24621 "2020-10-16T17:01:42Z")

</div>

Hi, I’m having difficulty resizing a canvas while using instance mode on mobile view. It looks like the final width it lands on is 3x’s the starting width. I’ve included relevant code below (view full published code here)…

---

## [Print in console](https://discourse.processing.org/t/print-in-console/24650)

<div class="topic-metadata">

**Author:** [@Alcys6](https://discourse.processing.org/u/Alcys6)\
**Replies:** 3\
**Last updated:** [October 16, 2020, 4:54pm UTC](https://discourse.processing.org/t/print-in-console/24650 "2020-10-16T16:54:18Z")

</div>

Hello, It has been quite a while that I used processing hence I have old habits that do not seems to work now. Previoulsy I was used to « print » the content of the variables in the console at the bottom of the screen …

---

## [RNG Based Cellular Automata Cave Generation Platformer](https://discourse.processing.org/t/rng-based-cellular-automata-cave-generation-platformer/24626)

<div class="topic-metadata">

**Author:** [@Aoyanco](https://discourse.processing.org/u/Aoyanco)\
**Replies:** 5\
**Last updated:** [October 16, 2020, 2:56pm UTC](https://discourse.processing.org/t/rng-based-cellular-automata-cave-generation-platformer/24626 "2020-10-16T14:56:49Z")

</div>

//int areaCounter=0; //int\[\]\[\] caves; int cols; int rows; int bias=42; int\[\]\[\] grid; int\[\]\[\] finalGrid; int onGroundTimer=1000000000; boolean isColliding; int onGround=1; boolean switch1; boolean wasd=true; boolean isLef…

---

## [Change scale based on position y](https://discourse.processing.org/t/change-scale-based-on-position-y/24635)

<div class="topic-metadata">

**Author:** [@ljna227](https://discourse.processing.org/u/ljna227)\
**Replies:** 1\
**Last updated:** [October 16, 2020, 10:59am UTC](https://discourse.processing.org/t/change-scale-based-on-position-y/24635 "2020-10-16T10:59:47Z")

</div>

I managed to make trees pop up in random locations on the screen. But I have to change the scale based on the y position of the trees. As the tree pop up lower in the screen, it should be bigger and fewer compared to the…

---

## [Star Wars Imperial light pattern generator](https://discourse.processing.org/t/star-wars-imperial-light-pattern-generator/24633)

<div class="topic-metadata">

**Author:** [@tribblesontoast](https://discourse.processing.org/u/tribblesontoast)\
**Replies:** 0\
**Last updated:** [October 16, 2020, 3:25am UTC](https://discourse.processing.org/t/star-wars-imperial-light-pattern-generator/24633 "2020-10-16T03:25:08Z")

</div>

Hi, just for giggles this morning I wrote a program that generates imperial light panel patterns. Might be useful for someone just starting out that wants to achieve this affect for a project. It’s not vertical like i…

---

## [Need help for animating pixels like in this video](https://discourse.processing.org/t/need-help-for-animating-pixels-like-in-this-video/24628)

<div class="topic-metadata">

**Author:** [@Iden](https://discourse.processing.org/u/Iden)\
**Replies:** 1\
**Last updated:** [October 16, 2020, 1:14am UTC](https://discourse.processing.org/t/need-help-for-animating-pixels-like-in-this-video/24628 "2020-10-16T01:14:16Z")

</div>

Hello guys ! I’m a beginner and I would need help with doing those animations in processing. I do not want to implement them in a real objectif (such as glasses) but I’m just really curious and motived about how I could …

---

## [Toggle rulers in sketch processing 3.53](https://discourse.processing.org/t/toggle-rulers-in-sketch-processing-3-53/9474)

<div class="topic-metadata">

**Author:** [@Erico](https://discourse.processing.org/u/Erico)\
**Replies:** 13\
**Last updated:** [October 15, 2020, 5:13pm UTC](https://discourse.processing.org/t/toggle-rulers-in-sketch-processing-3-53/9474 "2020-10-15T17:13:59Z")

</div>

I was watching the video by Dan Schiffman where he describes toggling rulers for the run box. I have not found a means of doing that. Does that function not exist in Sketch 3.53?

---

## [\_decrementPreload and preload](https://discourse.processing.org/t/decrementpreload-and-preload/24618)

<div class="topic-metadata">

**Author:** [@caterpillar](https://discourse.processing.org/u/caterpillar)\
**Replies:** 0\
**Last updated:** [October 15, 2020, 11:36am UTC](https://discourse.processing.org/t/decrementpreload-and-preload/24618 "2020-10-15T11:36:56Z")

</div>

I read libraries tutorial and have a question about Example of async function for callback and preload(). I followed its code and wrote an example. p5.prototype.loadXXX = function(callback) { const ret = {}; …

---

## [Text editor base?](https://discourse.processing.org/t/text-editor-base/23822)

<div class="topic-metadata">

**Author:** [@qewer3322](https://discourse.processing.org/u/qewer3322)\
**Replies:** 25\
**Last updated:** [October 15, 2020, 10:52am UTC](https://discourse.processing.org/t/text-editor-base/23822 "2020-10-15T10:52:16Z")

</div>

Hey! So I’m trying to make a text editor in processing something similar to Notepad++ but simpler. Here is what I got so far: PFont font; PImage save; PImage open; PImage brush; color theme1 = color(0, 8, 48); color t…

---

## [How to remove a specific object from an Arraylist](https://discourse.processing.org/t/how-to-remove-a-specific-object-from-an-arraylist/24599)

<div class="topic-metadata">

**Author:** [@Ohli](https://discourse.processing.org/u/Ohli)\
**Replies:** 8\
**Last updated:** [October 15, 2020, 10:48am UTC](https://discourse.processing.org/t/how-to-remove-a-specific-object-from-an-arraylist/24599 "2020-10-15T10:48:43Z")

</div>

I am working on a project for a beginner programming course. I am making a simple game where a vacuum character needs to collect small brown circles (rubbish) by moving over them and using a suction device, whilst avoidi…

---

## [In need of mac os x user for compiling](https://discourse.processing.org/t/in-need-of-mac-os-x-user-for-compiling/24608)

<div class="topic-metadata">

**Author:** [@korbin](https://discourse.processing.org/u/korbin)\
**Replies:** 0\
**Last updated:** [October 14, 2020, 10:50pm UTC](https://discourse.processing.org/t/in-need-of-mac-os-x-user-for-compiling/24608 "2020-10-14T22:50:16Z")

</div>

can someone please compile something into an app for mac os x as i am a windows user and am unable to do that. i want to impress my mom.

---

## [Python Mode : maximum recursion depth](https://discourse.processing.org/t/python-mode-maximum-recursion-depth/24588)

<div class="topic-metadata">

**Author:** [@Grusat](https://discourse.processing.org/u/Grusat)\
**Replies:** 4\
**Last updated:** [October 14, 2020, 9:54pm UTC](https://discourse.processing.org/t/python-mode-maximum-recursion-depth/24588 "2020-10-14T21:54:53Z")

</div>

Does anyone know how to increase the recursion limit like in python : sys.setrecursionlimit() ?

---

## [Svg library beta testers requested](https://discourse.processing.org/t/svg-library-beta-testers-requested/24551)

<div class="topic-metadata">

**Author:** [@bobcook](https://discourse.processing.org/u/bobcook)\
**Replies:** 3\
**Last updated:** [October 14, 2020, 7:20pm UTC](https://discourse.processing.org/t/svg-library-beta-testers-requested/24551 "2020-10-14T19:20:27Z")

</div>

I have developed an SVG library for P5. It’s unique feature is that it processes any SVG fragment in addition to files. The result is painted on an image with user-specified dimensions. There are numerous examples tog…

---

## [Programa palabras caen y se eliminan cuando las escribes](https://discourse.processing.org/t/programa-palabras-caen-y-se-eliminan-cuando-las-escribes/24603)

<div class="topic-metadata">

**Author:** [@mxcxs1](https://discourse.processing.org/u/mxcxs1)\
**Replies:** 1\
**Last updated:** [October 14, 2020, 5:41pm UTC](https://discourse.processing.org/t/programa-palabras-caen-y-se-eliminan-cuando-las-escribes/24603 "2020-10-14T17:41:10Z")

</div>

Hola, soy principiante en processing y me encargaron hacer un programa en donde palabras (que ya estén de alta en el programa) caigan aleatoriamente en pantalla, el usuario tiene que escribirlas antes de que lleguen al f…

---

## [NullPointerException when calling fill() from another class](https://discourse.processing.org/t/nullpointerexception-when-calling-fill-from-another-class/24594)

<div class="topic-metadata">

**Author:** [@S\_V](https://discourse.processing.org/u/S_V)\
**Replies:** 2\
**Last updated:** [October 14, 2020, 4:06pm UTC](https://discourse.processing.org/t/nullpointerexception-when-calling-fill-from-another-class/24594 "2020-10-14T16:06:57Z")

</div>

Hi, I’m new to processing and trying to learn the basics of it. However I’m having this weird error which is hindering me from properly organizing my code. Basically: I have a base class which has functions for drawing…

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

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