A pixel art painter geared specifically at NES pixel art. Includes export for .chr binary file as well as palette and namespace data.
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

201 line
11KB

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  6. <title>NES Painter</title>
  7. <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
  8. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
  9. <link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/pure-min.css" integrity="sha384-nn4HPE8lTHyVtfCBi5yW9d20FjT8BJwUXyWZT9InLYax14RDjBj46LmSztkmNP9w" crossorigin="anonymous">
  10. <link rel="stylesheet" href="app/css/nespaint.css">
  11. </head>
  12. <body>
  13. <div id="Welcome" class="modal">
  14. <div class="modal-content">
  15. Welcome to the modal!
  16. </div>
  17. </div>
  18. <div class="header">
  19. <div class="home-menu pure-menu pure-menu-horizontal">
  20. <a class="pure-menu-heading" href="">
  21. <span class="color-NES-06">NES </span>
  22. <span class="color-NES-random">P</span><span class="color-NES-random">a</span><span class="color-NES-random">i</span><span class="color-NES-random">n</span><span class="color-NES-random">t</span>
  23. </a>
  24. </div>
  25. </div>
  26. <div class="content-wrapper">
  27. <div class="pure-g">
  28. <div class="pure-u-1-8">
  29. <div class="pure-button-group" role="group" aria-label="...">
  30. <button emit="modal-open" emit-args='{"id":"Welcome"}' class="pure-button">
  31. <i class="fa fa-brush"></i>
  32. </button>
  33. <button emit="modal-open" emit-args='{"id":"Welcome"}' class="pure-button">
  34. <i class="fa fa-eraser"></i>
  35. </button>
  36. <button class="pure-button pure-button-active">
  37. <i class="fa fa-eye-dropper"></i>
  38. </button>
  39. </div>
  40. </div>
  41. <div class="pure-u-2-3">
  42. <div class="pure-g">
  43. <div class="pure-u-1">
  44. <canvas id="painter" width:"128" height:"256"></canvas>
  45. </div>
  46. </div>
  47. <div class="pure-g">
  48. <div class="pure-u-1-2 NES-palette">
  49. <div class="pure-g">
  50. <div class="pure-u-1-4">
  51. <div class="pure-g">
  52. <div class="pure-u-1-4"><button class="pure-button" nesidx="00">00</button></div>
  53. <div class="pure-u-1-4"><button class="pure-button" nesidx="01">01</button></div>
  54. <div class="pure-u-1-4"><button class="pure-button" nesidx="02">02</button></div>
  55. <div class="pure-u-1-4"><button class="pure-button" nesidx="03">03</button></div>
  56. </div>
  57. </div>
  58. <div class="pure-u-1-4">
  59. <div class="pure-g">
  60. <div class="pure-u-1-4"><button class="pure-button" nesidx="04">04</button></div>
  61. <div class="pure-u-1-4"><button class="pure-button" nesidx="05">05</button></div>
  62. <div class="pure-u-1-4"><button class="pure-button" nesidx="06">06</button></div>
  63. <div class="pure-u-1-4"><button class="pure-button" nesidx="07">07</button></div>
  64. </div>
  65. </div>
  66. <div class="pure-u-1-4">
  67. <div class="pure-g">
  68. <div class="pure-u-1-4"><button class="pure-button" nesidx="08">08</button></div>
  69. <div class="pure-u-1-4"><button class="pure-button" nesidx="09">09</button></div>
  70. <div class="pure-u-1-4"><button class="pure-button" nesidx="0A">0A</button></div>
  71. <div class="pure-u-1-4"><button class="pure-button" nesidx="0B">0B</button></div>
  72. </div>
  73. </div>
  74. <div class="pure-u-1-4">
  75. <div class="pure-g">
  76. <div class="pure-u-1-4"><button class="pure-button" nesidx="0C">0C</button></div>
  77. <div class="pure-u-1-4"><button class="pure-button" nesidx="0D">0D</button></div>
  78. <div class="pure-u-1-4"><button class="pure-button" nesidx="0E">0E</button></div>
  79. <div class="pure-u-1-4"><button class="pure-button" nesidx="0F">0F</button></div>
  80. </div>
  81. </div>
  82. </div>
  83. <div class="pure-g">
  84. <div class="pure-u-1-4">
  85. <div class="pure-g">
  86. <div class="pure-u-1-4"><button class="pure-button" nesidx="10">10</button></div>
  87. <div class="pure-u-1-4"><button class="pure-button" nesidx="11">11</button></div>
  88. <div class="pure-u-1-4"><button class="pure-button" nesidx="12">12</button></div>
  89. <div class="pure-u-1-4"><button class="pure-button" nesidx="13">13</button></div>
  90. </div>
  91. </div>
  92. <div class="pure-u-1-4">
  93. <div class="pure-g">
  94. <div class="pure-u-1-4"><button class="pure-button" nesidx="14">14</button></div>
  95. <div class="pure-u-1-4"><button class="pure-button" nesidx="15">15</button></div>
  96. <div class="pure-u-1-4"><button class="pure-button" nesidx="16">16</button></div>
  97. <div class="pure-u-1-4"><button class="pure-button" nesidx="17">17</button></div>
  98. </div>
  99. </div>
  100. <div class="pure-u-1-4">
  101. <div class="pure-g">
  102. <div class="pure-u-1-4"><button class="pure-button" nesidx="18">18</button></div>
  103. <div class="pure-u-1-4"><button class="pure-button" nesidx="19">19</button></div>
  104. <div class="pure-u-1-4"><button class="pure-button" nesidx="1A">1A</button></div>
  105. <div class="pure-u-1-4"><button class="pure-button" nesidx="1B">1B</button></div>
  106. </div>
  107. </div>
  108. <div class="pure-u-1-4">
  109. <div class="pure-g">
  110. <div class="pure-u-1-4"><button class="pure-button" nesidx="1C">1C</button></div>
  111. <div class="pure-u-1-4"><button class="pure-button" nesidx="1D">1D</button></div>
  112. <div class="pure-u-1-4"><button class="pure-button" nesidx="1E">1E</button></div>
  113. <div class="pure-u-1-4"><button class="pure-button" nesidx="1F">1F</button></div>
  114. </div>
  115. </div>
  116. </div>
  117. <div class="pure-g">
  118. <div class="pure-u-1-4">
  119. <div class="pure-g">
  120. <div class="pure-u-1-4"><button class="pure-button" nesidx="20">20</button></div>
  121. <div class="pure-u-1-4"><button class="pure-button" nesidx="21">21</button></div>
  122. <div class="pure-u-1-4"><button class="pure-button" nesidx="22">22</button></div>
  123. <div class="pure-u-1-4"><button class="pure-button" nesidx="23">23</button></div>
  124. </div>
  125. </div>
  126. <div class="pure-u-1-4">
  127. <div class="pure-g">
  128. <div class="pure-u-1-4"><button class="pure-button" nesidx="24">24</button></div>
  129. <div class="pure-u-1-4"><button class="pure-button" nesidx="25">25</button></div>
  130. <div class="pure-u-1-4"><button class="pure-button" nesidx="26">26</button></div>
  131. <div class="pure-u-1-4"><button class="pure-button" nesidx="27">27</button></div>
  132. </div>
  133. </div>
  134. <div class="pure-u-1-4">
  135. <div class="pure-g">
  136. <div class="pure-u-1-4"><button class="pure-button" nesidx="28">28</button></div>
  137. <div class="pure-u-1-4"><button class="pure-button" nesidx="29">29</button></div>
  138. <div class="pure-u-1-4"><button class="pure-button" nesidx="2A">2A</button></div>
  139. <div class="pure-u-1-4"><button class="pure-button" nesidx="2B">2B</button></div>
  140. </div>
  141. </div>
  142. <div class="pure-u-1-4">
  143. <div class="pure-g">
  144. <div class="pure-u-1-4"><button class="pure-button" nesidx="2C">2C</button></div>
  145. <div class="pure-u-1-4"><button class="pure-button" nesidx="2D">2D</button></div>
  146. <div class="pure-u-1-4"><button class="pure-button" nesidx="2E">2E</button></div>
  147. <div class="pure-u-1-4"><button class="pure-button" nesidx="2F">2F</button></div>
  148. </div>
  149. </div>
  150. </div>
  151. <div class="pure-g">
  152. <div class="pure-u-1-4">
  153. <div class="pure-g">
  154. <div class="pure-u-1-4"><button class="pure-button" nesidx="30">30</button></div>
  155. <div class="pure-u-1-4"><button class="pure-button" nesidx="31">31</button></div>
  156. <div class="pure-u-1-4"><button class="pure-button" nesidx="32">32</button></div>
  157. <div class="pure-u-1-4"><button class="pure-button" nesidx="33">33</button></div>
  158. </div>
  159. </div>
  160. <div class="pure-u-1-4">
  161. <div class="pure-g">
  162. <div class="pure-u-1-4"><button class="pure-button" nesidx="34">34</button></div>
  163. <div class="pure-u-1-4"><button class="pure-button" nesidx="35">35</button></div>
  164. <div class="pure-u-1-4"><button class="pure-button" nesidx="36">36</button></div>
  165. <div class="pure-u-1-4"><button class="pure-button" nesidx="37">37</button></div>
  166. </div>
  167. </div>
  168. <div class="pure-u-1-4">
  169. <div class="pure-g">
  170. <div class="pure-u-1-4"><button class="pure-button" nesidx="38">38</button></div>
  171. <div class="pure-u-1-4"><button class="pure-button" nesidx="39">39</button></div>
  172. <div class="pure-u-1-4"><button class="pure-button" nesidx="3A">3A</button></div>
  173. <div class="pure-u-1-4"><button class="pure-button" nesidx="3B">3B</button></div>
  174. </div>
  175. </div>
  176. <div class="pure-u-1-4">
  177. <div class="pure-g">
  178. <div class="pure-u-1-4"><button class="pure-button" nesidx="3C">3C</button></div>
  179. <div class="pure-u-1-4"><button class="pure-button" nesidx="3D">3D</button></div>
  180. <div class="pure-u-1-4"><button class="pure-button" nesidx="3E">3E</button></div>
  181. <div class="pure-u-1-4"><button class="pure-button" nesidx="3F">3F</button></div>
  182. </div>
  183. </div>
  184. </div>
  185. </div>
  186. <div class="pure-u-1-2">
  187. </div>
  188. </div>
  189. </div>
  190. </div>
  191. </div>
  192. </body>
  193. <script src="app/js/main.js" type="module"></script>
  194. </html>