groupPixelsAlongLine

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

Group pixels 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