diff --git a/App/index.js b/App/index.js index a838964..7b92102 100644 --- a/App/index.js +++ b/App/index.js @@ -25,6 +25,7 @@ ejecta.include("../libs/pitaru/ejecta-heart-createjs.js"); // WORKS //// // These are Examples that work with minimal or no changes to the source code: +//ejecta.include("src/BarGraph.js"); //ejecta.include("src/Cache_vday.js"); //ejecta.include("src/Cache.js"); //ejecta.include("src/CacheUpdate.js"); @@ -55,7 +56,6 @@ ejecta.include("src/HelloWorld.js"); // PARTIALLY WORKS //////// // These examples will run with limitted functionlality -//ejecta.include("src/partially_works/BarGraph.js"); //ejecta.include("src/partially_works/GraphicsTestTiny.js"); //ejecta.include("src/partially_works/BitmapAnimation.js"); diff --git a/App/src/partially_works/BarGraph.js b/App/src/BarGraph.js similarity index 95% rename from App/src/partially_works/BarGraph.js rename to App/src/BarGraph.js index 44a9f14..2accc56 100644 --- a/App/src/partially_works/BarGraph.js +++ b/App/src/BarGraph.js @@ -1,8 +1,7 @@ /* -Ejecta is missing beginLinearGradientFill (will be implemented soon). For now I marked out line 76 and added a beginFill on 87 instead +Ejecta supports linear gradient with https://github.com/phoboslab/Ejecta/commit/8a4814bd600aa362660401fbfa7bc568f2b70974 */ - var canvas; var stage; var barPadding = 7; @@ -73,7 +72,6 @@ var canvas; // draw the front panel of the bar, this will be scaled to the right size in drawBar: var front = new createjs.Shape(); - /* front.graphics.beginLinearGradientFill( [createjs.Graphics.getHSL(hue,100,60,0.9), createjs.Graphics.getHSL(hue,100,20,0.75)], @@ -82,8 +80,6 @@ var canvas; -100, barWidth,0).drawRect(0,-100,barWidth+1, 100); - */ - front.graphics.beginFill(createjs.Graphics.getHSL(hue,100,20,0.75)).drawRect(0,-100,barWidth+1,100); // draw the top of the bar, this will be positioned vertically in drawBar: var top = new createjs.Shape();