Posted to tcl by kbk at Wed Jan 09 22:37:24 GMT 2019view raw

  1. package require Tk
  2. image create photo scene -width 300 -height 200
  3. grid [label .l -image scene]
  4.  
  5. scene put white -to 0 0 300 200
  6.  
  7. for {set i 100} {$i < 200} {incr i} {
  8. scene put blue -to $i 100 [expr {$i + 1}] 101
  9. }
  10.