0.4.0 • Published 6 years ago

moon-phase v0.4.0

Weekly downloads
21
License
-
Repository
github
Last release
6 years ago

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)
    
0.4.0

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago

1.0.0

10 years ago