# Latest

**URL:** https://discourse.processing.org/latest.md?no_subcategories=false&page=456

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

**Page:** 457

---

## [PrintWriter - Disable Default UTF8 Encoding](https://discourse.processing.org/t/printwriter-disable-default-utf8-encoding/13316)

<div class="topic-metadata">

**Author:** [@ischmied](https://discourse.processing.org/u/ischmied)\
**Replies:** 3\
**Last updated:** [August 12, 2019, 8:26pm UTC](https://discourse.processing.org/t/printwriter-disable-default-utf8-encoding/13316 "2019-08-12T20:26:41Z")

</div>

From the Processing Reference: Starting with Processing release 0134, all files loaded and saved by the Processing API use UTF-8 encoding. I am reading the contents of an EPROM using an Arduino Uno and sending the data…

---

## [Quirks running Processing on Safari iOS](https://discourse.processing.org/t/quirks-running-processing-on-safari-ios/13342)

<div class="topic-metadata">

**Author:** [@rbytes](https://discourse.processing.org/u/rbytes)\
**Replies:** 0\
**Last updated:** [August 12, 2019, 5:34pm UTC](https://discourse.processing.org/t/quirks-running-processing-on-safari-ios/13342 "2019-08-12T17:34:10Z")

</div>

I am quite into OpenProcessing at this time. I use both Processing and p5.js to create sketches, but I have a few more issues to deal with when using Processing. The absolute worst is that every screen touch makes the co…

---

## [\[SOLVED\] Missing Comma in Array](https://discourse.processing.org/t/solved-missing-comma-in-array/13314)

<div class="topic-metadata">

**Author:** [@tobebot](https://discourse.processing.org/u/tobebot)\
**Replies:** 3\
**Last updated:** [August 12, 2019, 6:47pm UTC](https://discourse.processing.org/t/solved-missing-comma-in-array/13314 "2019-08-12T18:47:34Z")

</div>

Hi… I have this estrange error, why, please?

---

## [OpenProcessing + iOS Safari: How can I stop the console from popping up when no error has occurred](https://discourse.processing.org/t/openprocessing-ios-safari-how-can-i-stop-the-console-from-popping-up-when-no-error-has-occurred/13243)

<div class="topic-metadata">

**Author:** [@rbytes](https://discourse.processing.org/u/rbytes)\
**Replies:** 3\
**Last updated:** [August 12, 2019, 5:34pm UTC](https://discourse.processing.org/t/openprocessing-ios-safari-how-can-i-stop-the-console-from-popping-up-when-no-error-has-occurred/13243 "2019-08-12T17:34:10Z")

</div>

I spend a lot of time with my iPad running OpenProcessing on Safari and have a large collection of sketches written both in Processing and p5js. The Processing sketches have an annoying bug, at least in iOS. Every ti…

---

## ["focused" in iOS Safari](https://discourse.processing.org/t/focused-in-ios-safari/12007)

<div class="topic-metadata">

**Author:** [@phoebus](https://discourse.processing.org/u/phoebus)\
**Replies:** 3\
**Last updated:** [August 12, 2019, 5:19pm UTC](https://discourse.processing.org/t/focused-in-ios-safari/12007 "2019-08-12T17:19:55Z")

</div>

Hello focused parameter doesn’t seem to work ok on Safari for iOS My website works fine on FireFox / Chrome / Edge on Mac / Windows / Linux / Android / iOS but on Safari/iOS it doesn’t get that “focused” is true Haven…

---

## [Having trouble with importing the video library](https://discourse.processing.org/t/having-trouble-with-importing-the-video-library/13266)

<div class="topic-metadata">

**Author:** [@ooss](https://discourse.processing.org/u/ooss)\
**Replies:** 2\
**Last updated:** [August 12, 2019, 4:31pm UTC](https://discourse.processing.org/t/having-trouble-with-importing-the-video-library/13266 "2019-08-12T16:31:58Z")

</div>

Hello currently I have downloaded the video library from GitHub and it downloaded a folder. I renamed the folder to just video and put in ~/Documents/Processing/Library. I am not sure if this is where it needs to be. But…

---

## [Help with controlP5 library](https://discourse.processing.org/t/help-with-controlp5-library/13290)

<div class="topic-metadata">

**Author:** [@arielmartire](https://discourse.processing.org/u/arielmartire)\
**Replies:** 3\
**Last updated:** [August 12, 2019, 4:28pm UTC](https://discourse.processing.org/t/help-with-controlp5-library/13290 "2019-08-12T16:28:29Z")

</div>

Using the controlP5 library, I’m having trouble. I get this error message: Aug 10, 2019 7:53:24 AM controlP5.ControlBroadcaster printMethodError SEVERE: An error occured while forwarding a Controller event, please ch…

---

## [\[SOLVED\] Having a hard time Translating in 3D](https://discourse.processing.org/t/solved-having-a-hard-time-translating-in-3d/13335)

<div class="topic-metadata">

**Author:** [@nicnut](https://discourse.processing.org/u/nicnut)\
**Replies:** 1\
**Last updated:** [August 12, 2019, 3:48pm UTC](https://discourse.processing.org/t/solved-having-a-hard-time-translating-in-3d/13335 "2019-08-12T15:48:11Z")

</div>

Hi, I am very new at Processing, this is my second week. I am altering some code from one of the examples to create a bunch of Pshapes. It’s looking good, but I can’t figure out how to translate() in P3D. In the main …

---

## [Help with visualising DHT sensor data](https://discourse.processing.org/t/help-with-visualising-dht-sensor-data/13331)

<div class="topic-metadata">

**Author:** [@figsgigs](https://discourse.processing.org/u/figsgigs)\
**Replies:** 2\
**Last updated:** [August 12, 2019, 2:51pm UTC](https://discourse.processing.org/t/help-with-visualising-dht-sensor-data/13331 "2019-08-12T14:51:40Z")

</div>

Hello good people here! I’m new to processing, and attempting to read my DHT11 sensor and visualising it via Processing. I’ve taken the processing/ arduino code from an online tutorial, and adapted it for my own arduino.…

---

## [Need a hint about lights](https://discourse.processing.org/t/need-a-hint-about-lights/13073)

<div class="topic-metadata">

**Author:** [@LuckSmith](https://discourse.processing.org/u/LuckSmith)\
**Replies:** 8\
**Last updated:** [August 11, 2019, 10:55pm UTC](https://discourse.processing.org/t/need-a-hint-about-lights/13073 "2019-08-11T22:55:12Z")

</div>

Hi guys, Here’s a screenshot of a sketch I am currently working on. On the upper left corner is a minimap of the dungeon (only tiles that have been seen are shown). The little green arrow there represents the player …

---

## [Need help to make USB accessory mode in android](https://discourse.processing.org/t/need-help-to-make-usb-accessory-mode-in-android/13312)

<div class="topic-metadata">

**Author:** [@Anoopkj84](https://discourse.processing.org/u/Anoopkj84)\
**Replies:** 0\
**Last updated:** [August 11, 2019, 2:56pm UTC](https://discourse.processing.org/t/need-help-to-make-usb-accessory-mode-in-android/13312 "2019-08-11T14:56:48Z")

</div>

Hi, I am trying to use Arduino DUE which has inbuilt OTG, in USB host mode and an android tablet to receive some data. I tried some ADK options, but tired of solving build issues one after one with ANT build, java versi…

---

## [Sound libraries](https://discourse.processing.org/t/sound-libraries/13225)

<div class="topic-metadata">

**Author:** [@salvaribeiro](https://discourse.processing.org/u/salvaribeiro)\
**Replies:** 3\
**Last updated:** [August 11, 2019, 1:31pm UTC](https://discourse.processing.org/t/sound-libraries/13225 "2019-08-11T13:31:50Z")

</div>

Hello. I’ve been tinkering with Processing for a while now and wanted to use it to learn a bit about sound sythesizing. I’ve been trying the Beads library for about a month and, although it’s very good, I feel it’s a bit…

---

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

<div class="topic-metadata">

**Author:** [@abigail](https://discourse.processing.org/u/abigail)\
**Replies:** 5\
**Last updated:** [August 11, 2019, 10:29am UTC](https://discourse.processing.org/t/help-with-classes/13305 "2019-08-11T10:29:25Z")

</div>

Hi, so I have a simple sketch of paint to colour in the background of a window. I want to make the colouring tool decrease and increase in size. Why does the code in the function changeSize not work? Thanks in advance. …

---

## [Weird Missing Left Curly Bracket Error](https://discourse.processing.org/t/weird-missing-left-curly-bracket-error/13303)

<div class="topic-metadata">

**Author:** [@8bit\_coder](https://discourse.processing.org/u/8bit_coder)\
**Replies:** 2\
**Last updated:** [August 11, 2019, 1:30am UTC](https://discourse.processing.org/t/weird-missing-left-curly-bracket-error/13303 "2019-08-11T01:30:56Z")

</div>

I’m working on a program, and everything compiles and runs fine. But the second that I paste: char letter = 'F'; switch(letter) { case 'F': println("F"); break; case 'S': println("S"); break; } I…

---

## [mouseWheel in Safari not active?](https://discourse.processing.org/t/mousewheel-in-safari-not-active/7428)

<div class="topic-metadata">

**Author:** [@maxbatt](https://discourse.processing.org/u/maxbatt)\
**Replies:** 5\
**Last updated:** [August 10, 2019, 10:29pm UTC](https://discourse.processing.org/t/mousewheel-in-safari-not-active/7428 "2019-08-10T22:29:52Z")

</div>

Hello all! Just signed up today and excited to be part of the forum. I am wondering if there is a way to activate mouseWheel in safari? For me, the example at p5.org doesn’t work in safari, and the page I am trying to b…

---

## [Processing Update](https://discourse.processing.org/t/processing-update/13172)

<div class="topic-metadata">

**Author:** [@newagear](https://discourse.processing.org/u/newagear)\
**Replies:** 8\
**Last updated:** [August 10, 2019, 8:03pm UTC](https://discourse.processing.org/t/processing-update/13172 "2019-08-10T20:03:58Z")

</div>

I first developed a processing program 3 years ago.I believe that Processing needs an update(variable and instructions search list , a better debug system …).What do you think?

---

## [Problems parsing an UTF-8 string backwards](https://discourse.processing.org/t/problems-parsing-an-utf-8-string-backwards/13294)

<div class="topic-metadata">

**Author:** [@LuckSmith](https://discourse.processing.org/u/LuckSmith)\
**Replies:** 2\
**Last updated:** [August 10, 2019, 7:07pm UTC](https://discourse.processing.org/t/problems-parsing-an-utf-8-string-backwards/13294 "2019-08-10T19:07:53Z")

</div>

If I go forward like String str = "This is a string containing different encodings. В этой строке есть кириллица, например (2 bytes per char)"; for (int i=0; i\<str.length(); i++) { println(str.charAt(i)); } it works …

---

## [Issue with scale() function](https://discourse.processing.org/t/issue-with-scale-function/6140)

<div class="topic-metadata">

**Author:** [@noeblassel](https://discourse.processing.org/u/noeblassel)\
**Replies:** 6\
**Last updated:** [August 10, 2019, 3:33pm UTC](https://discourse.processing.org/t/issue-with-scale-function/6140 "2019-08-10T15:33:16Z")

</div>

Hi! I’ve been working on a processing script using OpenCV to automatically align, scale and rotate a given set of pictures of frontal faces so that the eyes always appear in a fixed specified position in the result. It w…

---

## [How to calculate the center of a circle inscribed in a circle sector](https://discourse.processing.org/t/how-to-calculate-the-center-of-a-circle-inscribed-in-a-circle-sector/13279)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 3\
**Last updated:** [August 10, 2019, 9:16am UTC](https://discourse.processing.org/t/how-to-calculate-the-center-of-a-circle-inscribed-in-a-circle-sector/13279 "2019-08-10T09:16:06Z")

</div>

I’m having trouble figuring out how to set “r” so that the small circle is inscribed within the sector. The number of sectors will vary. I would also appreciate help with math to calculate the points where the small circ…

---

## [Set drawing style in one function](https://discourse.processing.org/t/set-drawing-style-in-one-function/13254)

<div class="topic-metadata">

**Author:** [@philipplehmann](https://discourse.processing.org/u/philipplehmann)\
**Replies:** 3\
**Last updated:** [August 10, 2019, 8:30am UTC](https://discourse.processing.org/t/set-drawing-style-in-one-function/13254 "2019-08-10T08:30:05Z")

</div>

Hey there What do you guys think about the idea of a all-in-one function to set the drawing style. I created such a function as a shortcut and find it very handy. Is there already a similar behavior which i missed? D…

---

## [Astronomy in p5](https://discourse.processing.org/t/astronomy-in-p5/13234)

<div class="topic-metadata">

**Author:** [@gbenedisgrab](https://discourse.processing.org/u/gbenedisgrab)\
**Replies:** 1\
**Last updated:** [August 10, 2019, 12:46am UTC](https://discourse.processing.org/t/astronomy-in-p5/13234 "2019-08-10T00:46:08Z")

</div>

Hi All, I want to make a p5 app that animates the stars moving in the night sky. I want it to be very similar to this site http://www.etwright.org/astro/plani.html Anyone have advice on what to look at. I found a d3…

---

## [Serial Event null pointer exception](https://discourse.processing.org/t/serial-event-null-pointer-exception/13275)

<div class="topic-metadata">

**Author:** [@l-arc-en-ciel](https://discourse.processing.org/u/l-arc-en-ciel)\
**Replies:** 3\
**Last updated:** [August 9, 2019, 11:54pm UTC](https://discourse.processing.org/t/serial-event-null-pointer-exception/13275 "2019-08-09T23:54:34Z")

</div>

I get this error code every few times: COM4 test {"lat{"lat":67.74801,"lng":21.2934} java.lang.RuntimeException: Expected a ':' after a key at processing.data.JSONObject.\<init\>(JSONObject.java:264) at processing.data…

---

## [loadTable in constructor - check data is loaded](https://discourse.processing.org/t/loadtable-in-constructor-check-data-is-loaded/13257)

<div class="topic-metadata">

**Author:** [@gxkendall](https://discourse.processing.org/u/gxkendall)\
**Replies:** 1\
**Last updated:** [August 9, 2019, 11:24pm UTC](https://discourse.processing.org/t/loadtable-in-constructor-check-data-is-loaded/13257 "2019-08-09T23:24:25Z")

</div>

I know that you should call loadTable in preload, so that the data will will be loaded before setup is called. But I want to call loadTable in a constructor, but make sure it is loaded before continuing. I don’t have E…

---

## [Creating a grid with a PShape](https://discourse.processing.org/t/creating-a-grid-with-a-pshape/13268)

<div class="topic-metadata">

**Author:** [@thedurf18](https://discourse.processing.org/u/thedurf18)\
**Replies:** 12\
**Last updated:** [August 9, 2019, 5:41pm UTC](https://discourse.processing.org/t/creating-a-grid-with-a-pshape/13268 "2019-08-09T17:41:52Z")

</div>

How could I turn this code into a grid? I’d appreciate any help. int many = 10; PShape\[\] a = new PShape\[many\]; void setup() { size(1680, 1005, P3D); make\_shapes(); } void make\_shapes() { for (int i = 0; i \< many…

---

## [Camera() doesn't expect parameters](https://discourse.processing.org/t/camera-doesnt-expect-parameters/13139)

<div class="topic-metadata">

**Author:** [@l-arc-en-ciel](https://discourse.processing.org/u/l-arc-en-ciel)\
**Replies:** 7\
**Last updated:** [August 9, 2019, 5:35pm UTC](https://discourse.processing.org/t/camera-doesnt-expect-parameters/13139 "2019-08-09T17:35:23Z")

</div>

I want to use centerX and centerY in my 2d scene so that the camera centers on a moving rectangle (you wouldn’t see the rectangle move then, but it leaves a trail, so you see the trail and the view centers around the hea…

---

## [Python Processing refer to an object from main script](https://discourse.processing.org/t/python-processing-refer-to-an-object-from-main-script/13272)

<div class="topic-metadata">

**Author:** [@ctrembla](https://discourse.processing.org/u/ctrembla)\
**Replies:** 7\
**Last updated:** [August 9, 2019, 1:23pm UTC](https://discourse.processing.org/t/python-processing-refer-to-an-object-from-main-script/13272 "2019-08-09T13:23:08Z")

</div>

OK, I just started learning Python & I never liked how people had the classes on same page everything else went on. So I placed them on another page, but sadly I don’t know how to actually get to them. I liked one of the…

---

## [G4P GUI button function](https://discourse.processing.org/t/g4p-gui-button-function/12113)

<div class="topic-metadata">

**Author:** [@savan](https://discourse.processing.org/u/savan)\
**Replies:** 2\
**Last updated:** [August 9, 2019, 6:43am UTC](https://discourse.processing.org/t/g4p-gui-button-function/12113 "2019-08-09T06:43:38Z")

</div>

Hello everyone, I am trying to make a software for logging data from an Arduino to a CSV file through serial communication. I used the G4P GUI builder to create a basic GUI, and have made two buttons to start and stop …

---

## [ControlP5 toggle in processing.py](https://discourse.processing.org/t/controlp5-toggle-in-processing-py/13247)

<div class="topic-metadata">

**Author:** [@Luno\_T](https://discourse.processing.org/u/Luno_T)\
**Replies:** 4\
**Last updated:** [August 9, 2019, 6:41am UTC](https://discourse.processing.org/t/controlp5-toggle-in-processing-py/13247 "2019-08-09T06:41:01Z")

</div>

Hello, I am trying to learn to use the ControlP5 library in python mode. I am struggling with basic stuff as I have no experience in Java, and I can hardly find proper examples for the python mode. For instance, when I…

---

## [Accessing pixel values just above a line](https://discourse.processing.org/t/accessing-pixel-values-just-above-a-line/13145)

<div class="topic-metadata">

**Author:** [@eric](https://discourse.processing.org/u/eric)\
**Replies:** 7\
**Last updated:** [August 8, 2019, 9:25pm UTC](https://discourse.processing.org/t/accessing-pixel-values-just-above-a-line/13145 "2019-08-08T21:25:12Z")

</div>

I’m trying to see if the pixel is black or white, and then move on to the next pixel down the line. I’ve gotten flat lines down, I just keep track of the endpoints of the line, and add 2 to not count the line’s color. …

---

## [Call a procedure by its name in String](https://discourse.processing.org/t/call-a-procedure-by-its-name-in-string/13249)

<div class="topic-metadata">

**Author:** [@LuckSmith](https://discourse.processing.org/u/LuckSmith)\
**Replies:** 8\
**Last updated:** [August 8, 2019, 6:24pm UTC](https://discourse.processing.org/t/call-a-procedure-by-its-name-in-string/13249 "2019-08-08T18:24:27Z")

</div>

Ok, so you can do like thread("myProcedure"); but it creates a new thread. Is it possible to call a procedure in a similar way it the main thread? Or even maybe there is a way to execute code in a String? Like Strin…

[Previous page](https://discourse.processing.org/latest.md?no_subcategories=false&page=455)

[Next page](https://discourse.processing.org/latest.md?no_subcategories=false&page=457)
