tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
17
Task/Pinstripe-Display/Tcl/pinstripe-display.tcl
Normal file
17
Task/Pinstripe-Display/Tcl/pinstripe-display.tcl
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package require Tcl 8.5
|
||||
package require Tk 8.5
|
||||
|
||||
wm attributes . -fullscreen 1
|
||||
pack [canvas .c -highlightthick 0] -fill both -expand 1
|
||||
set colors {black white}
|
||||
|
||||
set dy [expr {[winfo screenheight .c]/4}]
|
||||
set y 0
|
||||
foreach dx {1 2 3 4} {
|
||||
for {set x 0} {$x < [winfo screenwidth .c]} {incr x $dx} {
|
||||
.c create rectangle $x $y [expr {$x+$dx}] [expr {$y+$dy}] \
|
||||
-fill [lindex $colors 0] -outline {}
|
||||
set colors [list {*}[lrange $colors 1 end] [lindex $colors 0]]
|
||||
}
|
||||
incr y $dy
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue