diff options
author | Samuel Fadel <samuel@nihil.ws> | 2023-06-04 13:02:14 +0200 |
---|---|---|
committer | Samuel Fadel <samuel@nihil.ws> | 2023-06-04 13:02:14 +0200 |
commit | fb23c8d47f6dcef429423256d8dddcc0f7184fc4 (patch) | |
tree | 34e0032f28df5807e4abd90d6b1b4baad24d2991 /colorscale.h | |
parent | 0f34fd437efb936ef29ac91186321aa7251fbfb1 (diff) |
Further advances in nuklear port.
Rendering now looks similar to Qt version, needs a few tweaks:
* Proper multisampling
* Background
Missing features:
* Barcharts
* Interactivity (e.g. brushing/linking in all objects)
* History view of interactions
Diffstat (limited to 'colorscale.h')
-rw-r--r-- | colorscale.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/colorscale.h b/colorscale.h index c50deb0..e2854bd 100644 --- a/colorscale.h +++ b/colorscale.h @@ -44,7 +44,7 @@ public: int numColors() const { return m_colors.size(); } template<typename OutputIterator> - void sample(int samples, OutputIterator it) const; + void sample(std::size_t samples, OutputIterator it) const; static Color lerp(const Color &c1, const Color &c2, float _t); @@ -54,7 +54,7 @@ protected: }; template<typename OutputIterator> -void ColorScale::sample(int samples, OutputIterator it) const +void ColorScale::sample(std::size_t samples, OutputIterator it) const { if (samples < 1) { return; |