groupGroupsOfPixelsAlongLine

fun AnimationManager.groupGroupsOfPixelsAlongLine(line: Equation, rotation: RadiansRotation, offset: AbsoluteDistance, influenceDistance: Double, movementPerIteration: Double, groupSpacing: Double): PixelModificationLists

Group pixels into groups spaced apart by groupSpacing based on their location along the X axis and distance from a line after an offset and a rotation are performed

Return

Lists of pixels to modify in each iteration as a PixelModificationLists

Parameters

line

The line that will determine if a pixel is close enough to be affected

rotation

How to rotate the animation

offset

How to offset the animation

influenceDistance

How far a pixel can be from the line before it doesn't get affected

movementPerIteration

How far to move along the X axis in each iteration

groupSpacing

How far apart along the X axis each group should be