- Companion:
- class
- Source:
- Image.scala
Type members
Classlikes
Contains the leaves of the Image algebraic data type. Packaged here so they don't pollute the namespace when importing Image to access to the smart constructors.
Contains the leaves of the Image algebraic data type. Packaged here so they don't pollute the namespace when importing Image to access to the smart constructors.
- Source:
- Image.scala
Inherited types
The names of the product elements
The names of the product elements
- Inherited from:
- Mirror
- Source:
- Mirror.scala
Value members
Concrete methods
Interpolate a spline (a curve) that passes through all the given points, using the Catmul Rom formulation (see, e.g., https://en.wikipedia.org/wiki/Cubic_Hermite_spline)
Interpolate a spline (a curve) that passes through all the given points, using the Catmul Rom formulation (see, e.g., https://en.wikipedia.org/wiki/Cubic_Hermite_spline)
The tension can be changed to control how tightly the curve turns. It defaults to 0.5.
The Catmul Rom algorithm requires a point before and after each pair of
points that define the curve. To meet this condition for the first and
last points in points
, they are repeated.
If points
has less than two elements an empty Path
is returned.
- Source:
- Image.scala
Compile an Image
to a doodle.algebra.Picture
Compile an Image
to a doodle.algebra.Picture
- Source:
- Image.scala
Construct an open path of bezier curves that intersects all the given
points. Defaults to catmulRom
with the default tension.
Construct an open path of bezier curves that intersects all the given
points. Defaults to catmulRom
with the default tension.
- Source:
- Image.scala