FluxJS

FluxJS - f.lux for web. Adjust your webpage color temperature to the time of the day, making it look warmer at night and revert back during the day.

Calibration

blue
red
blue
blue custom
red
blue
red
blue
blue
  • green
  • green
  • green
  • green
blue
blue
red
blue
Hacker News new | comments | show | ask | jobs | submit
    Fetching stories...

Basic Flux instance running at given user time:

var flux = new Flux();
flux.adjustTemperature();

Flux instance with specific time:

Will result in night mode being enabled.

var flux = new Flux({date: new Date(2017, 6, 6, 22, 0, 0)});
flux.adjustTemperature();

Run Flux with continuously updated time:

Flux instance will have time updated every minute. If user browser time hits range between sunset and sunrise Flux would turn night mode and will disable it during day time.

var flux = new Flux();
flux.adjustTemperature();
setInterval(function() {
  flux.setDate(new Date());
  flux.adjustTemperature();
}, 60000);
Night mode in: 3