From fb23c8d47f6dcef429423256d8dddcc0f7184fc4 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Sun, 4 Jun 2023 13:02:14 +0200 Subject: 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 --- colorscale.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'colorscale.cpp') 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(this->r) / 255.0f); - *g = round(static_cast(this->g) / 255.0f); - *b = round(static_cast(this->b) / 255.0f); + *r = static_cast(this->r) / 255.0f; + *g = static_cast(this->g) / 255.0f; + *b = static_cast(this->b) / 255.0f; } void Color::getRgbF(float *r, float *g, float *b, float *a) const { getRgbF(r, g, b); - *a = round(static_cast(this->a) / 255.0f); + *a = static_cast(this->a) / 255.0f; } void Color::setRgb(int r, int g, int b) -- cgit v1.2.3