less copy protection, more size visualization
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

281 wiersze
11 KiB

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Macrovision</title>
  6. <link rel="stylesheet" href="reset.css">
  7. <link rel="stylesheet" href="macrovision.css">
  8. <script src="https://kit.fontawesome.com/10a16c6083.js" crossorigin="anonymous"></script>
  9. <script src="math.min.js"></script>
  10. <script src="presets/characters.js"></script>
  11. <script src="presets/buildings.js"></script>
  12. <script src="presets/landmarks.js"></script>
  13. <script src="presets/species.js"></script>
  14. <script src="presets/objects.js"></script>
  15. <script src="presets/fiction.js"></script>
  16. <script src="presets/food.js"></script>
  17. <script src="presets/naturals.js"></script>
  18. <script src="presets/vehicles.js"></script>
  19. <script src="presets/cities.js"></script>
  20. <script src="presets/pokemon.js"></script>
  21. <script src="presets/scenes.js"></script>
  22. <script src="media/attribution.js"></script>
  23. <script src="macrovision.js"></script>
  24. <meta name="viewport" content="width=device-width, initial-scale=0.75, maximum-scale=0.75, user-scalable=0" />
  25. <meta name="theme-color" content="#000000" />
  26. <meta name="description" content="How big are they anyway?" />
  27. <meta property="og:title" content="Macrovision" />
  28. <meta property="og:description" content="How big are they anyway?" />
  29. <meta property="og:image" content="https://crux.sexy/images/macrovision.png" />
  30. <link rel="icon" href="https://crux.sexy/images/macrovision.ico">
  31. </head>
  32. <body class="toggle-bottom-name toggle-top-name toggle-scale">
  33. <script type="text/javascript">
  34. window.onerror = function(msg, url, line, col, error) {
  35. alert("An error occured. Show all of this to chemicalcrux:\n\n" + msg + "\n" + url + "\n" + "line: " + line + "\n" + "col: " + col + "\nerror: " + error);
  36. }
  37. </script>
  38. <input hidden id="file-upload-picker" type='file' multiple>
  39. <div id="help-menu">
  40. <div id="table-of-contents-holder">
  41. <ul id="table-of-contents">
  42. <li><button id="close-help"><i class="fas fa-times"></i></button></li>
  43. </ul>
  44. </div>
  45. <div id="help-contents-holder">
  46. <div id="help-contents">
  47. <h2>Overview</h2>
  48. <p>Macrovision is a tool for visualizing sizes. You can create, scale, and pose a variety of silhouettes,
  49. ranging from galactic structures to individual atoms.</p>
  50. <p>This tool was created by me, <b>chemicalcrux</b>!</p>
  51. <p>You can join the Discord server to report bugs and see what's new. If you've found the site helpful, consider
  52. supporting me on Ko-Fi, too!</p>
  53. <a href="https://discord.gg/vqcKVV6"><img src="./logos/discord.svg" alt="Link to Discord"></a>
  54. <a href="https://ko-fi.com/chemicalcrux"><img src="./logos/ko-fi.svg" alt="Link to Ko-Fi"></a>
  55. <h2>Adjusting the View</h2>
  56. <p>Zoom in and out with the scroll wheel. You can also manually change the size of the world in the sidebar, or
  57. use the <i class="fas fa-search-minus"></i> and <i class="fas fa-search-plus"></i> buttons on the sides of the
  58. viewer.</p>
  59. <p>Shift+scroll without anything selected to move horizontally. You can also use the <i
  60. class="fas fa-arrow-left"></i> and <i class="fas fa-arrow-right"></i> buttons to scroll.</p>
  61. <p>Alt+scroll to make the world larger or smaller without changing where things are positioned on the screen.
  62. </p>
  63. <h2>Creating Entities</h2>
  64. <p>Each thing in the world is an <b>entity</b>. Macrovision comes with many of these, grouped into categories.
  65. For example, in the Naturals category, you'll find large bodies such as stars, country borders, and planets.
  66. </p>
  67. <p>Each entity has one or more views. For example, many characters have a front view and a back view. Some
  68. entities are collections of things, like countries &mdash; these have one view for each thing they represent!
  69. </p>
  70. <p>If you want to compare something that doesn't exist yet, you can create a custom entity. There are three ways
  71. you can do this:</p>
  72. <ul>
  73. <li>Drop an image into the window</li>
  74. <li>Select a file from the <i class="fas fa-bars"></i> menu</li>
  75. <li>Paste an image from your clipboard</li>
  76. </ul>
  77. <p>Custom entities aren't saved or exported.</p>
  78. <h2>Changing Entities</h2>
  79. <p>Shift+scroll with an entity selected to grow or shrink it. You can also use the <i
  80. class="fas fa-compress-arrows-alt"></i> and <i class="fas fa-expand-arrows-alt"></i> buttons to adjust size.
  81. </p>
  82. <p>When you have an entity selected, you'll see additional sections in the sidebar: one for the entity itself,
  83. and one for its current view.</p>
  84. <p>The entity options control things like scale (how big the entity is compared to normal) and display name. You
  85. can also pick from one or more default sizes.</p>
  86. <h2>Sharing</h2>
  87. <p>You can take a screenshot of the current scene with the <b>Screenshot</b> <i class="fas fa-camera"></i>
  88. button. The screenshot will be copied to your clipboard. You can also use the <b>Download</b> <i
  89. class="fas fa-download"></i> button to download the current scene as an image. This currently only includes
  90. the scale and the silhouettes themselves; it won't include things like names.</p>
  91. <p>If you want to show a scene to someone else, you can use <b>Permalink</b> <i class="fas fa-link"></i> to get
  92. a permalink. It'll be pretty large, since it represents where everything is. I'll probably add a link
  93. shortener at some point!</p>
  94. <p>You can also export the current scene as text with <b>Export</b> <i class="fas fa-share"></i>, copying it to
  95. your clipboard. You can import a scene from the clipboard with <b>Import</b> <i
  96. class="fas fa-share flipped"></i>.</p>
  97. </div>
  98. </div>
  99. </div>
  100. <div class="popout-menu" id="sidebar-menu">
  101. </div>
  102. <div class="popout-menu" id="settings-menu">
  103. </div>
  104. <div id="menubar">
  105. <span class="menubar-group">
  106. <button id="toggle-menu">
  107. <i class="fas fa-bars"></i>
  108. </button>
  109. <button id="toggle-settings">
  110. <i class="fas fa-cogs"></i>
  111. </button>
  112. </span>
  113. <span class="menubar-group">
  114. <button id="copy-screenshot">
  115. <i class="fas fa-camera"></i>
  116. </button>
  117. <button id="save-screenshot">
  118. <i class="fas fa-download"></i>
  119. </button>
  120. </span>
  121. <span class="menubar-group" id="spawners">
  122. </span>
  123. <span class="menubar-group">
  124. <button id="open-help">
  125. <i class="far fa-question-circle"></i>
  126. <span class="sr-only">Help</span>
  127. </button>
  128. </span>
  129. </div>
  130. <div id="main-area">
  131. <div id="options" class="">
  132. <a href="https://docs.google.com/forms/d/e/1FAIpQLScRC-okDZ3FtzDTkbqSrpj5_OGD-1Vl-VYizOK3QM6quus11g/viewform?usp=sf_link"
  133. class="options-banner">Submit your<br>character!</a>
  134. <h3 class="options-header">World Info</h3>
  135. <div id="options-world">
  136. <div class="options-label">
  137. World height
  138. </div>
  139. <div class="options-row">
  140. <input class="options-field-numeric" type="number" id="options-height-value" min="1" value="10">
  141. <select class="options-field-unit" id="options-height-unit">
  142. </select>
  143. </div>
  144. <div class="options-row">
  145. <button class="options-button" id="options-world-fit">Fit to entities</button>
  146. </div>
  147. </div>
  148. <div class="options-label">
  149. Selection:
  150. </div>
  151. <div class="options-row">
  152. <select id="options-selected-entity" class="options-selector">
  153. <option id="options-selected-entity-none">None</option>
  154. </select>
  155. </div>
  156. <div class="options-row">
  157. <button id="delete-entity">
  158. <i class="fas fa-trash-alt symbol-button"></i>
  159. <span class="sr-only">Delete Entity</span>
  160. </button>
  161. </div>
  162. <h3 class="options-header" id="entity-category-header">Entity Options</h3>
  163. <div class="options-category" id="entity-category">
  164. <div class="options-label">
  165. View
  166. </div>
  167. <select class="options-selector" id="entity-view"></select>
  168. <div class="options-label">
  169. Ordering
  170. </div>
  171. <div class="options-two-buttons" id="options-ordering">
  172. <button id="options-order-back">Toward back</button>
  173. <div id="options-order-display"></div>
  174. <button id="options-order-forward">Toward front</button>
  175. </div>
  176. <div class="options-label">
  177. Sizes
  178. </div>
  179. <div class="options-block" id="options-entity-defaults">
  180. </div>
  181. <span id="options-entity">
  182. </span>
  183. </div>
  184. <h3 class="options-header" id="view-category-header">View Options</h3>
  185. <div class="options-category" id="view-category">
  186. <span id="options-view">
  187. </span>
  188. </div>
  189. <h3 class="options-header" id="attribution-category-header">Source</h3>
  190. <div id="options-attribution">
  191. <div class="options-label">
  192. Authors
  193. </div>
  194. <div id="options-attribution-authors">
  195. </div>
  196. <div class="options-label">
  197. Owners
  198. </div>
  199. <div id="options-attribution-owners">
  200. </div>
  201. <div class="options-label">
  202. Source
  203. </div>
  204. <div id="options-attribution-source">
  205. </div>
  206. </div>
  207. <h3 class="options-header" id="scenes-category-header">Preset Scenes</h3>
  208. <div id="options-scenes">
  209. <div class="options-row">
  210. <select class="options-field-picker" id="scene-choices">
  211. </select>
  212. </div>
  213. <div class="options-row">
  214. <button id="load-scene">
  215. <i class="fas fa-play-circle symbol-button"></i>
  216. <span class="sr-only">Load Scene</span>
  217. </button>
  218. </div>
  219. </div>
  220. </div>
  221. <div id="world">
  222. <button class="scroll-button" id="zoom-in">
  223. <i class="fas fa-search-plus"></i>
  224. </button>
  225. <button class="scroll-button" id="zoom-out">
  226. <i class="fas fa-search-minus"></i>
  227. </button>
  228. <button class="scroll-button" id="scroll-left">
  229. <i class="fas fa-arrow-left"></i>
  230. </button>
  231. <button class="scroll-button" id="scroll-right">
  232. <i class="fas fa-arrow-right"></i>
  233. </button>
  234. <button class="scroll-button" disabled id="shrink">
  235. <i class="fas fa-compress-arrows-alt"></i>
  236. </button>
  237. <button class="scroll-button" disabled id="grow">
  238. <i class="fas fa-expand-arrows-alt"></i>
  239. </button>
  240. <button class="scroll-button" disabled id="fit">
  241. <i class="fas fa-search"></i>
  242. </button>
  243. <div id="entities">
  244. </div>
  245. <canvas id="display">
  246. </canvas>
  247. <div class="bottom-cover"></div>
  248. </div>
  249. </div>
  250. </body>
  251. </html>