# Coding Questions

**URL:** https://discourse.processing.org/c/processing/processing-questions/15.md?page=61

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

**Page:** 62

---

## [Curve - control points settings for gauss curve behavior](https://discourse.processing.org/t/curve-control-points-settings-for-gauss-curve-behavior/27911)

<div class="topic-metadata">

**Author:** [@xbix](https://discourse.processing.org/u/xbix)\
**Replies:** 6\
**Last updated:** [February 24, 2021, 9:35am UTC](https://discourse.processing.org/t/curve-control-points-settings-for-gauss-curve-behavior/27911 "2021-02-24T09:35:46Z")

</div>

I am just trying to understand the control points from a curve. The curve should behave like a Gaussian curve. Unfortunately, I don’t really understand how to handle the control points. Can someone please help me? M…

---

## [Chaining GLSL frag shaders](https://discourse.processing.org/t/chaining-glsl-frag-shaders/28006)

<div class="topic-metadata">

**Author:** [@rikitiki](https://discourse.processing.org/u/rikitiki)\
**Replies:** 1\
**Last updated:** [February 23, 2021, 5:07pm UTC](https://discourse.processing.org/t/chaining-glsl-frag-shaders/28006 "2021-02-23T17:07:41Z")

</div>

Hello, I’m attempting to chain some very simple fragment shaders and I’m unsure what I’m doing wrong. I’m following the concept outlined in the readme posted by cansik in this bloom filter: https://github.com/cansik/pr…

---

## [Positive counter (Click game)](https://discourse.processing.org/t/positive-counter-click-game/28027)

<div class="topic-metadata">

**Author:** [@Torikusu](https://discourse.processing.org/u/Torikusu)\
**Replies:** 4\
**Last updated:** [February 23, 2021, 7:50pm UTC](https://discourse.processing.org/t/positive-counter-click-game/28027 "2021-02-23T19:50:27Z")

</div>

Hello, I would like to create a counter which, each time I press correctly on an edge increases by 1, but that if I press next to it or if I take too long then the counter returns to 0. example if I press correctly on 5…

---

## [3d-sine-cosine-in-3d from p5js to Processing 3.x](https://discourse.processing.org/t/3d-sine-cosine-in-3d-from-p5js-to-processing-3-x/28022)

<div class="topic-metadata">

**Author:** [@HerClau](https://discourse.processing.org/u/HerClau)\
**Replies:** 1\
**Last updated:** [February 23, 2021, 2:17pm UTC](https://discourse.processing.org/t/3d-sine-cosine-in-3d-from-p5js-to-processing-3-x/28022 "2021-02-23T14:17:42Z")

</div>

I am trying to reproduce the example “Sine Cosine in 3D” from the site at the beginning of the skecht. I show you how far I have come. But it is very far from reproducing the p5js skecht. Could you guide me to reach th…

---

## [Can someone help me with getting this clock right?](https://discourse.processing.org/t/can-someone-help-me-with-getting-this-clock-right/28012)

<div class="topic-metadata">

**Author:** [@cocopuffs](https://discourse.processing.org/u/cocopuffs)\
**Replies:** 1\
**Last updated:** [February 23, 2021, 9:25am UTC](https://discourse.processing.org/t/can-someone-help-me-with-getting-this-clock-right/28012 "2021-02-23T09:25:11Z")

</div>

At the moment, I have dots/ellipses around the clock as marks for the numbers. I’m trying to make them as lines, like a normal analog clock has, but I’m not sure how to do this. So how do I make the dots/ellipses as line…

---

## [Gradient Shape Grid](https://discourse.processing.org/t/gradient-shape-grid/27604)

<div class="topic-metadata">

**Author:** [@flipercliper](https://discourse.processing.org/u/flipercliper)\
**Replies:** 15\
**Last updated:** [February 23, 2021, 5:31am UTC](https://discourse.processing.org/t/gradient-shape-grid/27604 "2021-02-23T05:31:57Z")

</div>

Hi everyone! New to the forum but have been following you for a while and you all are doing a gret job with the open source. I’ve been doing some simple projects with processing but this is quite tricky for me… I need …

---

## [Score and score multiplier for a clicker](https://discourse.processing.org/t/score-and-score-multiplier-for-a-clicker/27994)

<div class="topic-metadata">

**Author:** [@Torikusu](https://discourse.processing.org/u/Torikusu)\
**Replies:** 2\
**Last updated:** [February 22, 2021, 4:28pm UTC](https://discourse.processing.org/t/score-and-score-multiplier-for-a-clicker/27994 "2021-02-22T16:28:20Z")

</div>

Hello, with this code I would like there to be a counter every time I press a square, but if I put too long or if I press next to it the counter goes back to 0 and even if it is possible a score multiplier, imagine tha…

---

## [Perlin Noise Precision](https://discourse.processing.org/t/perlin-noise-precision/27999)

<div class="topic-metadata">

**Author:** [@cfloutier](https://discourse.processing.org/u/cfloutier)\
**Replies:** 0\
**Last updated:** [February 22, 2021, 12:59pm UTC](https://discourse.processing.org/t/perlin-noise-precision/27999 "2021-02-22T12:59:48Z")

</div>

Hello all? i’m glad to be part of the processing community. and i’ll try to help my best. I’ve got recent issues using the noise function. the precision was not excellent. for instance a simple curve taken from the noi…

---

## [Clickable 2d Grid](https://discourse.processing.org/t/clickable-2d-grid/27961)

<div class="topic-metadata">

**Author:** [@Gine2g](https://discourse.processing.org/u/Gine2g)\
**Replies:** 12\
**Last updated:** [February 21, 2021, 10:22pm UTC](https://discourse.processing.org/t/clickable-2d-grid/27961 "2021-02-21T22:22:18Z")

</div>

I got the code below to create a grid with an array. Now I want to be able to change the color of on square by clicking on it and also change it back when clicked again. How would I do that? Right now the Color of the s…

---

## [Questions regarding my rasterized poster](https://discourse.processing.org/t/questions-regarding-my-rasterized-poster/27903)

<div class="topic-metadata">

**Author:** [@Rindoom](https://discourse.processing.org/u/Rindoom)\
**Replies:** 7\
**Last updated:** [February 21, 2021, 7:29pm UTC](https://discourse.processing.org/t/questions-regarding-my-rasterized-poster/27903 "2021-02-21T19:29:54Z")

</div>

Hey, guys. I was really inspired by one of the generative posters created by the extremely talented Tim Rodenbröker (https://www.instagram.com/p/B8oM8r7i1ns/?utm\_source=ig\_web\_copy\_link), so I tried to create something s…

---

## [Help! need assistance on including a void in an if statement? is it possible?](https://discourse.processing.org/t/help-need-assistance-on-including-a-void-in-an-if-statement-is-it-possible/27978)

<div class="topic-metadata">

**Author:** [@newbie1](https://discourse.processing.org/u/newbie1)\
**Replies:** 4\
**Last updated:** [February 21, 2021, 6:19pm UTC](https://discourse.processing.org/t/help-need-assistance-on-including-a-void-in-an-if-statement-is-it-possible/27978 "2021-02-21T18:19:37Z")

</div>

Hi, this is something that I am working on for a college project, is it possible to put the void eyes() into the snowman head? void setup() { size(1280, 720); background(55, 126, 231); fill(255); rect(0, 610, width,…

---

## [Diffusion Algorithm (CC #13)](https://discourse.processing.org/t/diffusion-algorithm-cc-13/27976)

<div class="topic-metadata">

**Author:** [@technodruid](https://discourse.processing.org/u/technodruid)\
**Replies:** 0\
**Last updated:** [February 21, 2021, 3:30pm UTC](https://discourse.processing.org/t/diffusion-algorithm-cc-13/27976 "2021-02-21T15:30:35Z")

</div>

I wanted to port Dan’s p5.js code to processing using vectors as my objects. I can get it to run using a component-wise function for the laplace of each A and B like he does in his YouTube Video. My problem is getting …

---

## [Cellular Automata (From Coding Train](https://discourse.processing.org/t/cellular-automata-from-coding-train/27955)

<div class="topic-metadata">

**Author:** [@technodruid](https://discourse.processing.org/u/technodruid)\
**Replies:** 2\
**Last updated:** [February 21, 2021, 3:27pm UTC](https://discourse.processing.org/t/cellular-automata-from-coding-train/27955 "2021-02-21T15:27:34Z")

</div>

Hi All! So I was playing around with the coding train code for Dan’s Game of Life Simulation. I wanted to change the rules, I did, and it worked great. I started to think about tracking state changes with a counter and…

---

## [Grid From Objects - Array Out of Bounds](https://discourse.processing.org/t/grid-from-objects-array-out-of-bounds/27964)

<div class="topic-metadata">

**Author:** [@L0RDZed](https://discourse.processing.org/u/L0RDZed)\
**Replies:** 2\
**Last updated:** [February 21, 2021, 2:12pm UTC](https://discourse.processing.org/t/grid-from-objects-array-out-of-bounds/27964 "2021-02-21T14:12:48Z")

</div>

Hey, I’m trying to use a for loop to create a grid of objects and getting an out-of-bounds issue. I can’t get int k to increment through the inner loop…actually, when I place it in the outer for loop it increments and pr…

---

## [Sketch won't work in HTML](https://discourse.processing.org/t/sketch-wont-work-in-html/27969)

<div class="topic-metadata">

**Author:** [@sreyba](https://discourse.processing.org/u/sreyba)\
**Replies:** 1\
**Last updated:** [February 21, 2021, 5:04am UTC](https://discourse.processing.org/t/sketch-wont-work-in-html/27969 "2021-02-21T05:04:48Z")

</div>

Hi all - I’m a newbie with a question. I was working with my Arduino and one of the samples used PDE. I liked the example and wanted to modify a bit and place it on my web page. I stripped out the Arduino commands and …

---

## [Very confused about my PrintWriter object](https://discourse.processing.org/t/very-confused-about-my-printwriter-object/27967)

<div class="topic-metadata">

**Author:** [@Math\_Machine](https://discourse.processing.org/u/Math_Machine)\
**Replies:** 0\
**Last updated:** [February 21, 2021, 12:58am UTC](https://discourse.processing.org/t/very-confused-about-my-printwriter-object/27967 "2021-02-21T00:58:19Z")

</div>

Okay, so, I’m making a calculator. I started using the PrintWriter and BufferedReader objects so I could save previously entered problems, even after I exit the sketch. Problem is, it kinda has to save a lot of data to …

---

## [Object Creation in a Program](https://discourse.processing.org/t/object-creation-in-a-program/27874)

<div class="topic-metadata">

**Author:** [@dtools22](https://discourse.processing.org/u/dtools22)\
**Replies:** 6\
**Last updated:** [February 20, 2021, 3:13am UTC](https://discourse.processing.org/t/object-creation-in-a-program/27874 "2021-02-20T03:13:37Z")

</div>

Hello All, I have a more generic code theory question. I have a program I am writing that is a companion program for a board game. As the board game develops, more pieces are added to the board. The board initially h…

---

## [Convert String Array to int / float (loadStrings)](https://discourse.processing.org/t/convert-string-array-to-int-float-loadstrings/27695)

<div class="topic-metadata">

**Author:** [@librakl](https://discourse.processing.org/u/librakl)\
**Replies:** 9\
**Last updated:** [February 19, 2021, 3:12pm UTC](https://discourse.processing.org/t/convert-string-array-to-int-float-loadstrings/27695 "2021-02-19T15:12:41Z")

</div>

Hello there, i have an csv file with a lot of numbers inside, which are seperated with “,” (. This file is supposed to make a map out of the numbers. First problem i got is to convert this into String, because i wanna …

---

## [Need help on beginner project (Snake)](https://discourse.processing.org/t/need-help-on-beginner-project-snake/27908)

<div class="topic-metadata">

**Author:** [@luckduck312](https://discourse.processing.org/u/luckduck312)\
**Replies:** 7\
**Last updated:** [February 19, 2021, 8:13am UTC](https://discourse.processing.org/t/need-help-on-beginner-project-snake/27908 "2021-02-19T08:13:12Z")

</div>

please format code with \</\> button \* homework policy \* asking questions Hi i’m working on making snake with a 2d array. Right now i’m trying to move a single square but i can’t get it to work. When moving up or left …

---

## [Program execution doesn\`t stop when you close the window](https://discourse.processing.org/t/program-execution-doesn-t-stop-when-you-close-the-window/27901)

<div class="topic-metadata">

**Author:** [@dacoconutchemist](https://discourse.processing.org/u/dacoconutchemist)\
**Replies:** 1\
**Last updated:** [February 18, 2021, 10:46am UTC](https://discourse.processing.org/t/program-execution-doesn-t-stop-when-you-close-the-window/27901 "2021-02-18T10:46:01Z")

</div>

I’m making my own programming language for fun and I hava added the goto command. This is the code of the function that executes the code: class Var { char type; String name; Object univ; Var(Object i, String n…

---

## [Rainbow + gradient](https://discourse.processing.org/t/rainbow-gradient/27858)

<div class="topic-metadata">

**Author:** [@Apollo](https://discourse.processing.org/u/Apollo)\
**Replies:** 5\
**Last updated:** [February 18, 2021, 5:37am UTC](https://discourse.processing.org/t/rainbow-gradient/27858 "2021-02-18T05:37:44Z")

</div>

Good day! Can you pretty please assist me here? How can I exactly make this colorful box in processing? The colors got specific positioning… And It really requires some hardcore coding (I think). Thank you in advan…

---

## [App icon Processing 3](https://discourse.processing.org/t/app-icon-processing-3/27884)

<div class="topic-metadata">

**Author:** [@shuptuu](https://discourse.processing.org/u/shuptuu)\
**Replies:** 0\
**Last updated:** [February 17, 2021, 2:08pm UTC](https://discourse.processing.org/t/app-icon-processing-3/27884 "2021-02-17T14:08:04Z")

</div>

Hi, With Processing 3 on windows, the only way I found to set an icon for your app is by adding this: PImage icon = loadImage(“icon.png”); surface.setIcon(icon); Ok, but it’s quite limited cause you can just provide …

---

## [Save spot in grid](https://discourse.processing.org/t/save-spot-in-grid/27882)

<div class="topic-metadata">

**Author:** [@jensemand](https://discourse.processing.org/u/jensemand)\
**Replies:** 1\
**Last updated:** [February 17, 2021, 12:47pm UTC](https://discourse.processing.org/t/save-spot-in-grid/27882 "2021-02-17T12:47:42Z")

</div>

Hi, I am trying to make a pathfinding system, and the pathfinding part is done however I don’t know how to change the start or end point. Down below is some of my code. Would be nice if i could get some inspiration how t…

---

## [blendMode and transparency](https://discourse.processing.org/t/blendmode-and-transparency/27781)

<div class="topic-metadata">

**Author:** [@jensschroder](https://discourse.processing.org/u/jensschroder)\
**Replies:** 6\
**Last updated:** [February 16, 2021, 9:23pm UTC](https://discourse.processing.org/t/blendmode-and-transparency/27781 "2021-02-16T21:23:43Z")

</div>

Hi, First, thank you to all and everyone involved with Processing. I only recently discovered Processing and I instantly found it to be super inspirational. I hope someone can help me with some guidance in relation to …

---

## [Physics simulator](https://discourse.processing.org/t/physics-simulator/27707)

<div class="topic-metadata">

**Author:** [@vestergaard12](https://discourse.processing.org/u/vestergaard12)\
**Replies:** 8\
**Last updated:** [February 16, 2021, 2:21pm UTC](https://discourse.processing.org/t/physics-simulator/27707 "2021-02-16T14:21:40Z")

</div>

Hello Processing Foundation. I have started on a new processing project which is to code this projectile motion simulator: https://ophysics.com/k8.html This simulator shows the path of a ball when thrown at a specific…

---

## [Can someone help me with this? (special graph)](https://discourse.processing.org/t/can-someone-help-me-with-this-special-graph/27838)

<div class="topic-metadata">

**Author:** [@cocopuffs](https://discourse.processing.org/u/cocopuffs)\
**Replies:** 5\
**Last updated:** [February 16, 2021, 7:46am UTC](https://discourse.processing.org/t/can-someone-help-me-with-this-special-graph/27838 "2021-02-16T07:46:33Z")

</div>

So I basically have to create the exact sketch/animation as depicted in the gif. I attached a gif of exactly how it needs to look and animate (you may need to refresh page in a few minutes because I think the gif stops …

---

## [Some adjustments needed (MODIFICATION)](https://discourse.processing.org/t/some-adjustments-needed-modification/27829)

<div class="topic-metadata">

**Author:** [@Apollo](https://discourse.processing.org/u/Apollo)\
**Replies:** 2\
**Last updated:** [February 16, 2021, 2:13am UTC](https://discourse.processing.org/t/some-adjustments-needed-modification/27829 "2021-02-16T02:13:04Z")

</div>

Hello! I don’t know if you already saw this tutorial but check it for your reference (link:Objects / Processing.org) In the tutorial, you created the car object in two instances, each at a different speed of driving. N…

---

## [Processing Q-Learning](https://discourse.processing.org/t/processing-q-learning/27855)

<div class="topic-metadata">

**Author:** [@ctremblay](https://discourse.processing.org/u/ctremblay)\
**Replies:** 0\
**Last updated:** [February 16, 2021, 12:47am UTC](https://discourse.processing.org/t/processing-q-learning/27855 "2021-02-16T00:47:21Z")

</div>

I’m trying to make an enemy with q-learning, but my enemy seems to just run into the wall after a few minutes. He just runs into the wall & runs into the wall. Can someone check my code to see if I’m doing it correct I t…

---

## [Create a programm you can open files with](https://discourse.processing.org/t/create-a-programm-you-can-open-files-with/27837)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 1\
**Last updated:** [February 15, 2021, 2:53pm UTC](https://discourse.processing.org/t/create-a-programm-you-can-open-files-with/27837 "2021-02-15T14:53:00Z")

</div>

I have created a programm to process a self-made type of file. Is it possible to rewrite a programm and convert it into a application to open the file. Edit: To clarify I want to wirte a programm that you can select whe…

---

## [Loading files gradually causes program to stutter/lag](https://discourse.processing.org/t/loading-files-gradually-causes-program-to-stutter-lag/27812)

<div class="topic-metadata">

**Author:** [@CosmicCrowMC](https://discourse.processing.org/u/CosmicCrowMC)\
**Replies:** 4\
**Last updated:** [February 14, 2021, 6:07pm UTC](https://discourse.processing.org/t/loading-files-gradually-causes-program-to-stutter-lag/27812 "2021-02-14T18:07:50Z")

</div>

I’ve made a game with Processing (in fact, it’s been released on Steam! Search “Enter The Backrooms” if you’re interested!) and some of my players have run into an error: if you reload the game over and over, the game wi…

[Previous page](https://discourse.processing.org/c/processing/processing-questions/15.md?page=60)

[Next page](https://discourse.processing.org/c/processing/processing-questions/15.md?page=62)
