Rivet Example" ?>
<? puts "<table>\n"

for {set i 1} { $i <= 8 } {incr i} {
    puts "<tr>\n"
    for {set j 1} {$j <= 8} {incr j} {
	set num [ expr $i * $j * 4 - 1]
	puts [ format "<td bgcolor=%2x%2x%2x > $num $num $num </td>\n" \
      $num $num $num ]
    }
    puts "</tr>\n"
}

puts "</table>\n" ?>
} for {set i 1} { $i <= 8 } {incr i} { puts "\n" for {set j 1} {$j <= 8} {incr j} { set num [ expr {$i * $j * 4 - 1} ] puts [ format " $num $num $num \n" $num $num $num ] } puts "\n" } puts "\n" ?>