» tagged pages
» logout

sorted by: recent | see : popular
Content Tagged with canvas + dojo

Comet and Vector Graphics with Dojo (dojo.gfx)

better than Comet, a subset of SVG

Dojo: del.icio.us tag dojo

Presentaciones Dojo

presentaciones sobre Dojo y su lib gfx, y comet

Dojo: del.icio.us tag dojo

dojo.gfx presentations in dojo.gfx

Dylan Schiemann has posted his presentations on dojo.gfx which are themselves written in dojo.gfx instead of Powerpoint/Keynote/S5.

It would be nice if you some key bindings were put into the presentations :)

Dylans Vector Graphics

Ajax: Ajaxian

Vitamin Features » Print » Create cross browser vector graphics

como usar graficos vectoriales crossbrowser con dojo ^_^

Dojo: del.icio.us tag dojo

Create cross browser vector graphics with Dojo

Dylan Schiemann, co-creator of the Dojo toolkit, has written a broad piece on creating cross browser vector graphics with Dojo.

The article delves into the new dojo.gfx library that abstracts the slight mess of SVG vs. Canvas vs. VML.

One of the examples in the article discusses drawing a clock with this snippet that shows drawing the clock hands, along with their shadows:

JAVASCRIPT:
  1.  
  2. this.shadows.hour.shadow = this._initPoly(this.surface, hP)
  3.         .setFill([0, 0, 0, 0.1]);
  4. this.hands.hour = this._initPoly(this.surface, hP)
  5.         .setStroke({color: this.handStroke, width:1 })
  6.         .setFill({
  7.                 type:"linear",
  8.                 x1:0, y1:0, x2:0, y2:-27,
  9.                 colors:[{offset:0, color:"#fff"}, {offset:0.33, color:this.handColor}]
  10.         });
  11. this.shadows.minute.shadow = this._initPoly(this.surface, mP)
  12.         .setFill([0, 0, 0, 0.1]);
  13. this.hands.minute = this._initPoly(this.surface, mP)
  14.         .setStroke({color: this.handStroke, width:1 })
  15.         .setFill({
  16.                 type:"linear",
  17.                 x1:0, y1:0, x2:0, y2:-38,
  18.                 colors:[{offset:0, color:"#fff"}, {offset:0.33, color:this.handColor}]
  19.         });
  20.  

What features are supported

  • Strokes (borders)
  • Fills
  • Shapes and Paths
  • Opacity
  • Linear Transformations
  • Rounded Corners

If you have wanted "the ability to draw and modify non-rectangular, browser-native shapes" then check out the article and dig deeper:

Ajax: Ajaxian