GradientSpec
Source: Gradient.ts
Gradient specification.
Properties
gradient(string, optional) — Name from builtinGradients (case-sensitive). Use rwb, roygb, sinebow, or linear; RWB and ROYGB are also accepted. The linear_color1_color2 form is shorthand for a CustomLinear color list.min(number, optional) — Range start (default -1 when resolved by getGradient). Reversing min and max reverses the colors.max(number, optional) — Range end (default 1 when resolved by getGradient).prop(string, optional) — {AtomSpec} property to use for gradient calculation. E.g., 'b' for temperature factors of a PDB.mid(number, optional) — mid point value for gradient (for rwb)colors(Array.<ColorSpec>, optional) — Custom colors for gradient (for CustomLinear)map(Record.<string, unknown>, optional) — map of a certain AtomSpec property to a color of the form{'prop': 'elem', map:elementColors.greenCarbon}Allows the user to provide a mapping of elements to colors to the colorscheme. This can be done with any properties, and not just 'elem'.
Type
object
- See: