WebCola
Options
All
  • Public
  • Public/Protected
  • All
Menu

A curve factory for cubic cardinal spline generators.

Hierarchy

Callable

  • Returns a curve generator which renders to the specified context.

    Parameters

    • context: CanvasRenderingContext2D | Path

      A rendering context

    Returns CurveGenerator

Index

Methods

Methods

tension

  • tension(tension: number)
  • Returns a cardinal curve factory with the specified tension in the range [0, 1]. The tension determines the length of the tangents: a tension of one yields all zero tangents, equivalent to curveLinear; a tension of zero produces a uniform Catmull–Rom spline.

    Parameters

    • tension: number

      A constant in the [0, 1] interval.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc