Slide 27
Slide 27 text
Ambient Light Events
w
i
n
d
o
w
.
a
d
d
E
v
e
n
t
L
i
s
t
e
n
e
r
(
'
l
i
g
h
t
l
e
v
e
l
'
, f
u
n
c
t
i
o
n
(
e
) {
a
l
e
r
t
(
e
.
v
a
l
u
e
)
; /
/ v
a
l
u
e i
n s
t
r
i
n
g
}
)
;
returned
value
Illuminance Description
dim < 50 lux dark enough that the light produced by a white background is eye-straining or
distracting
normal 50-10000
lux
office building hallway, very dark overcast day, office lighting, sunrise or sunset on a
clear day, overcast day, or similar
bright > 10000 lux direct sunlight, or similarly bright conditions that make it hard to see things that aren't
high-contrast
27