# Latest

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

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

**Page:** 247

---

## [Customise Checkbox](https://discourse.processing.org/t/customise-checkbox/28384)

<div class="topic-metadata">

**Author:** [@xbix](https://discourse.processing.org/u/xbix)\
**Replies:** 1\
**Last updated:** [March 10, 2021, 12:32pm UTC](https://discourse.processing.org/t/customise-checkbox/28384 "2021-03-10T12:32:05Z")

</div>

I need a slightly different checkbox like the one from the standard library. Instead of a check, I need a smooth background and custom background colors. What options do I have here? Can I extend the class or are ther…

---

## [GSoC 2021 Query p5.js Web Editor Mobile/Responsive Design Implementation](https://discourse.processing.org/t/gsoc-2021-query-p5-js-web-editor-mobile-responsive-design-implementation/28386)

<div class="topic-metadata">

**Author:** [@YashVardhan](https://discourse.processing.org/u/YashVardhan)\
**Replies:** 1\
**Last updated:** [March 10, 2021, 12:03pm UTC](https://discourse.processing.org/t/gsoc-2021-query-p5-js-web-editor-mobile-responsive-design-implementation/28386 "2021-03-10T12:03:48Z")

</div>

Hello everyone! I am Yash Vardhan, a web developer and student at the Indian Institute of Technology, Dhanbad(India). I have been going through the project ideas for GSoC 2021 and found the ‘p5.js Web Editor Mobile/Res…

---

## [GSOC 2021: Inquiry](https://discourse.processing.org/t/gsoc-2021-inquiry/28374)

<div class="topic-metadata">

**Author:** [@prateek93a](https://discourse.processing.org/u/prateek93a)\
**Replies:** 4\
**Last updated:** [March 10, 2021, 10:54am UTC](https://discourse.processing.org/t/gsoc-2021-inquiry/28374 "2021-03-10T10:54:56Z")

</div>

Hello everyone, I am Prateek Jain, from IIIT Guwahati India. I look forward to participating in GSOC 2021 with Processing Organisation. Can someone guide me about what are the current ideas and what is the format to prop…

---

## [How can I count the number of files in a directory?](https://discourse.processing.org/t/how-can-i-count-the-number-of-files-in-a-directory/28377)

<div class="topic-metadata">

**Author:** [@LiterallyANoodle](https://discourse.processing.org/u/LiterallyANoodle)\
**Replies:** 2\
**Last updated:** [March 10, 2021, 10:51am UTC](https://discourse.processing.org/t/how-can-i-count-the-number-of-files-in-a-directory/28377 "2021-03-10T10:51:10Z")

</div>

I’m working on a little side-project where it is necessary for me to preload several images as an array before the rest of the program runs. When this program is run in context, I won’t have any way of knowing how many i…

---

## [Automatic line break (text() command)](https://discourse.processing.org/t/automatic-line-break-text-command/27302)

<div class="topic-metadata">

**Author:** [@Sophie](https://discourse.processing.org/u/Sophie)\
**Replies:** 1\
**Last updated:** [January 23, 2021, 2:35pm UTC](https://discourse.processing.org/t/automatic-line-break-text-command/27302 "2021-01-23T14:35:31Z")

</div>

Hello, My code draws lines to the screen, each line in a random size in a single frame. But some lines are too long. I have to split them, but not to another frame and another random size. It should still remain in the …

---

## [Different x starting position of text](https://discourse.processing.org/t/different-x-starting-position-of-text/27308)

<div class="topic-metadata">

**Author:** [@Ida](https://discourse.processing.org/u/Ida)\
**Replies:** 3\
**Last updated:** [January 23, 2021, 5:50pm UTC](https://discourse.processing.org/t/different-x-starting-position-of-text/27308 "2021-01-23T17:50:40Z")

</div>

Hey, My code draws a text line by line to the screen in different sizes, but the lines seem to start at a different x position according to the text size. Also the first line begins at a different x position. Could some…

---

## [Drawing an PGraphic inside of a PGraphic, but image does not update itself](https://discourse.processing.org/t/drawing-an-pgraphic-inside-of-a-pgraphic-but-image-does-not-update-itself/28349)

<div class="topic-metadata">

**Author:** [@AlexAlex](https://discourse.processing.org/u/AlexAlex)\
**Replies:** 3\
**Last updated:** [March 10, 2021, 8:13am UTC](https://discourse.processing.org/t/drawing-an-pgraphic-inside-of-a-pgraphic-but-image-does-not-update-itself/28349 "2021-03-10T08:13:04Z")

</div>

Hello everyone, I have been trying to achieve something like boolean operation - difference. So that whenever the text, that is moving horizontally, is covered by the text, that is moving vertically, its pixels in the o…

---

## [Help with snake game](https://discourse.processing.org/t/help-with-snake-game/28328)

<div class="topic-metadata">

**Author:** [@NewProgrammer123](https://discourse.processing.org/u/NewProgrammer123)\
**Replies:** 4\
**Last updated:** [March 10, 2021, 7:56am UTC](https://discourse.processing.org/t/help-with-snake-game/28328 "2021-03-10T07:56:44Z")

</div>

Hello, I am new to programming and I’m trying to create the snake game. I have been able to create the food and the snake with some help from google but I cant seem to get the snake to move. Any help or tips would be gre…

---

## [GSOC 21: Where to start with mobile/responsive design implementation](https://discourse.processing.org/t/gsoc-21-where-to-start-with-mobile-responsive-design-implementation/28380)

<div class="topic-metadata">

**Author:** [@Swapnil](https://discourse.processing.org/u/Swapnil)\
**Replies:** 0\
**Last updated:** [March 10, 2021, 7:04am UTC](https://discourse.processing.org/t/gsoc-21-where-to-start-with-mobile-responsive-design-implementation/28380 "2021-03-10T07:04:40Z")

</div>

Hello everyone, I’m Swapnil, a student of Jadavpur University, Kolkata. I would like to work on implementing mobile/responsive design views that have not been touched upon already. I understand that a lot of progress h…

---

## [My new youtube channel that uses p5.js to teach](https://discourse.processing.org/t/my-new-youtube-channel-that-uses-p5-js-to-teach/28379)

<div class="topic-metadata">

**Author:** [@Jithin](https://discourse.processing.org/u/Jithin)\
**Replies:** 0\
**Last updated:** [March 10, 2021, 3:14am UTC](https://discourse.processing.org/t/my-new-youtube-channel-that-uses-p5-js-to-teach/28379 "2021-03-10T03:14:49Z")

</div>

Hello community members I’ve started a youtube channel that uses p5.js and dynamic learning (A project that I did as a part of GSoC 2019 for Processing foundation) to teach various phenomenons in nature using coding and…

---

## ['Nature of Code' Chapter 2 Query](https://discourse.processing.org/t/nature-of-code-chapter-2-query/28353)

<div class="topic-metadata">

**Author:** [@scolty2021](https://discourse.processing.org/u/scolty2021)\
**Replies:** 6\
**Last updated:** [March 9, 2021, 9:58pm UTC](https://discourse.processing.org/t/nature-of-code-chapter-2-query/28353 "2021-03-09T21:58:23Z")

</div>

Hi, Thanks for taking the trouble to click on this Topic. I’m currently working my way thru Daniel Shiffman’s Learning Processing & the Nature of Code books, and have the following query about a section in the latter, …

---

## [Glvideo library on ubuntu 20.10](https://discourse.processing.org/t/glvideo-library-on-ubuntu-20-10/28298)

<div class="topic-metadata">

**Author:** [@matheplica](https://discourse.processing.org/u/matheplica)\
**Replies:** 12\
**Last updated:** [March 9, 2021, 8:51pm UTC](https://discourse.processing.org/t/glvideo-library-on-ubuntu-20-10/28298 "2021-03-09T20:51:11Z")

</div>

Hi, I’m trying glvideo library on ubuntu mate 20.10 but the bug is still that there are compiled for gstreamer 1.8 and ubuntu use version 1.18. There is a way to work around or another library is ok ? Thanks for help

---

## [Can someone help me with this game? (image order)](https://discourse.processing.org/t/can-someone-help-me-with-this-game-image-order/28147)

<div class="topic-metadata">

**Author:** [@cocopuffs](https://discourse.processing.org/u/cocopuffs)\
**Replies:** 30\
**Last updated:** [March 9, 2021, 2:11pm UTC](https://discourse.processing.org/t/can-someone-help-me-with-this-game-image-order/28147 "2021-03-09T14:11:27Z")

</div>

So I’m trying to make a game where processing shuffles the 4 images, and the player just has to click the correct image in a certain order to win. Very simple game, nothing fancy or complicated, just trying to practice s…

---

## [Dot Product Question](https://discourse.processing.org/t/dot-product-question/28351)

<div class="topic-metadata">

**Author:** [@BigBigRed](https://discourse.processing.org/u/BigBigRed)\
**Replies:** 2\
**Last updated:** [March 9, 2021, 3:06pm UTC](https://discourse.processing.org/t/dot-product-question/28351 "2021-03-09T15:06:05Z")

</div>

I am trying to understand Dot Product and how to use it. I am trying to follow/re engineer a shader that I have found. (Acid Jelly from either Shadertoy or Shaderific, I think). The line of shader code is ‘uv /= dot(u…

---

## [Display objects stored in an ArrayList one after the other (Animation)](https://discourse.processing.org/t/display-objects-stored-in-an-arraylist-one-after-the-other-animation/28348)

<div class="topic-metadata">

**Author:** [@Alesk1969](https://discourse.processing.org/u/Alesk1969)\
**Replies:** 4\
**Last updated:** [March 9, 2021, 1:08pm UTC](https://discourse.processing.org/t/display-objects-stored-in-an-arraylist-one-after-the-other-animation/28348 "2021-03-09T13:08:16Z")

</div>

Hello everyone, What are the different solutions (or the easiest one for a beginner to master) to display some objects stored in an array (or in the case of my sketch in an ArrayList) one after the other and rather than…

---

## [How to get x and y value of a shape?](https://discourse.processing.org/t/how-to-get-x-and-y-value-of-a-shape/28367)

<div class="topic-metadata">

**Author:** [@HolaCola](https://discourse.processing.org/u/HolaCola)\
**Replies:** 4\
**Last updated:** [March 9, 2021, 10:47am UTC](https://discourse.processing.org/t/how-to-get-x-and-y-value-of-a-shape/28367 "2021-03-09T10:47:40Z")

</div>

Is there any method to get x and y axis value of a 2D shape (i.e. a circle or rectangle)? I haven’t found any related reference.

---

## [Bird wing kinematics](https://discourse.processing.org/t/bird-wing-kinematics/28175)

<div class="topic-metadata">

**Author:** [@aljosa](https://discourse.processing.org/u/aljosa)\
**Replies:** 9\
**Last updated:** [March 9, 2021, 9:20am UTC](https://discourse.processing.org/t/bird-wing-kinematics/28175 "2021-03-09T09:20:18Z")

</div>

float r1=200; // size of a first segment float r2=150; // size of a second segment float a1; // angle one float a2; // angle two float w=0; // angular velo…

---

## [Do you know how to modify this?](https://discourse.processing.org/t/do-you-know-how-to-modify-this/28323)

<div class="topic-metadata">

**Author:** [@Apollo](https://discourse.processing.org/u/Apollo)\
**Replies:** 5\
**Last updated:** [March 9, 2021, 7:46am UTC](https://discourse.processing.org/t/do-you-know-how-to-modify-this/28323 "2021-03-09T07:46:14Z")

</div>

Good day/morning/evening/afternoon! So I got his code which I wanna utilize for another task: void setup() { size(800,400); } void draw() { loadPixels(); int w = width/2, h = height; for(float j = 0; j \< w; j++) …

---

## [What is the difference between Shadertoy and Processing?](https://discourse.processing.org/t/what-is-the-difference-between-shadertoy-and-processing/28359)

<div class="topic-metadata">

**Author:** [@kokoo](https://discourse.processing.org/u/kokoo)\
**Replies:** 1\
**Last updated:** [March 8, 2021, 10:57pm UTC](https://discourse.processing.org/t/what-is-the-difference-between-shadertoy-and-processing/28359 "2021-03-08T22:57:11Z")

</div>

I stumbled upon tool called Shadertoy. What difference between shadertoy and processing? Which one is faster and more capable? And what is GLSL?

---

## [Funky curveVertx results](https://discourse.processing.org/t/funky-curvevertx-results/28317)

<div class="topic-metadata">

**Author:** [@travis.stdenis](https://discourse.processing.org/u/travis.stdenis)\
**Replies:** 4\
**Last updated:** [March 8, 2021, 10:48pm UTC](https://discourse.processing.org/t/funky-curvevertx-results/28317 "2021-03-08T22:48:18Z")

</div>

I’m drawing a series of lines that diverge in the middle of the screen using a gaussian function (getGaussian below). Usually this is fine as you can see in theis picture (only two lines here to see the issue. The pro…

---

## [OSC message to Run Processing Sketch](https://discourse.processing.org/t/osc-message-to-run-processing-sketch/28318)

<div class="topic-metadata">

**Author:** [@L0RDZed](https://discourse.processing.org/u/L0RDZed)\
**Replies:** 7\
**Last updated:** [March 8, 2021, 7:05pm UTC](https://discourse.processing.org/t/osc-message-to-run-processing-sketch/28318 "2021-03-08T19:05:33Z")

</div>

Hi, Is it possible to send an OSC message to processing that will initiate the Run command? I am using Supercollider to send OSC messages to trigger events in Processing. I need to add another message command to my OS…

---

## [Alternative Noise Implementations](https://discourse.processing.org/t/alternative-noise-implementations/28345)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 0\
**Last updated:** [March 8, 2021, 5:08pm UTC](https://discourse.processing.org/t/alternative-noise-implementations/28345 "2021-03-08T17:08:41Z")

</div>

Recently I posted about selectable noise implementation in ruby processing. Since then I’ve done a bit more research and came upon the this post about about OpenSimplex in processing. That got me thinking, why don’t I ex…

---

## [Full Screen with Hidings sliders](https://discourse.processing.org/t/full-screen-with-hidings-sliders/28249)

<div class="topic-metadata">

**Author:** [@Mem](https://discourse.processing.org/u/Mem)\
**Replies:** 2\
**Last updated:** [March 8, 2021, 6:08pm UTC](https://discourse.processing.org/t/full-screen-with-hidings-sliders/28249 "2021-03-08T18:08:16Z")

</div>

Hello, I would like to use the function full screen fullscreen(); Using sliders, checkboxs, inputs and buttons that will disappear when we are in a full screen mode. So basically I can work with sliders and then go f…

---

## [Help on video effect](https://discourse.processing.org/t/help-on-video-effect/27942)

<div class="topic-metadata">

**Author:** [@Morais](https://discourse.processing.org/u/Morais)\
**Replies:** 1\
**Last updated:** [March 8, 2021, 5:48pm UTC](https://discourse.processing.org/t/help-on-video-effect/27942 "2021-03-08T17:48:09Z")

</div>

Hi everyone. I am new to coding. This “effect” is almost done in terms of the overall look, but I can’t understand how to smooth out the pixelated lines (examples below). There’s a difference between P2D/P3D, but it’s …

---

## [How to rotate pixels based on other light values?](https://discourse.processing.org/t/how-to-rotate-pixels-based-on-other-light-values/28303)

<div class="topic-metadata">

**Author:** [@Morais](https://discourse.processing.org/u/Morais)\
**Replies:** 4\
**Last updated:** [March 8, 2021, 4:22pm UTC](https://discourse.processing.org/t/how-to-rotate-pixels-based-on-other-light-values/28303 "2021-03-08T16:22:34Z")

</div>

Hi everybody, I am new to coding. Given this code example, how can I rotate pixels based on other light values? Do I need to define 3 different brightness values? In this code example, there is this brightness(\_c) ins…

---

## [Why isn't the ellipse displaying?](https://discourse.processing.org/t/why-isnt-the-ellipse-displaying/28341)

<div class="topic-metadata">

**Author:** [@psn](https://discourse.processing.org/u/psn)\
**Replies:** 1\
**Last updated:** [March 8, 2021, 3:58pm UTC](https://discourse.processing.org/t/why-isnt-the-ellipse-displaying/28341 "2021-03-08T15:58:32Z")

</div>

Title is pretty self-explanatory, i need help to see what’s wrong with my code. Any help is appreciated, thanks! class Ellipse { int x; int y; int w; int h; int c; Ellipse(int inputX, int inputY, int inputWi…

---

## [Transformation matrix artifacts](https://discourse.processing.org/t/transformation-matrix-artifacts/28337)

<div class="topic-metadata">

**Author:** [@krigga](https://discourse.processing.org/u/krigga)\
**Replies:** 2\
**Last updated:** [March 8, 2021, 2:26pm UTC](https://discourse.processing.org/t/transformation-matrix-artifacts/28337 "2021-03-08T14:26:19Z")

</div>

I was generating a linear gradient using code I found online and then tried adding rotation using transformation matrix. The gradient did rotate, however artifacts appeared: the gradient was no longer perfect, dark lines…

---

## [How to add multiple values to array within class?](https://discourse.processing.org/t/how-to-add-multiple-values-to-array-within-class/28294)

<div class="topic-metadata">

**Author:** [@tea\_tree](https://discourse.processing.org/u/tea_tree)\
**Replies:** 4\
**Last updated:** [March 8, 2021, 2:07pm UTC](https://discourse.processing.org/t/how-to-add-multiple-values-to-array-within-class/28294 "2021-03-08T14:07:44Z")

</div>

I have the following array: class Foo { int\[\] myArray; int val1; int val2; int val3; int val4; Foo(int val1, int val2, int val3, int val4) { this.myArray = new int\[4\]; myArray = val1, val2, val3, va…

---

## [Select random element from list](https://discourse.processing.org/t/select-random-element-from-list/28178)

<div class="topic-metadata">

**Author:** [@Criste44](https://discourse.processing.org/u/Criste44)\
**Replies:** 6\
**Last updated:** [March 2, 2021, 10:30am UTC](https://discourse.processing.org/t/select-random-element-from-list/28178 "2021-03-02T10:30:28Z")

</div>

I want to select a random element from a list and make an if operation on the selected item. Can I do them in void awake or void start?

---

## [Checkbox switch](https://discourse.processing.org/t/checkbox-switch/28334)

<div class="topic-metadata">

**Author:** [@Mem](https://discourse.processing.org/u/Mem)\
**Replies:** 0\
**Last updated:** [March 8, 2021, 10:47am UTC](https://discourse.processing.org/t/checkbox-switch/28334 "2021-03-08T10:47:50Z")

</div>

Hi, I would like to be able to select different circle A,B When the A is selected and we select the B, the circle A should disappear and the checkbox A must be unchecked Here is the exemple : Thank you var checkbox\_…

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

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