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 });