Canvas Zooming Using Scaling tcl tk

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
505 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 18, 2011

Using the tcl/tk canvas that ships with it as standard, and no hardware acceleration or magical code, this demo shows how to do a sort of zooming using just scaling all objects that are on the canvas. I bound the zooming in and out to F3 and F4 and you can watch as I view objects and zoom as far as floating point precision allows me to. The limits are indeed quite large and gives a very neat cool beans effect on modern regular machines (2008+).

The vector font is from here: http://wiki.tcl.tk/27638

The documentation for the canvas (reference manual) is here: http://tcl.tk/man/tcl8.5/TkCmd/canvas.htm

SupremeXeN: http://supremexen.com/

Download it here: http://supremexen.com/pub/canvas-draw-2011-08-29--13-11.zip

The editor milkjack that hilites tcltk code and edits text files is available here:
http://supremexen.com/pub/milkjack-2011-09-22--12-32.zip

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (xrocode)

  • Nice demo and excellent musical score! What editor were you using? I like the ==title hooks.

  • @atheistsam Hey thanks! The editor was naiia, which is like milkjack. milkjack works on linux and windows and edits texts files as well as tcl tk files with a few added hooks to do hiliting and some other things. Also has search slots (many text searches possible).

  • @atheistsam I added the link to the description for the editor.

  • Btw guys I am coming to India for a few months from Canada. I will be there in November around Lucknow region.

  • xrocode bhai, TCL/TK kaha use kar rahe ho? :) Mast app.

  • @MrXStark  Thanks bhai!

see all

All Comments (7)

Sign In or Sign Up now to post a comment!
  • @arjunitp Ok I have uploaded it to SupremeXeN enjoy it! All the code is there and you can edit it and run it. It has the interpreter as well, everything is included in the file: canvas-draw-2011-08-29--13-11.­zip

  • can you please share the code for this to play aorund and experiment it with different scenarios ??

  • my god Himesh reshammiya

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more