6,844 questions
5 votes
1 answer
75 views
sending serial data from processing to arduino
I'm a beginner in programming and looking for a solution for a windows user- interface to change parameters on a arduino board. The whole target is a control unit for camera, flash and valves to make ...
0 votes
0 answers
49 views
Flappybird pipes generating wrong and losing lives when making through gap and gapHeight doesn't decrease gap distance
Creating a processing flappybird game for class there are multiple tabs not sure if they're needed for the solution to this but my gapHeight when changed doesn't seem to change the distance between ...
1 vote
0 answers
59 views
strokeWeight not applied to PShape?
I loaded a costum shape in Processing and want to fill it and have it have a stroke dynamically eventually. But I'm already stuck on hardcoded values. This is what I have: PShape img = loadShape(&...
1 vote
1 answer
111 views
Why is the p5.js console warning me that some of my variables are NaN?
I'm pretty new to coding, and I've been learning p5.js for a couple of weeks. I'm trying to write some code that will draw arcs of circles between evenly-spaced points on the top and right-hand edges ...
2 votes
2 answers
107 views
Processing 3D Local Rotation
So I am trying to emulate a robotic arm in Processing, and have most of it working. The problem I'm having is that the last arm segment (excluding the pinchers) needs to rotate along it's own relative ...
1 vote
0 answers
52 views
brightness(image.get(mapX,mapY)) not returning colours image properly
I've been working on a school project so far, and I'm stuck on a piece of movement collision code. I can't figure out how to solve it, and I can't find anything online. PImage redPose1, redPose2, ...
1 vote
1 answer
73 views
HOW TO workaround "background limitations" while exploring the saveFrame-option in Processing?
INTRODUCTION i need your help since i am stuck. upfront, i am a graphic artist and not a coder and/or programmer. during the years i learned basic, scheme, logo, processing and python by self-study ...
1 vote
1 answer
65 views
Using Processing P3D (OpenGL) texture is not drawing, no error is reported
The following program correctly renders a textured quad in processing using the underlying OpenGL. The texture is here PShape s; void setup() { size(800, 800, P3D); PImage ringtexture = loadImage(&...
1 vote
1 answer
65 views
Issues with Ragdoll physics in Processing IDE
I made this account as I have no where else to ask this. So I'm a beginner in coding in general (I have tried python,html and javascript before) and have just started trying out Processing. My goal ...
1 vote
1 answer
115 views
OSC communication on local network between Android and OSX
I am trying to use OSC to communicate between a desktop computer (OSX) and an Android phone, which are both connected to the same wifi network. I'm working in Processing with the oscP5 library but I ...
1 vote
2 answers
165 views
Rotating 3D object using JavaScript
I am working with WebGL 3D objects within p5.js (JavaScript). I have four somewhat complicated "separate" 3D objects which, when working as planned, will be manipulated with a mouseOver ...
2 votes
1 answer
140 views
How to link two files together in Processing IDE?
I'm making a project here consisting of a 3D Solar System App. So my app has a main screen, and after touching the red box, it will redirect to the 3D Solar System Model. The problem here is that my ...
1 vote
1 answer
302 views
How to import a library/package into a Processing sketch
I'm learning the Processing 4 programming app along with Java, which it uses. I have created a sketch and now want to add a library I downloaded, name Jama, to solve a system of linear equations. ...
-2 votes
4 answers
175 views
I want to use list in Processing Python [closed]
When I use list in Processing(python), def draw doesnt works class Ball(object): def __init__(self,x,y): self.x = 0 self.y=0 def setup(): size(500,500) background(255) ...
1 vote
1 answer
76 views
Adding beginRecord() and endRecord() to setup() breaks my sketch
My goal for this Processing sketch is to be able to export as svg or pdf so I can then open the file in inkscape to print with my Axidraw (as I've done in the past with other sketches). Given that you ...