Skip to content

Commit

Permalink
Change defaults for text opacity and padding
Browse files Browse the repository at this point in the history
  • Loading branch information
ricochet1k committed Apr 6, 2017
1 parent c5f64ca commit 24b8f70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/room.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export class Room {

switch (v.t) {
case 't': // text
alpha = def(v.s.opacity, 0.5);
alpha = def(v.s.opacity, 1);
let textStyle = new PIXI.TextStyle();
textStyle.fill = parseColor(def(v.s.color, '#ffffff'));
textStyle.stroke = v.s.stroke? parseColor(v.s.stroke) : undefined;
Expand All @@ -139,7 +139,7 @@ export class Room {
// def({baseline: 1, middle: 0.5}[baseline], 0), textStyle.align, baseline);

if (background !== undefined) {
let padding = def(v.s.backgroundPadding, 0.15);
let padding = def(v.s.backgroundPadding, 0.3);
let bg = new PIXI.Graphics();
bg.beginFill(background);
bg.drawRoundedRect(-padding, -padding, text.width+2*padding, text.height+2*padding, 0.1);
Expand Down

0 comments on commit 24b8f70

Please sign in to comment.