# Path: mugen/video/segments/ColorSegment.py
# class ColorSegment(Segment, ColorClip):
#     """
#     A segment with a color
#     """
# 
#     color: str
# 
#     @convert_color_to_hex_code(["color"])
#     def __init__(
#         self,
#         color: str,
#         duration: float = 1,
#         size: Optional[Tuple[int, int]] = (300, 300),
#         **kwargs
#     ):
#         """
#         Parameters
#         ----------
#         color
#             hex code of the color, i.e. #000000 for black.
#             OR the special inputs 'black' and 'white'.
#         """
#         super().__init__(
#             size, conversion.hex_to_rgb(color), duration=duration, **kwargs
#         )
# 
#         self.color = color
#         self.fps = Segment.DEFAULT_VIDEO_FPS
# 
#     @property
#     def name(self):
#         return self.color
# 
#     def trailing_buffer(self, duration) -> "ColorSegment":
#         return ColorSegment(self.color, duration, self.size)


from mugen.video.segments.ColorSegment import ColorSegment


def get_black_segment() -> ColorSegment:
    return ColorSegment("black", 1, (720, 540))


def get_white_segment() -> ColorSegment:

# Path: mugen/video/segments/ColorSegment.py
# class ColorSegment(Segment, ColorClip):
#     """
#     A segment with a color
#     """
# 
#     color: str
# 
#     @convert_color_to_hex_code(["color"])
#     def __init__(
#         self,
#         color: str,
#         duration: float = 1,
#         size: Optional[Tuple[int, int]] = (300, 300),
#         **kwargs
#     ):
#         """
#         Parameters
#         ----------
#         color
#             hex code of the color, i.e. #000000 for black.
#             OR the special inputs 'black' and 'white'.
#         """
#         super().__init__(
#             size, conversion.hex_to_rgb(color), duration=duration, **kwargs
#         )
# 
#         self.color = color
#         self.fps = Segment.DEFAULT_VIDEO_FPS
# 
#     @property
#     def name(self):
#         return self.color
# 
#     def trailing_buffer(self, duration) -> "ColorSegment":
#         return ColorSegment(self.color, duration, self.size)


# Path: tests/unit/video/segments/test_ColorSegment.py
from mugen.video.segments.ColorSegment import ColorSegment



def get_black_segment() -> ColorSegment:
    return ColorSegment("black", 1, (720, 540))


def get_white_segment() -> ColorSegment:

    return ColorSegment("white", 1, (1920, 1080))