# Latest

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

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

**Page:** 365

---

## [Public Class vs Private Class](https://discourse.processing.org/t/public-class-vs-private-class/19666)

<div class="topic-metadata">

**Author:** [@debxyz](https://discourse.processing.org/u/debxyz)\
**Replies:** 10\
**Last updated:** [April 17, 2020, 9:09pm UTC](https://discourse.processing.org/t/public-class-vs-private-class/19666 "2020-04-17T21:09:14Z")

</div>

This is basically a concept question. And I have read the reference entries on the processing site, as well as on stackoverflow site. Is public vs private class a similar concept as with variable scope – global vs loca…

---

## [Como hacer movimientos avanzados](https://discourse.processing.org/t/como-hacer-movimientos-avanzados/19569)

<div class="topic-metadata">

**Author:** [@hokuto](https://discourse.processing.org/u/hokuto)\
**Replies:** 6\
**Last updated:** [April 17, 2020, 8:05pm UTC](https://discourse.processing.org/t/como-hacer-movimientos-avanzados/19569 "2020-04-17T20:05:11Z")

</div>

Saludos. Me gustaria saber como hacer movimientos avanzados para mover un objeto como el de este video que voy a poner. En el minuto 3:39 salen unos aviones rojos por la izquierda y parece que siguen una r…

---

## [Using createA() with a '#' instead of a url loads the current page in the web editor](https://discourse.processing.org/t/using-createa-with-a-instead-of-a-url-loads-the-current-page-in-the-web-editor/19864)

<div class="topic-metadata">

**Author:** [@Vera](https://discourse.processing.org/u/Vera)\
**Replies:** 3\
**Last updated:** [April 17, 2020, 7:50pm UTC](https://discourse.processing.org/t/using-createa-with-a-instead-of-a-url-loads-the-current-page-in-the-web-editor/19864 "2020-04-17T19:50:41Z")

</div>

I’m currently following the tutorials from The Coding Train on p5.js and I’ve run into a problem with the createA() DOM element. They are a bit older and I’m not sure if this is a bug or something I’m doing wrong… In vi…

---

## [Need some advice on assignment (menu symbols)](https://discourse.processing.org/t/need-some-advice-on-assignment-menu-symbols/19842)

<div class="topic-metadata">

**Author:** [@tengtengloves](https://discourse.processing.org/u/tengtengloves)\
**Replies:** 4\
**Last updated:** [April 17, 2020, 3:14pm UTC](https://discourse.processing.org/t/need-some-advice-on-assignment-menu-symbols/19842 "2020-04-17T15:14:20Z")

</div>

I have an assignment due today and I need some advice. I have to plan and create some compelling visual art that visibly changes in real times. I trying to transforming the menu bar into close bar but I not sure how c…

---

## [Animating a rotation of 1 rev/sec or faster smoothly](https://discourse.processing.org/t/animating-a-rotation-of-1-rev-sec-or-faster-smoothly/19857)

<div class="topic-metadata">

**Author:** [@ddownn](https://discourse.processing.org/u/ddownn)\
**Replies:** 6\
**Last updated:** [April 17, 2020, 6:43pm UTC](https://discourse.processing.org/t/animating-a-rotation-of-1-rev-sec-or-faster-smoothly/19857 "2020-04-17T18:43:45Z")

</div>

I would like to have a clock hand rotating at 60 rpm but get rid of the visual effect of seeing the hand in more than one location at a time. Obviously with a frame rate of 60, simply trying to draw the hand at 6 degree …

---

## [Hello! can someone help me with big image in P3D?](https://discourse.processing.org/t/hello-can-someone-help-me-with-big-image-in-p3d/19802)

<div class="topic-metadata">

**Author:** [@vargas](https://discourse.processing.org/u/vargas)\
**Replies:** 4\
**Last updated:** [April 17, 2020, 5:06pm UTC](https://discourse.processing.org/t/hello-can-someone-help-me-with-big-image-in-p3d/19802 "2020-04-17T17:06:18Z")

</div>

I’m writing code using P3D, but I can’t save a file larger than 48cm wide by 30cm high. can someone help me save images in large sizes? Like this: PImage nome; float angle; void setup(){ size(600,600,P3D); backgrou…

---

## [Why do radian degrees look different for arcs versus rotations?](https://discourse.processing.org/t/why-do-radian-degrees-look-different-for-arcs-versus-rotations/19856)

<div class="topic-metadata">

**Author:** [@mnoble](https://discourse.processing.org/u/mnoble)\
**Replies:** 10\
**Last updated:** [April 17, 2020, 4:56pm UTC](https://discourse.processing.org/t/why-do-radian-degrees-look-different-for-arcs-versus-rotations/19856 "2020-04-17T16:56:12Z")

</div>

Hello Forum, I have math confusion. Radian degrees seem to work differently for rotate() versus arc(). Below, I use the first image as a guide for rotating a rect() and the second image as guide for controlling the open…

---

## [A Pulsar Array. Need Help please](https://discourse.processing.org/t/a-pulsar-array-need-help-please/19797)

<div class="topic-metadata">

**Author:** [@gurki](https://discourse.processing.org/u/gurki)\
**Replies:** 9\
**Last updated:** [April 17, 2020, 11:29am UTC](https://discourse.processing.org/t/a-pulsar-array-need-help-please/19797 "2020-04-17T11:29:08Z")

</div>

Hey Guys, this is one of the hardest tasks in the exam. There are another variations in the other exams which I will include in the next days in another topics. Now This task in german Schreiben Sie eine Klasse Pulsar…

---

## [Button example: overRect() function's width and height variables](https://discourse.processing.org/t/button-example-overrect-functions-width-and-height-variables/19817)

<div class="topic-metadata">

**Author:** [@Leo\_Aguiar](https://discourse.processing.org/u/Leo_Aguiar)\
**Replies:** 2\
**Last updated:** [April 17, 2020, 11:08am UTC](https://discourse.processing.org/t/button-example-overrect-functions-width-and-height-variables/19817 "2020-04-17T11:08:41Z")

</div>

Hi Forum, In the examples included with the Processing IDE and on the Processing Reference online there is an example showing how to code two simple buttons. One button is a rectangle and it uses a custom function calle…

---

## [Exploring Julia Sets in propane and JRubyArt](https://discourse.processing.org/t/exploring-julia-sets-in-propane-and-jrubyart/19862)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 0\
**Last updated:** [April 17, 2020, 9:05am UTC](https://discourse.processing.org/t/exploring-julia-sets-in-propane-and-jrubyart/19862 "2020-04-17T09:05:11Z")

</div>

Recently I created a GUI for a Julia Explorer by Jonathon Scott in propane, this inspired me to have a go at the Rosetta Code ‘Julia Set’ challenge, here is one of the results of my JRubyArt sketch:- . For more detail…

---

## [TANGENT CURVE please](https://discourse.processing.org/t/tangent-curve-please/19838)

<div class="topic-metadata">

**Author:** [@onetwothree](https://discourse.processing.org/u/onetwothree)\
**Replies:** 5\
**Last updated:** [April 17, 2020, 1:14am UTC](https://discourse.processing.org/t/tangent-curve-please/19838 "2020-04-17T01:14:50Z")

</div>

Hi, someone who can help me get a code to get the tangent of the different points of a curve like the cissoid of diocles ??,

---

## [How to rotate object around edge?](https://discourse.processing.org/t/how-to-rotate-object-around-edge/19757)

<div class="topic-metadata">

**Author:** [@Cybernet](https://discourse.processing.org/u/Cybernet)\
**Replies:** 4\
**Last updated:** [April 17, 2020, 12:52am UTC](https://discourse.processing.org/t/how-to-rotate-object-around-edge/19757 "2020-04-17T00:52:03Z")

</div>

I have this code right here that rotates a rectangle. pushMatrix(); translate(xpos + 20, ypos - 10); rotate(radians(swing)); rect(0, 0, 7, 35); popMatrix(); swing += 1; But when I run the code,…

---

## [Tangent to parametric curve](https://discourse.processing.org/t/tangent-to-parametric-curve/19788)

<div class="topic-metadata">

**Author:** [@mcaaaalvo](https://discourse.processing.org/u/mcaaaalvo)\
**Replies:** 55\
**Last updated:** [April 16, 2020, 10:32pm UTC](https://discourse.processing.org/t/tangent-to-parametric-curve/19788 "2020-04-16T22:32:50Z")

</div>

I have to create a program, that when I put the mouse on any point of the curve, it draws its tangent line, and writes to me in a corner the value of the slope of this line. The drawing have to include the cartesian axis…

---

## [Cursor icon with Processing P2D renderer doesn't update as expected](https://discourse.processing.org/t/cursor-icon-with-processing-p2d-renderer-doesnt-update-as-expected/19537)

<div class="topic-metadata">

**Author:** [@Bjoe](https://discourse.processing.org/u/Bjoe)\
**Replies:** 3\
**Last updated:** [April 16, 2020, 8:53pm UTC](https://discourse.processing.org/t/cursor-icon-with-processing-p2d-renderer-doesnt-update-as-expected/19537 "2020-04-16T20:53:54Z")

</div>

Hi! I am using processings P2D renderer and want to change the cursor icon when it has a specific location. This works as expected without the renderer, but with P2D the cursor changes to my computers default cursor aft…

---

## [Reaction time experiment](https://discourse.processing.org/t/reaction-time-experiment/19813)

<div class="topic-metadata">

**Author:** [@14mmss](https://discourse.processing.org/u/14mmss)\
**Replies:** 5\
**Last updated:** [April 16, 2020, 8:25pm UTC](https://discourse.processing.org/t/reaction-time-experiment/19813 "2020-04-16T20:25:08Z")

</div>

hello, I am working on a reaction time experiment. I need to record the time from the second screen onwards until the rectangle changes from black to red in a random time stamp between 2 and 7 seconds and as a reaction t…

---

## [Embedded browser in processing](https://discourse.processing.org/t/embedded-browser-in-processing/19196)

<div class="topic-metadata">

**Author:** [@jcduino](https://discourse.processing.org/u/jcduino)\
**Replies:** 6\
**Last updated:** [April 16, 2020, 5:16pm UTC](https://discourse.processing.org/t/embedded-browser-in-processing/19196 "2020-04-16T17:16:09Z")

</div>

Hi, I need to put a web browser in a processing sketch. I’m trying with javafx class Webview but with no succes. This is my code for testing. I need a offline map. I think I can do it with html css js, because I’ve try…

---

## [Trying to make 2 strings out of one Serial transmission](https://discourse.processing.org/t/trying-to-make-2-strings-out-of-one-serial-transmission/19819)

<div class="topic-metadata">

**Author:** [@laptophead](https://discourse.processing.org/u/laptophead)\
**Replies:** 2\
**Last updated:** [April 16, 2020, 4:59pm UTC](https://discourse.processing.org/t/trying-to-make-2-strings-out-of-one-serial-transmission/19819 "2020-04-16T16:59:01Z")

</div>

I made a GUI for an Arduino robot. Every 500 mS I am getting a serial communication and it works well. Now I have two data strings. One pertains to the Motor Currents and it always starts with M. The other provides o…

---

## [Pixels and images](https://discourse.processing.org/t/pixels-and-images/19558)

<div class="topic-metadata">

**Author:** [@Eduwu](https://discourse.processing.org/u/Eduwu)\
**Replies:** 1\
**Last updated:** [April 16, 2020, 3:17pm UTC](https://discourse.processing.org/t/pixels-and-images/19558 "2020-04-16T15:17:24Z")

</div>

HI! I’m a beginner in processing and I’m trying to do a sketch with an image with a noise filter using pixel, but I don’t know exactly what to do. this is my code right now, but I want the image to have the original col…

---

## [Calculator program, how to make it function](https://discourse.processing.org/t/calculator-program-how-to-make-it-function/19713)

<div class="topic-metadata">

**Author:** [@WeeBoEtte](https://discourse.processing.org/u/WeeBoEtte)\
**Replies:** 8\
**Last updated:** [April 16, 2020, 12:59pm UTC](https://discourse.processing.org/t/calculator-program-how-to-make-it-function/19713 "2020-04-16T12:59:59Z")

</div>

I am trying to make a calculator program in processing, but I’m not sure where to go from here, I’ve got how I want the calculator to look, but as for how to make it function, I’m pulling up a blank. If the mouse presses…

---

## [Masking .mp4 question](https://discourse.processing.org/t/masking-mp4-question/19822)

<div class="topic-metadata">

**Author:** [@sco66](https://discourse.processing.org/u/sco66)\
**Replies:** 1\
**Last updated:** [April 16, 2020, 7:44am UTC](https://discourse.processing.org/t/masking-mp4-question/19822 "2020-04-16T07:44:00Z")

</div>

Hi forum, I have a question about masking a .mp4. Masking seems to work excellently with PImage: PImage imgMask; void setup() { size(640, 360); img = loadImage("moonwalk.jpg"); imgMask = loadImage("moonwalk.jpg…

---

## [Live A/V Session](https://discourse.processing.org/t/live-a-v-session/19291)

<div class="topic-metadata">

**Author:** [@Christian](https://discourse.processing.org/u/Christian)\
**Replies:** 6\
**Last updated:** [April 16, 2020, 7:30am UTC](https://discourse.processing.org/t/live-a-v-session/19291 "2020-04-16T07:30:26Z")

</div>

Hello, I wanted to share a video of a live a/v session I did with Bad Stream, recorded at a cinema in Berlin. The visuals are audio-reactive and can be controlled with a Korg nanokontrol MIDI panel. https://vimeo.com/39…

---

## [Https://processing.org/examples/hue.html](https://discourse.processing.org/t/https-processing-org-examples-hue-html/19506)

<div class="topic-metadata">

**Author:** [@wuzywute](https://discourse.processing.org/u/wuzywute)\
**Replies:** 4\
**Last updated:** [April 16, 2020, 2:07am UTC](https://discourse.processing.org/t/https-processing-org-examples-hue-html/19506 "2020-04-16T02:07:06Z")

</div>

https://processing.org/examples/hue.html I was curious how you embed a processing file in an html file like this link here? I’m picking up coding again, and starting with processing a language i was introduced to in 20…

---

## [TypeError when sketch hosted on a webserver but not when on my computer?](https://discourse.processing.org/t/typeerror-when-sketch-hosted-on-a-webserver-but-not-when-on-my-computer/19762)

<div class="topic-metadata">

**Author:** [@Bassam](https://discourse.processing.org/u/Bassam)\
**Replies:** 9\
**Last updated:** [April 16, 2020, 2:04am UTC](https://discourse.processing.org/t/typeerror-when-sketch-hosted-on-a-webserver-but-not-when-on-my-computer/19762 "2020-04-16T02:04:27Z")

</div>

So my p5js script script runs fine on the web editor and also when I run it in Atom but when I upload it to my web host and access the page from there, I get: TypeError: cnv is undefined or TypeError: cannot read prop…

---

## [How would you track two average points? (Shiffman tutorial)](https://discourse.processing.org/t/how-would-you-track-two-average-points-shiffman-tutorial/19786)

<div class="topic-metadata">

**Author:** [@samloos](https://discourse.processing.org/u/samloos)\
**Replies:** 2\
**Last updated:** [April 15, 2020, 10:20pm UTC](https://discourse.processing.org/t/how-would-you-track-two-average-points-shiffman-tutorial/19786 "2020-04-15T22:20:13Z")

</div>

Hello there! How would you guys track two (or multiple) average points instead of one as shown in the Shiffman video below? I have tried a lot of things but cannot seem to find the solution! Video: Code: …

---

## [A Ball bouncing in a rect](https://discourse.processing.org/t/a-ball-bouncing-in-a-rect/19799)

<div class="topic-metadata">

**Author:** [@gurki](https://discourse.processing.org/u/gurki)\
**Replies:** 5\
**Last updated:** [April 15, 2020, 8:37pm UTC](https://discourse.processing.org/t/a-ball-bouncing-in-a-rect/19799 "2020-04-15T20:37:59Z")

</div>

Hello Guys, This is my next taks where I need help; Schreiben Sie ein Programm mit einem 100x100 Fenster mit einem Ball (Durchmesser 20) in einem Rechteck(Position20,10 - Breite 60, Höhe 80). Verwenden Sie noFill() fü…

---

## [Rotating Vectors around different points](https://discourse.processing.org/t/rotating-vectors-around-different-points/19807)

<div class="topic-metadata">

**Author:** [@Kport1](https://discourse.processing.org/u/Kport1)\
**Replies:** 4\
**Last updated:** [April 15, 2020, 6:22pm UTC](https://discourse.processing.org/t/rotating-vectors-around-different-points/19807 "2020-04-15T18:22:03Z")

</div>

Im trying to make a visualizaztion I saw in one of 3blue1brown videos The code below is supposed to rotate two vectors (x,y and mpos.x, mpos.y) around another vector (dx,dy). I wrote my own function, because the built i…

---

## [Create a table of values](https://discourse.processing.org/t/create-a-table-of-values/19796)

<div class="topic-metadata">

**Author:** [@marethyu](https://discourse.processing.org/u/marethyu)\
**Replies:** 11\
**Last updated:** [April 15, 2020, 5:04pm UTC](https://discourse.processing.org/t/create-a-table-of-values/19796 "2020-04-15T17:04:22Z")

</div>

Hi, now I’m working on a mini project which require creating a table of possible value, then use these values to calculate and draw the graph. I have try the most ‘brutal’ way which uses just the function text(), but wh…

---

## [Having problem using saveTable() in void draw()](https://discourse.processing.org/t/having-problem-using-savetable-in-void-draw/19801)

<div class="topic-metadata">

**Author:** [@abdullahmq](https://discourse.processing.org/u/abdullahmq)\
**Replies:** 2\
**Last updated:** [April 15, 2020, 4:13pm UTC](https://discourse.processing.org/t/having-problem-using-savetable-in-void-draw/19801 "2020-04-15T16:13:25Z")

</div>

I am using the dist() function on collision between two objects and I want to record the data after every collision but when I use saveTable() in void draw() my program starts to hangs. When I used a timer and saved the…

---

## [Uncap frameRate in Processing 3](https://discourse.processing.org/t/uncap-framerate-in-processing-3/19805)

<div class="topic-metadata">

**Author:** [@henrylang](https://discourse.processing.org/u/henrylang)\
**Replies:** 2\
**Last updated:** [April 15, 2020, 3:42pm UTC](https://discourse.processing.org/t/uncap-framerate-in-processing-3/19805 "2020-04-15T15:42:24Z")

</div>

Hello, I am making a prototype for drifty car physics, and I though it would be cool to be able to uncap the framerate of the sketch. When using frameRate(1000);, I get over 400 FPS, but it speeds up all of the objects a…

---

## [Can anyone help me shorten my code? or less heavy? (plus how to make a restart button)](https://discourse.processing.org/t/can-anyone-help-me-shorten-my-code-or-less-heavy-plus-how-to-make-a-restart-button/19729)

<div class="topic-metadata">

**Author:** [@haree2000](https://discourse.processing.org/u/haree2000)\
**Replies:** 3\
**Last updated:** [April 15, 2020, 2:55pm UTC](https://discourse.processing.org/t/can-anyone-help-me-shorten-my-code-or-less-heavy-plus-how-to-make-a-restart-button/19729 "2020-04-15T14:55:53Z")

</div>

hey! I’m still really new to processing TT but I’m getting there!! right now I want to make a short interactive story using processing(IDK if that’s a good idea or not but I’m trying!) so I got it down pretty well!! b…

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

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