aboutsummaryrefslogtreecommitdiff
path: root/includes/js/dojox/gfx/tests/test_gradient.html
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-14 15:39:19 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-14 15:39:19 +0000
commit1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch)
tree3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dojox/gfx/tests/test_gradient.html
parent104d59099e048688c4dbac37d72137006e396558 (diff)
downloadsemanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.gz
semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.bz2
Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dojox/gfx/tests/test_gradient.html')
-rw-r--r--includes/js/dojox/gfx/tests/test_gradient.html70
1 files changed, 0 insertions, 70 deletions
diff --git a/includes/js/dojox/gfx/tests/test_gradient.html b/includes/js/dojox/gfx/tests/test_gradient.html
deleted file mode 100644
index cd4e772..0000000
--- a/includes/js/dojox/gfx/tests/test_gradient.html
+++ /dev/null
@@ -1,70 +0,0 @@
-<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" >
-<head>
-<title>Dojo Unified 2D Graphics</title>
-<style type="text/css">
- @import "../../../dojo/resources/dojo.css";
- @import "../../../dijit/tests/css/dijitTests.css";
-</style>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<!--
-The next line should include Microsoft's Silverligth.js, if you plan to use the silverlight backend
-<script type="text/javascript" src="Silverlight.js"></script>
--->
-<script type="text/javascript" src="../../../dojo/dojo.js" djConfig="isDebug: true"></script>
-<!--<script type="text/javascript" src="../vml.js"></script>-->
-<!--<script type="text/javascript" src="../svg.js"></script>-->
-<!--<script type="text/javascript" src="../silverlight.js"></script>-->
-<script type="text/javascript">
-dojo.require("dojox.gfx");
-dojo.require("dojo.colors"); // pull in CSS3 color names
-
-makeShapes = function(){
- var SIDE = 10;
- var fillObj = {
- colors: [
- { offset: 0, color: [255, 255, 0, 0] },
- { offset: 0.5, color: "orange" },
- { offset: 1, color: [255, 255, 0, 0] }
- ]
- };
- var surface = dojox.gfx.createSurface(dojo.byId("grad"), 300, 300);
- // create a background
- for(var i = 0; i < 300; i += SIDE){
- for(var j = 0; j < 300; j += SIDE){
- surface.
- createRect({x: j, y: i, width: 10, height: 10}).
- setFill((Math.floor(i / SIDE) + Math.floor(j / SIDE)) % 2 ? "lightgrey" : "white");
- }
- }
- // create a rect
- surface.createRect({
- width: 300,
- height: 100
- }).setFill(dojo.mixin({
- type: "linear",
- x1: 0, y1: 0,
- x2: 300, y2: 0
- }, fillObj));
- // create a circle
- surface.createEllipse({
- cx: 150,
- cy: 200,
- rx: 100,
- ry: 100
- }).setFill(dojo.mixin({
- type: "radial",
- cx: 150,
- cy: 200
- }, fillObj));
-};
-dojo.addOnLoad(makeShapes);
-</script>
-<style type="text/css">
-#grad { width: 300px; height: 300px; }
-</style>
-</head>
-<body>
-<h1>dojox.gfx Alpha gradient test</h1>
-<div id="grad"></div>
-</body>
-</html>