Skip to content
This repository was archived by the owner on Jun 14, 2023. It is now read-only.

Commit 9803f58

Browse files
committed
Grid layer update
1 parent 073c122 commit 9803f58

File tree

1 file changed

+2
-2
lines changed
  • metacitygl/extensions/metacity/layers

1 file changed

+2
-2
lines changed

metacitygl/extensions/metacity/layers/grid.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ export class GridLayer extends Layer {
3333
if (!this.context)
3434
return;
3535

36-
const c = MetacityGL.Utils.Color.colorHexToArr(this.colorPlaceholder);
36+
const c = this.colorPlaceholder;
3737
for (let tile of this.layout.tiles) {
38-
const cOff = (Math.random() - 1.0) * 15;
38+
const cOff = ((Math.random() - 1.0) * 15 / 255);
3939
const placeholder = MetacityGL.Graphics.Models.TileModel.create({
4040
center: [(tile.x + 0.5) * this.layout.tileWidth, (tile.y + 0.5) * this.layout.tileHeight, 0],
4141
width: this.layout.tileWidth * 0.95,

0 commit comments

Comments
 (0)