in neopixel.ts [431:445]
private setAllW(white: number) {
if (this._mode !== NeoPixelMode.RGBW)
return;
let br = this.brightness;
if (br < 255) {
white = (white * br) >> 8;
}
let buf = this.buf;
let end = this.start + this._length;
for (let i = this.start; i < end; ++i) {
let ledoffset = i * 4;
buf[ledoffset + 3] = white;
}
}