Options
All
  • Public
  • Public/Protected
  • All
Menu

Module deck.gl/src

Index

Functions

RGBASeriestoIntSeries

  • Convert 4 individual RGBA Series or values to a RGBA Integer Series to be consumed directly by color buffers

    Parameters

    • r: number | Series<IndexType>

      Series or number for the color red (valid values [0,255])

    • g: number | Series<IndexType>

      Series or number for the color red (valid values [0,255])

    • b: number | Series<IndexType>

      Series or number for the color red (valid values [0,255])

    • a: number | Series<IndexType>

      Series or number for the color red (valid values [0,255])

    • size: number = 1

      optional size of the series, if all of the r,g,b,a arguments are numbers. default is 1

    Returns Uint32Series

    Uint32Series containing RGBA integer values

mapValuesToColorSeries

  • mapValuesToColorSeries(values: Series<IndexType>, domain: number[], colors: number[] | string[] | number[][], nullColor?: number | number[]): Uint32Series
  • Helper function for quickly creating a cudf color Series based on color bins provided

    Parameters

    • values: Series<IndexType>
    • domain: number[]
    • colors: number[] | string[] | number[][]

      possible input values: - array of rgba arrays - array of rgb arrays (a defaults to 255) - array of 32bit rgba integers - array of hex color strings

    • nullColor: number | number[] = ...

    Returns Uint32Series