# Processing

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

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

**Page:** 330

---

## [Access Windows pen data in Processing](https://discourse.processing.org/t/access-windows-pen-data-in-processing/7094)

<div class="topic-metadata">

**Author:** [@roi\_tau](https://discourse.processing.org/u/roi_tau)\
**Replies:** 3\
**Last updated:** [January 17, 2019, 7:09am UTC](https://discourse.processing.org/t/access-windows-pen-data-in-processing/7094 "2019-01-17T07:09:28Z")

</div>

Hello Guys, First, let me just say that I LOVE processing and “The coding train” is the channel I watch the most. Having said it, there is a wonderful library written by Andres Colubri named Tablet. Alas, this library…

---

## [The file is missing or Inaccessible](https://discourse.processing.org/t/the-file-is-missing-or-inaccessible/2996)

<div class="topic-metadata">

**Author:** [@Hedgy](https://discourse.processing.org/u/Hedgy)\
**Replies:** 20\
**Last updated:** [January 17, 2019, 4:09am UTC](https://discourse.processing.org/t/the-file-is-missing-or-inaccessible/2996 "2019-01-17T04:09:38Z")

</div>

Hello. I have files that are required for my game, I have added them to the data folder and yet it says they are still missing or inaccessible. I have checked that the names are the same. I don’t understand why it doesn’…

---

## [OpenGL error using bot beginDraw()](https://discourse.processing.org/t/opengl-error-using-bot-begindraw/7567)

<div class="topic-metadata">

**Author:** [@neophyte](https://discourse.processing.org/u/neophyte)\
**Replies:** 1\
**Last updated:** [January 17, 2019, 3:09am UTC](https://discourse.processing.org/t/opengl-error-using-bot-begindraw/7567 "2019-01-17T03:09:45Z")

</div>

When running many of the graphics examples, I oft get this as the first of the error messages: “OpenGL error 1280 at bot beginDraw(): invalid enumerant” Has anyone seen this error, and know what is causing it?

---

## [Windows Installation Guide Advice Doesn't Work](https://discourse.processing.org/t/windows-installation-guide-advice-doesnt-work/7552)

<div class="topic-metadata">

**Author:** [@neophyte](https://discourse.processing.org/u/neophyte)\
**Replies:** 5\
**Last updated:** [January 17, 2019, 1:42am UTC](https://discourse.processing.org/t/windows-installation-guide-advice-doesnt-work/7552 "2019-01-17T01:42:50Z")

</div>

From your “Getting Started” text tutorial: “On Windows, you’ll have a .zip file. Double-click it, and drag the folder inside to a location on your hard disk. It could be Program Files or simply the desktop, but the impo…

---

## [I really need help! to make a quiz](https://discourse.processing.org/t/i-really-need-help-to-make-a-quiz/7431)

<div class="topic-metadata">

**Author:** [@lchute03](https://discourse.processing.org/u/lchute03)\
**Replies:** 4\
**Last updated:** [January 16, 2019, 9:19pm UTC](https://discourse.processing.org/t/i-really-need-help-to-make-a-quiz/7431 "2019-01-16T21:19:36Z")

</div>

I’m brand new to processing, completely new. ‘I’m 15 and learning it in class’ type new. My teacher doesnt know a thing about what im doing, but I want to finish this if possible. I’m trying to make a quiz, essentially.…

---

## [Camera for a 2d platform game](https://discourse.processing.org/t/camera-for-a-2d-platform-game/7570)

<div class="topic-metadata">

**Author:** [@Sky](https://discourse.processing.org/u/Sky)\
**Replies:** 1\
**Last updated:** [January 16, 2019, 8:18pm UTC](https://discourse.processing.org/t/camera-for-a-2d-platform-game/7570 "2019-01-16T20:18:05Z")

</div>

How can I have a level that shows when the player moves? Idk how to properly eplain in English :frowning: e.g. A level like in Mario

---

## [Text, go to the next line after finding a certain character](https://discourse.processing.org/t/text-go-to-the-next-line-after-finding-a-certain-character/7057)

<div class="topic-metadata">

**Author:** [@bitCrasher](https://discourse.processing.org/u/bitCrasher)\
**Replies:** 4\
**Last updated:** [January 1, 2019, 12:08am UTC](https://discourse.processing.org/t/text-go-to-the-next-line-after-finding-a-certain-character/7057 "2019-01-01T00:08:21Z")

</div>

Hi guys, I’m going crazy on something really stupid, but I just can not solve it. I would like to wrap after I’ve found a specific character. the code I am using is this: String\[\] lines; String randText; void setup…

---

## [Authenticating in an API](https://discourse.processing.org/t/authenticating-in-an-api/7496)

<div class="topic-metadata">

**Author:** [@Bavo](https://discourse.processing.org/u/Bavo)\
**Replies:** 4\
**Last updated:** [January 16, 2019, 12:49pm UTC](https://discourse.processing.org/t/authenticating-in-an-api/7496 "2019-01-16T12:49:49Z")

</div>

Hi all I’m stuck trying to authenticate, the documentation only shows an example in cURL and the examples available haven’t gotten me anywhere. This is the API documentation: https://api.freshservice.com/v2/#authentica…

---

## [Resizable window with constrained proportions](https://discourse.processing.org/t/resizable-window-with-constrained-proportions/7536)

<div class="topic-metadata">

**Author:** [@Sarah](https://discourse.processing.org/u/Sarah)\
**Replies:** 6\
**Last updated:** [January 16, 2019, 9:03am UTC](https://discourse.processing.org/t/resizable-window-with-constrained-proportions/7536 "2019-01-16T09:03:56Z")

</div>

When I need the canvas to be resizable I use surface.setResizable(true);. However, I need to keep the width and height equal and can’t seem to find a way to apply constraints to do so. I initially tried to manually set …

---

## [Algorithmic and AI Editorial Design](https://discourse.processing.org/t/algorithmic-and-ai-editorial-design/7061)

<div class="topic-metadata">

**Author:** [@ewanleslie](https://discourse.processing.org/u/ewanleslie)\
**Replies:** 3\
**Last updated:** [January 16, 2019, 12:18am UTC](https://discourse.processing.org/t/algorithmic-and-ai-editorial-design/7061 "2019-01-16T00:18:01Z")

</div>

Hey Guys! I am new to Processing, let alone coding in general. But I have had an idea. I am interested in AI design, and the capability it might hold in the future. As of yet the design is very grid like and structured…

---

## [Help trying to find the size of coins](https://discourse.processing.org/t/help-trying-to-find-the-size-of-coins/7134)

<div class="topic-metadata">

**Author:** [@sythor](https://discourse.processing.org/u/sythor)\
**Replies:** 1\
**Last updated:** [January 15, 2019, 11:08pm UTC](https://discourse.processing.org/t/help-trying-to-find-the-size-of-coins/7134 "2019-01-15T23:08:24Z")

</div>

I have a work that I need to get a picture of coins, threshold it, find the individual blobs and then count them to find the value of the money I have on it. I am pretty new to this and have no idea how to even get the s…

---

## [Can't see the missing curly bracket](https://discourse.processing.org/t/cant-see-the-missing-curly-bracket/7135)

<div class="topic-metadata">

**Author:** [@losferatos](https://discourse.processing.org/u/losferatos)\
**Replies:** 4\
**Last updated:** [January 15, 2019, 10:55pm UTC](https://discourse.processing.org/t/cant-see-the-missing-curly-bracket/7135 "2019-01-15T22:55:38Z")

</div>

Hi there! I have a very short code that should clean up a dump file, but I get continuously errors because there’s a missing “{” and after 1h of frustrated staring, I need your help =) ArrayList\<String\> rough = new Arr…

---

## [\[Linux\] Unable to run - files and directories not found for java?](https://discourse.processing.org/t/linux-unable-to-run-files-and-directories-not-found-for-java/7547)

<div class="topic-metadata">

**Author:** [@Papergami45](https://discourse.processing.org/u/Papergami45)\
**Replies:** 3\
**Last updated:** [January 15, 2019, 8:19pm UTC](https://discourse.processing.org/t/linux-unable-to-run-files-and-directories-not-found-for-java/7547 "2019-01-15T20:19:03Z")

</div>

I’m using Arch Linux, using i3wm if it makes a difference. I’ve downloaded Processing as I’m using it for a project on my Windows machine and would like to continue development on my Arch Installation. I downloaded and …

---

## [\[SOLVED\] Best way to store words count?](https://discourse.processing.org/t/solved-best-way-to-store-words-count/7031)

<div class="topic-metadata">

**Author:** [@Architector\_4](https://discourse.processing.org/u/Architector_4)\
**Replies:** 5\
**Last updated:** [January 15, 2019, 4:58pm UTC](https://discourse.processing.org/t/solved-best-way-to-store-words-count/7031 "2019-01-15T16:58:04Z")

</div>

So I’m making a thing that counts how many times each word is present in a given String, but I’m not sure what would be the most efficient way to store the values. Right now, the first way to store them that came to my …

---

## [Compare 2 IntList without 'for'?](https://discourse.processing.org/t/compare-2-intlist-without-for/7035)

<div class="topic-metadata">

**Author:** [@amaia](https://discourse.processing.org/u/amaia)\
**Replies:** 8\
**Last updated:** [January 15, 2019, 4:54pm UTC](https://discourse.processing.org/t/compare-2-intlist-without-for/7035 "2019-01-15T16:54:25Z")

</div>

Hello! I want to compare 2 IntList; I’ve tried to compare them without using the for loop, something like this: IntList ordered; IntList disordered; void setup() { size(200, 200); ordered = new IntList(); ordere…

---

## [Markov Chain in processing](https://discourse.processing.org/t/markov-chain-in-processing/7020)

<div class="topic-metadata">

**Author:** [@julien](https://discourse.processing.org/u/julien)\
**Replies:** 5\
**Last updated:** [January 15, 2019, 3:44pm UTC](https://discourse.processing.org/t/markov-chain-in-processing/7020 "2019-01-15T15:44:02Z")

</div>

Hello everyone, and merry christmas if it applies to you, I am relatively new to processing and to coding, so I apologize in advance if my questions are redundant. I am trying to understand, learn about and program a m…

---

## [Virtual dice dots not being drawn](https://discourse.processing.org/t/virtual-dice-dots-not-being-drawn/7508)

<div class="topic-metadata">

**Author:** [@Harie](https://discourse.processing.org/u/Harie)\
**Replies:** 4\
**Last updated:** [January 15, 2019, 2:11pm UTC](https://discourse.processing.org/t/virtual-dice-dots-not-being-drawn/7508 "2019-01-15T14:11:31Z")

</div>

I can’t figure out why the dots aren’t being drawn after the random variable is decided. Please help. The point is to make the die “roll around” 7 times slower each time, and then stopping. //LED Dice Virtual Simulation…

---

## [Delete one shape and add another or moving shapes](https://discourse.processing.org/t/delete-one-shape-and-add-another-or-moving-shapes/7503)

<div class="topic-metadata">

**Author:** [@mizu](https://discourse.processing.org/u/mizu)\
**Replies:** 4\
**Last updated:** [January 15, 2019, 12:47pm UTC](https://discourse.processing.org/t/delete-one-shape-and-add-another-or-moving-shapes/7503 "2019-01-15T12:47:08Z")

</div>

float radius; void setup() { size(1440, 900); } int clicks=0; int screen = 0; float counter; void draw() { float l= random(1380); float r= random(640); if (clicks==clicks+1) background(0); radius=30; …

---

## [PImage to base64](https://discourse.processing.org/t/pimage-to-base64/7041)

<div class="topic-metadata">

**Author:** [@lmccandless](https://discourse.processing.org/u/lmccandless)\
**Replies:** 2\
**Last updated:** [January 15, 2019, 12:23am UTC](https://discourse.processing.org/t/pimage-to-base64/7041 "2019-01-15T00:23:55Z")

</div>

This code works to load a png file and make a base64 string, but I want to go directly from a pgraphics pixels\[\] array to a base64 string. public static String encoder(String imagePath) { String base64Image = ""; Fi…

---

## [Processing to grasshopper with oscP5](https://discourse.processing.org/t/processing-to-grasshopper-with-oscp5/7023)

<div class="topic-metadata">

**Author:** [@SineadF](https://discourse.processing.org/u/SineadF)\
**Replies:** 2\
**Last updated:** [January 15, 2019, 12:15am UTC](https://discourse.processing.org/t/processing-to-grasshopper-with-oscp5/7023 "2019-01-15T00:15:11Z")

</div>

Hello, I’m trying to see if I can link a sketch made in processing to grasshopper using oscP5. The sketch is a sphere of points outlined in the first half of this Coding Train video: The code before I’ve s…

---

## [In P3D mode images not transparent when textSize \> 35 is used](https://discourse.processing.org/t/in-p3d-mode-images-not-transparent-when-textsize-35-is-used/7138)

<div class="topic-metadata">

**Author:** [@companje](https://discourse.processing.org/u/companje)\
**Replies:** 1\
**Last updated:** [January 14, 2019, 10:54pm UTC](https://discourse.processing.org/t/in-p3d-mode-images-not-transparent-when-textsize-35-is-used/7138 "2019-01-14T22:54:26Z")

</div>

Hi, I noticed that when using a font size larger than 35 in P3D mode images stop being transparent. Is this a known bug? Does anyone know a workaround for this? I’m running Processing 3.4 on Windows 10. PImage bg, fg; …

---

## ["getImageData is not a function" error when using P3D processing.js](https://discourse.processing.org/t/getimagedata-is-not-a-function-error-when-using-p3d-processing-js/7505)

<div class="topic-metadata">

**Author:** [@Heiwan](https://discourse.processing.org/u/Heiwan)\
**Replies:** 1\
**Last updated:** [January 14, 2019, 7:38pm UTC](https://discourse.processing.org/t/getimagedata-is-not-a-function-error-when-using-p3d-processing-js/7505 "2019-01-14T19:38:40Z")

</div>

Hello. I am trying to display one of my processing sketches in the browser with processing.js and it works fine both from processing “Run” and the browser when I am using size(1900,1200), but when I add P3D to size(), t…

---

## [Image array For loop position variation](https://discourse.processing.org/t/image-array-for-loop-position-variation/6938)

<div class="topic-metadata">

**Author:** [@rcargb](https://discourse.processing.org/u/rcargb)\
**Replies:** 5\
**Last updated:** [January 13, 2019, 6:28pm UTC](https://discourse.processing.org/t/image-array-for-loop-position-variation/6938 "2019-01-13T18:28:03Z")

</div>

Pretty simple, I want to create subtle variation in position in the X and Y axis using noise() on a PImage. I’ve messed around with the pull and pop matrix with no luck. Any help is appreciated. void noize(){ jpg.load…

---

## [Sorting an array of dates as strings](https://discourse.processing.org/t/sorting-an-array-of-dates-as-strings/7487)

<div class="topic-metadata">

**Author:** [@epicwyvern](https://discourse.processing.org/u/epicwyvern)\
**Replies:** 1\
**Last updated:** [January 14, 2019, 4:08am UTC](https://discourse.processing.org/t/sorting-an-array-of-dates-as-strings/7487 "2019-01-14T04:08:35Z")

</div>

Hello guys, i need help with a specific problem regarding sorting i have run into for my program. say i have the following text file that contains first and last names, with the third row consisting of dates Carrie,Wil…

---

## [PShape GROUP weirdness](https://discourse.processing.org/t/pshape-group-weirdness/7462)

<div class="topic-metadata">

**Author:** [@Aleksi](https://discourse.processing.org/u/Aleksi)\
**Replies:** 8\
**Last updated:** [January 14, 2019, 1:41pm UTC](https://discourse.processing.org/t/pshape-group-weirdness/7462 "2019-01-14T13:41:31Z")

</div>

I stumbled upon a really nice effect by accident duplicating shapes inside a PShape GROUP. But when I tried to control it I discovered that I can’t because of some weirdness I can’t work around. I figured that each new …

---

## [blendMode to reduce opacity?](https://discourse.processing.org/t/blendmode-to-reduce-opacity/6705)

<div class="topic-metadata">

**Author:** [@hamoid](https://discourse.processing.org/u/hamoid)\
**Replies:** 7\
**Last updated:** [January 14, 2019, 9:28am UTC](https://discourse.processing.org/t/blendmode-to-reduce-opacity/6705 "2019-01-14T09:28:20Z")

</div>

Hi! I have a circle on a PGraphics. I want reduce the opacity of parts of it. Imagine painting with your mouse on the PGraphics and instead of adding paint, it becomes more transparent under the mouse. By using blendMod…

---

## [Gradient Color Control](https://discourse.processing.org/t/gradient-color-control/7449)

<div class="topic-metadata">

**Author:** [@uforange](https://discourse.processing.org/u/uforange)\
**Replies:** 3\
**Last updated:** [January 13, 2019, 5:23pm UTC](https://discourse.processing.org/t/gradient-color-control/7449 "2019-01-13T17:23:51Z")

</div>

Hello, For a gradient example of Illustrator or Photoshop, we can easily change the center point of two colors. I am trying to make a similar thing in Processing. What I’ve tried in my code is: When mouseX is 0, the …

---

## [Lowercase so that letters after periods are left capital](https://discourse.processing.org/t/lowercase-so-that-letters-after-periods-are-left-capital/7461)

<div class="topic-metadata">

**Author:** [@Dudez01](https://discourse.processing.org/u/Dudez01)\
**Replies:** 6\
**Last updated:** [January 13, 2019, 6:34pm UTC](https://discourse.processing.org/t/lowercase-so-that-letters-after-periods-are-left-capital/7461 "2019-01-13T18:34:03Z")

</div>

Hey everyone! I am a pretty new Processing user as we use it in my programming class and was introduced to it then. In our new unit, we have been given a series of practice problem solving questions and I am stumped on t…

---

## [Connected Circles](https://discourse.processing.org/t/connected-circles/7471)

<div class="topic-metadata">

**Author:** [@german\_guy](https://discourse.processing.org/u/german_guy)\
**Replies:** 2\
**Last updated:** [January 13, 2019, 5:27pm UTC](https://discourse.processing.org/t/connected-circles/7471 "2019-01-13T17:27:30Z")

</div>

Hey, this is a task that I have to solve for a course at uni. It’s processing for beginners. We use Processing 3. What do I do to connect each circle at y = 100 with those at y = 550? Apparently, a nested loop is a sol…

---

## [Pixel sorting problem](https://discourse.processing.org/t/pixel-sorting-problem/7445)

<div class="topic-metadata">

**Author:** [@thrm](https://discourse.processing.org/u/thrm)\
**Replies:** 3\
**Last updated:** [January 13, 2019, 3:01pm UTC](https://discourse.processing.org/t/pixel-sorting-problem/7445 "2019-01-13T15:01:21Z")

</div>

Hi ! I’m very new to processing and I have a problem with a code I’m working on. I have written some of it, but now I’m stuck finishing it. I am working with pixel sorting of an image in processing 3.0 and I have writt…

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

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