No such thing as a small change | |
PerlMonks |
Re: How to get string from array from module?by Gilu (Initiate) |
on Feb 09, 2018 at 09:14 UTC ( [id://1208789]=note: print w/replies, xml ) | Need Help?? |
Ok! Thanks for your help, guys!
I think I got it.
I changed the line in ColorScheme.pm to:
and "fetched" this data in 3DScene.pm like this: And then I was able to retrieve my colors like that: glColor4f( $SELECTED_COLOR->[0],$SELECTED_COLOR->[1],$SELECTED_COLOR->[2] , $volume->color->[3]); It works but I'm not sure if this is the correct way?!
In Section
Seekers of Perl Wisdom
|
|