Advertisement
Matthen

Spongebob Flower

Oct 8th, 2012
14,453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. n = 5;
  2. noiseN = 100;
  3. noise = Accumulate@RandomReal[NormalDistribution[0, 1], noiseN + 1];
  4. noiseF = Interpolation[
  5. Transpose[{Table[t, {t, 0, 2 Pi, 2 Pi/noiseN}], noise}]];
  6. r[t_] := 1 - 0.6 Cos[n t] + 0.02 noiseF[t] Sin[t/2];
  7. \[Theta][t_] := t + 0.15 Sin[2 n t];
  8. ParametricPlot[{r[t] {Cos[\[Theta][t]],
  9. Sin[\[Theta][t]]}, (0.1 + 0.004 noiseF[t] Sin[t/2]) {Cos[t],
  10. Sin[t]}}, {t, 0, 2 Pi}, Axes -> None, PlotRange -> All,
  11. PlotStyle -> Directive[Thick, Purple]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement