next_x: grab the next x value

View source: R/FlowFieldBackgrounds.R

next_xR Documentation

grab the next x value

Description

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

Usage

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

Arguments

x1

the starting x value

noise

the perlin noise matrix generated by the create() function

y1

the y value associated with the starting x 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.