MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / toOpaqueRgbString

Function toOpaqueRgbString

src/utils/snapCapture.ts:69–71  ·  view source on GitHub ↗
(color: RgbaColor)

Source from the content-addressed store, hash-verified

67}
68
69function toOpaqueRgbString(color: RgbaColor): string {
70 return `rgb(${Math.round(color.r)}, ${Math.round(color.g)}, ${Math.round(color.b)})`
71}
72
73function getEffectiveBackground(el: HTMLElement | null): string {
74 const fallbackBackground: RgbaColor = { r: 17, g: 17, b: 17, a: 1 }

Callers 1

getEffectiveBackgroundFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected