processing.js Questions

4

Solved

I have developed programs in Khan Academy's Computer Programming lessons that I would like to run outside of Khan Academy. How can that be done?
Respond asked 16/8, 2014 at 15:21

4

Solved

I'm new to Javascript and I'm trying to use inverse tangent to find the angle in degrees between a line and the x axis on an elevated y. I don't see any command for it so I really need some help.
Phosphaturia asked 24/2, 2017 at 14:1

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

5

I'm just getting started with processing.js and neither of the IDEs I use (Aptana, NetBeans) are able to understand the JavaScript syntax processing uses. What is a good editor to use when coding p...
Magdalenamagdalene asked 13/1, 2011 at 8:36

10

Solved

I have this image. It's a map of the UK (not including Southern Ireland): I have successfully managed to get a latitude and longitude and plot it onto this map by taking the leftmost longitude ...
Edvard asked 20/1, 2010 at 18:33

3

Solved

I'm using some javascript to allow users to dynamically load a sketch on click to a canvas element using: Processing.loadSketchFromSources('canvas_id', ['sketch.pde']); If I call Processing.lo...
Emogene asked 24/6, 2012 at 14:54

9

Solved

Hey there guys, I'm learning processing.js, and I've come across a mathematical problem, which I can't seem to solve with my limited geometry and trigonometry knowledge or by help of Wikipedia. I ...
Aconite asked 8/2, 2010 at 1:14

2

How do you run a processingJS script on an html page? Could someone send me a test .html and any auxiliary code files for me to get an idea? Let's say I wanted to run this rectangle: rect(50,50,5...
Layla asked 24/8, 2016 at 2:44

3

Solved

It is my first time using the switch statement in Javascript. Is there a way to evaluate multiple conditions one switch statement, like so: var i = 1; switch(i && random(1)<0.3) { cas...
Gastrectomy asked 24/7, 2016 at 20:31

2

Solved

I'd like to use processingJS as an npm package in a nodeJS server for deployment on MS Azure. I'm using VS15. I'm having trouble referencing it: var pjs = require('processing-js'); var http = req...
Angeloangelology asked 20/1, 2016 at 21:12

3

class Shape contains two methods drawCircle() and drawTriangle(). Each function takes different set of arguments. At present, I invoke this by calling the pde file directly. How to pass these arg...
Herbartian asked 21/12, 2010 at 4:49

3

Solved

I am developing an application using Processing.js. At each step in the drawing loop I increment the number of frames by one frame++ . I want to know how much time has passed. Currently to get th...
Plant asked 6/6, 2012 at 10:54

4

Solved

Is there a sleep() function for Processing.js? If not what would be a suitable alternative to add a delay in the draw() loop? I am using JQuery with Processing - can I use a JQuery or Javascript f...
Billposter asked 1/9, 2011 at 18:4

2

Solved

I'm trying to run multiple sketches on the same page. The init script specifies that: /* * This code searches for all the <script type="application/processing" target="canvasid"> * in your ...
Bigley asked 16/12, 2009 at 22:43

2

Solved

As mentioned, how can processing.js respond to a browser's size? (responsive design) i've tried screen.width and screen.height but it didn't work well. It seems only detect the size of the computer...
Snowonthemountain asked 8/9, 2012 at 13:22

3

Solved

I have recently created a HTML5 canvas animation (also using Processing.js). The problem is that when I switch the browser to a different tab the animation stops playing. How can I allow the anim...
Dink asked 20/6, 2012 at 15:29

2

Solved

I am holding back on seriously pursuing ProcessingJS pieces mostly due to the bloat of the library. I have found that pieces like Ball Droppings do not use the library's Processing syntax parser, w...
Liddie asked 3/11, 2010 at 11:51

1

Solved

I think all of these are basically really cool, and am familiar with their obvious differences (SVG vs. canvas), but i'm unsure of their underlying differences, advantages or limitations in terms o...
Millipede asked 10/12, 2010 at 23:59

1

Solved

I'm writing a processingjs script that I want to resize depending on the users viewport width. As far as I know there's no functionality for this in processing, so I've been looking at JQuery and u...
Sweated asked 8/1, 2011 at 1:59

4

I am developing a paint brush application in javascript using processing.js It is using a canvas object. I want to keep an image at the background of the canvas. Draw something in the foreground. A...
Matriculate asked 13/2, 2010 at 1:17

2

Solved

I am trying to develop a paint brush application thru processingjs. This API has function loadPixels() that will load the RGB values in to the array. Now i want to store the array in the server db....
Thrippence asked 12/2, 2010 at 14:32

1

Solved

I wanted to run a test of a sketch I just made ported to processing.js. When I load the webpage, I get the following errors from the javascript console in Chrome: XMLHttpRequest cannot load file...
Windhover asked 21/11, 2010 at 2:35

5

Solved

I've been doing some reading about two (relatively) new concepts in the Javascript language - Web Workers and John Resig's awesome Processing.js (well, not really a new 'Javascript concept', but yo...
Darya asked 23/8, 2009 at 15:9

3

Solved

I'm looking for examples of processing.js working in Internet Explorer via ExplorerCanvas or similar.
Undressed asked 13/5, 2009 at 9:22
1

© 2022 - 2024 — McMap. All rights reserved.