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)
    

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.4.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.4.0
    3
  • 0.3.0
    1
  • 0.2.0
    0
  • 0.1.0
    0

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