多面体のギャラリーを作成する
多数の画像を同時に可視化すると便利な場合がある.
In[1]:=
![Click for copyable input](assets.ja/create-a-gallery-of-polyhedra/In_5.png)
polyhedra =
EntityValue[
EntityValue[Entity["Polyhedron"], "Entities"], {"Name", "Image"}];
そのような画像のギャラリーをWeb上に作成するためにはGalleryViewを使う.
In[2]:=
![Click for copyable input](assets.ja/create-a-gallery-of-polyhedra/In_6.png)
CloudDeploy[GalleryView[polyhedra[[All, 2]]]]
ギャラリーを見てみる.
タイトルを加えてGalleryViewをより見やすいものにする.
In[3]:=
![Click for copyable input](assets.ja/create-a-gallery-of-polyhedra/In_7.png)
CloudDeploy[
GalleryView[<|"Title" -> #1, "Content" -> #2|> & @@@ polyhedra,
AppearanceRules -> <|"Title" -> "A bunch of polyhedra"|>]]
見やすくなったギャラリー.
![](assets.ja/index.ja/GB_7.png)