moon-phase

0.4.0 • Public • Published

moon-phase will phase colors according to the lunar cycle.

It can also draw a moon clock:

var moon = require("moon-phase")
 
var moonJump = 0
 
var highlight = moon.highlight(moonJump)
var background = moon.background(moonJump)
 
var theme = webElement.stylesheet([
  webElement.style(
    ".theme-highlight",{
    "background": highlight+" !important"}),
  webElement.style(
    ".theme-border-highlight",{
    "background": "none !important",
    "border-color": highlight+" !important"}),
  webElement.style(
    ".themed-body-color",{
    "background": background+" !important"}),
])
 
var clock = browserBridge.partial()
 
moon.renderClock(
  clock,
  moonJump)
    

Readme

Keywords

none

Package Sidebar

Install

npm i moon-phase

Weekly Downloads

4

Version

0.4.0

License

none

Unpacked Size

4.94 kB

Total Files

3

Last publish

Collaborators

  • erikpukinskis