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.cpp | |
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.cpp')
-rw-r--r-- | colorscale.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/colorscale.cpp b/colorscale.cpp index 32d0f25..ec52d2d 100644 --- a/colorscale.cpp +++ b/colorscale.cpp @@ -37,15 +37,15 @@ Color::Color(float r, float g, float b, float a) void Color::getRgbF(float *r, float *g, float *b) const { - *r = round(static_cast<float>(this->r) / 255.0f); - *g = round(static_cast<float>(this->g) / 255.0f); - *b = round(static_cast<float>(this->b) / 255.0f); + *r = static_cast<float>(this->r) / 255.0f; + *g = static_cast<float>(this->g) / 255.0f; + *b = static_cast<float>(this->b) / 255.0f; } void Color::getRgbF(float *r, float *g, float *b, float *a) const { getRgbF(r, g, b); - *a = round(static_cast<float>(this->a) / 255.0f); + *a = static_cast<float>(this->a) / 255.0f; } void Color::setRgb(int r, int g, int b) |