get Subrange Of Color
open override fun getSubrangeOfColor(color: ColorType, maxLength: LengthType, limitByRange: ClosedRange<BoundType>): ClosedRange<BoundType>?
Performs a search for a subrange with color color limited by limitByRange. If a subrange with length >= maxLength was found then returns a subrange from foundSubrange.start to foundSubrange.start + maxLength (involving math and rangeFactory). Otherwise returns first non-empty subrange with color color inside limitByRange or null.
Parameters
color
the color.
max Length
maximum length.
limit By Range
range to limit the search.
getSubrangeOfColor called with maxLength = step and limitByRange = range.
Parameters
color
the color.
open override fun getSubrangeOfColor(color: ColorType, maxLength: LengthType): ClosedRange<BoundType>?
getSubrangeOfColor called with limitByRange = range.
Parameters
color
the color.
max Length
maximum length.
open override fun getSubrangeOfColor(color: ColorType, limitByRange: ClosedRange<BoundType>): ClosedRange<BoundType>?
getSubrangeOfColor called with maxLength = step.
Parameters
color
the color.
limit By Range
: ClosedRange