next_y: grab the next y value

View source: R/FlowFieldBackgrounds.R

next_yR Documentation

grab the next y value

Description

generates the next points to be used to finish each line segment in the image

Usage

next_y(y1, numPoints, noise, x1, maxLength, curliness)

Arguments

y1

the starting y value

noise

the perlin noise matrix generated by the create() function

x1

the x value associated with the starting y value

maxLength

the largest possible length of a line segment

curliness

the multiplier to determine the angle to direct the line segment

Details

uses perlin noise and a multiplier to generate a segment's endpoint


Theo-Jongerius/FlowFieldBackgrounds documentation built on May 21, 2022, 2:29 a.m.