background-sparkle


Information

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


WHAT IS IT?


-------
A short sample code to create dithered bands of color in the patches

Procedures

NetLogo Version: NetLogo 4.0.4

to do
   let dither  10
   let bands 4
   let offset .5
   let bandwidth world-height / bands
   
   ask patches
   [ let base-color item 
      ( max (list 0 (min (list (bands - 1)
      ((floor ( offset + (pycor + random dither - 1)/  bandwidth ) ) mod bands) 
      ))))
      reverse [ violet green blue yellow violet ]
     let brightness (max (list (min (list (8 - random-float 2) 10 )) 0))
     
     ; (max (list 0 min (list 9.9 (5 + (1 * cos (360 * ((pycor + random dither - 1) / world-height )) ) ) )))
     
     set pcolor base-color + brightness - 5
   ]
end
   

                    


Download Link

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