less copy protection, more size visualization
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

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