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.
 
 
 

281 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"><script src="https://kit.fontawesome.com/10a16c6083.js" crossorigin="anonymous"></script>
  8. <script src="math.min.js"></script>
  9. <script src="presets/characters.js"></script>
  10. <script src="presets/buildings.js"></script>
  11. <script src="presets/landmarks.js"></script>
  12. <script src="presets/species.js"></script>
  13. <script src="presets/objects.js"></script>
  14. <script src="presets/fiction.js"></script>
  15. <script src="presets/food.js"></script>
  16. <script src="presets/naturals.js"></script>
  17. <script src="presets/vehicles.js"></script>
  18. <script src="presets/cities.js"></script>
  19. <script src="presets/pokemon.js"></script>
  20. <script src="presets/scenes.js"></script>
  21. <script src="media/attribution.js"></script>
  22. <script src="macrovision.js"></script>
  23. <meta name="viewport" content="width=device-width, initial-scale=0.75, maximum-scale=0.75, user-scalable=0"/>
  24. <meta name="theme-color" content="#000000" />
  25. <meta name="description" content="How big are they anyway?" />
  26. <meta property="og:title" content="Macrovision" />
  27. <meta property="og:description" content="How big are they anyway?" />
  28. <meta property="og:image" content="https://crux.sexy/images/macrovision.png" />
  29. <link rel="icon" href="https://crux.sexy/images/macrovision.ico">
  30. </head>
  31. <body class="toggle-bottom-name toggle-top-name toggle-scale">
  32. <input hidden="true" id="file-upload-picker" type='file' multiple='true'>
  33. <div id="help-menu">
  34. <div id="table-of-contents-holder">
  35. <ul id="table-of-contents">
  36. <li><button id="close-help"><i class="fas fa-times"></i></button></li>
  37. </ul>
  38. </div>
  39. <div id="help-contents-holder">
  40. <div id="help-contents">
  41. <h2>Overview</h2>
  42. <p>Macrovision is a tool for visualizing sizes. You can create, scale, and pose a variety of silhouettes, ranging from galactic structures to individual atoms.</p>
  43. <h2>Adjusting the View</h2>
  44. <p>Zoom in and out with the scroll wheel. You can also manually change the size of the world in the sidebar, or use the <i class="fas fa-search-minus"></i> and <i class="fas fa-search-plus"></i> buttons on the sides of the viewer.</p>
  45. <h2>Creating Entities</h2>
  46. <p>Each thing in the world is an <b>entity</b>. Macrovision comes with many of these, grouped into categories. For example, in the Naturals category, you'll find large bodies such as stars, country borders, and planets.</p>
  47. <p>If you want to compare something that doesn't exist yet, you can create a custom entity. There are three ways you can do this:</p>
  48. <ul>
  49. <li>Drop an image into the window</li>
  50. <li>Select a file from the <i class="fas fa-bars"></i> menu</li>
  51. <li>Paste an image from your clipboard</li>
  52. </ul>
  53. <p>Custom entities aren't saved or exported.</p>
  54. <h2>Changing Entities</h2>
  55. <p>When you have an entity selected, you'll see additional sections in the sidebar: one for the entity itself, and one for its current view.</p>
  56. <p>The entity options control things like scale (how big the entity is compared to normal) and display name. You can also pick from one or more default sizes.</p>
  57. <p>Each entity has one or more views. For example, many characters have a front view and a back view. Each view has its own properties -- most importantly, they each have their own heights. The different views for an entity are kept in sync. If you double the height of a character and switch to their back view, that view will be twice as tall as usual.</p>
  58. <h2>Sharing</h2>
  59. <p>You can take a screenshot of the current scene with the <b>Screenshot</b> <i class="fas fa-camera"></i> button. The screenshot will be copied to your clipboard. You can also use the <b>Download</b> <i class="fas fa-download"></i> button to download the current scene as an image. This currently only includes the scale and the silhouettes themselves; it won't include things like names.</p>
  60. <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 a permalink. It'll be pretty large, since it represents where everything is. I'll probably add a link shortener at some point!</p>
  61. <p>You can also export the current scene as text with <b>Export</b> <i class="fas fa-share"></i>, copying it to your clipboard. You can import a scene from the clipboard with <b>Import</b> <i class="fas fa-link"></i>.</p>
  62. <h2>About</h2>
  63. <p>This tool was created by me! I'm <b>chemicalcrux</b>.</p>
  64. <p>If you've found the site helpful, consider joining the Discord server &mdash; and maybe support me on Ko-Fi, too!</p>
  65. <a href="https://discord.gg/vqcKVV6"><img src="./logos/discord.svg"></a>
  66. <a href="https://ko-fi.com/chemicalcrux"><img src="./logos/ko-fi.svg"></a>
  67. </div>
  68. </div>
  69. </div>
  70. <div id="popout-menu">
  71. </div>
  72. <div id="menubar">
  73. <button id="toggle-menu">
  74. <i class="fas fa-bars"></i>
  75. </button>
  76. <span class="menubar-group">
  77. <button id="copy-screenshot">
  78. <i class="fas fa-camera"></i>
  79. </button>
  80. <button id="save-screenshot">
  81. <i class="fas fa-download"></i>
  82. </button>
  83. </span>
  84. <span class="menubar-group" id="spawners">
  85. </span>
  86. <span class="menubar-group">
  87. <button id="open-help">
  88. <i class="far fa-question-circle"></i>
  89. <span class="sr-only">Help</span>
  90. </button>
  91. </span>
  92. </div>
  93. <div id="main-area">
  94. <div id="options" class="">
  95. <a href="https://docs.google.com/forms/d/e/1FAIpQLScRC-okDZ3FtzDTkbqSrpj5_OGD-1Vl-VYizOK3QM6quus11g/viewform?usp=sf_link" class="options-banner">Submit your<br>character!</a>
  96. <h3 class="options-header">World Info</h3>
  97. <span id="options-world">
  98. <div class="options-label">
  99. World height
  100. </div>
  101. <div class="options-row">
  102. <input class="options-field-numeric" type="number" id="options-height-value" min="1" value="10">
  103. <select class="options-field-unit" id="options-height-unit">
  104. </select>
  105. </div>
  106. <div class="options-row">
  107. <button class="options-button" id="options-world-fit">Fit to entities</button>
  108. </div>
  109. <div class="options-row">
  110. <input type="checkbox" id="options-show-extra">
  111. <label for="options-show-extra">Show extra options</label>
  112. </div>
  113. <div class="options-block options-block-optional">
  114. <div class="options-row">
  115. <input type="checkbox" id="options-world-autofit">
  116. <label for="options-world-autofit">Auto-size world</label>
  117. </div>
  118. <div class="options-row">
  119. <input type="checkbox" id="options-world-show-names">
  120. <label for="options-world-show-names">Names over entities</label>
  121. </div>
  122. <div class="options-row">
  123. <input type="checkbox" id="options-world-show-bottom-names" checked="true">
  124. <label for="options-world-show-bottom-names">Names at bottom</label>
  125. </div>
  126. <div class="options-row">
  127. <input type="checkbox" id="options-world-show-top-names" checked="true">
  128. <label for="options-world-show-top-names">Arrows for very large entities</label>
  129. </div>
  130. <div class="options-row">
  131. <input type="checkbox" id="options-world-show-height-bars">
  132. <label for="options-world-show-height-bars">Height bars</label>
  133. </div>
  134. <div class="options-row">
  135. <input type="checkbox" id="options-world-show-entity-glow">
  136. <label for="options-world-show-entity-glow">Glowing edges</label>
  137. </div>
  138. <div class="options-row">
  139. <input type="checkbox" id="options-world-show-bottom-cover">
  140. <label for="options-world-show-bottom-cover">Opaque ground</label>
  141. </div>
  142. <div class="options-row">
  143. <input type="checkbox" id="options-world-show-scale" checked="true">
  144. <label for="options-world-show-scale">Scale</label>
  145. </div>
  146. </div>
  147. </span>
  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. <span id="options-attribution">
  191. <div class="options-label">
  192. Authors
  193. </div>
  194. <span id="options-attribution-authors">
  195. </span>
  196. <div class="options-label">
  197. Owners
  198. </div>
  199. <span id="options-attribution-owners">
  200. </span>
  201. <div class="options-label">
  202. Source
  203. </div>
  204. <span id="options-attribution-source">
  205. </span>
  206. </span>
  207. <h3 class="options-header" id="scenes-category-header">Preset Scenes</h3>
  208. <span 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. </span>
  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="true" id="shrink">
  235. <i class="fas fa-compress-arrows-alt"></i>
  236. </button>
  237. <button class="scroll-button" disabled="true" id="grow">
  238. <i class="fas fa-expand-arrows-alt"></i>
  239. </button>
  240. <button class="scroll-button" disabled="true" 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>