(colors: TerminalColors, index: number)
| 264 | } |
| 265 | |
| 266 | function paletteColor(colors: TerminalColors, index: number): RGBA { |
| 267 | const value = colors.palette[index] |
| 268 | return value ? RGBA.fromHex(value) : ansiToRgba(index) |
| 269 | } |
| 270 | |
| 271 | function splashShadow(indexed: RGBA[], base: RGBA, overlay: RGBA, value: number): RGBA { |
| 272 | const mixed = tint(base, overlay, value) |