File:Federpendel.gif
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
![File:Federpendel.gif](https://upload.wikimedia.org/wikipedia/commons/thumb/1/1d/Federpendel.gif/800px-Federpendel.gif?20160330081325)
Size of this preview: 800 × 529 pixels. Other resolutions: 320 × 212 pixels | 640 × 423 pixels | 986 × 652 pixels.
Original file (986 × 652 pixels, file size: 880 KB, MIME type: image/gif, looped, 36 frames, 3.6 s)
File information
Structured data
Captions
Captions
Add a one-line explanation of what this file represents
Summary
[edit]DescriptionFederpendel.gif |
English: Simple spring pendulum, animated
Deutsch: Einfaches Federpendel, animiert |
Date | |
Source | Own work |
Author | And1mu |
Source Code
[edit]created with LaTeX and PGF/TikZ |
---|
![]() Script to generate the animation: #!/bin/bash
set -eu
DIR="animate"
FILE="Federpendel"
NUM=0
rm -f ${DIR}/frame???.png
for ANG in $(seq 0 10 359) ; do
echo "Creating frame $NUM ..."
POS=$(echo "-3+0.8*c($ANG/45*a(1))" | bc -l)
echo $POS $ANG
sed -i "s/\\\def\\\myx{.\+}/\\\def\\\myx{$POS}/" ${FILE}.tex
pdflatex -shell-escape ${FILE}.tex 1> /dev/null
echo "Convert to png ..."
NUMSTR=$(printf "%03d" $NUM)
convert -density 256 ${FILE}.svg -shave 3 ${DIR}/frame${NUMSTR}.png
NUM=$(($NUM+1))
done
cd $DIR
convert -delay 10 -loop 10000 frame*.png Federpendel.gif
cd -
|
Licensing
[edit]I, the copyright holder of this work, hereby publish it under the following license:
![w:en:Creative Commons](https://upload.wikimedia.org/wikipedia/commons/thumb/7/79/CC_some_rights_reserved.svg/90px-CC_some_rights_reserved.svg.png)
![attribution](https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Cc-by_new_white.svg/24px-Cc-by_new_white.svg.png)
![share alike](https://upload.wikimedia.org/wikipedia/commons/thumb/d/df/Cc-sa_white.svg/24px-Cc-sa_white.svg.png)
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 08:13, 30 March 2016 | ![]() | 986 × 652 (880 KB) | And1mu (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on ca.wikipedia.org
- Usage on cv.wikipedia.org
- Usage on de.wikipedia.org
- Usage on de.wikibooks.org
- Usage on el.wikipedia.org
- Usage on es.wikipedia.org
- Usage on nds.wikipedia.org
- Usage on uk.wikipedia.org