Updated 2016-05-03 19:58:51 by gold â–²

Summary edit

Keith Vetter : 2006-08-28 : Here's a visual puzzle: count the number of children in the picture then slide the scale to the other side to swap the top halves. Now how many children are there?

uniquename 2013aug17

Here is a sequence of 3 images showing why ligaments in brains are being sprained.

The first image shows the picture of children as they appear when the GUI first comes up.

You can switch the top-left portion of the picture with the top-right by sliding the 'scale' button from left to right --- as indicated by the second image.

The completed switch is shown in the 3rd image.

For those interested in the programming to move these images around, note that the 'WhereTo' proc, in the code below, is being used to move images 'vc1' and 'vc2'.

Code edit

 ##+##########################################################################
 #
 # Vanishing Child
 # by Keith Vetter, August 28, 2006
 
 package require Tk
 
 set S(title) "Vanishing Child"
 set S(step) 0
 set S(help) {
 Count how many children are in the picture.
 Then slide the scale to the other side to swap the top halves.
 Now how many children are in the picture?}

  proc Hint1 {w} {
  #: Hints: number the childs

    if {$::cb == 0} {.c delete "h"; return}

    $w create text -280  -66 -text  "1" -tag "h r"
    $w create text -240  -20 -text  "2" -tag "h"
    $w create text -200   -1 -text  "3" -tag "h"

    $w create text -140  -40 -text  "4" -tag "h"
    $w create text  -90  -10 -text  "5" -tag "h"

    $w create text  -45  -70 -text  "6" -tag "h r"
    $w create text    5  -25 -text  "7" -tag "h"
    $w create text   45  -10 -text  "8" -tag "h"

    $w create text  115  -60 -text  "9" -tag "h"
    $w create text  150  -10 -text "10" -tag "h"

    $w create text  210  -66 -text "11" -tag "h r"
    $w create text  245  -38 -text "12" -tag "h"
    $w create text  290  -10 -text "13" -tag "h"

    $w create text  -25  100 -text "14" -tag "h"
    $w create text  195   95 -text "15" -tag "h"

    .c itemconfig "r" -fill red
  }

 proc DoDisplay {} {
    global P S
 
    wm title . $S(title)
    canvas .c -width 750 -height 420 -bd 2 -relief ridge -bg green4
    ShadedText .c 0 -120 deepskyblue black \
        -font {Times 42 bold} -anchor s -tag title -text $S(title)
    bind .c <Configure> {ReCenter %W %h %w}
    CreateImages
    
    .c create image $P(vc,x) $P(vc,y) -image ::img::vc -tag vc -anchor nw
    foreach {x0 y0 x1 y1} [.c bbox vc] break
    .c create rect $x0 $y0 [incr x1 -1] [incr y1 -1] -outline black
    .c create image $P(vc1,x1) $P(vc1,y1) -image ::img::vc1 -tag vc1 -anchor nw
    .c create image $P(vc2,x1) $P(vc2,y1) -image ::img::vc2 -tag vc2 -anchor nw
 
    frame .bottom
    scale .sc -from 0 -to 100 -orient h -variable S(step) \
        -command WhereTo -showvalue 0
    button .? -text "?" -command About

    #causes 'expected integer but got "bold"' error on *nix systems.
    #.? config -font "[.? cget -font] bold"

    checkbutton .cb -text "!" -command [list Hint1 .c]

    #causes 'expected integer but got "bold"' error on *nix systems.
    #.cb config -font "[.cb cget -font] bold"

    pack .bottom -side bottom -fill x -expand 1
    pack .sc  -in .bottom -side left -expand 1 -pady 10
    place .?  -in .bottom -relx .99 -rely .5 -anchor e
    place .cb -in .bottom -relx .01 -rely .5 -anchor w
    pack .c -fill both -expand 1 -side top
    
 }
 proc ReCenter {W h w} {                   ;# Called by configure event
    set h2 [expr {$h / 2}] ; set w2 [expr {$w / 2}]
    $W config -scrollregion [list -$w2 -$h2 $w2 $h2]
 }
 proc CreateImages {} {
    global P S
 
    image create photo ::img::vc1
    image create photo ::img::vc2
 
    ::img::vc1 copy ::img::vc -from   1 1 240 136
    ::img::vc2 copy ::img::vc -from 240 1 619 136
    ::img::vc put [.c cget -bg] -to   1 1 619 136
 
    set w  [image width  ::img::vc]
    set h  [image height ::img::vc]
    set w1 [image width  ::img::vc1]
    set w2 [image width  ::img::vc2]
 
    set P(vc,x)   [expr {-$w/2}]                   ;# Where vc goes
    set P(vc,y)   [expr {-$h/2}] 
    set P(vc1,x0) [expr {$P(vc,x) + 1}]            ;# Where vc1 starts
    set P(vc1,y0) [expr {$P(vc,y) + 1}]
    set P(vc1,x1) [expr {$P(vc,x) + $w - $w1 - 1}] ;# Where vc1 ends
    set P(vc1,y1) $P(vc1,y0)
    set P(vc2,x0) [expr {$P(vc,x) + $w - $w2 - 1}] ;# Where vc2 starts
    set P(vc2,y0) $P(vc1,y0)
    set P(vc2,x1) [expr {$P(vc,x) + 1}]            ;# Where vc2 ends
    set P(vc2,y1) $P(vc1,y0)
 }
 # See http://wiki.tcl.tk/ShadedTextOnCanvas
 proc ShadedText {w x y fg bg args} {
    set cbg [ $w cget -bg ]
    eval [list $w create text $x $y -fill $bg] $args
    eval [list $w create text [incr x -2] [incr y -2] -fill $cbg] $args
    eval [list $w create text [incr x -1] [incr y -1] -fill  $fg] $args
 }
 proc About {} {
    set msg "$::S(title)\nby Keith Vetter, August 2006\n$::S(help)"
    tk_messageBox -message $msg -title "About $::S(title)"
 }
 
 proc WhereTo {args} {
    global P S
    set xpos $S(step)
    set ypos [expr {$S(step) <= 50 ? $S(step) : 100-$S(step)}]
 
    set x [expr {$P(vc1,x0) + ($P(vc1,x1) - $P(vc1,x0)) * $xpos / 100.0}]
    set y [expr {$P(vc1,y0) + $ypos}]
    .c coords vc1 $x $y
    set x [expr {$P(vc2,x0) + ($P(vc2,x1) - $P(vc2,x0)) * $xpos / 100.0}]
    set y [expr {$P(vc2,y0) - $ypos}]
    .c coords vc2 $x $y
 }
 
 image create photo ::img::vc -data {
    R0lGODlhbALjALMAAA4JCaquBAQC8Kiqm2NkF+vUoPURBca02hIKY83e1IJgpfv9BGRnXdvWzqGW
    dmNj4CH5BAAAAAAALAAAAABsAuMAAwT/EMhJq7046827/2AojmRpnmiqrmzrvnAsz3Rt33iu73zv
    /8BgKEEsGo/IpHLJbDqf0Kh0Sq1ar0gJdsvter/gsHhMLpuflLN6zW67ndq3fE6v2+94azrP7/vN
    cX+Cg4SFhnJ7h4qLg4GMj5CRkoKJk5aXYo6Ym5ydnmgTn6KjS5qkp2QNqKtXlayvlhKqsLS1tmWu
    t7qNALu+v8BNucHEiL3FyMm0w8rNYg2mztLTkczU13rH2NvclKHd4FPR4eTlgN/m6Vna6u3uW9bv
    3ePy9fbr9PfXsvr9/gnx/jXLJ7AguIAGixFMyHAawoa+oLGDSJHaw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UtooO+CJmD5c4QLyW+/B+T7OGgbWST1oe
    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wk6p2iXFPDgTkMVrXVslj9z5GbVJoiyGK+1MFbBu21l2mJ9JWMX/ca0YVP
    N0cu67+BCHKMFLCDXJWXhothGEqnNnymTFXj25MTqJNLlglADMGOLYGz3JKBUyB9W+IihGAI7mjy
    hVI1UtzFiGonvP8Y3EichODCgykTeQJst5oTtyYCpDP66IaRBp3x95zuolycICz1M782tiDEYXE0
    OIml1e7v9iMm6crFsuM9OtGI+/O1gWbGtFdjiTJkmmM4V3gn1iwpMDdihSJ5LpO30+7DAd6P8Pox
    UuK+IqRWlOF51NTV1L4x3AHzALD2K+MglTeQkAHeGuQPQ0nTAQZngNUxpXVieI9JtrSmkXDlBrgD
    Q3Asx0CfVM5QCtKWDqjGM4KYaCNnak4FQpCIzTAueXZz1sf64TytUWpvTPobEmbCM5oYJhoxW0VX
    EiGKl4mvCf1DHt1sdAcheMAxDFyfeR54u6GoAX/560Kpkri//tH/hzdOkloUZES51x0FCUXMDrSk
    s4mwBclCn8vfeV40mfw9YmYCI9jPyhKsHvqhAQSwW9xMiAh3pFBWCLtRAkpXky0EwS3Fiw44LpcD
    r9mBINyLgZAGeCUgIMxgadGfHP1zAWXAI4i26InX+qiGI3SyP3EK5ZCmMochiY96UYyjHALIlFNV
    rQLjoQffRvIOCSkyUVMqmBrfR4re9UQTT1DFA3AFuezoUUuWO8vEeMMmT86pgfdQHvT2iBJkssl0
    sWiO+eLDPwRmRwaQCeMdckeQbVkDIcvaRTibYMOQqCx2H7gE6dR0E3rch09psoA+P8mBP0ZRYocx
    XBUx8q0sEuiA/1d8pj0Ml85hyCQLsTAmDiaTTTFk4SRraiVMeNbCeV4BEM/Q0TUr5RRrYaxR2wHn
    E/9iqGC8LAq2NGTezBASZ1Luh4JDGdaUZQcuBowNFqAMEFRE1KLGLaACDelIFPYkBEwvoVlqakMR
    UlCXqCOGE5oA2HJFCaMcJQgiFEsUg9o0TpTUpJVawnsmxgmwdC2QF5jDIzram1eCJlKzRIpCGJgE
    XGyJq3KxgFXHN5EgbU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AmLM41vaJkhZKoVgkim5HQ8Rxf9BKeR8drGqhMvZDl53sLfE7QhbiAfxhkWl
    wbWCSlN2uJj546ooBIdfbgXbRDu01A7oPt1G4ZP9hiQS+z3VSm4JPXCvbkQxBjNKzGaVllcS7bOV
    qt9GrFROcZbv/dN9qor6oJmqQOtEU+854+BUsJIgCG2cZrO5fsUdJ/EPZwf5ZsMgh/Efx4LQ0o8s
    ABYdhtyPzFldZYcJsZlnWYgCr+Be9EUK/6xNiHChlazGAc4iT60gv8chD/NnCkmR1A9CpQku36yf
    leLL0BZ+ke55UN1NqHMij747r/OgsusYyvFF6PGB7fH4NXND3uMWT988N3M07wYZYVVHntr/9hIR
    cnL/KuAXg5RyIZoW9/lxBteMegPvPQjeB/M1yQJ0wDXva5lIjy10Qy+OgpWRFuDaNreq9dCBiEYU
    AP6sEPSYWJioIl/xg0Soz1INMg7A6Iobq37tV78lV9OP12z2w2h07ziWzDziH/5siegLpjFIb6Dw
    CclsUt1z0NI8echfud0upzmLs5YS5QoWaU8dQp5COIp3YuGq6PUBfE/3RswWyuioJMa/I+HgIzCv
    Xux0f/503Tj217hytdzU02nM6SoIg7Fwe+82ztGp9r741MD3JUZYwQBcEy/PqHk3ctuAG3cUO5qW
    b+dtGhf3nODgEoH5rL2dDOd4gQNrOF4bnBcQj2cC//Gb+VrPaW5vknN4TL+TuPg4Ao3JdDOdWnLH
    co7G0sbueasHKOK7onm/eswNDAQX1kioUTw9JIoA43HGHHanpzswH/L15nE5HyUQzqlV+Kc/XcKo
    ca7Pe4zfJjHZWL3Hhuk2F1bNAjx9W1JoyKJ+2nTpD8VcEgISqKEfbw7ehC6ieke4nb/P/PmU6R3e
    es3XKcbHOAAeJpO0+KIUOpPMt/n+gwGLwMZ3Gu1b9kug0qhXx+QAeTVB9c9XRtlvhCJadleP98S/
    BO266JCwL+C2b8tmZEaue/4SpNff7V2H/DYWRGyP+an4FGjZ/atXdQI7rM0I/mbngkCgIzo6Vw8A
    2f/zL/9+iHwoNwhapEXq/gefkSzElaybL67urgmW837V93EISHLSai/OevPuPxiGDlCaJuF4w9mW
    jBjLM50wpZHrO0BcN2FnCOaCgEEtWWERej1CExotqUAs59SlbcE22+9LKabcXFlTqNyaQp2AMTwu
    n9M7TW5DNFCfuvV/XVPREOFQmAXJoJDOEaDI3dNTFAECgB9ImRQY2OVFw+ZWnmPaFpsJksfnyWRk
    lugobKxsXcMeA8PrrO4uBctijkknGagPr8ZeiaZmzwyfJahL7sUVtEmV8c9qK9YdageJpNvdGXa5
    +Tl6eqwzCu6GrRTUrYO3+kQDu+W1GH41wD4GatWdAKLTZqpNtw98JsXjYu8hxIgSI9q6xaDexIye
    GEDSQhBDvjUMPp6jdlCcCWkaMjUspVIjzJgyZ9KsWWOAA4vzXmbgGG/kAJ72BKKI1+aQB3CgLtps
    6vQp1KhSp1YIGSpExz70qHLt6vUr2LBwavn84k6EAykXhYpt6/Yt3LhOB9Cty1Yu3rx69/Lt6/cv
    4MCCBxMubPgw4sSKF9OMAAA7}
 
 ################################################################
 DoDisplay
 
 return

Comments edit

AMG: Arrgh, I sprained a ligament in my brain!

HJG Added a checkbutton to show hints.

AMG: Even with the hints turned on, I still don't understand how this can be possible!

Stu 2008-11-11 Commented-out code that causes expected integer but got "bold" error on *nix systems.

HJG 2016-01-31: I found some links about the origin of this kind of puzzle (as well as other nice puzzles), with history, and more amazing 'vanishing' pictures:

  • johnrausch.com
    • Vanishing Leprechaun, Vanishing Egg, Doggie Doo
  • archimedes-lab.org - Vanish Puzzles
    • Japanese Birds, Banker nightmare, Steam train, Disappearing Egg
  • theguardian.com - Vanishing Leprechaun
    • Vanishing Leprechaun, Magic Egg Puzzle (1880), La Mystérieuse (1907),
    • pin-up girls, Color-changing satellites, Swedish gnomes / apes, blue&red pens,
    • The Chinese vanish, Vanishing magician
  • How to draw such puzzles - Alex Bellos' blogpost