processing.js

What is it that stops processings libraries from being used to processing.js

旧城冷巷雨未停 提交于 2019-11-29 05:16:01
For those that don't know, processing is a language/ Java library primarily used for displaying data nice and pretty. Processing.js is its javascript port made by John Resiq. Everything that guy makes is a treasure. As per a previous question I learned that Processing's many libraries would not work in processing.js. Why is this? Processing provides a makeshift compiler that turns the processing code into its javascript equivalent. For context to this question, I'm building a game for a final year project and am looking into using processing.js as the base. Whats holding the processing.js back

Has anyone got processing.js working in IE?

自古美人都是妖i 提交于 2019-11-29 04:32:05
I'm looking for examples of processing.js working in Internet Explorer via ExplorerCanvas or similar. The sparklines example on the processing.js exhibition page uses ExplorerCanvas. It seems like it's just a drop-in solution, no extra coding necessary. It can be done! There are some gotchas, however. The page htxt links to is fine, as far as it goes, but please note the following: 1) Both script and canvas elements must have id attributes. The init function uses these attribute id's to associate a given script with a given canvas. I found the simplified init function easier to understand than

Exporting a Processing sketch with audio to JavaScript

北战南征 提交于 2019-11-28 02:10:24
问题 How could I implement sound in my Processing sketch that works when I export the sketch to JavaScript? I've written a sketch in Processing that includes two audio (.wav) loops. These loops are played through the Movie class upon mousePressed() and mouseDragged() . The sketch works in normal/Java mode, but does not load when changed to JavaScript mode. The sketch only works in JavaScript mode when I remove the sound. I've noticed that other sketches that use the Movie class as well as sketch

Has anyone got processing.js working in IE?

别等时光非礼了梦想. 提交于 2019-11-27 22:23:44
问题 I'm looking for examples of processing.js working in Internet Explorer via ExplorerCanvas or similar. 回答1: The sparklines example on the processing.js exhibition page uses ExplorerCanvas. It seems like it's just a drop-in solution, no extra coding necessary. 回答2: It can be done! There are some gotchas, however. The page htxt links to is fine, as far as it goes, but please note the following: 1) Both script and canvas elements must have id attributes. The init function uses these attribute id

Mercator longitude and latitude calculations to x and y on a cropped map (of the UK)

断了今生、忘了曾经 提交于 2019-11-26 17:18:38
I have this image: http://imgur.com/99tSz.png . 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 and rightmost longitude of the UK and using them to work out where to put the point on the map. This is the code (for use in Processing.js but could be used as js or anything): // Size of the map int width = 538; int height = 811; // X and Y boundaries float westLong = -8.166667; float eastLong = 1.762833; float northLat = 58.666667; float southLat = 49.95; void drawPoint(float

Mercator longitude and latitude calculations to x and y on a cropped map (of the UK)

Deadly 提交于 2019-11-26 05:20:22
问题 I have this image: http://imgur.com/99tSz.png. 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 and rightmost longitude of the UK and using them to work out where to put the point on the map. This is the code (for use in Processing.js but could be used as js or anything): // Size of the map int width = 538; int height = 811; // X and Y boundaries float westLong = -8.166667;