Voxel Transfer Function Style

Defines the mapping between voxel values and color and transparency.

Referenced by: Voxel Variable Style

Properties

Property Details
alphaStops[] Describes the transparency stops (transparency mapping).
colorStops[] Describes the color stops defining the color ramp.
interpolation Interpolation mode
Valid values:
  • linear
  • nearest
rangeFilter Defines the range of voxels displayed. Voxels with values outside of this range will be discarded.
stretchRange[] Describes the low and high point for value-to-color mapping.

Example

{
  "interpolation": "nearest",
  "stretchRange": [
    327.131,
    2941.46
  ],
  "colorStops": [
    {
      "color": [
        255,
        255,
        100,
        10
      ],
      "position": 0.25
    },
    {
      "color": [
        10,
        10,
        255,
        10
      ],
      "position": 0.75
    }
  ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.