Common

common for context

Constructor

new Common()

Methods

(static) ApplyAlphaFactor(alpha) → {number}

apply alpha factor

Parameters:
Name Type Description
alpha number

alpha input

Returns:
Type:
number
  • alpha output

(static) setAlphaFactor(alpha)

set alpha factor

Parameters:
Name Type Description
alpha number

alpha factor

(static) setPixel(pos, r, g, b, a)

save the pixel result

Parameters:
Name Type Description
pos number

index of led

r number

color.r

g number

color.g

b number

color.b

a number

color.a

(static) setFill(r, g, b, a)

save the fill result

Parameters:
Name Type Description
r number

color.r

g number

color.g

b number

color.b

a number

color.a

(static) initLedStatus(config)

init the led config

Parameters:
Name Type Description
config