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

A curve factory for cubic Catmull–Rom 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

alpha

  • alpha(alpha: number)
  • Returns a cubic Catmull–Rom curve factory with the specified alpha in the range [0, 1]. If alpha is zero, produces a uniform spline, equivalent to curveCardinal with a tension of zero; if alpha is one, produces a chordal spline; if alpha is 0.5, produces a centripetal spline. Centripetal splines are recommended to avoid self-intersections and overshoot.

    Parameters

    • alpha: 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