color-wheel_2009


Information

Created with NetLogo version NetLogo 4.0.4
Running with NetLogoLite.jar version 404.


WHAT IS IT?


An HSB color-wheel demo
<info>
<summary>An HSB color model color wheel</summary>
<copy>Copyright (C) 2005 James P. Steiner</copy>
</info>

Procedures

NetLogo Version: NetLogo 4.0.4

to-report update-colors
   ask patches
   [ if self != patch 0 0
     [ let hh towardsxy 0 0 / 360 * 255
       let bb distancexy 0 0 / max-pxcor * 1 * 255
       ;;let ss abs sin (( tt * .125 - int (tt * .125)) *  360)
       set pcolor pick-hsb hh saturation bb
     ]
   ]
   tick
   report true
end

to-report pick-hsb [ hh ss bb ]
   report ifelse-value ( approximate? )
             [ approximate-hsb hh ss bb ]
             [ hsb hh ss bb ]
end
   
   


                    


Download Link

View or download the complete model file (to download: right-click, save-link-as):
-- Download color-wheel_2009 --