File:Knight's tour animation.svg
Original file (Animated SVG file, nominally 301 × 301 pixels, file size: 206 KB)
Note: Due to technical limitations, thumbnails of this file will not be animated.
Captions
This image is an animated SVG file. The .png preview above created by RSVG for use in Wikimedia is not animated and may be incomplete or incorrect. To see the animation, open media:Knight's tour animation.svg. It should run in any modern browser or viewer. Recent versions of Chrome, Firefox, Microsoft Edge, Safari, and Opera all support SVG animated with SMIL.
Other SVG animations can be found at Category:Animated SVG files.
|
Summary
[edit]DescriptionKnight's tour animation.svg |
English: Animated SVG version of the Knight's_tour_anim_2.gif, see full size image. |
Date | |
Source | Own work |
Author |
|
SVG development InfoField | This vector image was created with LibreOffice. |
Source code InfoField | LibreOffice code; Created in LibreOffice 4.1.2 with this LibreLogo program
; Usage: Put this code into an English language document in LibO Writer,
; and click on the Start icon of the View»Toolbars»Logo toolbar.
; clock positions, change it for a different tour
steps = [4, 5, 10, 7, 4, 5, 10, 8, 10, 11, 4, 1, 10, 11, 4, 7, 11, 2, 5, 7, 8, 5, 2, 4, 2, 11, 8, 1, 2, 11, 8, 8, 1, 8, 7, 5, 7, 2, 1, 4, 7, 2, 1, 11, 1, 8, 5, 1, 10, 7, 5, 4, 7, 10, 8, 10, 1, 4, 11, 10, 1, 4, 5]
TO arrow
PENCOLOR “BLACK” PENSIZE 0.5 FILLCOLOR “BLACK”
PICTURE PENUP BACK 7
p = POSITION
FORWARD 10 RIGHT 20 BACK 12 PENDOWN
FORWARD 12 LEFT 40 BACK 12 POSITION p FILL
END
TO tour steps num sq way pens penc fillc
HOME PENSIZE pens PENCOLOR penc FILLCOLOR fillc
dir = {1:[1, 2], 2:[2, 1], 4:[2, -1], 5:[1, -2], 7:[-1, -2], 8:[-2, -1], 10:[-2, 1], 11:[-1, 2]}
FOR i IN steps[: num] [
HEADING 0
IF sq [ SQUARE 30 ]
IF NOT way [ PENUP ]
FORWARD [dir[i][0]*30, dir[i][1]*30] ; go to [x, y], where [0, 0] is the turtle position
PENDOWN ; hide arrow:
IF NOT way AND REPCOUNT = num – 1 [ HEADING 0 SQUARE 30 ]
]
IF NOT way [ HEADING 0 SQUARE 30 ]
END
HIDETURTLE PENJOINT “MITER”
PICTURE “knightstour_animation.svg” [
tour steps COUNT steps TRUE FALSE 1 “GRAY” “WHITE”
REPEAT 1 + COUNT steps [
tour steps REPCOUNT - 1 FALSE FALSE 1 “GRAY” “SILVER”
tour steps REPCOUNT – 1 FALSE TRUE 2 “BLACK” “WHITE”
IF REPCOUNT > 1 [ arrow ] [ PENSIZE 8 POINT ]
SLEEP 500
]
]
|
Licensing
[edit]This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication. | |
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 14:50, 14 September 2013 | 301 × 301 (206 KB) | Nl74 (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
The following 5 pages use this file:
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Width | 85.05mm |
---|---|
Height | 85.05mm |