# Latest

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

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

**Page:** 266

---

## [Accessing processing data types from class of java package](https://discourse.processing.org/t/accessing-processing-data-types-from-class-of-java-package/27028)

<div class="topic-metadata">

**Author:** [@bhavya](https://discourse.processing.org/u/bhavya)\
**Replies:** 3\
**Last updated:** [January 13, 2021, 5:25pm UTC](https://discourse.processing.org/t/accessing-processing-data-types-from-class-of-java-package/27028 "2021-01-13T17:25:21Z")

</div>

I have learnt processing from The Coding Train. Recently I was working on some GUI functionality (i.e. Button, Slider, etc.) and thought to create a library. I know there are GUI library already exist, but I am doing for…

---

## [Image Processing With Pixels error](https://discourse.processing.org/t/image-processing-with-pixels-error/27030)

<div class="topic-metadata">

**Author:** [@ELaN](https://discourse.processing.org/u/ELaN)\
**Replies:** 2\
**Last updated:** [January 13, 2021, 4:24pm UTC](https://discourse.processing.org/t/image-processing-with-pixels-error/27030 "2021-01-13T16:24:31Z")

</div>

I’ve written this cose: \<void setup(){ size(337,450); frog=loadImage(“frog.jpg”); } void draw(){ image(frog,0,0); loadPixels(); frog.loadPixels(); for(int x=0; x\<width; x++){ for(int y=0; y\<height; y++){ int l…

---

## [Nature of Code: Drag Forces](https://discourse.processing.org/t/nature-of-code-drag-forces/27005)

<div class="topic-metadata">

**Author:** [@Divitiacus](https://discourse.processing.org/u/Divitiacus)\
**Replies:** 2\
**Last updated:** [January 13, 2021, 1:14pm UTC](https://discourse.processing.org/t/nature-of-code-drag-forces/27005 "2021-01-13T13:14:38Z")

</div>

This might be more a physics question then a programming question but because it is described in “The Nature of Code” somebody might have an answer as well. I am currently working on something, where I want to implement…

---

## [3Blue1Brown like videos using P5JS](https://discourse.processing.org/t/3blue1brown-like-videos-using-p5js/27007)

<div class="topic-metadata">

**Author:** [@StriveMath](https://discourse.processing.org/u/StriveMath)\
**Replies:** 4\
**Last updated:** [January 13, 2021, 12:39pm UTC](https://discourse.processing.org/t/3blue1brown-like-videos-using-p5js/27007 "2021-01-13T12:39:50Z")

</div>

Hi Processing community I am looking to start making high-quality math content like 3Blue1Brown but specialised for primary and high school students (Example here) . However, I want students to be able to interact with …

---

## [Are there any release notes for p5 1.2.0?](https://discourse.processing.org/t/are-there-any-release-notes-for-p5-1-2-0/27008)

<div class="topic-metadata">

**Author:** [@grege2](https://discourse.processing.org/u/grege2)\
**Replies:** 0\
**Last updated:** [January 13, 2021, 5:42am UTC](https://discourse.processing.org/t/are-there-any-release-notes-for-p5-1-2-0/27008 "2021-01-13T05:42:58Z")

</div>

Hi, I just noticed there is a 1.2.0 release, from 20 Dec. I can’t see the usual Release/Contents notes, at https://github.com/processing/p5.js/releases or anywhere else. Is it just a roll-up bugfix release with nothing …

---

## [What do final / static / public / private tags mean?](https://discourse.processing.org/t/what-do-final-static-public-private-tags-mean/27002)

<div class="topic-metadata">

**Author:** [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Replies:** 2\
**Last updated:** [January 12, 2021, 10:43pm UTC](https://discourse.processing.org/t/what-do-final-static-public-private-tags-mean/27002 "2021-01-12T22:43:07Z")

</div>

Hi! In the last month, I’ve been active on the forum. I saw quite a lot of things like final int b = 3, which means that b does not change. But what do the others mean? I tried using public int b = 123 inside of setup, …

---

## [Do you have the missing media files from the p5.js Getting Started Book?](https://discourse.processing.org/t/do-you-have-the-missing-media-files-from-the-p5-js-getting-started-book/20445)

<div class="topic-metadata">

**Author:** [@mnoble](https://discourse.processing.org/u/mnoble)\
**Replies:** 3\
**Last updated:** [January 12, 2021, 8:57pm UTC](https://discourse.processing.org/t/do-you-have-the-missing-media-files-from-the-p5-js-getting-started-book/20445 "2021-01-12T20:57:53Z")

</div>

Hello Forum :slight\_smile: I have been looking all over the web for the missing data visualization media files from p5.js book. It is a known issue on Github without any results. Does any have the following missing fil…

---

## [How are PShape contours stored?](https://discourse.processing.org/t/how-are-pshape-contours-stored/26997)

<div class="topic-metadata">

**Author:** [@micycle](https://discourse.processing.org/u/micycle)\
**Replies:** 2\
**Last updated:** [January 12, 2021, 8:38pm UTC](https://discourse.processing.org/t/how-are-pshape-contours-stored/26997 "2021-01-12T20:38:13Z")

</div>

Take the PShape above. Clearly it must know that the vertices of the inner region are not to be joined with the other vertices of the edge and represent a region that is “cut-out” from the shape. Processing calls such …

---

## [P2D, P3D & macOS Big Sur (11.1)](https://discourse.processing.org/t/p2d-p3d-macos-big-sur-11-1/26998)

<div class="topic-metadata">

**Author:** [@rapatski](https://discourse.processing.org/u/rapatski)\
**Replies:** 1\
**Last updated:** [January 12, 2021, 7:28pm UTC](https://discourse.processing.org/t/p2d-p3d-macos-big-sur-11-1/26998 "2021-01-12T19:28:24Z")

</div>

Hi friends, These are my least favourite posts, but again as I start Processing up after a bit of an hiatus, I seem to run straight into problems. Searched the forum but could not find any other reports… is no-one havin…

---

## [Put a picture on the walls of a box](https://discourse.processing.org/t/put-a-picture-on-the-walls-of-a-box/26919)

<div class="topic-metadata">

**Author:** [@julieturin](https://discourse.processing.org/u/julieturin)\
**Replies:** 1\
**Last updated:** [January 12, 2021, 7:20pm UTC](https://discourse.processing.org/t/put-a-picture-on-the-walls-of-a-box/26919 "2021-01-12T19:20:47Z")

</div>

hello, I would like to put a picture on the floor and walls of my box but I can’t do it with vertex. pushMatrix(); translate(0, 0, total/2); box(400, 200, total); PImage img = loadImage(“lol.jpg”); noStroke(); beg…

---

## [Webpacking the p5 addons](https://discourse.processing.org/t/webpacking-the-p5-addons/18264)

<div class="topic-metadata">

**Author:** [@modestfool](https://discourse.processing.org/u/modestfool)\
**Replies:** 5\
**Last updated:** [January 12, 2021, 4:45pm UTC](https://discourse.processing.org/t/webpacking-the-p5-addons/18264 "2021-01-12T16:45:08Z")

</div>

Hi. I’m able to get p5 to render drawings, but I can’t get it to import sound addons. The inpector throughs the error: p5 is not defined (inside p5.sound.js:3112). My code is as follows: import p5 from './p5/p5' import…

---

## [Responsive canvas](https://discourse.processing.org/t/responsive-canvas/26983)

<div class="topic-metadata">

**Author:** [@seicaratteri](https://discourse.processing.org/u/seicaratteri)\
**Replies:** 5\
**Last updated:** [January 12, 2021, 10:36am UTC](https://discourse.processing.org/t/responsive-canvas/26983 "2021-01-12T10:36:18Z")

</div>

Hello all! I am very new with p5js, and as an exercise I created a very simple sketch that generates an abstract landscape based on a lot of lines tied to a vector field originated by perlin noise. I am trying to mak…

---

## [How to trigger P5js sketch with scroll](https://discourse.processing.org/t/how-to-trigger-p5js-sketch-with-scroll/26990)

<div class="topic-metadata">

**Author:** [@robert](https://discourse.processing.org/u/robert)\
**Replies:** 1\
**Last updated:** [January 12, 2021, 6:57am UTC](https://discourse.processing.org/t/how-to-trigger-p5js-sketch-with-scroll/26990 "2021-01-12T06:57:45Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I am currently working on a project where I need to have multiple p5 sketches on the same page. For this, I am going to use p5 instance mode. Th…

---

## [Como agrego void draw(){ para animar el dibujo de este programa](https://discourse.processing.org/t/como-agrego-void-draw-para-animar-el-dibujo-de-este-programa/25922)

<div class="topic-metadata">

**Author:** [@UnderHok](https://discourse.processing.org/u/UnderHok)\
**Replies:** 2\
**Last updated:** [January 12, 2021, 1:28am UTC](https://discourse.processing.org/t/como-agrego-void-draw-para-animar-el-dibujo-de-este-programa/25922 "2021-01-12T01:28:28Z")

</div>

como agrego void draw(){ a este código para ver como se va dibujando de el centro a donde finaliza //code variable star void star(int pointCount, float innerRadius,float outerRadius){ float theta = 0.0; int vertCount…

---

## [Compare data with recorded data](https://discourse.processing.org/t/compare-data-with-recorded-data/26922)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 3\
**Last updated:** [January 12, 2021, 12:22am UTC](https://discourse.processing.org/t/compare-data-with-recorded-data/26922 "2021-01-12T00:22:28Z")

</div>

I would like just to compare a value of a data that I have at the actual frame, with the former value I had at the previous frame. And do something like this if (formerData \> actualData+100) doSomething. Thank you. …

---

## [Compare the same data at the same frame](https://discourse.processing.org/t/compare-the-same-data-at-the-same-frame/26987)

<div class="topic-metadata">

**Author:** [@bking](https://discourse.processing.org/u/bking)\
**Replies:** 0\
**Last updated:** [January 11, 2021, 9:16pm UTC](https://discourse.processing.org/t/compare-the-same-data-at-the-same-frame/26987 "2021-01-11T21:16:24Z")

</div>

Hello! I don’t understand why my program record the same value whereas it shouldn’t? I want to record 3 different datas with 1 different frame each time one of my three value is different. I think, I compare datas not…

---

## [Find new point based on relative angle and distance](https://discourse.processing.org/t/find-new-point-based-on-relative-angle-and-distance/26921)

<div class="topic-metadata">

**Author:** [@sarath.jasrin](https://discourse.processing.org/u/sarath.jasrin)\
**Replies:** 2\
**Last updated:** [January 11, 2021, 8:31pm UTC](https://discourse.processing.org/t/find-new-point-based-on-relative-angle-and-distance/26921 "2021-01-11T20:31:13Z")

</div>

Hi how to find the new point based on relative angle and distance in the graph system. My drawing looks like below Lets say when I change angle between two points (A and c…

---

## [How to use ml5js + face-api to do face recognition?](https://discourse.processing.org/t/how-to-use-ml5js-face-api-to-do-face-recognition/26985)

<div class="topic-metadata">

**Author:** [@stephanschulz](https://discourse.processing.org/u/stephanschulz)\
**Replies:** 0\
**Last updated:** [January 11, 2021, 7:48pm UTC](https://discourse.processing.org/t/how-to-use-ml5js-face-api-to-do-face-recognition/26985 "2021-01-11T19:48:33Z")

</div>

Hello. I know ml5js gives access to faceapi as this example shows: https://learn.ml5js.org/#/reference/face-api But this shows you how to use face detection - knowing if and where a face is. I am hoping to also do the…

---

## [Stack boxes (questions / Tetris)](https://discourse.processing.org/t/stack-boxes-questions-tetris/26981)

<div class="topic-metadata">

**Author:** [@jeremy](https://discourse.processing.org/u/jeremy)\
**Replies:** 5\
**Last updated:** [January 11, 2021, 7:01pm UTC](https://discourse.processing.org/t/stack-boxes-questions-tetris/26981 "2021-01-11T19:01:19Z")

</div>

How to stack the boxes with class function,and use array to create 5 boxes

---

## [Processing "GUI Builder warning" when opening G4P GUI builder](https://discourse.processing.org/t/processing-gui-builder-warning-when-opening-g4p-gui-builder/26980)

<div class="topic-metadata">

**Author:** [@JackjDaly](https://discourse.processing.org/u/JackjDaly)\
**Replies:** 2\
**Last updated:** [January 11, 2021, 4:54pm UTC](https://discourse.processing.org/t/processing-gui-builder-warning-when-opening-g4p-gui-builder/26980 "2021-01-11T16:54:55Z")

</div>

Hi, I am having an issue with using G4P in processing, I have tried adding it through the add tools feature in processing, as well as installing it by adding it to the tools folder as instructed here (Quarks Place) Yet…

---

## [Android video problem](https://discourse.processing.org/t/android-video-problem/26948)

<div class="topic-metadata">

**Author:** [@clay21](https://discourse.processing.org/u/clay21)\
**Replies:** 10\
**Last updated:** [January 11, 2021, 4:12pm UTC](https://discourse.processing.org/t/android-video-problem/26948 "2021-01-11T16:12:48Z")

</div>

Hello, I can’t play video on my phone, but the picture is working, I don’t know what I did wrong I have looked at other forums but quite old ones I would be glad if you could help. HERE IS MY CODE import processing.vide…

---

## [Let the image object move in different directions](https://discourse.processing.org/t/let-the-image-object-move-in-different-directions/26929)

<div class="topic-metadata">

**Author:** [@Elmpt](https://discourse.processing.org/u/Elmpt)\
**Replies:** 7\
**Last updated:** [January 11, 2021, 2:40pm UTC](https://discourse.processing.org/t/let-the-image-object-move-in-different-directions/26929 "2021-01-11T14:40:37Z")

</div>

Hi everyone! I need some help with understanding, what can I use to make an image object move in the specified direction(vectors maybe…I am not that sure). I have an object that is represented by png image and I want it…

---

## [Henon Attractor in JRubyArt](https://discourse.processing.org/t/henon-attractor-in-jrubyart/26937)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 4\
**Last updated:** [January 11, 2021, 1:50pm UTC](https://discourse.processing.org/t/henon-attractor-in-jrubyart/26937 "2021-01-11T13:50:12Z")

</div>

Sketch started from Atom my ide of choice with JRubyArt ALPHA = 1.4 BETA = 0.3 attr\_reader :x, :y def setup sketch\_title 'Henon Attractor' frame\_rate(360) background(0) @x = map1d(rand, 0..1.0, -0.1..0.1) @y…

---

## [I have some problems with NPE, and i dont know how to fix it](https://discourse.processing.org/t/i-have-some-problems-with-npe-and-i-dont-know-how-to-fix-it/26968)

<div class="topic-metadata">

**Author:** [@deiwy](https://discourse.processing.org/u/deiwy)\
**Replies:** 1\
**Last updated:** [January 11, 2021, 12:52pm UTC](https://discourse.processing.org/t/i-have-some-problems-with-npe-and-i-dont-know-how-to-fix-it/26968 "2021-01-11T12:52:14Z")

</div>

i try to do a platformer, and i have problems with IntList main code: block\[\] b; button\[\] bu; player p; IntList yB = new IntList(); IntList xB = new IntList(); int menu = 0; void setup(){ for(int i = 0; i \< lev…

---

## [Choice of OpenJDK is Critical](https://discourse.processing.org/t/choice-of-openjdk-is-critical/16141)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 8\
**Last updated:** [January 11, 2021, 11:31am UTC](https://discourse.processing.org/t/choice-of-openjdk-is-critical/16141 "2021-01-11T11:31:16Z")

</div>

I thought it might be worth recording my experience here of trying different versions of OpenJDK with my ruby-processing projects (I am sure same would apply to non-ide user of processing). My experience is limited to 64…

---

## [\[Issue\] Cannot run P2D / P3D on versions 3.2.4 up to 4.0a2](https://discourse.processing.org/t/issue-cannot-run-p2d-p3d-on-versions-3-2-4-up-to-4-0a2/26914)

<div class="topic-metadata">

**Author:** [@VeryRealEngine](https://discourse.processing.org/u/VeryRealEngine)\
**Replies:** 2\
**Last updated:** [January 11, 2021, 11:06am UTC](https://discourse.processing.org/t/issue-cannot-run-p2d-p3d-on-versions-3-2-4-up-to-4-0a2/26914 "2021-01-11T11:06:49Z")

</div>

I also posted this question here: Hello there. I am encountering a weird problem with Processing on Windows. When running this code: void setup() { size(500, 500, P2D); } I get the following error: Error load…

---

## [Understanding the Atan2, Please help](https://discourse.processing.org/t/understanding-the-atan2-please-help/26928)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 13\
**Last updated:** [January 11, 2021, 11:04am UTC](https://discourse.processing.org/t/understanding-the-atan2-please-help/26928 "2021-01-11T11:04:03Z")

</div>

I was expecting to get the degrees from the center of the sketch to the mouse from 0 to 360 or zero to 2PI. Instead I am getting zero to 180 from horizontal to the belly of the sketch and then I get negative numbers on …

---

## [Help exporting PDF](https://discourse.processing.org/t/help-exporting-pdf/26416)

<div class="topic-metadata">

**Author:** [@lucaii](https://discourse.processing.org/u/lucaii)\
**Replies:** 3\
**Last updated:** [January 11, 2021, 10:36am UTC](https://discourse.processing.org/t/help-exporting-pdf/26416 "2021-01-11T10:36:17Z")

</div>

Hi, Around four or five years ago I came up with this code which I now slightly edited. I would like to export a PDF on keypressed but can’t seem to make it work… everytime the pdf exports it’s empty. Any ideas or help …

---

## [spotLight() not behaving like i'd expect](https://discourse.processing.org/t/spotlight-not-behaving-like-id-expect/26963)

<div class="topic-metadata">

**Author:** [@RFullum](https://discourse.processing.org/u/RFullum)\
**Replies:** 2\
**Last updated:** [January 11, 2021, 10:33am UTC](https://discourse.processing.org/t/spotlight-not-behaving-like-id-expect/26963 "2021-01-11T10:33:38Z")

</div>

I’m experimenting with light sources to see how their attributes affect the light movement and casting on 3D shapes. I set up a spotLight() above, pointing straight down, a large flat box() below, and i increment the spo…

---

## [Using IO Library with Processing.py](https://discourse.processing.org/t/using-io-library-with-processing-py/26956)

<div class="topic-metadata">

**Author:** [@witlogic](https://discourse.processing.org/u/witlogic)\
**Replies:** 3\
**Last updated:** [January 10, 2021, 10:34pm UTC](https://discourse.processing.org/t/using-io-library-with-processing-py/26956 "2021-01-10T22:34:31Z")

</div>

I’m trying to use Processing.py to read GPIO pins on a Raspberry Pi. I haven’t been able to find any examples of IO library for Processing.py. I’ve added the IO library, but can’t figure out right syntax to access the …

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

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