File:1D-Wave.gif

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

1D-Wave.gif(777 × 321 pixels, file size: 478 KB, MIME type: image/gif, looped, 36 frames, 3.6 s)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
English: 1D harmonic wave (animation)
Deutsch: 1D harmonische Welle (Animation)
Date
Source Own work
Author And1mu

Source Code[edit]

created with LaTeX and PGF/TikZ
Source code for a single frame is available at the corresponding page.

Script to generate the animation:

#!/bin/bash

set -eu
DIR="animate"
FILE="Wave"

NUM=0
rm -f ${DIR}/frame???.png
for ANG in $(seq 0 10 359) ; do
    echo "Creating frame $NUM ..."
    POS=$(echo "($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 150 ${FILE}.svg -shave 3 ${DIR}/frame${NUMSTR}.png
    NUM=$(($NUM+1))
done
cd $DIR
convert -delay 10 -loop 10000 frame*.png  ${FILE}.gif
cd -

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
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/TimeThumbnailDimensionsUserComment
current15:27, 3 April 2016Thumbnail for version as of 15:27, 3 April 2016777 × 321 (478 KB)And1mu (talk | contribs)make clearer that the wave continues continues to the right
12:49, 31 March 2016Thumbnail for version as of 12:49, 31 March 2016777 × 321 (475 KB)And1mu (talk | contribs)add v Vektor
11:22, 31 March 2016Thumbnail for version as of 11:22, 31 March 2016777 × 321 (470 KB)And1mu (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file: