# Processing

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

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

**Page:** 188

---

## [Any way to write to just the R, G, or B channel of the canvas? blendMode(ADD) is not working as expected](https://discourse.processing.org/t/any-way-to-write-to-just-the-r-g-or-b-channel-of-the-canvas-blendmode-add-is-not-working-as-expected/23347)

<div class="topic-metadata">

**Author:** [@neel](https://discourse.processing.org/u/neel)\
**Replies:** 7\
**Last updated:** [August 20, 2020, 1:09pm UTC](https://discourse.processing.org/t/any-way-to-write-to-just-the-r-g-or-b-channel-of-the-canvas-blendmode-add-is-not-working-as-expected/23347 "2020-08-20T13:09:30Z")

</div>

Hey all. I’m trying to use blendMode() in a pretty specific way, but I’m getting results I wouldn’t expect. I would like to draw random red rectangles (255,0,0) and green rectangles (0,255,0) and then use a fragment shad…

---

## [Is it possible to fill pixel information with an array of images?](https://discourse.processing.org/t/is-it-possible-to-fill-pixel-information-with-an-array-of-images/23325)

<div class="topic-metadata">

**Author:** [@jesspayne](https://discourse.processing.org/u/jesspayne)\
**Replies:** 2\
**Last updated:** [August 19, 2020, 5:22pm UTC](https://discourse.processing.org/t/is-it-possible-to-fill-pixel-information-with-an-array-of-images/23325 "2020-08-19T17:22:57Z")

</div>

Hi all, I’m working on a uni project and wondered whether Processing could help. I’m looking to fill the pixels of an image with an array of photographs. I have come across this tutorial but not sure how to substitute t…

---

## [Key repeat function](https://discourse.processing.org/t/key-repeat-function/23358)

<div class="topic-metadata">

**Author:** [@rasheeda](https://discourse.processing.org/u/rasheeda)\
**Replies:** 3\
**Last updated:** [August 19, 2020, 4:43pm UTC](https://discourse.processing.org/t/key-repeat-function/23358 "2020-08-19T16:43:17Z")

</div>

I have implemented ball bouncing by boundary. Keypressed function accept arrow key. How to process keyrepeat when key is kept pressed. Keypressed is generated only when key is released and pressed again. Appreciate an…

---

## [Geomerative questions](https://discourse.processing.org/t/geomerative-questions/23272)

<div class="topic-metadata">

**Author:** [@yhlaskerimov](https://discourse.processing.org/u/yhlaskerimov)\
**Replies:** 17\
**Last updated:** [August 19, 2020, 1:49pm UTC](https://discourse.processing.org/t/geomerative-questions/23272 "2020-08-19T13:49:56Z")

</div>

Hello everyone ! Nowadays I’m trying to learn geomerative library and i have questions. 1st question: “How to load fonts ?”. I can load only FreeSans.ttf. If I put another font it says “Null Pointer Exception”. I loade…

---

## [How can I set a move while hold a key?](https://discourse.processing.org/t/how-can-i-set-a-move-while-hold-a-key/23346)

<div class="topic-metadata">

**Author:** [@viniciusbrbio](https://discourse.processing.org/u/viniciusbrbio)\
**Replies:** 6\
**Last updated:** [August 19, 2020, 12:05pm UTC](https://discourse.processing.org/t/how-can-i-set-a-move-while-hold-a-key/23346 "2020-08-19T12:05:52Z")

</div>

Hi everyone, I made this little code and I want to hold the ‘d’ key to make the ball move to the right. I want to move the ball until the edge of the screen just holding ‘d’ key. In the way that the code is, I need to …

---

## [Controlp5 - dragging controls?](https://discourse.processing.org/t/controlp5-dragging-controls/23349)

<div class="topic-metadata">

**Author:** [@Impossible\_code](https://discourse.processing.org/u/Impossible_code)\
**Replies:** 0\
**Last updated:** [August 19, 2020, 4:23am UTC](https://discourse.processing.org/t/controlp5-dragging-controls/23349 "2020-08-19T04:23:59Z")

</div>

It appears at some point controlP5 had an option to drag controls around. I can’t seem to get that working. The library doesn’t seem to have been updated for a number of years. Maybe changes to processing over the years …

---

## [How to mouseclicked()](https://discourse.processing.org/t/how-to-mouseclicked/23316)

<div class="topic-metadata">

**Author:** [@greenknight71](https://discourse.processing.org/u/greenknight71)\
**Replies:** 2\
**Last updated:** [August 19, 2020, 3:36am UTC](https://discourse.processing.org/t/how-to-mouseclicked/23316 "2020-08-19T03:36:50Z")

</div>

How does mouseClicked() work? Im trying to make it so that when a mouse is clicked, it ends. void mouseClicked(){ if(shot){ end(); } else{ return; } }

---

## [Help with launch()](https://discourse.processing.org/t/help-with-launch/23323)

<div class="topic-metadata">

**Author:** [@CaseyJ](https://discourse.processing.org/u/CaseyJ)\
**Replies:** 7\
**Last updated:** [August 18, 2020, 4:44pm UTC](https://discourse.processing.org/t/help-with-launch/23323 "2020-08-18T16:44:19Z")

</div>

Looking into how to trigger a task, script, or executable in Processing. Basically I want Processing to run a script that deletes all files if there are any files in a folder during startup. I found this script works g…

---

## [How to render an overlay window within a Processing sketch?](https://discourse.processing.org/t/how-to-render-an-overlay-window-within-a-processing-sketch/23326)

<div class="topic-metadata">

**Author:** [@benvining](https://discourse.processing.org/u/benvining)\
**Replies:** 5\
**Last updated:** [August 18, 2020, 2:11pm UTC](https://discourse.processing.org/t/how-to-render-an-overlay-window-within-a-processing-sketch/23326 "2020-08-18T14:11:59Z")

</div>

Hello everyone, I’m working on creating a (relatively) simple Pokemon-like game in Processing – but it is complex enough that there are several different screens the user can be viewing. For example, there’s a user prof…

---

## [Target VM failed to initialize on Mac](https://discourse.processing.org/t/target-vm-failed-to-initialize-on-mac/23329)

<div class="topic-metadata">

**Author:** [@benvining](https://discourse.processing.org/u/benvining)\
**Replies:** 1\
**Last updated:** [August 18, 2020, 11:41am UTC](https://discourse.processing.org/t/target-vm-failed-to-initialize-on-mac/23329 "2020-08-18T11:41:05Z")

</div>

Hello all, I know there have been discussions about this issue in the past, but most of the solutions I can find online are dealing with Windows computers with Nvidia graphics cards. I am on a MacBook Pro, running OSX 1…

---

## [Table .sort() function not working?](https://discourse.processing.org/t/table-sort-function-not-working/23283)

<div class="topic-metadata">

**Author:** [@benvining](https://discourse.processing.org/u/benvining)\
**Replies:** 3\
**Last updated:** [August 18, 2020, 7:43am UTC](https://discourse.processing.org/t/table-sort-function-not-working/23283 "2020-08-18T07:43:15Z")

</div>

Hi everyone, I have a Table that I’ve loaded from an external .csv file, and I’d like to sort the table rows by numeric values in a certain column. However, when I run Table.sort() or Table.sortReverse(), it keeps givi…

---

## [Seven Nation Army effect](https://discourse.processing.org/t/seven-nation-army-effect/23293)

<div class="topic-metadata">

**Author:** [@senior-byte](https://discourse.processing.org/u/senior-byte)\
**Replies:** 0\
**Last updated:** [August 16, 2020, 3:22pm UTC](https://discourse.processing.org/t/seven-nation-army-effect/23293 "2020-08-16T15:22:43Z")

</div>

Hey guys, I need some help. I try to create a real live version of the „Seven Nation Army - The White Stripes“ music clip with a webcam. So, the small video in the front which is getting bigger should have a transparen…

---

## [Get the vertical axis of object's array](https://discourse.processing.org/t/get-the-vertical-axis-of-objects-array/23319)

<div class="topic-metadata">

**Author:** [@chanof](https://discourse.processing.org/u/chanof)\
**Replies:** 4\
**Last updated:** [August 18, 2020, 3:40am UTC](https://discourse.processing.org/t/get-the-vertical-axis-of-objects-array/23319 "2020-08-18T03:40:05Z")

</div>

Im trying to center this cluster of cubes, to be able to rotate them on the vertical axis, currently it rotate by using the corner as axis, i tried a lot instruments, translate, ortho, rotate, i really need a hand to fi…

---

## [Gravity in a solar system](https://discourse.processing.org/t/gravity-in-a-solar-system/23299)

<div class="topic-metadata">

**Author:** [@Cybernet](https://discourse.processing.org/u/Cybernet)\
**Replies:** 5\
**Last updated:** [August 17, 2020, 2:36pm UTC](https://discourse.processing.org/t/gravity-in-a-solar-system/23299 "2020-08-17T14:36:11Z")

</div>

I’m trying to simulate a solar system type thing where on planet orbits around a sun. The planet has an initial velocity of x+2. However, it always seems to follow this long elliptical orbit. I’m trying to get it so tha…

---

## [PDF export with createGraphics won't play nice with selectOutput file selector](https://discourse.processing.org/t/pdf-export-with-creategraphics-wont-play-nice-with-selectoutput-file-selector/23289)

<div class="topic-metadata">

**Author:** [@raron](https://discourse.processing.org/u/raron)\
**Replies:** 1\
**Last updated:** [August 17, 2020, 4:37pm UTC](https://discourse.processing.org/t/pdf-export-with-creategraphics-wont-play-nice-with-selectoutput-file-selector/23289 "2020-08-17T16:37:22Z")

</div>

I might be a bit over my head, apologies for the semi-long sketch and wall-of-text. I’m really puzzled by this! I have a sketch with a PDF export that works great on it’s own, but that just saves a file in the sketch fo…

---

## [Whack-A-Mole Game](https://discourse.processing.org/t/whack-a-mole-game/23113)

<div class="topic-metadata">

**Author:** [@chemicalite](https://discourse.processing.org/u/chemicalite)\
**Replies:** 9\
**Last updated:** [August 17, 2020, 2:30pm UTC](https://discourse.processing.org/t/whack-a-mole-game/23113 "2020-08-17T14:30:14Z")

</div>

Hello there! I am a somewhat beginner in Processing. So far, all I’ve learned is for and while loops, simple animation, if and if else statements, drawing primitives, and some other related things along with relative ba…

---

## [Ideas which I want to realize in Processing](https://discourse.processing.org/t/ideas-which-i-want-to-realize-in-processing/23130)

<div class="topic-metadata">

**Author:** [@yhlaskerimov](https://discourse.processing.org/u/yhlaskerimov)\
**Replies:** 23\
**Last updated:** [August 17, 2020, 11:18am UTC](https://discourse.processing.org/t/ideas-which-i-want-to-realize-in-processing/23130 "2020-08-17T11:18:06Z")

</div>

Hello, everyone. I wanna give a motion to texts like this. Can we do it in processing ? If we can, who has an idea how to do it ? Thanks everyone who answers)

---

## [Notarizing exported application on macOS 10.15 (Catalina)](https://discourse.processing.org/t/notarizing-exported-application-on-macos-10-15-catalina/22622)

<div class="topic-metadata">

**Author:** [@seth.bashford](https://discourse.processing.org/u/seth.bashford)\
**Replies:** 1\
**Last updated:** [August 17, 2020, 10:29am UTC](https://discourse.processing.org/t/notarizing-exported-application-on-macos-10-15-catalina/22622 "2020-08-17T10:29:26Z")

</div>

I am trying to notarize an exported application on macOS 10.15 (Catalina) as it is required. My steps are as follows. Export application without embedding Java. “JDK 14 is the first release that complies with the new m…

---

## [Any plans to include a LISP mode for processing?](https://discourse.processing.org/t/any-plans-to-include-a-lisp-mode-for-processing/23301)

<div class="topic-metadata">

**Author:** [@katesfb](https://discourse.processing.org/u/katesfb)\
**Replies:** 2\
**Last updated:** [August 17, 2020, 9:34am UTC](https://discourse.processing.org/t/any-plans-to-include-a-lisp-mode-for-processing/23301 "2020-08-17T09:34:42Z")

</div>

Hi, Currently processing has programming language modes for JavaScript, Python. Are there any plans to include LISP (common LISP) as a mode in processing? Common LISP is a powerful AI language that i think would fit wel…

---

## [Text() overlaps itself every time draw() is called no matter what](https://discourse.processing.org/t/text-overlaps-itself-every-time-draw-is-called-no-matter-what/23298)

<div class="topic-metadata">

**Author:** [@Crysp](https://discourse.processing.org/u/Crysp)\
**Replies:** 3\
**Last updated:** [August 17, 2020, 1:59am UTC](https://discourse.processing.org/t/text-overlaps-itself-every-time-draw-is-called-no-matter-what/23298 "2020-08-17T01:59:44Z")

</div>

I am trying to make Conway’s Game Of Life in Processing and everything works, but I want to have a textbox that shows how many generations have passed. I opted to use the text() command, which looks as follows: fill(255…

---

## [Rotate a smilie around its center](https://discourse.processing.org/t/rotate-a-smilie-around-its-center/23291)

<div class="topic-metadata">

**Author:** [@txwgnd](https://discourse.processing.org/u/txwgnd)\
**Replies:** 2\
**Last updated:** [August 16, 2020, 7:36pm UTC](https://discourse.processing.org/t/rotate-a-smilie-around-its-center/23291 "2020-08-16T19:36:45Z")

</div>

Hello, i try to write a method that rotates my Smilie object around its center axis. The show() function draws the complete object based on the center coordinates. The problem is that when I try to rotate the whole th…

---

## [Trouble with P3D box edges clipping](https://discourse.processing.org/t/trouble-with-p3d-box-edges-clipping/23201)

<div class="topic-metadata">

**Author:** [@Natalie](https://discourse.processing.org/u/Natalie)\
**Replies:** 13\
**Last updated:** [August 16, 2020, 6:57am UTC](https://discourse.processing.org/t/trouble-with-p3d-box-edges-clipping/23201 "2020-08-16T06:57:38Z")

</div>

Hello everyone! New to the forum, all help is appreciated! I’m working on a P3D project and am drawing boxes with a stroke on the edges. The issue that I noticed is that when I move around them (I’m using queasycam) the…

---

## [Looping logical operators?](https://discourse.processing.org/t/looping-logical-operators/23267)

<div class="topic-metadata">

**Author:** [@eltrem](https://discourse.processing.org/u/eltrem)\
**Replies:** 2\
**Last updated:** [August 15, 2020, 4:51pm UTC](https://discourse.processing.org/t/looping-logical-operators/23267 "2020-08-15T16:51:06Z")

</div>

Hi all! I’m wondering if there’s a way to evaluate operators in a loop… ooops…i hope this statement makes any sense… maybe it is better if i show my code first: for(int i=0; i\<height; i++){ if((scalenotes.hasVal…

---

## [Println(what); - "what" argument datatype](https://discourse.processing.org/t/println-what-what-argument-datatype/23221)

<div class="topic-metadata">

**Author:** [@Natalie](https://discourse.processing.org/u/Natalie)\
**Replies:** 10\
**Last updated:** [August 15, 2020, 4:27pm UTC](https://discourse.processing.org/t/println-what-what-argument-datatype/23221 "2020-08-15T16:27:59Z")

</div>

I’m making a debug tool in which I can print out values on a gui every frame, and I want to be able to input any type of value—much like how println/print works. After looking at the reference page, I noticed how it sai…

---

## [No shading after flipping x axis wth scale(-1, 1, 1). How to fix this?](https://discourse.processing.org/t/no-shading-after-flipping-x-axis-wth-scale-1-1-1-how-to-fix-this/23177)

<div class="topic-metadata">

**Author:** [@brcow](https://discourse.processing.org/u/brcow)\
**Replies:** 8\
**Last updated:** [August 15, 2020, 2:33pm UTC](https://discourse.processing.org/t/no-shading-after-flipping-x-axis-wth-scale-1-1-1-how-to-fix-this/23177 "2020-08-15T14:33:14Z")

</div>

The following simple code works perfectly. But the shading is gone if I enable scale(-1, 1, 1). What is the proper way to flip the object with respect to y-z plane without losing shading? I guess this may be caused by cu…

---

## [Using class specific vectors(?) outside class](https://discourse.processing.org/t/using-class-specific-vectors-outside-class/23269)

<div class="topic-metadata">

**Author:** [@JunQu](https://discourse.processing.org/u/JunQu)\
**Replies:** 1\
**Last updated:** [August 15, 2020, 11:04am UTC](https://discourse.processing.org/t/using-class-specific-vectors-outside-class/23269 "2020-08-15T11:04:18Z")

</div>

My problem is, that I need two different positions for a collision, that will later result in a “you died” or “game over” screen. For now. Although my two positions are in two different classes. I have tried creating a c…

---

## [How Can I crop an image in processing js with javascript?](https://discourse.processing.org/t/how-can-i-crop-an-image-in-processing-js-with-javascript/2048)

<div class="topic-metadata">

**Author:** [@donammar](https://discourse.processing.org/u/donammar)\
**Replies:** 3\
**Last updated:** [August 15, 2020, 10:16am UTC](https://discourse.processing.org/t/how-can-i-crop-an-image-in-processing-js-with-javascript/2048 "2020-08-15T10:16:49Z")

</div>

How Can I crop an image in processing js with javascript ?

---

## [Help with Error](https://discourse.processing.org/t/help-with-error/23261)

<div class="topic-metadata">

**Author:** [@doggointhehouse](https://discourse.processing.org/u/doggointhehouse)\
**Replies:** 1\
**Last updated:** [August 14, 2020, 9:00pm UTC](https://discourse.processing.org/t/help-with-error/23261 "2020-08-14T21:00:33Z")

</div>

Hello, I am trying to make a program. However, after I run the project every so often. I get this huge long error. Sometimes, it happens after I run my program once, or after a few times. java.lang.Exception at process…

---

## [Animation with 3 different sketches combined using Switch with keyboard input](https://discourse.processing.org/t/animation-with-3-different-sketches-combined-using-switch-with-keyboard-input/23258)

<div class="topic-metadata">

**Author:** [@Gus\_Fermin](https://discourse.processing.org/u/Gus_Fermin)\
**Replies:** 11\
**Last updated:** [August 14, 2020, 6:20pm UTC](https://discourse.processing.org/t/animation-with-3-different-sketches-combined-using-switch-with-keyboard-input/23258 "2020-08-14T18:20:35Z")

</div>

Hi there, I am combining 3 different (but similar) sketches into one sketch, and using switch to change states. Using the keyboard input of ‘1’, ‘2’, ‘3’. However, my sketch does not switch when I press the keys. Becaus…

---

## [I need a line with different random numbers that have been picked once](https://discourse.processing.org/t/i-need-a-line-with-different-random-numbers-that-have-been-picked-once/23163)

<div class="topic-metadata">

**Author:** [@lu\_mime](https://discourse.processing.org/u/lu_mime)\
**Replies:** 2\
**Last updated:** [August 10, 2020, 8:18am UTC](https://discourse.processing.org/t/i-need-a-line-with-different-random-numbers-that-have-been-picked-once/23163 "2020-08-10T08:18:26Z")

</div>

I’m trying to solve an exercise, that i have to do a line, with for cycle. I need that it looks like this 6 8 9 3 1 but the only thing that I have is multiple numbers, in the same place, multiple times. I don’t kno…

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

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