processing Questions

5

Solved

I am trying to make a program for visual analyzing Fractal sets. I choose Processing 3 as drawing library and JavaFX for the user interface. There are some screenshots of the current state: My GU...
Changeful asked 8/10, 2018 at 20:39

2

Solved

As you know P5 coordinate system doesn't start from the middle of the canvas plus the y axis is flipped My question is how to change the coordinates of p5 so it became the same as the Cartesian co...
Governor asked 20/2, 2020 at 17:43

4

Solved

I'm currently using Processing for a small project, however I'm not liking the text-editor that comes with it. I use vim to write all of my code. I've found where the .pde file are and I've been ed...
Reputable asked 9/2, 2013 at 10:22

4

Solved

I connected an Arduino to my laptop using USB, and I can read the serial data using Processing. Is there any way to get this data in real time into a local webbrowser? For example, a text field th...
Unrelenting asked 12/12, 2013 at 16:42

6

Solved

I'd like to use the IntelliJ IDEA IDE to develop some app using Processing 3. How can I do that ? There are only tutorials on how to use Processing 2, but I think things have changed enough so that...
Asyndeton asked 21/4, 2016 at 9:24

6

Solved

Is it possible in Java to do a sort of #ifdef thing, like in C/C++? Example: class Test { public static final boolean ANDROID = false; public Test() { if (ANDROID) { // do stuff that won't...
Invigilate asked 30/10, 2013 at 13:51

5

Solved

Processing has a great function I use all the time: map(value, low1, high1, low2, high2) http://processing.org/reference/map_.html It remaps value (that has an expected range of low1 to high1...
Visitant asked 10/8, 2010 at 17:12

5

Solved

I'm making a musicplayer in Processing for an assignment for school. The Philips Hue lights will make some corresponding visual effects. I wanted to make the visuals kinda unique for each song. So ...
Persuader asked 21/3, 2014 at 16:25

2

I have this snippet of p5.js code: let x = 10; let y = Math.floor(Math.random()*201); let x2 = 190; let y2 = 200 - Math.floor(Math.random()*201); function setup() { createCanvas(200, 200); } ...
Katheryn asked 11/11, 2019 at 15:40

3

Solved

Let's say we have the following code: void setup() { background(0); size(200, 200); fill(255); rect(75, 75, 50, 50); } void draw() { fill(0, 2); rect(0, 0, width, height); } Even after ...
Nosography asked 11/3, 2014 at 6:4

0

Issue description I would like to have Visual Studio Code to hint autocompletion and provide documentation for a JavaScript project which includes libraries a module in a separate HTML file. Contex...
Lanthanide asked 1/9, 2021 at 21:14

4

Solved

I downloaded Processing from https://processing.org/. How can I use Processing in my Java application? I want to draw stuff depending on the logic in my Java application. To avoid the drawing in Ja...
Cameo asked 23/1, 2014 at 13:41

1

I saw many times really cool examples of kinetic typography. In these examples every letter is a particle. The text is a particle system and it may be subject to various forces such gravity or even...
Munson asked 5/12, 2020 at 23:46

2

Solved

Currently I try to write code for calculating the parts of the screen you can see and those who can't because of objects that block light in 2d, like in Among Us: The code should run on a processo...
Moony asked 25/11, 2020 at 16:48

2

Solved

Is there a way to "cut out" a piece of image and use it with the P5.js library? Example: Lets say I have a image of the size 100x100 but need to get a 10x10 pixel cutout that starts at pixel 50,5...
Tiger asked 4/10, 2017 at 21:12

2

Solved

I'm trying to generate a rainbow with 15 different colors with (runnable code here): size(360,100); colorMode(HSB, 360, 100, 100); // Hue in degrees in [0, 360], // saturation/brightness in [0,...
Kinna asked 17/12, 2017 at 19:53

1

Solved

I am using this formula to calculate the points on a quadratic curve: cPx2 = (1-t)*(1-t)* x1+2 * (1-t)*t*qcX + t*t*x2; cPy2 = (1-t)*(1-t)* y1+2 * (1-t)*t*qcY + t*t*y2; When I set t = 10 and iter...
Esperance asked 21/8, 2020 at 15:13

2

Solved

I was doing one of the examples code from the website p5js.org - https://p5js.org/examples/form-star.html. I understood all the code except the below lines. function star(x, y, radius1, radius2, np...
Antithesis asked 14/7, 2020 at 10:51

3

Solved

Is there any way to convert .jpeg to .tiff file? If yes, then how to do that? There are many library in Python that can convert file from one format to another. But, I have not found anything fo...
Fullrigged asked 4/6, 2020 at 6:28

3

I am using an npm, webpack, babel environment to write an application with p5.js. To be able to have the sketch as a module, I have the sketch in instance mode and import the library and add-ons as...
Mamiemamma asked 26/9, 2016 at 0:36

3

Solved

I am making a game in which the user player places circles on the screen. It is important that the circles never overlap, so I need to figure out the nearest possible free spot from the cursor. I h...
Charlatanry asked 15/10, 2013 at 7:23

1

Solved

I have drawn curves that denote the customer country and the country where he is headed for a trip in a map. But I could not add a gradient so that the lines would denote the said information and...
Hurlbut asked 23/2, 2020 at 10:59

1

First, I do know how to make gradients when it's formed within a square shape as its' a default shape when making manual gradients with for loops and lerpColor. I am trying to create ideally any s...
Shend asked 20/11, 2019 at 17:15

1

Solved

I want to achieve something like an infinite drag like the one in Konva js Can anyone help me with this. I try varius things but non of them were ok. Im new in p5js and javascript. Please for any h...
Morose asked 16/11, 2019 at 14:9

0

I want to get nested stencils to work in OpenGL. I call them masks from now on. So the stencil buffer is cleared to all 0's. I make my first mask, the grey area. Now that have to be all 1's in ...
Intemerate asked 27/10, 2019 at 12:21

© 2022 - 2025 — McMap. All rights reserved.