/** * Copyright (c) 2018-2025 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose * @author David Sehnal * @author Gianluca Tomasello */ import { ValueCell } from '../../mol-util/index.js'; import { TextureImage } from '../../mol-gl/renderable/util.js'; import { Color } from '../../mol-util/color/index.js'; import { Vec2, Vec3, Vec4 } from '../../mol-math/linear-algebra.js'; import { LocationIterator } from '../util/location-iterator.js'; import { ColorTheme, ColorVolume } from '../../mol-theme/color.js'; import { Texture } from '../../mol-gl/webgl/texture.js'; export type ColorTypeLocation = 'uniform' | 'instance' | 'group' | 'groupInstance' | 'vertex' | 'vertexInstance'; export type ColorTypeGrid = 'volume' | 'volumeInstance'; export type ColorTypeDirect = 'direct'; export type ColorType = ColorTypeLocation | ColorTypeGrid | ColorTypeDirect; export type ColorData = { uColor: ValueCell; tColor: ValueCell>; tColorGrid: ValueCell; uPaletteDomain: ValueCell; uPaletteDefault: ValueCell; tPalette: ValueCell>; uColorTexDim: ValueCell; uColorGridDim: ValueCell; uColorGridTransform: ValueCell; dColorType: ValueCell; dUsePalette: ValueCell; }; export declare function createColors(locationIt: LocationIterator, positionIt: LocationIterator, colorTheme: ColorTheme, colorData?: ColorData): ColorData; export declare function createValueColor(value: Color, colorData?: ColorData): ColorData; export declare function createTextureColor(colors: TextureImage, type: ColorType, colorData?: ColorData): ColorData; export declare function createGridColor(grid: ColorVolume, type: ColorType, colorData?: ColorData): ColorData;