Discover Packages
github.com/keep94/marvin2
scale
package
Version:
v0.9.0
Opens a new window with list of versions in this module.
Published: Sep 2, 2023
License: BSD-3-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package scale handles color scales and other types of scales
CEntry represents an entry in a color scale
Color represents an immutable color scale.
Entries must be sorted by Value in ascending order.
Get converts x to a color. The returned color corresponds to the
smallest value greater than or equal to x. If there are no such values,
Get() returns the last color in this scale.
Interpolate works like Get except that it interpolates between the colors
if x falls between two values in this scale.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.