ソースを参照

Externalize pather color to variable

tags/v0.1.2^2
Shatterbrain 7年前
コミット
c25e348c4a
1個のファイルの変更4行の追加2行の削除
  1. +4
    -2
      src/client/js/components/pather.js

+ 4
- 2
src/client/js/components/pather.js ファイルの表示

@@ -13,7 +13,8 @@ define([


path: [], path: [],


pathColor: 'rgba(255, 255, 255, 0.5)',
pathColor: '0x48edff',
pathAlpha: 0.2,


pathPos: { pathPos: {
x: 0, x: 0,
@@ -50,7 +51,8 @@ define([
y: y, y: y,
sprite: renderer.buildRectangle({ sprite: renderer.buildRectangle({
layerName: 'effects', layerName: 'effects',
alpha: 0.2,
color: this.pathColor,
alpha: this.pathAlpha,
x: (x * scale) + scaleMult, x: (x * scale) + scaleMult,
y: (y * scale) + scaleMult, y: (y * scale) + scaleMult,
w: scale - (scaleMult * 2), w: scale - (scaleMult * 2),


読み込み中…
キャンセル
保存