From f2e86ad4daacd8a72d020cc57bb58c0d520685b0 Mon Sep 17 00:00:00 2001 From: Massimiliano Filacchioni Date: Sun, 4 Oct 2020 17:10:22 +0200 Subject: [PATCH] fix: Example step 2 code in README.md Aligned the code in README.md with the one used in example.js. --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 17f4e34..2b0df7d 100644 --- a/README.md +++ b/README.md @@ -184,11 +184,14 @@ If you prefer to learn by code rather than have step by step instructions take a let filterX = x < filter.length ? 0 : 1; filters[filterY][filterX] += weights[y][x]; matrixLog - .at({ x, y }) + .at({ + x: filterX, + y: filterY + }) .add({ name: 'weights', - x: filterX, - y: filterY, + x, + y, width: weights[0].length, height: weights.length });