def _render(self):
if self.set_device_brightness:<EOL><INDENT>level = <NUM_LIT:1.0><EOL><DEDENT>else:<EOL><INDENT>level = self._brightness / <NUM_LIT><EOL><DEDENT>gam, (r, g, b) = self.gamma.get, self.c_order<EOL>for i in range(min(self.numLEDs, len(self._buf) / <NUM_LIT:3>)):<EOL><INDENT>c = [int(level * x) for x in self._colors[i + self._pos]]<EOL>self._buf[i * <NUM_LIT:3>:(i + <NUM_LIT:1>) * <NUM_LIT:3>] = gam(c[r]), gam(c[g]), gam(c[b])<EOL><DEDENT>
Typically called from :py:func:`_compute_packet` this applies
        brightness and gamma correction to the pixels controlled by this
        driver.