Questions tagged [processing]

Processing is an open source programming language and environment for people who want to create images, animations, interactions, and games.

0
votes
0answers
9 views

Natural Color Mixing in Processing

I am trying to naturally mix green tint on one photo (elephant) and red tint on another photo (ship) by placing the two opaque and tinted photos on top of one another. While both photos appear with ...
1
vote
1answer
17 views

processing: several circles into each other + changing color

I have to do smth. like this and I can't figure out what the problem is.Here is my code:size(200,200);background(255);float w=200 ;float radius=20;while ( radius <=200) {stroke(0);...
0
votes
0answers
10 views

Extracting an image from an array in Processing

Does anyone have any suggestions on what might be going wrong with this code? I'm trying to load tiles of images into a large array and then display them. Later on I'll shuffle the pieces. The issue I'...
0
votes
0answers
11 views

Ladder increment from left to right with loops in processing?

I am trying to make a loop for the ladders at the bottom part of the code where the three ladders are drawn and increase them from left to right to make a one-sided pyramid of ladders:(I know it's ...
-2
votes
2answers
54 views

Replicating the String.trim() function - Processing 3

I am trying to replicate the String.trim() function in processing. I know the the String.trim() functions removes tabs "\t" , newlines "\n" and spaces at the beginning and end of the string. Right now ...
2
votes
1answer
27 views

Using string instead of kind of shape in createShape()

I want to pass an array of strings to a function in draw() and have the function draw each shape with the first parameter specifying which type of shape to draw. Here's my code (inside of draw()):...
3
votes
1answer
20 views

p5js with Jekyll

I am quite new to Jekyll and I am not sure how I can go about creating a website with p5.js sketches embedded into it for a project that I am working on.I suspect it has something to do with ...
3
votes
1answer
26 views

Change Opacity in HSB Colormode

I am trying to change the opacity of my strokes, but not sure how do it in HSB color mode. Or, if I switch to RGB mode how do I make the color change over time? Here is my code: (Any help would be ...
2
votes
2answers
49 views

How should I get a connected array of circles (like a worm) to move across my canvas in a straight line?

void setup(){size(800,800);background(0);}void draw() {int[]x={20,40,60,80,100,120};fill (255,0,00);for (int i=0; i <x.length; i ++){ellipse (i*6, 100,10,10);}}I am ...
2
votes
1answer
30 views

Why is the function Fill not found? but the rest of the functions on the library yes?

Im workingon a P5.js sketch...Instead of creating objects with a constructor function, and then using the new keyword.I want to use a factory function.It seems to work fine, and renders ...
1
vote
1answer
39 views

Should I serialize keyPressed?

I want to save some objects into a file. but I got java.io.NotSerializableException.This is the full exception log:java.io.NotSerializableException: mainat java.io.ObjectOutputStream....
3
votes
2answers
49 views

How to remove mutability when creating an increasing value such as a position?

I am trying to use a more functional approach in my code, and I have a variable posx which represents a position on the X axis.It changes over time xpos=xpos + pos: const createCircle=({xpos, ...
2
votes
1answer
35 views

Load an sketch.js dynamically in p5.js

I'm trying to launch sketch.js when I click on the "start game" button.This is my code://THIS IS THE CODE FOR SKETCH.JS WITH THE PACMAN GAME....var rocaImage;var foodImage;var ...
0
votes
1answer
39 views

Checkerboard. How to alternate squares?

Trying to create a checkerboard with alternating white and black squares. This code keeps coming up with an error and cannot find the solution or how to have the code appear on the canvas. the ...
1
vote
1answer
43 views

How to make a front page of a game in processing?

I am trying to program a game for an assignment. I have the guts of it done, but I need something at the beginning to say the rules etc. In order to do this, I have used the 'if' statement so it ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,