def METHOD_NAME(self, main):
    """
    Args:
        main (ModuleBase):
    Returns:
        float: 0 to 1.
    """
    mask = self.match_color(main)
    middle = np.mean(np.where(mask)[0])
    position = (middle - self.length / 2) / (self.total - self.length)
    position = position if position > 0 else 0.0
    position = position if position < 1 else 1.0
    logger.attr(self.name, f'{position:.2f} ({middle}-{self.length / 2})/({self.total}-{self.length})')
    return position