CPCurve
Set of utilities for interpolation functions.
Attributes
- Source
- CPCurve.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
CPCurve.type
Members list
Value members
Concrete methods
Creates a function that produces a color that is a gradient from the given parameters. Each call to the returned function will produce a color that is an incremental shift from color c1
to color c2
.
Creates a function that produces a color that is a gradient from the given parameters. Each call to the returned function will produce a color that is an incremental shift from color c1
to color c2
.
Value parameters
- c1
-
Start of the gradient color.
- c2
-
End of the gradient color.
- steps
-
Number of steps of the gradient. Returned function will cycle back and will start from the beginning of the gradient if it is called more than
steps
times.
Attributes
- Returns
-
Gradient producing function.
- See also
- Source
- CPCurve.scala
Gets a function that is a polynomial Lagrange interpolation for the given set of interpolating points.
Gets a function that is a polynomial Lagrange interpolation for the given set of interpolating points.
Value parameters
- points
-
Lagrange interpolation points (abscissas and function values).
Attributes
- Returns
-
Polynomial Lagrange interpolation for the given set of interpolating points.
- See also
- Source
- CPCurve.scala
Gets a linear gradient function for given two values.
Gets a linear gradient function for given two values.
Value parameters
- f1
-
Inclusive start of the gradient.
- f2
-
Inclusive end of the gradient.
- steps
-
Number of steps in gradient interpolation.
Attributes
- Returns
-
Linear gradient function for given two values.
- Source
- CPCurve.scala