http://blog.csdn.net/WinsenJiansbomber/article/details/50769511
Module[{x, y, t, s}, t = 0; s = 1.2;
Column[{Slider[Dynamic[s], {1, 2}];
Dynamic[Graphics[{
{LightBlue,
Rectangle[{-Dynamic[s], -Dynamic[s]}, {Dynamic[s],
Dynamic[s]}]},
Point[{1.2, y}],
Text[Style["by Jimbowhy", 18], { 2.6, -1}],
Text[Style["(x,y) Sin(θ)=y/r", 18], {1.1 x, 1.1 y}],
Text[Style["r", 18], { 2 x/5, y/2}],
Text[Style["θ", 18], {Cos[t/2]/4, Sin[t/2]/4}],
Circle[{0, 0}, 0.3, {0, t}],
{Thin, Dashed, Line[{{x, y}, {1.2, y}}]},
Plot[Sin[-2 (z - 1.2) + t], {z, 1.2, 2 π + 1.2}][[1]],
{Thin, Arrowheads[0.05], Arrow[{{0, 0}, {x, y}}]},
{Thin, Dashed, Line[{{0, y}, {x, y}}]}, {Thin, Dashed,
Line[{{x, 0}, {x, y}}]},
{Thin, Line[{{-1, 0}, {3.8, 0}}]}, {Thin,
Line[{{0, 1}, {0, -1}}]},
Circle[{x = Cos[t], y = Sin[t = If[t >= 2 π, 0, t + 0.02]]},
0.0]
}, PlotRange -> {{-1.2, 4}, {-1.2, 1.2}},
ImageSize -> {480, 220}]]
}]]