Advertisement
Matthen

GT

Jun 4th, 2011
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. TShirt[c_] := Graphics[{c, t}];
  2. TShirt[{c1_, c2_}] :=
  3. Graphics[{EdgeForm[Black], c1, t, c2,
  4. Table[Line[{{-w, 0.4 + i/10}, {w, 0.4 + i/10}}], {i, 10}]}];
  5. PPink = RGBColor[0.850, 0.380, 0.905];
  6. Lilac = RGBColor[0.690, 0.509, 0.890];
  7. (* 2 lectures missing *)
  8. data = {
  9. Purple, Black, LightBlue, Black, Gray, Darker[Blue, 0.7],
  10. Blue, {White, Blue}, Lilac, Darker[Blue, 0.7], Black,
  11. Darker[Blue, 0.7], LightBlue, PPink, Black, Gray, PPink,
  12. Blue, {Blue, White}, Black, PPink, Lilac
  13. };
  14. w = 0.4;
  15. t = Polygon[{{-w, 0.4}, {-w, 1.4}, {-w - 0.2, 1}, {-w - 0.3,
  16. 1.2}, {-w - 0.1, 1.7}, {-w + 0.2, 1.7}, {0, 1.6},
  17. {w - 0.2, 1.7`}, {w + 0.1, 1.7`}, {w + 0.3, 1.2`}, {w + 0.2,
  18. 1}, {w, 1.4`}, {w, 0.4`}
  19. }];
  20. graph = Table[
  21. data[[i]] -> data[[i + 1]], {i, Length[data] - 1}]; GraphPlot[graph,
  22. DirectedEdges -> True,
  23. VertexRenderingFunction -> (Inset[TShirt[#2], #1, {0, 1}, 0.4] &),
  24. PlotStyle -> Black, ImageSize -> {500}, Method -> "SpringEmbedding"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement