Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Draw-a-sphere/Tcl/draw-a-sphere.tcl
Normal file
9
Task/Draw-a-sphere/Tcl/draw-a-sphere.tcl
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
proc grey {n} {format "#%2.2x%2.2x%2.2x" $n $n $n}
|
||||
|
||||
pack [canvas .c -height 400 -width 640 -background white]
|
||||
|
||||
for {set i 0} {$i < 255} {incr i} {
|
||||
set h [grey $i]
|
||||
.c create arc [expr {100+$i/5}] [expr {50+$i/5}] [expr {400-$i/1.5}] [expr {350-$i/1.5}] \
|
||||
-start 0 -extent 359 -fill $h -outline $h
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue