UNPKG

molstar

Version:

A comprehensive macromolecular library.

18 lines (17 loc) 921 B
/** * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose <alexander.rose@weirdbyte.de> */ import { TextureImage } from '../../../mol-gl/renderable/util'; import { ValueCell } from '../../../mol-util'; import { Vec2 } from '../../../mol-math/linear-algebra'; import { ColorListName } from '../../../mol-util/color/lists'; import { ColorListEntry } from '../../../mol-util/color/color'; export interface ControlPoint { x: number; alpha: number; } export declare function getControlPointsFromString(s: string): ControlPoint[]; export declare function getControlPointsFromVec2Array(array: Vec2[]): ControlPoint[]; export declare function createTransferFunctionTexture(controlPoints: ControlPoint[], listOrName: ColorListEntry[] | ColorListName, texture?: ValueCell<TextureImage<Uint8Array>>): ValueCell<TextureImage<Uint8Array>>;