Class: DVColor

DVColor

new DVColor(r, g, b, a)

The Formated Color Class of DVisual
Parameters:
Name Type Description
r double the Red component of RGBs,0 in default,[0-256]
g double the Green component of RGBs,0 in default,[0-256]
b double the Blue component of RGBs,0 in default,[0-256]
a double the Alpha component of RGBa,1 in default,[0-1]
Source:

Methods

tostring() → {string}

translate the color to the html color style
Source:
Returns:
the rgba style string
Type
string