summaryrefslogtreecommitdiffstats
path: root/bench/tests/10000-rects.js
diff options
context:
space:
mode:
Diffstat (limited to 'bench/tests/10000-rects.js')
-rw-r--r--bench/tests/10000-rects.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/bench/tests/10000-rects.js b/bench/tests/10000-rects.js
index aea0c79..98b7ac9 100644
--- a/bench/tests/10000-rects.js
+++ b/bench/tests/10000-rects.js
@@ -65,10 +65,10 @@ SVG.bench.describe('Generate 10000 rects with position and fill', function(bench
SVG.bench.describe('Generate 10000 rects with gradient fill', function(bench) {
bench.test('using SVG.js v2.5.3', function() {
for (var i = 0; i < 10000; i++) {
- var g = bench.draw.gradient('linear', function(stop) {
- stop.at(0, '#000')
- stop.at(0.25, '#f00')
- stop.at(1, '#fff')
+ var g = bench.draw.gradient('linear', function(add) {
+ add.stop(0, '#000')
+ add.stop(0.25, '#f00')
+ add.stop(1, '#fff')
})
bench.draw.rect(100,100).fill(g)