Mercurial > MadButterfly
comparison nodejs/svg.js @ 712:54618e0cd36b
fill with black by default instead of stroke black
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 13 Aug 2010 19:52:00 +0800 |
parents | c93381320d6e |
children | e60ae262127b |
comparison
equal
deleted
inserted
replaced
711:da794f4fe96c | 712:54618e0cd36b |
---|---|
140 var path = mb_rt.path_new(d); | 140 var path = mb_rt.path_new(d); |
141 var paint; | 141 var paint; |
142 | 142 |
143 if (style==null) { | 143 if (style==null) { |
144 paint = mb_rt.paint_color_new(0,0,0,1); | 144 paint = mb_rt.paint_color_new(0,0,0,1); |
145 paint.stroke(path); | 145 paint.fill(path); |
146 } else { | 146 } else { |
147 var items = style.value().split(';'); | 147 var items = style.value().split(';'); |
148 var fill_alpha = 1; | 148 var fill_alpha = 1; |
149 var stroke_alpha = 1; | 149 var stroke_alpha = 1; |
150 var fill_color; | 150 var fill_color; |