summaryrefslogtreecommitdiff
path: root/rotord/src/rotor.h
diff options
context:
space:
mode:
authorTim Redfern <tim@herge.(none)>2013-07-31 17:08:31 +0100
committerTim Redfern <tim@herge.(none)>2013-07-31 17:08:31 +0100
commit6459c5b29a3b9600207533cba5a674b90edd509d (patch)
treefeccecd4d2daa1de6ae039f5e8237258ea9711c5 /rotord/src/rotor.h
parent4bbda36eb05617b5ed623ed144c811be1e77c437 (diff)
shape node finished
Diffstat (limited to 'rotord/src/rotor.h')
-rwxr-xr-xrotord/src/rotor.h9
1 files changed, 9 insertions, 0 deletions
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;
};