mirror of
https://github.com/gwm17/implot.git
synced 2024-11-26 20:28:50 -05:00
Merge branch 'master' of https://github.com/epezent/implot
This commit is contained in:
commit
11ba96f088
|
@ -3374,7 +3374,7 @@ void ShowColormapScale(double scale_min, double scale_max, float height) {
|
|||
void SetColormap(ImPlotColormap colormap, int samples) {
|
||||
static int csizes[ImPlotColormap_COUNT] = {10,9,9,12,11,11,11,11,11,11};
|
||||
static OffsetCalculator<ImPlotCol_COUNT> coffs(csizes);
|
||||
static ImVec4 cdata[] {
|
||||
static ImVec4 cdata[] = {
|
||||
// ImPlotColormap_Default // X11 Named Colors
|
||||
ImVec4(0.0f, 0.7490196228f, 1.0f, 1.0f), // Blues::DeepSkyBlue,
|
||||
ImVec4(1.0f, 0.0f, 0.0f, 1.0f), // Reds::Red,
|
||||
|
|
2
implot.h
2
implot.h
|
@ -303,7 +303,7 @@ void SetColormap(ImPlotColormap colormap, int samples = 0);
|
|||
void SetColormap(const ImVec4* colors, int num_colors);
|
||||
// Returns the size of the current colormap
|
||||
int GetColormapSize();
|
||||
// Returns a color from the Color map given an index > 0 (modulo will be performed)
|
||||
// Returns a color from the Color map given an index >= 0 (modulo will be performed)
|
||||
ImVec4 GetColormapColor(int index);
|
||||
// Linearly interpolates a color from the current colormap given t between 0 and 1.
|
||||
ImVec4 LerpColormap(float t);
|
||||
|
|
Loading…
Reference in New Issue
Block a user