Legend of the Green Dragon

Color

Table of Contents

$colors  : array<string|int, mixed>
Array of codes format code => css tag.
addColors()  : $this
Add more colors to game.
getColors()  : array<string|int, mixed>
Get array of colors.
setColors()  : $this
Remplace original game colors.

Properties

$colors

Array of codes format code => css tag.

protected array<string|int, mixed> $colors = ['1' => 'colDkBlue', '2' => 'colDkGreen', '3' => 'colDkCyan', '4' => 'colDkRed', '5' => 'colDkMagenta', '6' => 'colDkYellow', '7' => 'colDkWhite', '8' => 'colLime', '!' => 'colLtBlue', '@' => 'colLtGreen', '#' => 'colLtCyan', '$' => 'colLtRed', '%' => 'colLtMagenta', '^' => 'colLtYellow', '&' => 'colLtWhite', 'q' => 'colDkOrange', 'Q' => 'colLtOrange', ')' => 'colLtBlack', 'R' => 'colRose', 'V' => 'colBlueViolet', 'v' => 'coliceviolet', 'g' => 'colXLtGreen', 'G' => 'colXLtGreen', 'T' => 'colDkBrown', 't' => 'colLtBrown', '~' => 'colBlack', 'e' => 'colDkRust', 'E' => 'colLtRust', 'j' => 'colMdGrey', 'J' => 'colMdBlue', 'l' => 'colDkLinkBlue', 'L' => 'colLtLinkBlue', 'x' => 'colburlywood', 'X' => 'colbeige', 'y' => 'colkhaki', 'Y' => 'coldarkkhaki', 'k' => 'colaquamarine', 'K' => 'coldarkseagreen', 'p' => 'collightsalmon', 'P' => 'colsalmon', 'm' => 'colwheat', 'M' => 'coltan']

Methods

addColors()

Add more colors to game.

public addColors(array<string|int, mixed> $colors) : $this
Parameters
$colors : array<string|int, mixed>
Return values
$this

getColors()

Get array of colors.

public getColors() : array<string|int, mixed>
Return values
array<string|int, mixed>

setColors()

Remplace original game colors.

public setColors(array<string|int, mixed> $colors) : $this
Parameters
$colors : array<string|int, mixed>
Return values
$this

Search results