Skip to content

Commit

Permalink
Update rasterization.js example
Browse files Browse the repository at this point in the history
  • Loading branch information
rossning92 committed Jun 5, 2022
1 parent eb69731 commit 86230e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/examples/demo/rasterization.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as mo from 'movy';

const GRID_SIZE = 48;
const GRID_SIZE = 36;

const group = mo.addGroup({ scale: 9 / GRID_SIZE });

Expand All @@ -22,7 +22,7 @@ for (let i = GRID_SIZE - 1; i >= 0; i--) {
color: ((i * GRID_SIZE + j) / (GRID_SIZE * GRID_SIZE)) * 256 + 0x02a9f7,
parent: group,
});
pixel.show({ t });
pixel.fadeIn({ t, duration: 0.25 });
t += 0.005;
}
}
Expand Down

0 comments on commit 86230e1

Please sign in to comment.