Changing text color in a window? (Solved)

I'm trying to change text colour in a window but whatever value I put in it just goes black? I've highlighted the troublesome bit in the code below. Any help would be appreciated!

Spoiler: Script
Window_Info.prototype.refresh = function() {
var x = this.textPadding();
var width = this.contents.width - this.textPadding() * 2;
this.contents.clear();
this.makeFontBigger();
//TITLE
this.changeTextColor(14);
this.drawText("DAY END", 0, 0, 1000, 1);
//Info
this.makeFontSmaller();
this.drawText("Current Day:" , 0, 80, 1000, 1);
this.drawText(weekDay[$gameVariables.value(6)], 200, 80, 1000, 1);

};
Try put
Code:
this.changeTextColor(this.textColor(14));
Try put
Code:
this.changeTextColor(this.textColor(14));

Thank you - That worked perfectly!
I'm trying to change text colour in a window but whatever value I put in it just goes black? I've highlighted the troublesome bit in the code below. Any help would be appreciated!

Spoiler: Script
Window_Info.prototype.refresh = function() {
var x = this.textPadding();
var width = this.contents.width - this.textPadding() * 2;
this.contents.clear();
this.makeFontBigger();
//TITLE
this.changeTextColor(14);
this.drawText("DAY END", 0, 0, 1000, 1);
//Info
this.makeFontSmaller();
this.drawText("Current Day:" , 0, 80, 1000, 1);
this.drawText(weekDay[$gameVariables.value(6)], 200, 80, 1000, 1);

};

''this.changeTextColor()' require not a number but 'textColor()'.
'textColor()' is a method.
So, you can correct hilighted method as below.

Code:
this.changeTextColor(this.textColor(14));

Hope this reply help !

Edit:

I'm too late! Excuse me.
I'm too late! Excuse me.

The explanation was really helpful anyhow! Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/changing-text-color-in-a-window-solved.82884/