# Processing

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

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

**Page:** 53

---

## [Help with a quiz I need to create with the random()](https://discourse.processing.org/t/help-with-a-quiz-i-need-to-create-with-the-random/40409)

<div class="topic-metadata">

**Author:** [@iinnessic](https://discourse.processing.org/u/iinnessic)\
**Replies:** 17\
**Last updated:** [January 6, 2023, 12:42pm UTC](https://discourse.processing.org/t/help-with-a-quiz-i-need-to-create-with-the-random/40409 "2023-01-06T12:42:15Z")

</div>

Hello! So I’m really desperate about that homework I’ve got to do. So the task is creating a quiz with 3 images as the answer options and those images always change their place. To chose one of those answers you click a…

---

## [IllegalArgumentException: This table has no column named ' '](https://discourse.processing.org/t/illegalargumentexception-this-table-has-no-column-named/40464)

<div class="topic-metadata">

**Author:** [@sabisiiuuu](https://discourse.processing.org/u/sabisiiuuu)\
**Replies:** 3\
**Last updated:** [January 6, 2023, 12:15pm UTC](https://discourse.processing.org/t/illegalargumentexception-this-table-has-no-column-named/40464 "2023-01-06T12:15:51Z")

</div>

Hello there! So, I have the following csv table: Jahr;Insgesamt 2022;17392 2021;18037 2020;18515 2019;18351 2018;17695 2017;16745 2016;16088 2015;15083 2014;14316 2013;13241 2012;12158 2011;11147 And this is my code: …

---

## [Array comparison](https://discourse.processing.org/t/array-comparison/37207)

<div class="topic-metadata">

**Author:** [@mvb](https://discourse.processing.org/u/mvb)\
**Replies:** 4\
**Last updated:** [January 6, 2023, 11:03am UTC](https://discourse.processing.org/t/array-comparison/37207 "2023-01-06T11:03:05Z")

</div>

Hello, I have the following code, you have to get a canvas with two lines of numbers from the two arrays. The top row must contain the values of the top\_array array and the bottom row must contain the values of the bott…

---

## [The function addColumn(String) does not exist](https://discourse.processing.org/t/the-function-addcolumn-string-does-not-exist/40459)

<div class="topic-metadata">

**Author:** [@sabisiiuuu](https://discourse.processing.org/u/sabisiiuuu)\
**Replies:** 9\
**Last updated:** [January 5, 2023, 7:14pm UTC](https://discourse.processing.org/t/the-function-addcolumn-string-does-not-exist/40459 "2023-01-05T19:14:50Z")

</div>

Hello! I tried running this Table code from the page of Processing https://processing.org/reference/Table.html Table table; void setup() { table = new Table(); table.addColumn("id"); table.addColumn("species…

---

## [Use save(); in the background](https://discourse.processing.org/t/use-save-in-the-background/40446)

<div class="topic-metadata">

**Author:** [@Lissie](https://discourse.processing.org/u/Lissie)\
**Replies:** 5\
**Last updated:** [January 5, 2023, 4:43pm UTC](https://discourse.processing.org/t/use-save-in-the-background/40446 "2023-01-05T16:43:13Z")

</div>

When i want to use the save function, the programm lags for a few milliseconds, can i make it so it does it in the background?

---

## [Syntax incomplete statement or extra code near 'extraneous input' help](https://discourse.processing.org/t/syntax-incomplete-statement-or-extra-code-near-extraneous-input-help/40462)

<div class="topic-metadata">

**Author:** [@Ethan1](https://discourse.processing.org/u/Ethan1)\
**Replies:** 8\
**Last updated:** [January 5, 2023, 5:12pm UTC](https://discourse.processing.org/t/syntax-incomplete-statement-or-extra-code-near-extraneous-input-help/40462 "2023-01-05T17:12:10Z")

</div>

I have an assignment to do where there is a stationary target in the middle and enemies move towards the target and the user will need to click over the enemies to destroy them. I have encountered a problem in my Target …

---

## [Camera in Processing (ViewPort)](https://discourse.processing.org/t/camera-in-processing-viewport/40442)

<div class="topic-metadata">

**Author:** [@OverLord](https://discourse.processing.org/u/OverLord)\
**Replies:** 6\
**Last updated:** [January 5, 2023, 4:05pm UTC](https://discourse.processing.org/t/camera-in-processing-viewport/40442 "2023-01-05T16:05:39Z")

</div>

Hello Community Processing. I want to make a 2D game with a top view, I need the camera to follow the player, but how many times I have not tried it either “floated” or flew away.

---

## [I would like to know if there is any way to execute something with a short time without freeze the code](https://discourse.processing.org/t/i-would-like-to-know-if-there-is-any-way-to-execute-something-with-a-short-time-without-freeze-the-code/40445)

<div class="topic-metadata">

**Author:** [@Benjamin21](https://discourse.processing.org/u/Benjamin21)\
**Replies:** 5\
**Last updated:** [January 5, 2023, 9:50am UTC](https://discourse.processing.org/t/i-would-like-to-know-if-there-is-any-way-to-execute-something-with-a-short-time-without-freeze-the-code/40445 "2023-01-05T09:50:46Z")

</div>

Hello, I would like to know if there is any way to execute something after some time without using delay() because it’s freezing the code while using this delay. If anyone can help me !! Thanks :wink:

---

## [Как сделать трехфазную нулевую схему?](https://discourse.processing.org/t/topic/40454)

<div class="topic-metadata">

**Author:** [@fancer](https://discourse.processing.org/u/fancer)\
**Replies:** 0\
**Last updated:** [January 5, 2023, 7:36am UTC](https://discourse.processing.org/t/topic/40454 "2023-01-05T07:36:57Z")

</div>

Good afternoon! I need help writing code for a sifu with a three-phase zero circuit, I can’t figure out how to write it, in my example I only have a three-phase bridge circuit

---

## [Rasterizing a rotating PShape 3d Obj](https://discourse.processing.org/t/rasterizing-a-rotating-pshape-3d-obj/40448)

<div class="topic-metadata">

**Author:** [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Replies:** 0\
**Last updated:** [January 4, 2023, 11:25pm UTC](https://discourse.processing.org/t/rasterizing-a-rotating-pshape-3d-obj/40448 "2023-01-04T23:25:56Z")

</div>

Hi Processing Community! I am running into a wall creating the rasterized layer for my rotating PShape 3d models. Here is my current code: PShape obj, obj2; PImage txtr; float theta; PGraphics canvas; void setup(){ …

---

## [Speedometer, tachometer and temperature](https://discourse.processing.org/t/speedometer-tachometer-and-temperature/39925)

<div class="topic-metadata">

**Author:** [@virtualreality](https://discourse.processing.org/u/virtualreality)\
**Replies:** 20\
**Last updated:** [January 4, 2023, 12:34pm UTC](https://discourse.processing.org/t/speedometer-tachometer-and-temperature/39925 "2023-01-04T12:34:51Z")

</div>

I only done the fuel gauge coding. but for speedometer in KM/Hr, Tachometer in RPM, Temperature degree celcius with the labeling of C and H. I need to combine speedometer into the fuel gauge in the same circle and work i…

---

## [Type mismatch: cannot convert from float to int](https://discourse.processing.org/t/type-mismatch-cannot-convert-from-float-to-int/40434)

<div class="topic-metadata">

**Author:** [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Replies:** 3\
**Last updated:** [January 4, 2023, 6:01am UTC](https://discourse.processing.org/t/type-mismatch-cannot-convert-from-float-to-int/40434 "2023-01-04T06:01:18Z")

</div>

Hi! I am receiving the following errors when trying to implement a 3d height map of triangles. “Type mismatch: cannot convert from float to int” The function “triangle()” expects parameters like: “triangle(float, floa…

---

## [Add a "mask"/ "image" on top of these to work with a kind of cut out moving circle](https://discourse.processing.org/t/add-a-mask-image-on-top-of-these-to-work-with-a-kind-of-cut-out-moving-circle/39928)

<div class="topic-metadata">

**Author:** [@vrtx](https://discourse.processing.org/u/vrtx)\
**Replies:** 6\
**Last updated:** [January 4, 2023, 3:42am UTC](https://discourse.processing.org/t/add-a-mask-image-on-top-of-these-to-work-with-a-kind-of-cut-out-moving-circle/39928 "2023-01-04T03:42:30Z")

</div>

hi there, people…! I have been mixing lots of codes and learned a lot. Need to get more into the real codes, but its for another topic/time. I made this, and somethings is happenig, wich i have no ideia wy and how to f…

---

## [PApplet, switching between multiple windows with key input](https://discourse.processing.org/t/papplet-switching-between-multiple-windows-with-key-input/40435)

<div class="topic-metadata">

**Author:** [@Mikey83](https://discourse.processing.org/u/Mikey83)\
**Replies:** 1\
**Last updated:** [January 4, 2023, 1:45am UTC](https://discourse.processing.org/t/papplet-switching-between-multiple-windows-with-key-input/40435 "2023-01-04T01:45:45Z")

</div>

Hi, im playing around with multiple windows with PApplet and just wondering if there’s any good resources available, cant seem to find any help on the things im trying to do like switch between windows being active by pr…

---

## [Dynamic prefix sum](https://discourse.processing.org/t/dynamic-prefix-sum/40421)

<div class="topic-metadata">

**Author:** [@neon124](https://discourse.processing.org/u/neon124)\
**Replies:** 2\
**Last updated:** [January 3, 2023, 10:24pm UTC](https://discourse.processing.org/t/dynamic-prefix-sum/40421 "2023-01-03T22:24:53Z")

</div>

Is there a data structure that can return the prefix sum of an array, update an element, and insert/remove entries from an array in O(log n)? “prefix sum” is the sum of all items from the first to the provided index. …

---

## [Schotter grid// rasterized image](https://discourse.processing.org/t/schotter-grid-rasterized-image/40419)

<div class="topic-metadata">

**Author:** [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Replies:** 2\
**Last updated:** [January 3, 2023, 2:20am UTC](https://discourse.processing.org/t/schotter-grid-rasterized-image/40419 "2023-01-03T02:20:05Z")

</div>

Happy New Year, Processing community! :stars: :christmas\_tree: :stars: :christmas\_tree: :stars: :stars: :stars: :fireworks: :sparkler: :confetti\_ball: :tada: :confetti\_ball: :tada: :partying\_face: :partying\_face: :tada: …

---

## [It´s possible add a button on IDE?](https://discourse.processing.org/t/it-s-possible-add-a-button-on-ide/40359)

<div class="topic-metadata">

**Author:** [@erkosone](https://discourse.processing.org/u/erkosone)\
**Replies:** 5\
**Last updated:** [January 3, 2023, 2:45pm UTC](https://discourse.processing.org/t/it-s-possible-add-a-button-on-ide/40359 "2023-01-03T14:45:58Z")

</div>

Hello community! I have a question, would it be possible to add an extra button in the IDE next to the play and stop button to launch a custom script? Exists any version of custom IDE?

---

## [How should I organise this? 256 array with conditional content - Class?](https://discourse.processing.org/t/how-should-i-organise-this-256-array-with-conditional-content-class/40290)

<div class="topic-metadata">

**Author:** [@JonnieNightTime](https://discourse.processing.org/u/JonnieNightTime)\
**Replies:** 12\
**Last updated:** [January 3, 2023, 12:55pm UTC](https://discourse.processing.org/t/how-should-i-organise-this-256-array-with-conditional-content-class/40290 "2023-01-03T12:55:38Z")

</div>

Hi All, Festive greetings. What’s the best way to do this? I will have up to 256 different sections of a live AV performance - each potentially featuring a different bit of cool codey Processing stuff. Should I be using…

---

## [A grid of grids with variable number of cells](https://discourse.processing.org/t/a-grid-of-grids-with-variable-number-of-cells/40418)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 4\
**Last updated:** [January 3, 2023, 2:58am UTC](https://discourse.processing.org/t/a-grid-of-grids-with-variable-number-of-cells/40418 "2023-01-03T02:58:05Z")

</div>

Hello! :slightly\_smiling\_face: I’m trying to figure out where I can initialize a new random number of cells for each grid object. For example, the first grid might be divided 2 times, the second grid divided 7 times, et…

---

## [The sketch crashes when I press some other key that isn't a letter or a number](https://discourse.processing.org/t/the-sketch-crashes-when-i-press-some-other-key-that-isnt-a-letter-or-a-number/31960)

<div class="topic-metadata">

**Author:** [@vinijoncrafts](https://discourse.processing.org/u/vinijoncrafts)\
**Replies:** 3\
**Last updated:** [January 2, 2023, 11:12pm UTC](https://discourse.processing.org/t/the-sketch-crashes-when-i-press-some-other-key-that-isnt-a-letter-or-a-number/31960 "2023-01-02T23:12:23Z")

</div>

If I press a key like shift, alt, caps lock, etc. the sketch crashes. How do I make this stop happening? Thanks for reading this :slight\_smile: here’s the code: float v = 5; int x = 1920/2; int y = 1080/2; boolean \[\] ke…

---

## [Find centre of pyramid and rotate from there, not the apex](https://discourse.processing.org/t/find-centre-of-pyramid-and-rotate-from-there-not-the-apex/40411)

<div class="topic-metadata">

**Author:** [@JonnieNightTime](https://discourse.processing.org/u/JonnieNightTime)\
**Replies:** 4\
**Last updated:** [January 2, 2023, 10:59pm UTC](https://discourse.processing.org/t/find-centre-of-pyramid-and-rotate-from-there-not-the-apex/40411 "2023-01-02T22:59:05Z")

</div>

Hi all, How can I rotate this from a centre point within the geometry rather from the vertex /apex (not sure of the correct terminology) PGraphics canvas; PVector\[\] basePts = new PVector\[3\]; void setup() { size(768,…

---

## [Syntax error even though there is none](https://discourse.processing.org/t/syntax-error-even-though-there-is-none/40417)

<div class="topic-metadata">

**Author:** [@iinnessic](https://discourse.processing.org/u/iinnessic)\
**Replies:** 10\
**Last updated:** [January 2, 2023, 9:44pm UTC](https://discourse.processing.org/t/syntax-error-even-though-there-is-none/40417 "2023-01-02T21:44:12Z")

</div>

My console says there is a synthax error even though i am pretty sure there is none… void mousePressed () { Variante = int ( random (1,6)); }

---

## [How to work with classes in Processing](https://discourse.processing.org/t/how-to-work-with-classes-in-processing/40395)

<div class="topic-metadata">

**Author:** [@OverLord](https://discourse.processing.org/u/OverLord)\
**Replies:** 7\
**Last updated:** [January 2, 2023, 12:51am UTC](https://discourse.processing.org/t/how-to-work-with-classes-in-processing/40395 "2023-01-02T00:51:24Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi processing community. I would like to ask you how you can work with classes I already learned a little bit how to work with classes and funct…

---

## [Is there a way to prevent Processing from opening a graphics window?](https://discourse.processing.org/t/is-there-a-way-to-prevent-processing-from-opening-a-graphics-window/40388)

<div class="topic-metadata">

**Author:** [@adrinalino](https://discourse.processing.org/u/adrinalino)\
**Replies:** 4\
**Last updated:** [January 1, 2023, 2:33pm UTC](https://discourse.processing.org/t/is-there-a-way-to-prevent-processing-from-opening-a-graphics-window/40388 "2023-01-01T14:33:19Z")

</div>

Hi there. I would like to write a program that only has text output. Is there a way to prevent processing from opening a graphics window? Thanks for your help. Cheers, Adrian.

---

## [Lens ellipse follow mouse](https://discourse.processing.org/t/lens-ellipse-follow-mouse/40270)

<div class="topic-metadata">

**Author:** [@vrtx](https://discourse.processing.org/u/vrtx)\
**Replies:** 10\
**Last updated:** [December 31, 2022, 8:08pm UTC](https://discourse.processing.org/t/lens-ellipse-follow-mouse/40270 "2022-12-31T20:08:40Z")

</div>

Hi, guys. I found this code, and i am changing it for studing. Is there how i make the lens ellipse follow the mouse? /\*\* \* Lens Demo Effect \* by luis2048. \* \* A picture is shown and it looks like a magnifying gl…

---

## [Difficulty using a Grasshopper slider as my point attractor in Processing (through Osc)](https://discourse.processing.org/t/difficulty-using-a-grasshopper-slider-as-my-point-attractor-in-processing-through-osc/40366)

<div class="topic-metadata">

**Author:** [@newbieprocessing](https://discourse.processing.org/u/newbieprocessing)\
**Replies:** 1\
**Last updated:** [December 31, 2022, 1:42am UTC](https://discourse.processing.org/t/difficulty-using-a-grasshopper-slider-as-my-point-attractor-in-processing-through-osc/40366 "2022-12-31T01:42:48Z")

</div>

Hi everyone, I am relatively new to Processing and am currently trying to send information from Grasshopper to Processing using Osc. From my understanding, Processing is receiving the informaiton however it is not doing …

---

## [Problems with Eclipse and Processing library](https://discourse.processing.org/t/problems-with-eclipse-and-processing-library/40382)

<div class="topic-metadata">

**Author:** [@bananana](https://discourse.processing.org/u/bananana)\
**Replies:** 0\
**Last updated:** [December 31, 2022, 4:48am UTC](https://discourse.processing.org/t/problems-with-eclipse-and-processing-library/40382 "2022-12-31T04:48:50Z")

</div>

I have a Processing Library that uses the standard Processing library template from GitHub - processing/processing-library-template: Processing Library Template for Eclipse In the past it’s been fine to install Eclipse …

---

## [Does anyone know a library for Drawing Tablet Pen Pressure?](https://discourse.processing.org/t/does-anyone-know-a-library-for-drawing-tablet-pen-pressure/40346)

<div class="topic-metadata">

**Author:** [@Lissie](https://discourse.processing.org/u/Lissie)\
**Replies:** 3\
**Last updated:** [December 30, 2022, 2:11pm UTC](https://discourse.processing.org/t/does-anyone-know-a-library-for-drawing-tablet-pen-pressure/40346 "2022-12-30T14:11:33Z")

</div>

I tried the Tablat Library from 2016 but it doesnt work int the “tablat = new Tablet(this)” it gives an error! can you help me?

---

## [ZXing libraries cannot be detected](https://discourse.processing.org/t/zxing-libraries-cannot-be-detected/40226)

<div class="topic-metadata">

**Author:** [@Crimsic](https://discourse.processing.org/u/Crimsic)\
**Replies:** 5\
**Last updated:** [December 30, 2022, 8:37am UTC](https://discourse.processing.org/t/zxing-libraries-cannot-be-detected/40226 "2022-12-30T08:37:36Z")

</div>

I am unable to figure out how to put these libaries into my folder, I’ve searched everywhere and I’ve tried all I could. I put the “core” folder inside the libaries folder currently. Can anyone help with a solution? Thi…

---

## [Modify PGraphics pixels array to be larger?](https://discourse.processing.org/t/modify-pgraphics-pixels-array-to-be-larger/40348)

<div class="topic-metadata">

**Author:** [@DSW](https://discourse.processing.org/u/DSW)\
**Replies:** 1\
**Last updated:** [December 29, 2022, 12:33am UTC](https://discourse.processing.org/t/modify-pgraphics-pixels-array-to-be-larger/40348 "2022-12-29T00:33:45Z")

</div>

I’m working on a sketch which composites 60 large images into a single extra-large image. However, I’m hitting an ArrayIndexOutOfBounds when I initialize the PGraphics object with the required dimensions (65628 x 35292)…

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

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