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

Method addBackgroundColor

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

Source from the content-addressed store, hash-verified

55 }
56
57 public addBackgroundColor(x1: number, x2: number, y: number, color: Color): boolean{
58 return this.addTwoTags(x1, x2, y, "<span style=\"background-color:" + color.getColorString() + "\">", "</span>");
59 }
60
61 public addBold(x1: number, x2: number, y: number): boolean{
62 return this.addTwoTags(x1, x2, y, "<b>", "</b>");

Callers 8

updateMethod · 0.80
drawMethod · 0.80
drawDarkMethod · 0.80
updateMethod · 0.80
drawFinColorMethod · 0.80
renderMethod · 0.80
drawWaysMethod · 0.80
drawLavaMethod · 0.80

Calls 2

addTwoTagsMethod · 0.95
getColorStringMethod · 0.80

Tested by

no test coverage detected