less copy protection, more size visualization
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

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