# Processing

**URL:** https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=133

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

**Page:** 134

---

## [Unexpected conditional behavior in sin() calculation](https://discourse.processing.org/t/unexpected-conditional-behavior-in-sin-calculation/29841)

<div class="topic-metadata">

**Author:** [@theta](https://discourse.processing.org/u/theta)\
**Replies:** 3\
**Last updated:** [May 4, 2021, 8:00am UTC](https://discourse.processing.org/t/unexpected-conditional-behavior-in-sin-calculation/29841 "2021-05-04T08:00:28Z")

</div>

Hey everyone! Entirely new to the forum and to Processing. I do have some casual knowledge of C# via Unity and coding in general but still very much a beginner. I’ve been playing around with an example from the Processi…

---

## [Mobile robot navigation project](https://discourse.processing.org/t/mobile-robot-navigation-project/29807)

<div class="topic-metadata">

**Author:** [@abdult19](https://discourse.processing.org/u/abdult19)\
**Replies:** 12\
**Last updated:** [May 3, 2021, 10:49pm UTC](https://discourse.processing.org/t/mobile-robot-navigation-project/29807 "2021-05-03T22:49:17Z")

</div>

please format code with \</\> button \* homework policy \* asking questions need help coding a robot in an unstructured environment, I have looked everywhere for this coding, it is for project which I need urgently, if a…

---

## [How do I move a shape along a sine curve?](https://discourse.processing.org/t/how-do-i-move-a-shape-along-a-sine-curve/29830)

<div class="topic-metadata">

**Author:** [@idonwannadothisanymo](https://discourse.processing.org/u/idonwannadothisanymo)\
**Replies:** 4\
**Last updated:** [May 3, 2021, 10:34pm UTC](https://discourse.processing.org/t/how-do-i-move-a-shape-along-a-sine-curve/29830 "2021-05-03T22:34:41Z")

</div>

I want to move a circle along a sine curve. How do I do this? Pleassseee!

---

## [HSB resolution Question](https://discourse.processing.org/t/hsb-resolution-question/29735)

<div class="topic-metadata">

**Author:** [@IRIGIMA](https://discourse.processing.org/u/IRIGIMA)\
**Replies:** 7\
**Last updated:** [May 3, 2021, 7:29pm UTC](https://discourse.processing.org/t/hsb-resolution-question/29735 "2021-05-03T19:29:31Z")

</div>

Using HSB colour mode, does anyone know the correct resolution / setting for each without any internal calculations?? Example: colorMode(HSB, 45,97,43) would cause a conversion when reading / writing values respective t…

---

## [Issue with my code](https://discourse.processing.org/t/issue-with-my-code/29822)

<div class="topic-metadata">

**Author:** [@Pokeyace](https://discourse.processing.org/u/Pokeyace)\
**Replies:** 1\
**Last updated:** [May 3, 2021, 6:39pm UTC](https://discourse.processing.org/t/issue-with-my-code/29822 "2021-05-03T18:39:43Z")

</div>

int r=25; //small circle int R=160; //big circle int d=100; //distance from small circle center float theta=0; float speed = 0.008; //determines how fast theta is increased, higher speed = faster program but lower qu…

---

## [Looking for advice on "which" Processing to use](https://discourse.processing.org/t/looking-for-advice-on-which-processing-to-use/29811)

<div class="topic-metadata">

**Author:** [@bibbinator](https://discourse.processing.org/u/bibbinator)\
**Replies:** 5\
**Last updated:** [May 3, 2021, 5:39pm UTC](https://discourse.processing.org/t/looking-for-advice-on-which-processing-to-use/29811 "2021-05-03T17:39:41Z")

</div>

I’m designing an art installation using Raspberry Pi 4 and thousands of LEDs controlled by FaceCandy (using Open Pixel Control protocol). I’m ok using any language and any environment for the Pi and I’m looking for guida…

---

## [My project for mobile robot navigation, need help!](https://discourse.processing.org/t/my-project-for-mobile-robot-navigation-need-help/29810)

<div class="topic-metadata">

**Author:** [@abdult19](https://discourse.processing.org/u/abdult19)\
**Replies:** 3\
**Last updated:** [May 3, 2021, 4:50pm UTC](https://discourse.processing.org/t/my-project-for-mobile-robot-navigation-need-help/29810 "2021-05-03T16:50:06Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I need serious help with coding, I have been told by my supervisor to use processing as ros doesn’t work for me. I can’t find any examples of my…

---

## [How to use transformations to create a stripe pattern](https://discourse.processing.org/t/how-to-use-transformations-to-create-a-stripe-pattern/29629)

<div class="topic-metadata">

**Author:** [@anon1](https://discourse.processing.org/u/anon1)\
**Replies:** 6\
**Last updated:** [May 3, 2021, 4:22pm UTC](https://discourse.processing.org/t/how-to-use-transformations-to-create-a-stripe-pattern/29629 "2021-05-03T16:22:43Z")

</div>

Hello I am new to processing and one of my assigments is to create patterns within processing using push and pop matrix. I decided to try and create somthing simialr to this however i’ve been stuck on figuering out ho…

---

## [Thread function in class](https://discourse.processing.org/t/thread-function-in-class/29814)

<div class="topic-metadata">

**Author:** [@Flolo](https://discourse.processing.org/u/Flolo)\
**Replies:** 1\
**Last updated:** [May 3, 2021, 3:24pm UTC](https://discourse.processing.org/t/thread-function-in-class/29814 "2021-05-03T15:24:47Z")

</div>

Hey I want to call a public function in a public class in the same class in processing (JAVA mode). The Error: Here is the complete code: ParticleSystem ps; PImage imageShape; float deltaTime = 0; void setup() {…

---

## [Some strange problem I can't fix](https://discourse.processing.org/t/some-strange-problem-i-cant-fix/29788)

<div class="topic-metadata">

**Author:** [@zang](https://discourse.processing.org/u/zang)\
**Replies:** 2\
**Last updated:** [May 3, 2021, 2:44pm UTC](https://discourse.processing.org/t/some-strange-problem-i-cant-fix/29788 "2021-05-03T14:44:23Z")

</div>

i download the video library GStreamer… but when i finished download , it shows me “Could not move contribution to backup folder.” i dont know how ishoud do or what should do.plz help me . give me some information .tha…

---

## [Run animation from the end point to the beginning point](https://discourse.processing.org/t/run-animation-from-the-end-point-to-the-beginning-point/29798)

<div class="topic-metadata">

**Author:** [@chan](https://discourse.processing.org/u/chan)\
**Replies:** 2\
**Last updated:** [May 3, 2021, 11:06am UTC](https://discourse.processing.org/t/run-animation-from-the-end-point-to-the-beginning-point/29798 "2021-05-03T11:06:02Z")

</div>

How to make an animation composed of lines, run animation from the end point to the beginning point ? Thank you :sweat\_smile:

---

## [No .exe in export folder](https://discourse.processing.org/t/no-exe-in-export-folder/29801)

<div class="topic-metadata">

**Author:** [@crimcat](https://discourse.processing.org/u/crimcat)\
**Replies:** 1\
**Last updated:** [May 3, 2021, 8:31am UTC](https://discourse.processing.org/t/no-exe-in-export-folder/29801 "2021-05-03T08:31:47Z")

</div>

I have exported my project using File\>Export Application… but in the resulting folder I can’t find an executable file. I am using windows 10 processing 4.0a3 I selected windows and include java in the application option…

---

## [Need Help to complete my homework :)](https://discourse.processing.org/t/need-help-to-complete-my-homework/29738)

<div class="topic-metadata">

**Author:** [@Marcellgz](https://discourse.processing.org/u/Marcellgz)\
**Replies:** 12\
**Last updated:** [May 3, 2021, 2:00am UTC](https://discourse.processing.org/t/need-help-to-complete-my-homework/29738 "2021-05-03T02:00:27Z")

</div>

Hello, i really need help… i have a task from my teacher to create this thing… but i have no clue… me and my friends are so very confused… void setup() { size(200,200); background(255); } void draw() { for (int…

---

## ["breakout" type game](https://discourse.processing.org/t/breakout-type-game/29743)

<div class="topic-metadata">

**Author:** [@Lolita](https://discourse.processing.org/u/Lolita)\
**Replies:** 4\
**Last updated:** [April 30, 2021, 9:26pm UTC](https://discourse.processing.org/t/breakout-type-game/29743 "2021-04-30T21:26:28Z")

</div>

Hi i got question as a video mp4 “breakout” type game with arc any source code to work with!

---

## [Use Directory of Executable to find File Paths](https://discourse.processing.org/t/use-directory-of-executable-to-find-file-paths/29790)

<div class="topic-metadata">

**Author:** [@CosmicCrowMC](https://discourse.processing.org/u/CosmicCrowMC)\
**Replies:** 1\
**Last updated:** [May 2, 2021, 10:04pm UTC](https://discourse.processing.org/t/use-directory-of-executable-to-find-file-paths/29790 "2021-05-02T22:04:44Z")

</div>

Howdy! I’m trying to do something fairly simple (I think), but can’t find a solution. I’ve made a game with Processing, exported it, and have moved it to a new directory outside of anything in the Processing folder. I ru…

---

## [How can I load the image? (mousePressed, case)](https://discourse.processing.org/t/how-can-i-load-the-image-mousepressed-case/29763)

<div class="topic-metadata">

**Author:** [@Yujung](https://discourse.processing.org/u/Yujung)\
**Replies:** 3\
**Last updated:** [May 1, 2021, 4:37pm UTC](https://discourse.processing.org/t/how-can-i-load-the-image-mousepressed-case/29763 "2021-05-01T16:37:11Z")

</div>

After the ‘start’ image appears in case2, I want case3 to appear when I press a certain part. But case3 is not loaded. What could be the problem? import processing.video.\*; Movie intro; int caseNum=1; PImage start; PIm…

---

## [About the Audio Waveform](https://discourse.processing.org/t/about-the-audio-waveform/29780)

<div class="topic-metadata">

**Author:** [@Marga](https://discourse.processing.org/u/Marga)\
**Replies:** 4\
**Last updated:** [May 2, 2021, 2:48pm UTC](https://discourse.processing.org/t/about-the-audio-waveform/29780 "2021-05-02T14:48:44Z")

</div>

Hello, good evening, In my code, I would like to have a single line that moves with my music and not that new lines are formed, what can I do to make this not happen? Thanks import processing.sound.\*; SoundFile sample…

---

## [Genuinely don't know where to go from here (golf game)](https://discourse.processing.org/t/genuinely-dont-know-where-to-go-from-here-golf-game/29715)

<div class="topic-metadata">

**Author:** [@yagirl\_belle](https://discourse.processing.org/u/yagirl_belle)\
**Replies:** 4\
**Last updated:** [May 2, 2021, 1:02am UTC](https://discourse.processing.org/t/genuinely-dont-know-where-to-go-from-here-golf-game/29715 "2021-05-02T01:02:34Z")

</div>

Hey y’all I’m tryna make a golf game where when you shoot the ball, the happy face turns into a surprise face and the ball launches from the mouth. I can’t figure out what the heck I’m doing wrong. boolean launch = true…

---

## [What is the code for my wave to move at the same time as the song?](https://discourse.processing.org/t/what-is-the-code-for-my-wave-to-move-at-the-same-time-as-the-song/29728)

<div class="topic-metadata">

**Author:** [@Marga](https://discourse.processing.org/u/Marga)\
**Replies:** 15\
**Last updated:** [May 1, 2021, 9:11pm UTC](https://discourse.processing.org/t/what-is-the-code-for-my-wave-to-move-at-the-same-time-as-the-song/29728 "2021-05-01T21:11:22Z")

</div>

Hello everyone! I’m having trouble knowing how my wave moves at the same time as my music. In this sense, I would like to know if anyone can help me to resolve this issue? I already created my wave and put my music on …

---

## [Random SkyLine lab](https://discourse.processing.org/t/random-skyline-lab/29766)

<div class="topic-metadata">

**Author:** [@Syntax64](https://discourse.processing.org/u/Syntax64)\
**Replies:** 5\
**Last updated:** [May 1, 2021, 8:59pm UTC](https://discourse.processing.org/t/random-skyline-lab/29766 "2021-05-01T20:59:46Z")

</div>

I’m Struggling to figure out a small detail in my project. How do I make windows that randomly are either yellow or black and are set in a grid according to the building? How it should look. int\[\] buildingHeights = new…

---

## [Map latitude and longitude coordinates to a an image?](https://discourse.processing.org/t/map-latitude-and-longitude-coordinates-to-a-an-image/29746)

<div class="topic-metadata">

**Author:** [@brolly301](https://discourse.processing.org/u/brolly301)\
**Replies:** 7\
**Last updated:** [May 1, 2021, 4:43pm UTC](https://discourse.processing.org/t/map-latitude-and-longitude-coordinates-to-a-an-image/29746 "2021-05-01T16:43:20Z")

</div>

Hi I’m trying to mark multiple points on a map using their latitude and longitude coordinates. I’ve written a for loop which gets these coordinates as well as population data from the CSV file but I’m unsure how I’d get …

---

## [Controlp5 (cp5): Sync color displayed by colorwheel when variable is changed](https://discourse.processing.org/t/controlp5-cp5-sync-color-displayed-by-colorwheel-when-variable-is-changed/29775)

<div class="topic-metadata">

**Author:** [@Len](https://discourse.processing.org/u/Len)\
**Replies:** 2\
**Last updated:** [May 1, 2021, 4:40pm UTC](https://discourse.processing.org/t/controlp5-cp5-sync-color-displayed-by-colorwheel-when-variable-is-changed/29775 "2021-05-01T16:40:42Z")

</div>

I use a colorwheel in my sketch to change the background color. I also have a key set to choose and set random background color from an array. I would like the color wheel to update and display the actual background colo…

---

## [About how to load images after the video is over](https://discourse.processing.org/t/about-how-to-load-images-after-the-video-is-over/29749)

<div class="topic-metadata">

**Author:** [@Yujung](https://discourse.processing.org/u/Yujung)\
**Replies:** 2\
**Last updated:** [May 1, 2021, 3:08pm UTC](https://discourse.processing.org/t/about-how-to-load-images-after-the-video-is-over/29749 "2021-05-01T15:08:51Z")

</div>

I wanted to make two images of case2 appear after the ‘intro’ video, but it didn’t work. What could be the problem? import processing.video.\*; Movie intro; int caseNum=1; PImage start; PImage press; void setup() { …

---

## [Bug in logic for creating checkerboard grid](https://discourse.processing.org/t/bug-in-logic-for-creating-checkerboard-grid/29759)

<div class="topic-metadata">

**Author:** [@rikitiki](https://discourse.processing.org/u/rikitiki)\
**Replies:** 2\
**Last updated:** [April 30, 2021, 9:20pm UTC](https://discourse.processing.org/t/bug-in-logic-for-creating-checkerboard-grid/29759 "2021-04-30T21:20:25Z")

</div>

Hello, I’m hoping someone can find the flaw in my logic here. My goal is to create an even overlay checkerboard that has a transparency of 50. Here is my code in setup: background(255); int fillColor = 0; int gridDime…

---

## [Sending application via email/google drive](https://discourse.processing.org/t/sending-application-via-email-google-drive/27909)

<div class="topic-metadata">

**Author:** [@jackeddielove](https://discourse.processing.org/u/jackeddielove)\
**Replies:** 4\
**Last updated:** [April 30, 2021, 8:52pm UTC](https://discourse.processing.org/t/sending-application-via-email-google-drive/27909 "2021-04-30T20:52:48Z")

</div>

I have exported my sketch as an application. The application runs fine on my computer. However, when I upload it to google drive and then download it from there, it won’t run. I click on the icon and nothing happens. Am …

---

## [I am making a game but i cant figure out how to keep the ellipse inside the window. how do i do this?](https://discourse.processing.org/t/i-am-making-a-game-but-i-cant-figure-out-how-to-keep-the-ellipse-inside-the-window-how-do-i-do-this/29757)

<div class="topic-metadata">

**Author:** [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Replies:** 1\
**Last updated:** [April 30, 2021, 8:34pm UTC](https://discourse.processing.org/t/i-am-making-a-game-but-i-cant-figure-out-how-to-keep-the-ellipse-inside-the-window-how-do-i-do-this/29757 "2021-04-30T20:34:41Z")

</div>

float x =0; float y =0; float snelheid\_omlaag = 1; ;void setup() { fullScreen(); } void draw() { ellipse(x, y, 50, 50); x=x+random(-90, 90); y=y+random(-40, 40)+snelheid\_omlaag; i want the keep inside window …

---

## [How do i use a variable to press a key with robot class](https://discourse.processing.org/t/how-do-i-use-a-variable-to-press-a-key-with-robot-class/29752)

<div class="topic-metadata">

**Author:** [@tobich](https://discourse.processing.org/u/tobich)\
**Replies:** 7\
**Last updated:** [April 30, 2021, 7:15pm UTC](https://discourse.processing.org/t/how-do-i-use-a-variable-to-press-a-key-with-robot-class/29752 "2021-04-30T19:15:27Z")

</div>

Basically I’m trying to make a function that will type the key i need Because its a function i give it a string with a variable which is the key i need to press and the robot variable how do i do it?

---

## [Visualize tweets on a map real time](https://discourse.processing.org/t/visualize-tweets-on-a-map-real-time/20963)

<div class="topic-metadata">

**Author:** [@OptOut](https://discourse.processing.org/u/OptOut)\
**Replies:** 1\
**Last updated:** [May 17, 2020, 3:39pm UTC](https://discourse.processing.org/t/visualize-tweets-on-a-map-real-time/20963 "2020-05-17T15:39:03Z")

</div>

Hi everybody, I have an idea for a project and looking for guidance/examples on how to get started as a relative newbie What I would like to achieve: A 2d map of the world. A way to show a visualisation of tweets from…

---

## [Exploring use of different JVM](https://discourse.processing.org/t/exploring-use-of-different-jvm/29744)

<div class="topic-metadata">

**Author:** [@monkstone](https://discourse.processing.org/u/monkstone)\
**Replies:** 1\
**Last updated:** [April 30, 2021, 3:28pm UTC](https://discourse.processing.org/t/exploring-use-of-different-jvm/29744 "2021-04-30T15:28:51Z")

</div>

Recently with my ruby-processing projects I have been experimenting with using graalvm. Then I thought I would like to try it out with vanilla processing (particularly processing-4.0a3), it used to possible to just rep…

---

## [Marking population on a map without latitude and longitude coordinates?](https://discourse.processing.org/t/marking-population-on-a-map-without-latitude-and-longitude-coordinates/29741)

<div class="topic-metadata">

**Author:** [@brolly301](https://discourse.processing.org/u/brolly301)\
**Replies:** 2\
**Last updated:** [April 30, 2021, 1:53pm UTC](https://discourse.processing.org/t/marking-population-on-a-map-without-latitude-and-longitude-coordinates/29741 "2021-04-30T13:53:15Z")

</div>

Hi I have a map of the UK and I’m trying to load data onto the map but the data file hasn’t got latitude or longitude coordinates for each place to enable me to get the precise location. Is there any way to do this anoth…

[Previous page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=132)

[Next page](https://discourse.processing.org/c/processing/6.md?no_subcategories=false&page=134)
