This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var code = new Processing.Sketch(function(processing) { | |
function setup() { | |
processing.size(300, 300); | |
processing.noStroke(); | |
processing.frameRate(60); | |
} | |
processing.setup = setup; | |
function draw() { | |
processing.background(220,220,220); | |
processing.stroke(0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- <script src="../../release/processing-0.93.js"></script> --> | |
<script src="../../processing.js"></script> | |
<script src="../init.js"></script> | |
<link rel="stylesheet" href="../style.css"/></head> | |
<body><h1><a href="http://ejohn.org/blog/processingjs/">Processing.js</a></h1> | |
<h2>Substrate</h2> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r 0efb08f1b29a content/base/src/nsContentUtils.cpp | |
--- a/content/base/src/nsContentUtils.cpp Sat May 01 14:02:03 2010 +0200 | |
+++ b/content/base/src/nsContentUtils.cpp Sat May 01 16:19:35 2010 -0500 | |
@@ -563,6 +563,7 @@ | |
{ &nsGkAtoms::onratechange, { NS_RATECHANGE, EventNameType_HTML }}, | |
{ &nsGkAtoms::ondurationchange, { NS_DURATIONCHANGE, EventNameType_HTML }}, | |
{ &nsGkAtoms::onvolumechange, { NS_VOLUMECHANGE, EventNameType_HTML }}, | |
+ { &nsGkAtoms::onaudiowritten, { NS_AUDIOWRITTEN, EventNameType_HTML }}, | |
#endif //MOZ_MEDIA | |
{ &nsGkAtoms::onMozAfterPaint, { NS_AFTERPAINT, EventNameType_None }}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r cb8f60ee7c23 content/base/src/nsContentUtils.cpp | |
--- a/content/base/src/nsContentUtils.cpp Thu Apr 22 13:11:55 2010 -0700 | |
+++ b/content/base/src/nsContentUtils.cpp Sat May 01 11:04:45 2010 -0500 | |
@@ -545,6 +545,7 @@ | |
{ &nsGkAtoms::onratechange, { NS_RATECHANGE, EventNameType_HTML }}, | |
{ &nsGkAtoms::ondurationchange, { NS_DURATIONCHANGE, EventNameType_HTML }}, | |
{ &nsGkAtoms::onvolumechange, { NS_VOLUMECHANGE, EventNameType_HTML }}, | |
+ { &nsGkAtoms::onaudiowritten, { NS_AUDIOWRITTEN, EventNameType_HTML }}, | |
#endif //MOZ_MEDIA | |
{ &nsGkAtoms::onMozAfterPaint, { NS_AFTERPAINT, EventNameType_None }}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r cb8f60ee7c23 content/base/src/nsContentUtils.cpp | |
--- a/content/base/src/nsContentUtils.cpp Thu Apr 22 13:11:55 2010 -0700 | |
+++ b/content/base/src/nsContentUtils.cpp Sat May 01 10:38:02 2010 -0500 | |
@@ -545,6 +545,7 @@ | |
{ &nsGkAtoms::onratechange, { NS_RATECHANGE, EventNameType_HTML }}, | |
{ &nsGkAtoms::ondurationchange, { NS_DURATIONCHANGE, EventNameType_HTML }}, | |
{ &nsGkAtoms::onvolumechange, { NS_VOLUMECHANGE, EventNameType_HTML }}, | |
+ { &nsGkAtoms::onaudiowritten, { NS_AUDIOWRITTEN, EventNameType_HTML }}, | |
#endif //MOZ_MEDIA | |
{ &nsGkAtoms::onMozAfterPaint, { NS_AFTERPAINT, EventNameType_None }}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r cb8f60ee7c23 content/base/src/nsContentUtils.cpp | |
--- a/content/base/src/nsContentUtils.cpp Thu Apr 22 13:11:55 2010 -0700 | |
+++ b/content/base/src/nsContentUtils.cpp Sat May 01 01:17:16 2010 -0500 | |
@@ -545,6 +545,7 @@ | |
{ &nsGkAtoms::onratechange, { NS_RATECHANGE, EventNameType_HTML }}, | |
{ &nsGkAtoms::ondurationchange, { NS_DURATIONCHANGE, EventNameType_HTML }}, | |
{ &nsGkAtoms::onvolumechange, { NS_VOLUMECHANGE, EventNameType_HTML }}, | |
+ { &nsGkAtoms::onaudiowritten, { NS_AUDIOWRITTEN, EventNameType_HTML }}, | |
#endif //MOZ_MEDIA | |
{ &nsGkAtoms::onMozAfterPaint, { NS_AFTERPAINT, EventNameType_None }}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var i = 0; | |
String str = "hello"; | |
void setStr(String s) { | |
str = s; | |
} | |
void setup() { | |
size(500, 200); | |
background(0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head></head> | |
<body> | |
<script type="text/javascript"> | |
(function () { | |
this.P = function() { | |
var r = []; for(var i=0;i<100000;++i) r.push(i); // fill memory | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head></head> | |
<body> | |
<script type="text/javascript"> | |
(function () { | |
this.P = function() { | |
var r = []; | |
for(var i=0;i<100000;++i) r.push(i); // fill memory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.widget("ui.chart", { | |
// default options | |
options: { | |
}, | |
_create: function() { | |
var snip = function(processing) { | |
with(processing) { // not prefered way ... | |
processing.setup = function() { | |
size(150, 150); // .. use processing.size(150,150) instead | |
noStroke(); // processing.noStroke(); |