getSubrangeOfColor

abstract 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.

maxLength

maximum length.

limitByRange

range to limit the search.


getSubrangeOfColor called with maxLength = step and limitByRange = range.

Parameters

color

the color.


abstract fun getSubrangeOfColor(color: ColorType, maxLength: LengthType): ClosedRange<BoundType>?

getSubrangeOfColor called with limitByRange = range.

Parameters

color

the color.

maxLength

maximum length.


abstract fun getSubrangeOfColor(color: ColorType, limitByRange: ClosedRange<BoundType>): ClosedRange<BoundType>?

getSubrangeOfColor called with maxLength = step.

Parameters

color

the color.

limitByRange

: ClosedRange,