MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / addColor

Method addColor

code/main/RenderArea.ts:71–73  ·  view source on GitHub ↗
(x1: number, x2: number, y: number, color: Color)

Source from the content-addressed store, hash-verified

69 }
70
71 public addColor(x1: number, x2: number, y: number, color: Color): boolean{
72 return this.addTwoTags(x1, x2, y, "<span style=\"color:" + color.getColorString() + "\">", "</span>");
73 }
74
75 public addComment(x: number, y: number, text: string, otherClass: string): boolean{
76 return this.addTag(new RenderTag(x, "<span class=\"aroundComment " + otherClass + "\"><span class=\"comment englishComment\">" + text + "</span></span>"), y);

Callers 9

drawPlayerSpellsMethod · 0.45
drawGreenMethod · 0.45
drawWarningMethod · 0.45
addColorsFirstLayerMethod · 0.45
addColorsSecondLayerMethod · 0.45
addColorsThirdLayerMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45

Calls 2

addTwoTagsMethod · 0.95
getColorStringMethod · 0.80

Tested by

no test coverage detected