Questions tagged [processing]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

NullPointerException in processing.core.PApplet when using IntelliJ IDEA [duplicate]

I am trying to get Processing to work in IntelliJ IDEA instead of PDE, and I'm encountering a NullPointerException when using multiple classes. App.java - My main class containing the main method. ...
averagedodo's user avatar
1 vote
1 answer
45 views

Processing "RuntimeException: Error opening serial port COM3: Port busy" with no Arduino IDE running

I am trying to connect Arduino with my processing program using serial connection, but I get this error when running the sketch. In the end I want my program to automatically detect on which port is ...
Kduck's user avatar
  • 11
1 vote
2 answers
29 views

Make loop draw for an amount of time in Processing

I am trying to make the background of a sketch turn a different color for 2 seconds every 5 seconds but I don't know how. This is a simplified code of what I've got. time = millis(); color GREEN = #...
Ana F's user avatar
  • 67
0 votes
0 answers
17 views

basil.js or scriptographer? [closed]

Is basil.js or scriptographer still working on the latest version of indesign/illustrator? I followed all the installation instructions but both are not working are there any alternatives for any of ...
Nora Aly's user avatar
0 votes
0 answers
12 views

millis() Not Resetting Properly in rolling() Method in Processing

I'm working on a game in Processing and facing an issue where millis() is not resetting as expected in my rolling() method within the Player class. The method is triggered by pressing the down arrow, ...
HifumiLover's user avatar
-1 votes
1 answer
34 views

ArrayList for random strings with mousePressed in Processing (also rotation)

I am new to coding and Processing (so bear with me). I have a class project I need to finish and I need help with one component in my code. I have a mousePressed function within my code that allows ...
Kristal's user avatar
1 vote
1 answer
39 views

Is there a way to keep track of objects clicked and display them as a message when the program ends in processing java? [closed]

Im trying to create a small game where the user clicks randomly generated coins and I want it to keep track of how many they click. Also, I want this message to print out when I click the stop button ...
Np3's user avatar
  • 13
-1 votes
1 answer
60 views

Move a ball left to right

I am trying to come out with a code that moves a square from left to right at each direction the colour of it has to change. It must start from the left edge and once it reaches the right edge, then ...
atzru090's user avatar
0 votes
1 answer
31 views

Making things little in Processing by using width or height

I am playing with Processing and I would like to know if I can make things little with the commands width or height. For example square(300, 250, 400); rect(450, 50, 50, 200); triangle(350, 250, 850, ...
anonymous_girl2023's user avatar
1 vote
1 answer
33 views

moving a cloud in a draw made with processing

I am exploring programming by using Processing language. I wanted to do a cloud that can move through all the screen. It has to have these characteristics: circle (60, 100, 60); circle (100, 100, 80); ...
anonymous_girl2023's user avatar
-1 votes
1 answer
76 views

How can I instantiate an object within a static class without creating an instance of the main class in Processing [duplicate]

I am writing a program in Java (Processing 4). Processing hides some stuff in the background which makes this more complicated. The main program "GeometryView" extends the PApplet class and ...
Andrew Cline's user avatar
1 vote
1 answer
44 views

Processing: Is it possible, to scale the whole program?

I'm kinda new to programming, and tried myself at some sort of comedic game. The game itself works just fine and as intended. The problem is, that its size is too big. I sent the game to a friend, but ...
Hi156 Gamenautica's user avatar
1 vote
2 answers
36 views

controlP5.slider tied to controlP5.knob only wants to work right one direction

I've got the following Processing code using controlP5 modules: import controlP5.*; ControlP5 cp5; void setup() { size(180,240); smooth(); noStroke(); cp5 = new ControlP5(this); cp5....
Jeuke's user avatar
  • 143
0 votes
1 answer
58 views

Problem installing "toxiclibs" library on Processing

I want to install the "toxiclibs" library on Processing, but when I go to "Sketch" -> "Add library", I don't find it among the examples ! I looked on the internet and ...
Anas's user avatar
  • 11
2 votes
1 answer
41 views

Update value once using if/then statements

I'm trying to implement a score counter, called scoreCount, that updates when the two shapes touch. I'm using if/then statements to check if the two shapes are touching, and if they are, update the ...
Max Blowers's user avatar
-2 votes
0 answers
23 views

"Export application" button not working on python mode for processing?

I want to export my python sketch to itch.io but for whatever reason it doesn't see to be working. I click the option and the window that is (apparently) supposed to appear simply does not. The only ...
CircularMotions's user avatar
2 votes
1 answer
49 views

Use Intellisense when using p5js in instance mode

I'm trying to write a little website in expressjs and p5js, but I ran in a uncomfortable problem with p5js and intellisense in VSCode. My problem is this: I'm using p5js in instance mode as I want to ...
pava's user avatar
  • 31
0 votes
0 answers
14 views

I am getting [scrapy.core.scraper] ERROR: Spider error processing <GET https://www.zyte.com/blog/>

I was only trying the example code given in the start page of scrapy to learn it, but faces the error with every web page I tried. Not sure how to resolve it. 2023-11-04 07:14:14 [scrapy.core.scraper]...
Bits Student 's user avatar
1 vote
1 answer
58 views

Processing 4.3 Issue : "The package “javax.xml.bind” does not exist. You might be missing a library." while following a GitHub tutorial

I'am trying to run the teachable AI from Google ("Teachable Machine") on my Arduino board to control stuff depending on what the AI detects. I'am following this GitHub tutorial to understand ...
Xarlixe's user avatar
  • 13
0 votes
1 answer
31 views

controlP5 slider.FLEXIBLE with more than 11 tick marks no longer aligns the pointer with the marks

I have the following code for my slider(s): import controlP5.*; //import ControlP5 library ControlP5 gui; void setup() { size(600,100); gui = new ControlP5(this); gui.addSlider("...
Jeuke's user avatar
  • 143
0 votes
2 answers
57 views

Is there a way to get a triangle to rotate to face the mouse on a circle?

I'm trying to make it so that a triangle, with its two base points always staying on the outer edge of a circle, will point towards where the mouse is. I'm convinced it's mostly a specific math ...
Drew Magro's user avatar
0 votes
1 answer
48 views

Printing a diamond shape in processing

I'm trying to print a diamond shape using a function that changes the size of the diamond for every new int we decide to use. First I'm printing the top half part, then I'm printing the bottom half ...
Danny Belloli's user avatar
-1 votes
1 answer
57 views

A circle that has a specific percentage amount of fill

I would like to create a circle that is filled to a certain percentage like so: and this: I'm using Processing Java. My attempt is using the arc() function however I have a hard time determining how ...
Muhammad Anas Sajjad's user avatar
0 votes
1 answer
71 views

How can I correct my code which is related to digital image processing?

My aim is to obtain the given photo which includes black color for left upper part and white color right bottom part. In the photo, it is clearly seen that black color(0) is going to be white color(...
Johnny's user avatar
  • 19
0 votes
1 answer
78 views

How to modify arrays in Processing and send them from serial to Arduino?

I have a code that currently takes values from a controller input in Processing, sends those values over serial to an Arduino Uno that sends those values over radio to another Arduino Uno. I am ...
Bradbut's user avatar
-1 votes
1 answer
22 views

Processing P3D: seperate object instances acting dependent... why?

Working on learning P3D and improving my OOP. I have 2 instances of class Box (see below) and Box2 is acting dependent on Box 1(the x and y 0's of Box 2are considered the coords of Box 1, including ...
Colton Scherer's user avatar
1 vote
1 answer
42 views

how to push and pull blocks (rectangles) in processing game

I want my 'player' (black rectangle) to be able to push and pull on the blocks I put in my game after hitting a key (ENTER), I just have no clue on where to begin with this. void keyPressed() { int ...
Garou's user avatar
  • 11
0 votes
0 answers
122 views

Draw the set of points for which the product of the distances to two given points is equal to p < c^2/4

Two points are set on a horizontal line, the distance between which is c. Draw the set of points for which the product of the distances to two given points is equal to p < c^2/4. I have problem ...
Anon's user avatar
  • 1
1 vote
0 answers
51 views

multitouch in Processing Java/Python

I'm new to Processing and I'd like to develop a touchscreen based effects app. It will be used to display cool effects on an LED matrix table I'm building. now my question is whether Python or Java ...
Lolimpol's user avatar
0 votes
1 answer
59 views

I'm having issues displaying text on a point in a graph when you hover over it in Processing4

I'm having issues displaying text on a point in a graph when you hover over it in Processing4. I have tried using a loop to display the text but it seems the graph plot doesn't allow anything display ...
Elvis C.'s user avatar
1 vote
1 answer
81 views

Why are the ellipses not being displayed in my Processing-Code?

I have a question about my code in Processing. I'm trying to display weather data from past years and draw ellipses on the screen to create a graph. However, the ellipse is not being drawn. What could ...
Dggamp's user avatar
  • 11
0 votes
1 answer
76 views

How can I pass in a parameter to a Java Processing function?

I am trying to make a program which creates a ball that is affected by gravity, and I wanted to use Java Processing to show it. How do I call this function and pass in a parameter without calling my ...
ilovebender's user avatar
0 votes
0 answers
44 views

Can't install OpenKinect for Processing Library

I'm trying to use the OpenKinect for Processing Library on Processing 3 (Windows 11). The last update to the library was in 2015 but the original author has some great video tutorials online that I'd ...
tlujan0001's user avatar
2 votes
0 answers
59 views

Debugging AI Tie Logic in NegaMax Algorithm for Tic Tac Toe in p5.js [closed]

Question: I'm currently working on a Tic Tac Toe game using the minimax algorithm in p5.js, and I've encountered an issue with the AI's behavior. Despite my efforts, I can't seem to get the AI to work ...
VkQuads's user avatar
  • 31
1 vote
0 answers
36 views

Display [x, x] grid with [y, y] size in Processing

I have a 2d array, let's say [500][500]. I want to render that array onto a [200][200] grid, where I will render each pixel from the second array onto my computer. How do I render my [500][500] grid ...
Clinks's user avatar
  • 11
0 votes
1 answer
54 views

mirror and reflect left side movie to the right side in Processing sketch

I have to reflect and mirror the half of the left video with the right one. I tried this code but when I activate the effect the video shows only the first frame and does not play. The video freezes ...
mrblade's user avatar
  • 11
1 vote
0 answers
44 views

Processing sketch: merge alpha channel video with another movie

I have a Processing sketch. I need to overlay a .mov video with alpha channel transparency with another video. The rest of the code works but i got error when the overlay should be started. I'm afraid ...
mrblade's user avatar
  • 11
-3 votes
1 answer
44 views

I don't know what wrong with my code I'm try many to debug but it didn't run

I don't know what wrong with this: float [] x,y,d; float [] vx,vy; float [] x1,y1,d1; float [] vx1,vy1; void setup(){ size(800,800); x = new float[5]; y = new float[5]; d = new float[5]; vx =...
Leng Chanvichea's user avatar
0 votes
1 answer
57 views

Mini Game using Custom Classes and Objects Errors

I have a project where we are supposed to use classes and objects to create a mini game of sorts. I have the main structure of my game typed out, but I don't know if it is going to work or not. I've ...
Kathrine Lee's user avatar
0 votes
1 answer
41 views

Loading image in processing android

I am having an issue when running the processing sketch, listed below, on my android phone and get the following error: java.io.FileNotFoundException: /data/user/0/processing.test.sketch_230817a/...
Muhammad Anas Sajjad's user avatar
0 votes
0 answers
28 views

Rotate Object to the Same Direction as a Vector or Line [duplicate]

I need to rotate the rectangle in the following code to align with the line, as in the smaller faces of the rectangle are facing the ends of the line. How wold a rotation of a rectangle to a line or ...
Ben Delany's user avatar
-1 votes
1 answer
47 views

Bring exported Processing-application window to foreground

How to make the window of an exported application to come foreground? As an example, let us say that I have a text document and browser in active use and the application window is buried behind, how ...
Imsa's user avatar
  • 69
0 votes
1 answer
38 views

how do i make my ball bounce off the paddle - processing 4.2

i've been trying to get my ball to bounce off a paddle (rectangle) which has a fixed y position but an x position controlled by the mouseX but it just wont work, i'm not sure what um doing wrong ...
Petra27's user avatar
-1 votes
1 answer
248 views

Position of a vector in coordinate system (Processing/p5.js)

i am new to processing i had to perform a task and i wanted to know how can i go about it in processing. Down below is the code and i want to find the coordinates of Pvector 'vectorInNewCoordSys' in ...
user22305318's user avatar
0 votes
0 answers
61 views

How can i create new objects with a recursive function in Processing to help make smooth random motion?

I'm learning with Processing and I am trying to create smooth random motion. I have successfully done this in a very long winded way and noticed that this would benefit from a recursive function ...
firewall's user avatar
0 votes
1 answer
53 views

How can I solve R6025 pure vital function call error when I run a sketch of Processing for Kinect v1?

I need help with using Kinect v1 with Processing. When I ran Processing, an R6025 pure vital function call error occurred. I attached the images of the error message. Error message1: R6025 pure vital ...
Qwerty's user avatar
  • 3
2 votes
1 answer
49 views

Processing Object Manipulations

I have a question about objects in Processing. Processing or Processing Py, they are pretty much the same. Here it goes: how do we manipulate/move/erase objects? Let's imagine a moving circle. It ...
Serge's user avatar
  • 31
0 votes
1 answer
103 views

Can't slow down the processing draw

I'm currently trying to generate some random circular ellipses and in my for loop I can't find it how can I slow the render of the ellipses (it's too flashy and fast the way it looks right now). float ...
user avatar
0 votes
0 answers
24 views

The updated array in local storage cannot be used in the code. -p5.js

There are two arrays in this code. Initially, the first of these arrays contains numbers 1-10, while the other array has no numbers. I want the generated random number to be selected from the non-...
Sefa Topçu's user avatar
0 votes
1 answer
617 views

Syntax Error - missing operator, semicolon, or '}' near 'drawFrieze'

I am a beginner programmer taking a programming class using Processing 4. I have a project that is meant to use loops and custom functions to create a complex pattern. I have code that works without ...
Kathrine Lee's user avatar

1
2 3 4 5
137