babylon.quarks - v0.19.0
    Preparing search index...

    Class Gradient

    Implements

    Index

    Constructors

    • Parameters

      • Optionalcolor: [Vector3, number][]
      • Optionalalpha: [number, number][]

      Returns Gradient

    Properties

    alpha: ContinuousLinearFunction<number>
    color: ContinuousLinearFunction<Vector3>
    type: "function"
    TABLE_SIZE: 257

    Sample count of the tables built by refreshTable.

    Methods

    • Drops the sampled table, so later reads go back to evaluating the keys.

      Returns void

    • Evaluates the gradient keys themselves, ignoring any sampled table.

      Parameters

      Returns Vector4

    • Rebuilds the sampled table when the gradient changed, otherwise does nothing. See PiecewiseBezier.refreshTable — same reasoning, and the same signature check so a gradient edited in an editor is picked up.

      Returns void