aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/rgb_color.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/rgb_color.cpp')
-rw-r--r--src/utils/rgb_color.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/utils/rgb_color.cpp b/src/utils/rgb_color.cpp
index 04c10ba5..d470d495 100644
--- a/src/utils/rgb_color.cpp
+++ b/src/utils/rgb_color.cpp
@@ -28,8 +28,13 @@
namespace usdx
{
- RgbColor::RgbColor(float red, float green, float blue) :
- red(red), green(green), blue(blue)
+ RgbColor::RgbColor(int red, int green, int blue)
+ : red(red / 255.0f), green(green / 255.0f), blue(blue / 255.0f)
+ {
+ }
+
+ RgbColor::RgbColor(float red, float green, float blue)
+ : red(red), green(green), blue(blue)
{
}