Skip to main content

brightness

Function brightness 

Source
pub fn brightness(ctx: &Ctx, value: u8) -> Result<()>
Expand description

Set the panel’s brightness.

The brightness frame, then the latches that commit it, in the order and with the gap a refresh uses: one latch with no gap leaves a held frame at its old brightness (docs/rendering.md).

§Errors

Fails if the link cannot be opened.