mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-06 21:04:16 +02:00
Use non-static mix function instead
This commit is contained in:
parent
45601aeae5
commit
ef14ccf521
1 changed files with 1 additions and 1 deletions
|
|
@ -268,7 +268,7 @@ export default class DhTokenPlaceable extends foundry.canvas.placeables.Token {
|
|||
const x = mark * widthUnit;
|
||||
const marked = mark < Math.ceil(data.value);
|
||||
const remainder = mark === Math.ceil(data.value) - 1 ? data.value % 1 : 0;
|
||||
const color = !marked ? emptyColor : remainder ? Color.mix(emptyColor, fillColor, remainder) : fillColor;
|
||||
const color = !marked ? emptyColor : remainder ? emptyColor.mix(fillColor, remainder) : fillColor;
|
||||
if (mark === 0 || mark === sections.length - 1) {
|
||||
bar.beginFill(color, marked ? 1.0 : 0.5).drawRect(x, 0, widthUnit, bh, 2 * s); // Would like drawRoundedRect, but it's very troublsome with the corners. Leaving for now.
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue