less copy protection, more size visualization
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

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