# Processing

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

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

**Page:** 177

---

## [Comment intégrer un profil ICC pour PGraphicsPDF](https://discourse.processing.org/t/comment-integrer-un-profil-icc-pour-pgraphicspdf/24701)

<div class="topic-metadata">

**Author:** [@Claude-CLd1](https://discourse.processing.org/u/Claude-CLd1)\
**Replies:** 0\
**Last updated:** [October 19, 2020, 10:00am UTC](https://discourse.processing.org/t/comment-integrer-un-profil-icc-pour-pgraphicspdf/24701 "2020-10-19T10:00:56Z")

</div>

Bonjour, savez-vous comment inclure un profil ICC dans le fichier PDF créé avec PGraphicsPDF. Merci de votre aide

---

## [How to get text(); vertical](https://discourse.processing.org/t/how-to-get-text-vertical/24685)

<div class="topic-metadata">

**Author:** [@Ellie98](https://discourse.processing.org/u/Ellie98)\
**Replies:** 2\
**Last updated:** [October 18, 2020, 9:21pm UTC](https://discourse.processing.org/t/how-to-get-text-vertical/24685 "2020-10-18T21:21:17Z")

</div>

How do I get the numbers vertical? Starting from 0 down to 9 char alphabet = 'a'; char nextChar; float chatX = 20; int spacing; char neuChar; float chaX = 20; char alp = 'Z'; char zahlenChar; float chaXX = 5; char cou…

---

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

---

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

---

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

---

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

---

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

---

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

---

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

---

## [Embed .txt file in a sketch](https://discourse.processing.org/t/embed-txt-file-in-a-sketch/24542)

<div class="topic-metadata">

**Author:** [@kurtis452](https://discourse.processing.org/u/kurtis452)\
**Replies:** 4\
**Last updated:** [October 14, 2020, 12:48pm UTC](https://discourse.processing.org/t/embed-txt-file-in-a-sketch/24542 "2020-10-14T12:48:10Z")

</div>

I’m making a simple desktop app which links to a few websites, but I also want it to be able to display a .txt file embedded in the sketch if possible. I’d prefer not to rebuild the document by doing loadlines(), but ins…

---

## [Making shape change color with keys](https://discourse.processing.org/t/making-shape-change-color-with-keys/24584)

<div class="topic-metadata">

**Author:** [@karbon](https://discourse.processing.org/u/karbon)\
**Replies:** 1\
**Last updated:** [October 14, 2020, 7:12am UTC](https://discourse.processing.org/t/making-shape-change-color-with-keys/24584 "2020-10-14T07:12:27Z")

</div>

I am coding for an assignment and I am having a hard time. I want to make a shape, then particles, change between red. yellow and blue by hitting keys. I can’t tell what I’m doing wrong. Please help! float offset =180; …

---

## [Image Coordinate Detecter for Processing](https://discourse.processing.org/t/image-coordinate-detecter-for-processing/24586)

<div class="topic-metadata">

**Author:** [@charmypatel](https://discourse.processing.org/u/charmypatel)\
**Replies:** 1\
**Last updated:** [October 14, 2020, 6:50am UTC](https://discourse.processing.org/t/image-coordinate-detecter-for-processing/24586 "2020-10-14T06:50:58Z")

</div>

There are tools on the web where you can submit a picture and the website will detect ‘points’ and outline your image so you can use them for the canvas HTML tag to draw animation. Is there any type of tool like this for…

---

## [Create a image with hyperlink](https://discourse.processing.org/t/create-a-image-with-hyperlink/24582)

<div class="topic-metadata">

**Author:** [@robocopper](https://discourse.processing.org/u/robocopper)\
**Replies:** 2\
**Last updated:** [October 14, 2020, 2:41am UTC](https://discourse.processing.org/t/create-a-image-with-hyperlink/24582 "2020-10-14T02:41:46Z")

</div>

Hello everyone! I would like to know if it is possible to create an image (as in loadImage() function) that is a link to an URL. I looked at the reference section, other questions, googled it, and found nothing about it.…

---

## [Help, how to change the size](https://discourse.processing.org/t/help-how-to-change-the-size/24517)

<div class="topic-metadata">

**Author:** [@Ellie98](https://discourse.processing.org/u/Ellie98)\
**Replies:** 7\
**Last updated:** [October 13, 2020, 3:49pm UTC](https://discourse.processing.org/t/help-how-to-change-the-size/24517 "2020-10-13T15:49:25Z")

</div>

Hello, how do I make that the size of the green square gets bigger if I go up with the mouse and the red one gets smaller at the same time and if I go down with the mouse that the green one gets smaller and the red one …

---

## [Memory leak in PGraphics](https://discourse.processing.org/t/memory-leak-in-pgraphics/24500)

<div class="topic-metadata">

**Author:** [@NullPointer](https://discourse.processing.org/u/NullPointer)\
**Replies:** 10\
**Last updated:** [October 13, 2020, 6:48pm UTC](https://discourse.processing.org/t/memory-leak-in-pgraphics/24500 "2020-10-13T18:48:02Z")

</div>

Hi, I am working on a scientific visualization project for my degree and it requires us to draw many circles to the screen representing trees. This we did via the following code which runs as a thread and updates its PGr…

---

## [Screen flickering when running Particle system](https://discourse.processing.org/t/screen-flickering-when-running-particle-system/24540)

<div class="topic-metadata">

**Author:** [@Kachow095](https://discourse.processing.org/u/Kachow095)\
**Replies:** 1\
**Last updated:** [October 13, 2020, 6:33pm UTC](https://discourse.processing.org/t/screen-flickering-when-running-particle-system/24540 "2020-10-13T18:33:10Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I was coding a particle system that spews out fountains. I have been working to make the program more efficient, but now it starts flickering wh…

---

## [Box fixed in front of camera Processing](https://discourse.processing.org/t/box-fixed-in-front-of-camera-processing/24562)

<div class="topic-metadata">

**Author:** [@Faceless](https://discourse.processing.org/u/Faceless)\
**Replies:** 1\
**Last updated:** [October 13, 2020, 2:23pm UTC](https://discourse.processing.org/t/box-fixed-in-front-of-camera-processing/24562 "2020-10-13T14:23:45Z")

</div>

Hey, is there any way to fix a box in front of the camera? Im using this to move the camera with the mouse: rotationAngle = map(mouseX, 0, width, 0, TWO\_PI); elevationAngle = map(mouseY, 0, height, 0, PI); …

---

## [Randomly coloring x amount of tiles within a grid](https://discourse.processing.org/t/randomly-coloring-x-amount-of-tiles-within-a-grid/24549)

<div class="topic-metadata">

**Author:** [@arizona440](https://discourse.processing.org/u/arizona440)\
**Replies:** 7\
**Last updated:** [October 13, 2020, 12:02pm UTC](https://discourse.processing.org/t/randomly-coloring-x-amount-of-tiles-within-a-grid/24549 "2020-10-13T12:02:24Z")

</div>

Hey guys, Im working on a project for school where I have to randomly generate x amount of colored tiles within a grid. In my current code every tile in the grid randomly receives a red or blue color. What do I need to…

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

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