Class in reactor_managers.js
ColorManager
33 public functions in 4 groups · show internal (_) functions
Familiar territory. ColorManager keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.
Quick Reference
Setup & Creation 1
| loadWindowskin() | Loads the windowskin. |
Getting Information 3
| textColor() | Each read is a getImageData allocation plus string building, and windows that redraw every frame ask for many… |
| itemBackColor1() | Item back color1. |
| itemBackColor2() | Item back color2. |
Actions 1
| clearTextColorCache() | Clears the text color cache. |
Other 28
| legacyTextPaint() | Ordinary CSS colours remain the public contract. |
| readTextColor() | Read text color. |
| normalColor() | Normal color. |
| systemColor() | System color. |
| crisisColor() | Crisis color. |
| deathColor() | Death color. |
| gaugeBackColor() | Gauge back color. |
| hpGaugeColor1() | Hp gauge color1. |
| hpGaugeColor2() | Hp gauge color2. |
| mpGaugeColor1() | Mp gauge color1. |
| mpGaugeColor2() | Mp gauge color2. |
| mpCostColor() | Mp cost color. |
| powerUpColor() | Power up color. |
| powerDownColor() | Power down color. |
| ctGaugeColor1() | Ct gauge color1. |
| ctGaugeColor2() | Ct gauge color2. |
| tpGaugeColor1() | Tp gauge color1. |
| tpGaugeColor2() | Tp gauge color2. |
| tpCostColor() | Tp cost color. |
| pendingColor() | Pending color. |
| hpColor() | Hp color. |
| mpColor() | Mp color. |
| tpColor() | Tp color. |
| paramchangeTextColor() | Paramchange text color. |
| damageColor() | Damage color. |
| outlineColor() | Outline color. |
| dimColor1() | Dim color1. |
| dimColor2() | Dim color2. |
Setup & Creation
loadWindowskin
static sourceColorManager.loadWindowskin()
Loads the windowskin. (Same as the RPG Maker MZ method of this name.)
Getting Information
textColor
static sourceColorManager.textColor(n)
Each read is a getImageData allocation plus string building, and windows that redraw every frame ask for many colors per row — the victory gauge count-up alone runs about ten per actor per frame, which is enough steady allocation to show up as periodic hitching.
Details
Each read is a getImageData allocation plus string building, and windows that redraw every frame ask for many colors per row — the victory gauge count-up alone runs about ten per actor per frame, which is enough steady allocation to show up as periodic hitching. The palette is fixed once the skin has loaded, so cache per skin instance; swapping skins (or reloading one) replaces the instance and drops the cache with it.
itemBackColor1
static sourceColorManager.itemBackColor1()
Item back color1. (Same as the RPG Maker MZ method of this name.)
itemBackColor2
static sourceColorManager.itemBackColor2()
Item back color2. (Same as the RPG Maker MZ method of this name.)
Actions
clearTextColorCache
static sourceColorManager.clearTextColorCache()
Clears the text color cache. (Same as the RPG Maker MZ method of this name.)
Other
legacyTextPaint
static sourceColorManager.legacyTextPaint(index)
Ordinary CSS colours remain the public contract.
Details
Ordinary CSS colours remain the public contract. A window explicitly carries its palette index separately so duplicate sampled colours still select different gradients, and a plugin's custom CSS stays a flat colour.
readTextColor
static sourceColorManager.readTextColor(n)
Read text color. (Same as the RPG Maker MZ method of this name.)
normalColor
static sourceColorManager.normalColor()
Normal color. (Same as the RPG Maker MZ method of this name.)
systemColor
static sourceColorManager.systemColor()
System color. (Same as the RPG Maker MZ method of this name.)
crisisColor
static sourceColorManager.crisisColor()
Crisis color. (Same as the RPG Maker MZ method of this name.)
deathColor
static sourceColorManager.deathColor()
Death color. (Same as the RPG Maker MZ method of this name.)
gaugeBackColor
static sourceColorManager.gaugeBackColor()
Gauge back color. (Same as the RPG Maker MZ method of this name.)
hpGaugeColor1
static sourceColorManager.hpGaugeColor1()
Hp gauge color1. (Same as the RPG Maker MZ method of this name.)
hpGaugeColor2
static sourceColorManager.hpGaugeColor2()
Hp gauge color2. (Same as the RPG Maker MZ method of this name.)
mpGaugeColor1
static sourceColorManager.mpGaugeColor1()
Mp gauge color1. (Same as the RPG Maker MZ method of this name.)
mpGaugeColor2
static sourceColorManager.mpGaugeColor2()
Mp gauge color2. (Same as the RPG Maker MZ method of this name.)
mpCostColor
static sourceColorManager.mpCostColor()
Mp cost color. (Same as the RPG Maker MZ method of this name.)
powerUpColor
static sourceColorManager.powerUpColor()
Power up color. (Same as the RPG Maker MZ method of this name.)
powerDownColor
static sourceColorManager.powerDownColor()
Power down color. (Same as the RPG Maker MZ method of this name.)
ctGaugeColor1
static sourceColorManager.ctGaugeColor1()
Ct gauge color1. (Same as the RPG Maker MZ method of this name.)
ctGaugeColor2
static sourceColorManager.ctGaugeColor2()
Ct gauge color2. (Same as the RPG Maker MZ method of this name.)
tpGaugeColor1
static sourceColorManager.tpGaugeColor1()
Tp gauge color1. (Same as the RPG Maker MZ method of this name.)
tpGaugeColor2
static sourceColorManager.tpGaugeColor2()
Tp gauge color2. (Same as the RPG Maker MZ method of this name.)
tpCostColor
static sourceColorManager.tpCostColor()
Tp cost color. (Same as the RPG Maker MZ method of this name.)
pendingColor
static sourceColorManager.pendingColor()
Pending color. (Same as the RPG Maker MZ method of this name.)
hpColor
static sourceColorManager.hpColor(actor)
Hp color. (Same as the RPG Maker MZ method of this name.)
mpColor
static sourceColorManager.mpColor(/*actor*/)
Mp color. (Same as the RPG Maker MZ method of this name.)
tpColor
static sourceColorManager.tpColor(/*actor*/)
Tp color. (Same as the RPG Maker MZ method of this name.)
paramchangeTextColor
static sourceColorManager.paramchangeTextColor(change)
Paramchange text color. (Same as the RPG Maker MZ method of this name.)
damageColor
static sourceColorManager.damageColor(colorType)
Damage color. (Same as the RPG Maker MZ method of this name.)
outlineColor
static sourceColorManager.outlineColor()
Outline color. (Same as the RPG Maker MZ method of this name.)
dimColor1
static sourceColorManager.dimColor1()
Dim color1. (Same as the RPG Maker MZ method of this name.)
dimColor2
static sourceColorManager.dimColor2()
Dim color2. (Same as the RPG Maker MZ method of this name.)