Mercurial > MadButterfly
comparison nodejs/svg.js @ 708:ac9c20db953e
Default alpha of a tag is '1'
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 13 Aug 2010 17:42:59 +0800 |
parents | fdd68e69c59f |
children | 920c9e6e4214 |
comparison
equal
deleted
inserted
replaced
707:594827d0f3e5 | 708:ac9c20db953e |
---|---|
255 if (style==null) { | 255 if (style==null) { |
256 paint = mb_rt.paint_color_new(0,0,0,0.1); | 256 paint = mb_rt.paint_color_new(0,0,0,0.1); |
257 } else { | 257 } else { |
258 var items = style.value().split(';'); | 258 var items = style.value().split(';'); |
259 var fill = ''; | 259 var fill = ''; |
260 var alpha; | 260 var alpha = 1; |
261 for(i in items) { | 261 for(i in items) { |
262 sys.puts(items[i]); | 262 sys.puts(items[i]); |
263 var f = items[i].split(':'); | 263 var f = items[i].split(':'); |
264 if (f[0] == 'opacity') { | 264 if (f[0] == 'opacity') { |
265 alpha = f[1]; | 265 alpha = f[1]; |