diff --git a/examples/Animated/AnimatedStar.html b/examples/Animated/AnimatedStar.html index ab4ebff5..1e4e61b0 100644 --- a/examples/Animated/AnimatedStar.html +++ b/examples/Animated/AnimatedStar.html @@ -46,6 +46,6 @@ - + \ No newline at end of file diff --git a/examples/Animated/Extruded.html b/examples/Animated/Extruded.html index 98d31b54..970d0656 100644 --- a/examples/Animated/Extruded.html +++ b/examples/Animated/Extruded.html @@ -67,6 +67,6 @@ - + \ No newline at end of file diff --git a/examples/Animated/Lines.html b/examples/Animated/Lines.html index 3e2bc5c2..6c3b90c0 100644 --- a/examples/Animated/Lines.html +++ b/examples/Animated/Lines.html @@ -46,6 +46,6 @@ - + \ No newline at end of file diff --git a/examples/Animated/RadialRainbows.html b/examples/Animated/RadialRainbows.html index 00247d80..da002f72 100644 --- a/examples/Animated/RadialRainbows.html +++ b/examples/Animated/RadialRainbows.html @@ -9,10 +9,11 @@ var point = view.center; var colors = []; + var cycles = 4; for (var i = 0, l = 60; i < l; i++) { - var color = new RGBColor(1, 0, 0); - var cycles = 4; - color.hue = i / l * cycles * 360; + var brightness = 1 - (i / l) * 1.5; + var hue = i / l * cycles * 360; + var color = new HSBColor(hue, 1, brightness); colors.push(color); } @@ -70,6 +71,6 @@ - + \ No newline at end of file diff --git a/examples/Animated/Raster.html b/examples/Animated/Raster.html index e84d6b26..66b4e0b7 100644 --- a/examples/Animated/Raster.html +++ b/examples/Animated/Raster.html @@ -20,7 +20,7 @@ - + \ No newline at end of file diff --git a/examples/Animated/RoundedRectangles.html b/examples/Animated/RoundedRectangles.html index be8957bf..da07b053 100644 --- a/examples/Animated/RoundedRectangles.html +++ b/examples/Animated/RoundedRectangles.html @@ -36,6 +36,6 @@ - + \ No newline at end of file diff --git a/examples/Animated/Smoothing.html b/examples/Animated/Smoothing.html index a26d3da8..8ccf23e3 100644 --- a/examples/Animated/Smoothing.html +++ b/examples/Animated/Smoothing.html @@ -64,6 +64,6 @@ - + \ No newline at end of file diff --git a/examples/Animated/Space.html b/examples/Animated/Space.html index 2cc1f7f9..25d9056a 100644 --- a/examples/Animated/Space.html +++ b/examples/Animated/Space.html @@ -80,6 +80,6 @@ - + \ No newline at end of file diff --git a/examples/Animated/Tadpoles.html b/examples/Animated/Tadpoles.html index 0b6ee51d..17a241ce 100644 --- a/examples/Animated/Tadpoles.html +++ b/examples/Animated/Tadpoles.html @@ -302,6 +302,6 @@ - + \ No newline at end of file diff --git a/examples/Scripts/Arcs.html b/examples/Scripts/Arcs.html index 2a8079be..35b8bed1 100644 --- a/examples/Scripts/Arcs.html +++ b/examples/Scripts/Arcs.html @@ -26,6 +26,6 @@ - + \ No newline at end of file diff --git a/examples/Scripts/BouncingBalls.html b/examples/Scripts/BouncingBalls.html index 1a6bb5f5..4ccfdea9 100644 --- a/examples/Scripts/BouncingBalls.html +++ b/examples/Scripts/BouncingBalls.html @@ -92,6 +92,6 @@ - + \ No newline at end of file diff --git a/examples/Scripts/Chain.html b/examples/Scripts/Chain.html index 5fd68e88..b89fa360 100644 --- a/examples/Scripts/Chain.html +++ b/examples/Scripts/Chain.html @@ -45,6 +45,6 @@ - + \ No newline at end of file diff --git a/examples/Scripts/Circle.html b/examples/Scripts/Circle.html index 69e89aeb..2aa6ee97 100644 --- a/examples/Scripts/Circle.html +++ b/examples/Scripts/Circle.html @@ -14,6 +14,6 @@ - + \ No newline at end of file diff --git a/examples/Scripts/CompoundPath.html b/examples/Scripts/CompoundPath.html index 63d81728..86618e5d 100644 --- a/examples/Scripts/CompoundPath.html +++ b/examples/Scripts/CompoundPath.html @@ -14,6 +14,6 @@ - + \ No newline at end of file diff --git a/examples/Scripts/CurveTimeParametrization.html b/examples/Scripts/CurveTimeParametrization.html index d6472974..c77c9e58 100644 --- a/examples/Scripts/CurveTimeParametrization.html +++ b/examples/Scripts/CurveTimeParametrization.html @@ -56,6 +56,6 @@ - + \ No newline at end of file diff --git a/examples/Scripts/DivisionRaster.html b/examples/Scripts/DivisionRaster.html index a95c62aa..f4bcaaef 100644 --- a/examples/Scripts/DivisionRaster.html +++ b/examples/Scripts/DivisionRaster.html @@ -83,7 +83,7 @@ onResize(); - + \ No newline at end of file diff --git a/examples/Scripts/Fitting.html b/examples/Scripts/Fitting.html index 51d15c1c..983b1849 100644 --- a/examples/Scripts/Fitting.html +++ b/examples/Scripts/Fitting.html @@ -25,6 +25,6 @@ - + \ No newline at end of file diff --git a/examples/Scripts/Letter.html b/examples/Scripts/Letter.html index e6cafb00..0d8a933f 100644 --- a/examples/Scripts/Letter.html +++ b/examples/Scripts/Letter.html @@ -28,6 +28,6 @@ - + \ No newline at end of file diff --git a/examples/Scripts/PathStructure.html b/examples/Scripts/PathStructure.html index 35ed6e3b..3da7a1f9 100644 --- a/examples/Scripts/PathStructure.html +++ b/examples/Scripts/PathStructure.html @@ -6,50 +6,21 @@ - + \ No newline at end of file diff --git a/examples/Scripts/PhyllotaxisRaster.html b/examples/Scripts/PhyllotaxisRaster.html index 1d026e83..7fc4d555 100644 --- a/examples/Scripts/PhyllotaxisRaster.html +++ b/examples/Scripts/PhyllotaxisRaster.html @@ -94,6 +94,6 @@ - + \ No newline at end of file diff --git a/examples/Scripts/RotationRaster.html b/examples/Scripts/RotationRaster.html index 2fa7311b..8f528a9e 100644 --- a/examples/Scripts/RotationRaster.html +++ b/examples/Scripts/RotationRaster.html @@ -36,7 +36,7 @@ - + \ No newline at end of file diff --git a/examples/Scripts/RoundRectangle.html b/examples/Scripts/RoundRectangle.html index 42d820ca..0e76a571 100644 --- a/examples/Scripts/RoundRectangle.html +++ b/examples/Scripts/RoundRectangle.html @@ -20,6 +20,6 @@ - + \ No newline at end of file diff --git a/examples/Scripts/StrokeBounds.html b/examples/Scripts/StrokeBounds.html index 903710d3..133de914 100644 --- a/examples/Scripts/StrokeBounds.html +++ b/examples/Scripts/StrokeBounds.html @@ -85,6 +85,6 @@ - + \ No newline at end of file diff --git a/examples/Tools/BezierTool.html b/examples/Tools/BezierTool.html index 8b88f660..e40ff7ae 100644 --- a/examples/Tools/BezierTool.html +++ b/examples/Tools/BezierTool.html @@ -80,6 +80,6 @@ Drag segment handles and points to manipulate them. Close the path to start a new one.

- + \ No newline at end of file diff --git a/examples/Tools/Circles.html b/examples/Tools/Circles.html index da5064d5..7ad79d67 100644 --- a/examples/Tools/Circles.html +++ b/examples/Tools/Circles.html @@ -25,6 +25,6 @@ - + \ No newline at end of file diff --git a/examples/Tools/Clouds.html b/examples/Tools/Clouds.html index 96b2e0d0..fb6c850e 100644 --- a/examples/Tools/Clouds.html +++ b/examples/Tools/Clouds.html @@ -30,6 +30,6 @@ - + \ No newline at end of file diff --git a/examples/Tools/Dripping Brush.html b/examples/Tools/Dripping Brush.html index 9f43e0cf..12cbefc2 100644 --- a/examples/Tools/Dripping Brush.html +++ b/examples/Tools/Dripping Brush.html @@ -67,6 +67,6 @@ - + \ No newline at end of file diff --git a/examples/Tools/Fancy Brush.html b/examples/Tools/Fancy Brush.html index c69c6c80..208c29c1 100644 --- a/examples/Tools/Fancy Brush.html +++ b/examples/Tools/Fancy Brush.html @@ -77,6 +77,6 @@ - + \ No newline at end of file diff --git a/examples/Tools/Grid.html b/examples/Tools/Grid.html index 4049be4b..3cf3f602 100644 --- a/examples/Tools/Grid.html +++ b/examples/Tools/Grid.html @@ -39,6 +39,6 @@ - + \ No newline at end of file diff --git a/examples/Tools/MetaBalls.html b/examples/Tools/MetaBalls.html index b5d9609d..babcaf67 100644 --- a/examples/Tools/MetaBalls.html +++ b/examples/Tools/MetaBalls.html @@ -112,6 +112,6 @@ - + \ No newline at end of file diff --git a/examples/Tools/MultiLines.html b/examples/Tools/MultiLines.html index 27e5a01c..04d62585 100644 --- a/examples/Tools/MultiLines.html +++ b/examples/Tools/MultiLines.html @@ -39,6 +39,6 @@ - + \ No newline at end of file diff --git a/examples/Tools/Simplify.html b/examples/Tools/Simplify.html index 055b54ab..d11e9516 100644 --- a/examples/Tools/Simplify.html +++ b/examples/Tools/Simplify.html @@ -56,6 +56,6 @@ - + \ No newline at end of file diff --git a/examples/Tools/SquareRounded.html b/examples/Tools/SquareRounded.html index ea4faa3a..185958f7 100644 --- a/examples/Tools/SquareRounded.html +++ b/examples/Tools/SquareRounded.html @@ -77,6 +77,6 @@ - + \ No newline at end of file diff --git a/examples/Tools/Stars.html b/examples/Tools/Stars.html index 18b6ecf5..72d13b9c 100644 --- a/examples/Tools/Stars.html +++ b/examples/Tools/Stars.html @@ -25,6 +25,6 @@ - + \ No newline at end of file diff --git a/examples/Tools/Vektor.html b/examples/Tools/Vektor.html index dac6cf2a..fe438380 100644 --- a/examples/Tools/Vektor.html +++ b/examples/Tools/Vektor.html @@ -195,6 +195,6 @@ - + \ No newline at end of file diff --git a/examples/Tools/Wave.html b/examples/Tools/Wave.html index 51638c8d..cca8c80e 100644 --- a/examples/Tools/Wave.html +++ b/examples/Tools/Wave.html @@ -43,6 +43,6 @@ - + \ No newline at end of file diff --git a/examples/Tools/Worm Farm.html b/examples/Tools/Worm Farm.html index 4f40672d..a5981c53 100644 --- a/examples/Tools/Worm Farm.html +++ b/examples/Tools/Worm Farm.html @@ -83,6 +83,6 @@ - + \ No newline at end of file diff --git a/src/core/PaperScript.js b/src/core/PaperScript.js index e4ac817b..49c8f90f 100644 --- a/src/core/PaperScript.js +++ b/src/core/PaperScript.js @@ -228,6 +228,7 @@ var PaperScript = this.PaperScript = new function() { for (var i = 0, l = scripts.length; i < l; i++) { var script = scripts[i]; // Only load this script if it not loaded already. + // TODO: support 'text/x-paperscript': if (script.type === 'text/paperscript' && !script.getAttribute('loaded')) { // Produce a new PaperScope for this script now. Scopes are