Advertisement
Matthen

Raspberry Pi

Nov 21st, 2013
494
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. f[x_, y_] := 2 x^2 + y^2 (2 + Tanh[y]);
  2. pts = Select[RandomReal[{-1, 1}, {200, 2}], f @@ # < 1 &];
  3. rs = RandomReal[{0.2, 0.3}, Length[pts]];
  4. Show[Graphics[{EdgeForm[RGBColor[0.4, 0.05, 0.05]],
  5. FaceForm[RGBColor[0.811, 0.137, 0.407]],
  6. Disk @@ # & /@ Transpose[{pts, rs}]}],
  7. ParametricPlot[
  8. r (1 + Sin[3 \[Theta]]) (1 +
  9. Cos[2 \[Theta]]/3) {Cos[\[Theta] + 0.1],
  10. Sin[\[Theta] + 0.1]} + {0, 0.8}, {\[Theta], 0, 2 Pi}, {r, 0,
  11. 0.4}, Axes -> None, Mesh -> False, BoundaryStyle -> None,
  12. PlotStyle -> Green]
  13. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement