From 6459c5b29a3b9600207533cba5a674b90edd509d Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 31 Jul 2013 17:08:31 +0100 Subject: shape node finished --- rotord/src/rotor.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'rotord/src/rotor.h') diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h index ac11b9c..62dfb39 100755 --- a/rotord/src/rotor.h +++ b/rotord/src/rotor.h @@ -174,6 +174,15 @@ namespace Rotor { g=(uint8_t)ofHexToChar(s.substr(2,2)); b=(uint8_t)ofHexToChar(s.substr(4,2)); } + float Rfloat(){ + return ((float)r)/255.0f; + } + float Gfloat(){ + return ((float)g)/255.0f; + } + float Bfloat(){ + return ((float)b)/255.0f; + } uint8_t r,g,b; }; -- cgit v1.2.3