swapp alive/dead color
This commit is contained in:
parent
b6e45e24cb
commit
645cf7d32c
1 changed files with 3 additions and 3 deletions
6
index.js
6
index.js
|
@ -3,9 +3,9 @@ import { Universe, Cell } from "wasm-game-of-life";
|
||||||
import { memory } from "wasm-game-of-life/wasm_game_of_life_bg";
|
import { memory } from "wasm-game-of-life/wasm_game_of_life_bg";
|
||||||
|
|
||||||
const CELL_SIZE = 5; // px
|
const CELL_SIZE = 5; // px
|
||||||
const GRID_COLOR = "#CCCCCC";
|
const GRID_COLOR = "#444444";
|
||||||
const DEAD_COLOR = "#FFFFFF";
|
const DEAD_COLOR = "#000000";
|
||||||
const ALIVE_COLOR = "#000000";
|
const ALIVE_COLOR = "#FFFFFF";
|
||||||
|
|
||||||
const universe = Universe.new();
|
const universe = Universe.new();
|
||||||
const width = universe.width();
|
const width = universe.width();
|
||||||
|
|
Loading…
Reference in a new issue