Giter Club home page Giter Club logo

deadpixel-page's Introduction

Dead pixel page

Demo : https://deadpixel.mesili.fr

Why ?

I wanted to use deadpixelbuddy.com but it looks like the website has been suspended by the hosting company...

So I quickly made this page to check my -worsening- monitor. Nobody asked but if you wonder, it has some dead pixels and now a vertical line of dead or at least darker pixels.

Usually I do not share this kind of quick & dirty snippets but I feel like it would be a great base to teach my son a bit about javascript in a few years...

What ?

The purpose of this page is to help locate dead pixels on your screen by showing a flat color that you can change by moving the mouse around (or on tap for mobiles).

How ?

Nothing fancy :

  1. An HTMl5 page
  2. A <body> with an inner <div id="filler">
  3. An mousemove event listener on #filler
  4. The background color is set using hsl()

The value of H, S and L are respectively :

  • H : the current horizontal mouse position divided by the #filler.clientWidth then multiplied by 360
  • S : Minimum set a 29%, maximum at 100%. Incrementing or decrementing gradually on each mousemove event
  • L : the current vertical mouse position divider by the #filler.clientHeight then multiplied by 100

deadpixel-page's People

Contributors

mesili avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.