File:Drawtangram.svg
![]() |
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:Drawtangram.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
Description |
English: Tangram drawing – animation. See original file for SVG animation. |
Date | |
Source | Own work |
Author | László Németh |
Other versions |
|
SVG development | |
Source code | LibreOffice code; Created in LibreOffice 4.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.
TO place x y
POSITION [200+x*40, 400-y*40]
END
TO line x y x2 y2
PENUP place x y
PENDOWN place x2 y2
END
TO grid x y x2 y2
REPEAT y2-y+1 [ line x y+REPCOUNT-1 x2 y+REPCOUNT-1 ]
REPEAT x2-x+1 [ line x+REPCOUNT-1 y x+REPCOUNT-1 y2 ]
END
PICTURE “drawtangram.svg” [
PENSIZE 2 HIDETURTLE
PENCAP “ROUND”
PENCOLOR “SILVER”
grid 0 0 4 4
SLEEP 1000
PENCOLOR “BLACK”
line 0 4 4 0
SLEEP 1000
line 2 4 4 2
SLEEP 1000
line 1 3 2 4
SLEEP 1000
line 0 0 3 3
SLEEP 1000
line 3 3 3 1
SLEEP 1000
FILLCOLOR “RED” line 0 0 0 4 place 2 2 FILL
FILLCOLOR “BLUE” line 0 0 4 0 place 2 2 FILL
FILLCOLOR “GREEN” line 0 4 2 4 place 1 3 FILL
FILLCOLOR “PURPLE” line 2 4 4 4 place 4 2 FILL
FILLCOLOR “LIME” line 3 1 2 2 place 3 3 FILL
FILLCOLOR “FUCHSIA” line 2 4 1 3 place 2 2 place 3 3 FILL
FILLCOLOR “YELLOW” line 3 1 3 3 place 4 2 place 4 0 FILL
SLEEP 2000
]
|
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
![]() ![]() |
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.
|