# Latest

**URL:** https://discourse.processing.org/latest.md?page=361

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

**Page:** 362

---

## [Is Println deprecated?](https://discourse.processing.org/t/is-println-deprecated/19929)

<div class="topic-metadata">

**Author:** [@endurance21](https://discourse.processing.org/u/endurance21)\
**Replies:** 5\
**Last updated:** [April 24, 2020, 4:25am UTC](https://discourse.processing.org/t/is-println-deprecated/19929 "2020-04-24T04:25:42Z")

</div>

is the method println() to print a new line deprecated? because it is still being used in p5.js-sound sketches and it throws an error saying prinln is not defined!!! i am using p5.js version 0.6.1 p5.js-sound versio…

---

## ["Unreachable code" Error When Saving Frames](https://discourse.processing.org/t/unreachable-code-error-when-saving-frames/20082)

<div class="topic-metadata">

**Author:** [@BogginJunior](https://discourse.processing.org/u/BogginJunior)\
**Replies:** 2\
**Last updated:** [April 24, 2020, 1:32am UTC](https://discourse.processing.org/t/unreachable-code-error-when-saving-frames/20082 "2020-04-24T01:32:30Z")

</div>

Hi, When trying to record or saveFrame, I’m shown either “Unreachable code” or “missing active and static modes.” Does anyone know where and how to record the frames of this animation? Thank you. ArrayList\<Circle\> cir…

---

## [Inheritance Class Objects in 2D Grid Array do not align](https://discourse.processing.org/t/inheritance-class-objects-in-2d-grid-array-do-not-align/20081)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 7\
**Last updated:** [April 23, 2020, 10:43pm UTC](https://discourse.processing.org/t/inheritance-class-objects-in-2d-grid-array-do-not-align/20081 "2020-04-23T22:43:40Z")

</div>

I’m trying to get a 2D grid to display properly with 1 subclass object before adding additional subclasses. The code for this 2D array grid is pulled from one of my previous projects, and it worked fine. However, the d…

---

## [Graphica font size in axes and multiple lines in a plot](https://discourse.processing.org/t/graphica-font-size-in-axes-and-multiple-lines-in-a-plot/19998)

<div class="topic-metadata">

**Author:** [@crek](https://discourse.processing.org/u/crek)\
**Replies:** 5\
**Last updated:** [April 23, 2020, 10:26pm UTC](https://discourse.processing.org/t/graphica-font-size-in-axes-and-multiple-lines-in-a-plot/19998 "2020-04-23T22:26:38Z")

</div>

Hello, I am new in processing and I have some questions regarding graphica. I want to change the font size in graphica and also I want to add a second line in the same plot. Also is there a list of grapfica commands? …

---

## [Problems with createGraphics, nullPointer, type mismatch](https://discourse.processing.org/t/problems-with-creategraphics-nullpointer-type-mismatch/20059)

<div class="topic-metadata">

**Author:** [@Achimoto](https://discourse.processing.org/u/Achimoto)\
**Replies:** 3\
**Last updated:** [April 23, 2020, 10:17pm UTC](https://discourse.processing.org/t/problems-with-creategraphics-nullpointer-type-mismatch/20059 "2020-04-23T22:17:58Z")

</div>

createGraphics on Windows10, mode Java First problem: using FX2D renderer results in a NullPointerException at “beginDraw” Second problem: not compiling, Type mismatch, “cannot convert from processing.core.PGraphics…

---

## [Updated Ultrasonic Scanning SoNAR](https://discourse.processing.org/t/updated-ultrasonic-scanning-sonar/16672)

<div class="topic-metadata">

**Author:** [@urthlight](https://discourse.processing.org/u/urthlight)\
**Replies:** 5\
**Last updated:** [April 23, 2020, 8:47pm UTC](https://discourse.processing.org/t/updated-ultrasonic-scanning-sonar/16672 "2020-04-23T20:47:22Z")

</div>

I am upgrading the scanning ultrasonic SONAR project. I want to add some buttons on the Processing Screen that will change Azimuth, Bearing, Range, Speed and Tilt for a second servo. I started wit the Lucky Larry project…

---

## [Change Saturation of an Image](https://discourse.processing.org/t/change-saturation-of-an-image/20075)

<div class="topic-metadata">

**Author:** [@benprice](https://discourse.processing.org/u/benprice)\
**Replies:** 3\
**Last updated:** [April 23, 2020, 5:25pm UTC](https://discourse.processing.org/t/change-saturation-of-an-image/20075 "2020-04-23T17:25:49Z")

</div>

Hi, I’m trying to figure out how to change the saturation of an image, I can change its brightness, hue, invert it, but just can’t wrap my head around changing saturation (in the hope that i can put it on a slider, and …

---

## [mousePressed - not registering just once](https://discourse.processing.org/t/mousepressed-not-registering-just-once/19096)

<div class="topic-metadata">

**Author:** [@benprice](https://discourse.processing.org/u/benprice)\
**Replies:** 2\
**Last updated:** [April 23, 2020, 3:42pm UTC](https://discourse.processing.org/t/mousepressed-not-registering-just-once/19096 "2020-04-23T15:42:35Z")

</div>

Hi, I’m very new to processing, I’m trying to write a piece of code which plays and pauses a video, and want it so that when i press a certain area of the GUI it pauses the video (and displays a pause symbol) and when p…

---

## [Question about GDropList in G4P library](https://discourse.processing.org/t/question-about-gdroplist-in-g4p-library/20045)

<div class="topic-metadata">

**Author:** [@David](https://discourse.processing.org/u/David)\
**Replies:** 2\
**Last updated:** [April 23, 2020, 1:57pm UTC](https://discourse.processing.org/t/question-about-gdroplist-in-g4p-library/20045 "2020-04-23T13:57:44Z")

</div>

I’m having trouble using a droplist. I’ve looked at the examples and read through the user guides on the web site, but I can’t see what I’m doing wrong. In all the examples I’ve tried, the droplist collapses after the us…

---

## [Processing.video library gives v4l2src error](https://discourse.processing.org/t/processing-video-library-gives-v4l2src-error/18441)

<div class="topic-metadata">

**Author:** [@NaniAromix](https://discourse.processing.org/u/NaniAromix)\
**Replies:** 18\
**Last updated:** [April 23, 2020, 1:02pm UTC](https://discourse.processing.org/t/processing-video-library-gives-v4l2src-error/18441 "2020-04-23T13:02:03Z")

</div>

I am interested in using the processing-video library for my project, but I think I hit a brick wall. I tried running the CustomPipeline example given that i’m trying to display a custom stream of an IP camera. This is …

---

## [Moving individual object rather than altogether in a for-loop (ArrayList)](https://discourse.processing.org/t/moving-individual-object-rather-than-altogether-in-a-for-loop-arraylist/20039)

<div class="topic-metadata">

**Author:** [@dada123](https://discourse.processing.org/u/dada123)\
**Replies:** 1\
**Last updated:** [April 22, 2020, 7:27pm UTC](https://discourse.processing.org/t/moving-individual-object-rather-than-altogether-in-a-for-loop-arraylist/20039 "2020-04-22T19:27:47Z")

</div>

hi, i am trying to get this moved individually instead of moving altogether at once. my objects are created in a loop, is there a way to get them to move individually instead? here’s my code, thanks in advanced! public …

---

## [Compare Color Variables](https://discourse.processing.org/t/compare-color-variables/17238)

<div class="topic-metadata">

**Author:** [@nciprian](https://discourse.processing.org/u/nciprian)\
**Replies:** 5\
**Last updated:** [April 22, 2020, 11:43pm UTC](https://discourse.processing.org/t/compare-color-variables/17238 "2020-04-22T23:43:17Z")

</div>

Hello, Is there a way to compare to color variable? let inside = color(204, 102, 0); let middle = color(204, 102, 0); i need to compare this two variables, but none of the usual ways work. (inside == middle)

---

## [An Automation for my Code (Video)](https://discourse.processing.org/t/an-automation-for-my-code-video/20041)

<div class="topic-metadata">

**Author:** [@arazym](https://discourse.processing.org/u/arazym)\
**Replies:** 3\
**Last updated:** [April 22, 2020, 8:25pm UTC](https://discourse.processing.org/t/an-automation-for-my-code-video/20041 "2020-04-22T20:25:02Z")

</div>

I basically want to run a video through this Code. (See below) The idea is, to extract all the frames, run each through the script and render them back together to a Video file. So far so good. My Video is 60sec long @…

---

## [Using MathJax in the forum (testing)](https://discourse.processing.org/t/using-mathjax-in-the-forum-testing/19970)

<div class="topic-metadata">

**Author:** [@quark](https://discourse.processing.org/u/quark)\
**Replies:** 3\
**Last updated:** [April 21, 2020, 2:18pm UTC](https://discourse.processing.org/t/using-mathjax-in-the-forum-testing/19970 "2020-04-21T14:18:54Z")

</div>

@jeremydouglass has recently enabled MathJax for this forum. MathJax allows formulae to be shown as if written in a maths context. So something like x^4+y^3-x^2\*y=0 can be displayed inline like this x^4+y^3-x^2\*y=0 or di…

---

## [Signal Averaging P5JS](https://discourse.processing.org/t/signal-averaging-p5js/17735)

<div class="topic-metadata">

**Author:** [@black](https://discourse.processing.org/u/black)\
**Replies:** 3\
**Last updated:** [April 22, 2020, 5:01pm UTC](https://discourse.processing.org/t/signal-averaging-p5js/17735 "2020-04-22T17:01:21Z")

</div>

So I was writing the signal averaging code on a random generated data. Steps I did - Generating a signal to simulated Real time data Signal = random data (-10,10) + periodic data (50,100 ) after every 100 tx Taking sa…

---

## [Animated curves with beginShape()](https://discourse.processing.org/t/animated-curves-with-beginshape/19971)

<div class="topic-metadata">

**Author:** [@jeffthompson](https://discourse.processing.org/u/jeffthompson)\
**Replies:** 5\
**Last updated:** [April 22, 2020, 3:29pm UTC](https://discourse.processing.org/t/animated-curves-with-beginshape/19971 "2020-04-22T15:29:44Z")

</div>

I have a series of points forming a complex curve that I’d like to animate – essentially we see the curve being drawn point-by-point. But if I use curveVertex() and begin/endShape() but end drawing the line early, the un…

---

## [Enabling face detection p5.js camera access in chrome extension](https://discourse.processing.org/t/enabling-face-detection-p5-js-camera-access-in-chrome-extension/20034)

<div class="topic-metadata">

**Author:** [@yuinjann](https://discourse.processing.org/u/yuinjann)\
**Replies:** 0\
**Last updated:** [April 22, 2020, 2:00pm UTC](https://discourse.processing.org/t/enabling-face-detection-p5-js-camera-access-in-chrome-extension/20034 "2020-04-22T14:00:41Z")

</div>

Hiya! I am trying to make a pop up chrome extension using this face detector example made with p5.js from https://github.com/stc/face-tracking-p5js/tree/master/008\_emotion example. Basically, I want to count the number …

---

## [Ayuda proyecto personal](https://discourse.processing.org/t/ayuda-proyecto-personal/20031)

<div class="topic-metadata">

**Author:** [@Simo\_blaa](https://discourse.processing.org/u/Simo_blaa)\
**Replies:** 2\
**Last updated:** [April 22, 2020, 2:02pm UTC](https://discourse.processing.org/t/ayuda-proyecto-personal/20031 "2020-04-22T14:02:02Z")

</div>

Soy muy nueva en Processing y no tengo mucha experiencia con el programa ni con ningún lenguaje de programación :upside\_down\_face: pero estoy aprendiendo por mi lado y estoy testando diferentes conceptos. Realicé un pequ…

---

## [LinkedList vs ArrayList](https://discourse.processing.org/t/linkedlist-vs-arraylist/19946)

<div class="topic-metadata">

**Author:** [@noel](https://discourse.processing.org/u/noel)\
**Replies:** 21\
**Last updated:** [April 22, 2020, 11:33am UTC](https://discourse.processing.org/t/linkedlist-vs-arraylist/19946 "2020-04-22T11:33:12Z")

</div>

Code below is perfectly working, but unfortunately, OpenProcessing does not accept the LinkedList import. The other imports seem to be accepted. I would like to use ArrayList instead, but I get the “does not match” erro…

---

## [Using an integer to manipulate a string/text variable](https://discourse.processing.org/t/using-an-integer-to-manipulate-a-string-text-variable/20015)

<div class="topic-metadata">

**Author:** [@nathanprime1](https://discourse.processing.org/u/nathanprime1)\
**Replies:** 1\
**Last updated:** [April 22, 2020, 10:40am UTC](https://discourse.processing.org/t/using-an-integer-to-manipulate-a-string-text-variable/20015 "2020-04-22T10:40:15Z")

</div>

Write a function that consumes a non-negative integer k and prints a k-size diamond. A k-size diamond consists of a top, a middle and a bottom. The middle is a single row of 2k+1 d’s. The top consists of k rows. The i th…

---

## [Font and shapes look pixelated](https://discourse.processing.org/t/font-and-shapes-look-pixelated/20013)

<div class="topic-metadata">

**Author:** [@lizardking93](https://discourse.processing.org/u/lizardking93)\
**Replies:** 2\
**Last updated:** [April 22, 2020, 9:14am UTC](https://discourse.processing.org/t/font-and-shapes-look-pixelated/20013 "2020-04-22T09:14:58Z")

</div>

Hey, my sketch is looking pretty awfull. Fonts look really bad, really pixelated. I would like the project to look smooth. When I try to use background(255) on the beggining of void draw, font shows as I wish but unfortu…

---

## [P5js WebGL sketch exports with transparent background](https://discourse.processing.org/t/p5js-webgl-sketch-exports-with-transparent-background/20023)

<div class="topic-metadata">

**Author:** [@1igor](https://discourse.processing.org/u/1igor)\
**Replies:** 1\
**Last updated:** [April 22, 2020, 9:25am UTC](https://discourse.processing.org/t/p5js-webgl-sketch-exports-with-transparent-background/20023 "2020-04-22T09:25:33Z")

</div>

Hi! I have a problem with WebGL: anything in browser works fine but when I try to save image or use CCapture, it exports my canvas with transparent background instead of one I have. I have tried setting background using b…

---

## [Set item's color in ButtonBar (controlp5)](https://discourse.processing.org/t/set-items-color-in-buttonbar-controlp5/19935)

<div class="topic-metadata">

**Author:** [@TimoLejeune](https://discourse.processing.org/u/TimoLejeune)\
**Replies:** 3\
**Last updated:** [April 22, 2020, 7:48am UTC](https://discourse.processing.org/t/set-items-color-in-buttonbar-controlp5/19935 "2020-04-22T07:48:31Z")

</div>

Hi everyone! I am making a GUI with ControlP5 and want to make 16 buttons that each represent a color. I could just make 16 buttons, but I thought it might be nicer to do with buttonbar (or maybe checkbox). Now I want t…

---

## [Image Slice Tool – Output Canvas Resolution Issue](https://discourse.processing.org/t/image-slice-tool-output-canvas-resolution-issue/19997)

<div class="topic-metadata">

**Author:** [@matejvojtus](https://discourse.processing.org/u/matejvojtus)\
**Replies:** 1\
**Last updated:** [April 21, 2020, 11:56pm UTC](https://discourse.processing.org/t/image-slice-tool-output-canvas-resolution-issue/19997 "2020-04-21T23:56:49Z")

</div>

Hi everyone, I am quite new to p5js world and I am trying to create an Image slicing tool. The code gets me the wanted result – sliced input image but it seems that it doesn’t retain the intial resolution of the image…

---

## [Character array question](https://discourse.processing.org/t/character-array-question/20008)

<div class="topic-metadata">

**Author:** [@dauwpunt](https://discourse.processing.org/u/dauwpunt)\
**Replies:** 4\
**Last updated:** [April 21, 2020, 8:01pm UTC](https://discourse.processing.org/t/character-array-question/20008 "2020-04-21T20:01:54Z")

</div>

Hi there, I’ve got a (hopefully easy) question regarding an array of characters/symbols that represent text. Like I have it below it doesn’t allow for one of the elements to be ‘F#’ (or anything with more than 1 symbol).…

---

## [Newbie Question: loadJSONObject in a Thread not working on Processing for Android (retrieving a JSON object HTTP)](https://discourse.processing.org/t/newbie-question-loadjsonobject-in-a-thread-not-working-on-processing-for-android-retrieving-a-json-object-http/20001)

<div class="topic-metadata">

**Author:** [@BobFishcake](https://discourse.processing.org/u/BobFishcake)\
**Replies:** 4\
**Last updated:** [April 21, 2020, 6:30pm UTC](https://discourse.processing.org/t/newbie-question-loadjsonobject-in-a-thread-not-working-on-processing-for-android-retrieving-a-json-object-http/20001 "2020-04-21T18:30:45Z")

</div>

Hello, Many thanks in advance for looking at this. I’ve used the simple example code below from the Processing “thread()” reference: String time = ""; void setup() { size(100, 100); } void draw() { background(0)…

---

## [How do i make doubleClicked() run without call existing mousePressed()? (p5.js)](https://discourse.processing.org/t/how-do-i-make-doubleclicked-run-without-call-existing-mousepressed-p5-js/19982)

<div class="topic-metadata">

**Author:** [@Royjan](https://discourse.processing.org/u/Royjan)\
**Replies:** 5\
**Last updated:** [April 21, 2020, 5:55pm UTC](https://discourse.processing.org/t/how-do-i-make-doubleclicked-run-without-call-existing-mousepressed-p5-js/19982 "2020-04-21T17:55:13Z")

</div>

Hello everybody, So i have a problem to call doubleClicked() function without calling existing mousePressed() function. Can please anyone give me a trick for that one? Thanks!!

---

## [Spreading out points](https://discourse.processing.org/t/spreading-out-points/19980)

<div class="topic-metadata">

**Author:** [@yuyu\_hakusho](https://discourse.processing.org/u/yuyu_hakusho)\
**Replies:** 3\
**Last updated:** [April 21, 2020, 3:49pm UTC](https://discourse.processing.org/t/spreading-out-points/19980 "2020-04-21T15:49:18Z")

</div>

Hi everyone, I need some help with the traveling salesman problem. The issue I am having is that the (x, y) points of each city are too close to each other. As such, I get the result in the image below. Is there a way I …

---

## [Group collision detection](https://discourse.processing.org/t/group-collision-detection/19956)

<div class="topic-metadata">

**Author:** [@mala](https://discourse.processing.org/u/mala)\
**Replies:** 3\
**Last updated:** [April 21, 2020, 1:42pm UTC](https://discourse.processing.org/t/group-collision-detection/19956 "2020-04-21T13:42:07Z")

</div>

For a while I’ve been trying to fix & improve some code that uses some form of collision detection for a user chosen and variable group of objects, these are all the same size and aligned to a grid. The user should be a…

---

## [Declaring Statements for Arrays](https://discourse.processing.org/t/declaring-statements-for-arrays/19984)

<div class="topic-metadata">

**Author:** [@confusedstudent](https://discourse.processing.org/u/confusedstudent)\
**Replies:** 2\
**Last updated:** [April 21, 2020, 12:37pm UTC](https://discourse.processing.org/t/declaring-statements-for-arrays/19984 "2020-04-21T12:37:50Z")

</div>

How would I write the declaration statement for an array with 30 integers, Would this be how? int\[\] arr = new int\[30\]; int min = arr\[0\]; int max = arr\[29\];

[Previous page](https://discourse.processing.org/latest.md?page=360)

[Next page](https://discourse.processing.org/latest.md?page=362)
