def gammacorrectbyte(lumbyte: int,
             gamma: float) -> int:
    """Apply a gamma adjustment
        to a byte

    Args:
        lumbyte: int value

        gamma: float gamma adjust

    Returns:
        unsigned gamma adjusted byte
    """
    return int(((lumbyte / 255) ** gamma) * 255)