Displays a base image and an "x-ray" view of a second image where the mouse is pointing
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

42 lines
1.4 KiB

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>X-ray Viewer</title>
  6. <link rel="stylesheet" href="xray.css">
  7. <script src="xray.js"></script>
  8. <meta name="theme-color" content="#000000" />
  9. <meta name="description" content="rip Flash lol" />
  10. <meta property="og:title" content="X-ray Viewer" />
  11. <meta property="og:description" content="rip Flash lol" />
  12. </head>
  13. <body>
  14. <div id="menu" class="start">
  15. <label>
  16. Base:
  17. <input type="text" id="base-url" placeholder="URL for base image">
  18. </label>
  19. <label>
  20. Overlay:
  21. <input type="text" id="overlay-url" placeholder="URL for overlay image">
  22. </label>
  23. <button id="load-button">Load</button>
  24. <label class="nostart large">
  25. Radius:
  26. <input type="number" id="radius-input" placeholder="200" value="200">
  27. <input type="range" id="radius-slider" min="0" max="500" value="200">
  28. </label>
  29. <label class="nostart large">
  30. Softness:
  31. <input type="number" id="softness-input" placeholder="25" value="25">
  32. <input type="range" id="softness-slider" min="0" max="100" value="25">
  33. </label>
  34. </div>
  35. <canvas class="hidden" id="overlay"></canvas>
  36. <canvas class="hidden" id="base"></canvas>
  37. <img id="overlay-img" src="overlay.png">
  38. <img id="base-img" src="base.png">
  39. </body>