def denormalize(coordinate: float, length: int) -> int:
    """Convert a normalized float coordinate between 0 and 1 to a pixel coordinate"""
    if not (0 <= coordinate <= 1):
        raise ValueError('Coordinate exceeds bounds')
    return int(coordinate * length)