;+ ; ;thm_ui_draw_object method: hueRotation ; ;This rotates the hue of of the input color by 120 degrees ;The output is the rotated color ; ;$LastChangedBy: pcruce $ ;$LastChangedDate: 2010-08-25 18:05:01 -0700 (Wed, 25 Aug 2010) $ ;$LastChangedRevision: 7774 $ ;$URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/thmsoc/tags/tdas_8_00/idl/themis/thm_ui_new/display/draw_object/thm_ui_draw_object__huerotation.pro $ ;- function thm_ui_draw_object::hueRotation,color compile_opt idl2 color_convert,color[0],color[1],color[2],hue,light,sat,/rgb_hls hue = (hue + 120) mod 360 light = 1 - light color_convert,hue,light,sat,red,grn,blu,/hls_rgb return,[red,grn,blu] end