<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@three3d/volume](./volume.md) &gt; [createImageData3DTextureFromGradient](./volume.createimagedata3dtexturefromgradient.md)

## createImageData3DTextureFromGradient() function

从梯度数据 创建梯度图像 ImageData3DTexture

**Signature:**

```typescript
export declare function createImageData3DTextureFromGradient(gradientData3D: IData3D | IImageData3, options: CreateImageData3DTextureFromGradientOptions): ImageData3DTexture;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  gradientData3D | IData3D \| IImageData3 | 梯度数据 |
|  options | [CreateImageData3DTextureFromGradientOptions](./volume.createimagedata3dtexturefromgradientoptions.md) | 选项 |

**Returns:**

[ImageData3DTexture](./volume.imagedata3dtexture.md)


