index.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Kity Demo List</title>
  6. <style>
  7. body, html {
  8. padding: 0;
  9. margin: 0;
  10. }
  11. h1 {
  12. background-color: rgb(67, 161, 254);
  13. color: white;
  14. text-shadow: 0 1px 3px black;
  15. margin: 0;
  16. height: 100px;
  17. line-height: 100px;
  18. padding-left: 30px;
  19. }
  20. ul {
  21. position: absolute;
  22. margin-left: 0;
  23. list-style: none;
  24. padding: 0;
  25. top: 100px;
  26. left: 30px;
  27. width: 270px;
  28. padding-right: 20px;
  29. bottom: 0;
  30. overflow-y: auto;
  31. }
  32. h2 {
  33. margin-top: 20px;
  34. font-size: 16px;
  35. font-weight: normal;
  36. }
  37. a {
  38. color: rgb(224, 115, 6);
  39. text-decoration: none;
  40. }
  41. a:hover {
  42. text-decoration: underline;
  43. }
  44. p {
  45. color: #333;
  46. font-size: 12px;
  47. }
  48. .preview-container {
  49. position: absolute;
  50. left: 320px;
  51. right: 0;
  52. top: 100px;
  53. bottom: 0;
  54. border-left: solid 1px #ccc;
  55. }
  56. </style>
  57. </head>
  58. <body>
  59. <h1>Kity Example List</h1>
  60. <ul>
  61. <li>
  62. <h2><a href="animate.html" target="demo-preview">动画示例</a></h2>
  63. <p>如何使用自定义动画、fx动画等</p>
  64. </li>
  65. <li>
  66. <h2><a href="bezier.html" target="demo-preview">贝塞尔曲线示例</a></h2>
  67. <p>如何使用 Bezier 类绘制方便地绘制贝塞尔曲线</p>
  68. </li>
  69. <li>
  70. <h2><a href="clip.html" target="demo-preview">Clip 示例</a></h2>
  71. <p>如何使用 Clip 类来剪辑图形</p>
  72. </li>
  73. <li>
  74. <h2><a href="curve.html" target="demo-preview">曲线示例</a></h2>
  75. <p>如何使用 Curve 类来绘制经过指定点的曲线</p>
  76. </li>
  77. <li>
  78. <h2><a href="easing.html" target="demo-preview">缓动函数示例</a></h2>
  79. <p>枚举 Kity 支持的缓动函数</p>
  80. </li>
  81. <li>
  82. <h2><a href="lineargradientbrush.html" target="demo-preview">线性渐变示例</a></h2>
  83. <p>如何使用 LinearGradientBrush 来使用线性渐变填充图形</p>
  84. </li>
  85. <li>
  86. <h2><a href="mask.html" target="demo-preview">Mask 示例</a></h2>
  87. <p>如何使用 Mask 来创建蒙版</p>
  88. </li>
  89. <li>
  90. <h2><a href="path.html" target="demo-preview">Path 示例</a></h2>
  91. <p>如何使用 Path 来绘制自定义图形</p>
  92. </li>
  93. <li>
  94. <h2><a href="patternbrush.html" target="demo-preview">图形画刷示例</a></h2>
  95. <p>如何使用 PatternBrush 创建图形画刷填充图形</p>
  96. </li>
  97. <li>
  98. <h2><a href="pen.html" target="demo-preview">Pen 示例</a></h2>
  99. <p>如何使用 Pen 来创建复杂的描边</p>
  100. </li>
  101. <li>
  102. <h2><a href="radialgradientbrush.html" target="demo-preview">径向渐变示例</a></h2>
  103. <p>如何使用 RadialGradientBrush 来使用径向渐变填充图形</p>
  104. </li>
  105. <li>
  106. <h2><a href="text.html" target="demo-preview">文本示例</a></h2>
  107. <p>如何使用文本、路径文本</p>
  108. </li>
  109. <li>
  110. <h2><a href="transform.html" target="demo-preview">如何使用 Transform</a></h2>
  111. <p>如何对图形进行平移、旋转、缩放、斜切等</p>
  112. </li>
  113. <li>
  114. <h2><a href="use.html" target="demo-preview">Use 示例</a></h2>
  115. <p>如何引用图形</p>
  116. </li>
  117. <li>
  118. <h2><a href="viewbox.html" target="demo-preview">Viewbox 示例</a></h2>
  119. <p>如何使用 Viewbox 控制视野</p>
  120. </li>
  121. <li>
  122. <h2><a href="filter/index.html" target="demo-preview">滤镜示例</a></h2>
  123. <p>如何使用滤镜</p>
  124. </li>
  125. </ul>
  126. <div class="preview-container">
  127. <iframe name="demo-preview" frameborder="0" style="overflow:scroll; width: 100%; height: 100%;" src="animate.html"></iframe>
  128. </div>
  129. </body>
  130. </html>