less copy protection, more size visualization
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

311 líneas
12 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 id="popout-menu">
  101. </div>
  102. <div id="menubar">
  103. <button id="toggle-menu">
  104. <i class="fas fa-bars"></i>
  105. </button>
  106. <span class="menubar-group">
  107. <button id="copy-screenshot">
  108. <i class="fas fa-camera"></i>
  109. </button>
  110. <button id="save-screenshot">
  111. <i class="fas fa-download"></i>
  112. </button>
  113. </span>
  114. <span class="menubar-group" id="spawners">
  115. </span>
  116. <span class="menubar-group">
  117. <button id="open-help">
  118. <i class="far fa-question-circle"></i>
  119. <span class="sr-only">Help</span>
  120. </button>
  121. </span>
  122. </div>
  123. <div id="main-area">
  124. <div id="options" class="">
  125. <a href="https://docs.google.com/forms/d/e/1FAIpQLScRC-okDZ3FtzDTkbqSrpj5_OGD-1Vl-VYizOK3QM6quus11g/viewform?usp=sf_link"
  126. class="options-banner">Submit your<br>character!</a>
  127. <h3 class="options-header">World Info</h3>
  128. <div id="options-world">
  129. <div class="options-label">
  130. World height
  131. </div>
  132. <div class="options-row">
  133. <input class="options-field-numeric" type="number" id="options-height-value" min="1" value="10">
  134. <select class="options-field-unit" id="options-height-unit">
  135. </select>
  136. </div>
  137. <div class="options-row">
  138. <button class="options-button" id="options-world-fit">Fit to entities</button>
  139. </div>
  140. <div class="options-row">
  141. <input type="checkbox" id="options-show-extra">
  142. <label for="options-show-extra">Show extra options</label>
  143. </div>
  144. <div class="options-block options-block-optional">
  145. <div class="options-row">
  146. <input type="checkbox" id="options-world-autofit">
  147. <label for="options-world-autofit">Auto-size world</label>
  148. </div>
  149. <div class="options-row">
  150. <input type="checkbox" id="options-world-show-names">
  151. <label for="options-world-show-names">Names over entities</label>
  152. </div>
  153. <div class="options-row">
  154. <input type="checkbox" id="options-world-show-bottom-names" checked>
  155. <label for="options-world-show-bottom-names">Names at bottom</label>
  156. </div>
  157. <div class="options-row">
  158. <input type="checkbox" id="options-world-show-top-names" checked>
  159. <label for="options-world-show-top-names">Arrows for very large entities</label>
  160. </div>
  161. <div class="options-row">
  162. <input type="checkbox" id="options-world-show-height-bars">
  163. <label for="options-world-show-height-bars">Height bars</label>
  164. </div>
  165. <div class="options-row">
  166. <input type="checkbox" id="options-world-show-entity-glow">
  167. <label for="options-world-show-entity-glow">Glowing edges</label>
  168. </div>
  169. <div class="options-row">
  170. <input type="checkbox" id="options-world-show-bottom-cover">
  171. <label for="options-world-show-bottom-cover">Opaque ground</label>
  172. </div>
  173. <div class="options-row">
  174. <input type="checkbox" id="options-world-show-scale" checked>
  175. <label for="options-world-show-scale">Scale</label>
  176. </div>
  177. </div>
  178. </div>
  179. <div class="options-label">
  180. Selection:
  181. </div>
  182. <div class="options-row">
  183. <select id="options-selected-entity" class="options-selector">
  184. <option id="options-selected-entity-none">None</option>
  185. </select>
  186. </div>
  187. <div class="options-row">
  188. <button id="delete-entity">
  189. <i class="fas fa-trash-alt symbol-button"></i>
  190. <span class="sr-only">Delete Entity</span>
  191. </button>
  192. </div>
  193. <h3 class="options-header" id="entity-category-header">Entity Options</h3>
  194. <div class="options-category" id="entity-category">
  195. <div class="options-label">
  196. View
  197. </div>
  198. <select class="options-selector" id="entity-view"></select>
  199. <div class="options-label">
  200. Ordering
  201. </div>
  202. <div class="options-two-buttons" id="options-ordering">
  203. <button id="options-order-back">Toward back</button>
  204. <div id="options-order-display"></div>
  205. <button id="options-order-forward">Toward front</button>
  206. </div>
  207. <div class="options-label">
  208. Sizes
  209. </div>
  210. <div class="options-block" id="options-entity-defaults">
  211. </div>
  212. <span id="options-entity">
  213. </span>
  214. </div>
  215. <h3 class="options-header" id="view-category-header">View Options</h3>
  216. <div class="options-category" id="view-category">
  217. <span id="options-view">
  218. </span>
  219. </div>
  220. <h3 class="options-header" id="attribution-category-header">Source</h3>
  221. <div id="options-attribution">
  222. <div class="options-label">
  223. Authors
  224. </div>
  225. <div id="options-attribution-authors">
  226. </div>
  227. <div class="options-label">
  228. Owners
  229. </div>
  230. <div id="options-attribution-owners">
  231. </div>
  232. <div class="options-label">
  233. Source
  234. </div>
  235. <div id="options-attribution-source">
  236. </div>
  237. </div>
  238. <h3 class="options-header" id="scenes-category-header">Preset Scenes</h3>
  239. <div id="options-scenes">
  240. <div class="options-row">
  241. <select class="options-field-picker" id="scene-choices">
  242. </select>
  243. </div>
  244. <div class="options-row">
  245. <button id="load-scene">
  246. <i class="fas fa-play-circle symbol-button"></i>
  247. <span class="sr-only">Load Scene</span>
  248. </button>
  249. </div>
  250. </div>
  251. </div>
  252. <div id="world">
  253. <button class="scroll-button" id="zoom-in">
  254. <i class="fas fa-search-plus"></i>
  255. </button>
  256. <button class="scroll-button" id="zoom-out">
  257. <i class="fas fa-search-minus"></i>
  258. </button>
  259. <button class="scroll-button" id="scroll-left">
  260. <i class="fas fa-arrow-left"></i>
  261. </button>
  262. <button class="scroll-button" id="scroll-right">
  263. <i class="fas fa-arrow-right"></i>
  264. </button>
  265. <button class="scroll-button" disabled id="shrink">
  266. <i class="fas fa-compress-arrows-alt"></i>
  267. </button>
  268. <button class="scroll-button" disabled id="grow">
  269. <i class="fas fa-expand-arrows-alt"></i>
  270. </button>
  271. <button class="scroll-button" disabled id="fit">
  272. <i class="fas fa-search"></i>
  273. </button>
  274. <div id="entities">
  275. </div>
  276. <canvas id="display">
  277. </canvas>
  278. <div class="bottom-cover"></div>
  279. </div>
  280. </div>
  281. </body>
  282. </html>