# Path: mugen/video/sources/ColorSource.py
# class ColorSource(Source):
#     """
#     An color source for sampling color segments
#     """
# 
#     def __init__(self, color: str, **kwargs):
#         """
#         Parameters
#         ----------
#         color
#             hex code of the color, i.e. #000000 for black.
#             OR the special inputs 'black' and 'white'.
#         """
#         super().__init__(**kwargs)
#         self.segment = ColorSegment(color)
# 
#     @property
#     def color(self):
#         return self.segment.color
# 
#     @property
#     def name(self):
#         return self.segment.name
# 
#     def sample(self, duration: float) -> ColorSegment:
#         """
#         Samples an ColorSegment with the specified duration
# 
#         Parameters
#         ----------
#         duration
#             duration of the color to sample
#         """
#         return self.segment.set_duration(duration)


from mugen.video.sources.ColorSource import ColorSource


def get_black_source() -> ColorSource:
    return ColorSource("black")


def get_white_source() -> ColorSource:
    return ColorSource("white")


def get_orange_source() -> ColorSource:
    return ColorSource("#FFA500")



# Path: mugen/video/sources/ColorSource.py
# class ColorSource(Source):
#     """
#     An color source for sampling color segments
#     """
# 
#     def __init__(self, color: str, **kwargs):
#         """
#         Parameters
#         ----------
#         color
#             hex code of the color, i.e. #000000 for black.
#             OR the special inputs 'black' and 'white'.
#         """
#         super().__init__(**kwargs)
#         self.segment = ColorSegment(color)
# 
#     @property
#     def color(self):
#         return self.segment.color
# 
#     @property
#     def name(self):
#         return self.segment.name
# 
#     def sample(self, duration: float) -> ColorSegment:
#         """
#         Samples an ColorSegment with the specified duration
# 
#         Parameters
#         ----------
#         duration
#             duration of the color to sample
#         """
#         return self.segment.set_duration(duration)


# Path: tests/unit/video/sources/test_ColorSource.py
from mugen.video.sources.ColorSource import ColorSource



def get_black_source() -> ColorSource:
    return ColorSource("black")


def get_white_source() -> ColorSource:
    return ColorSource("white")


def get_orange_source() -> ColorSource:
    return ColorSource("#FFA500")



def get_purple_source() -> ColorSource: