GetAsRGBA_Doubles() public method

public GetAsRGBA_Doubles ( ) : RGBA_Doubles
return RGBA_Doubles
Example #1
0
 //--------------------------------------------------------------------
 public RGBA_Bytes gradient(RGBA_Bytes c_8, double k)
 {
     RGBA_Doubles c = c_8.GetAsRGBA_Doubles();
     RGBA_Doubles ret;
     ret.m_r = m_r + (c.m_r - m_r) * k;
     ret.m_g = m_g + (c.m_g - m_g) * k;
     ret.m_b = m_b + (c.m_b - m_b) * k;
     ret.m_a = m_a + (c.m_a - m_a) * k;
     return ret.GetAsRGBA_Bytes();
 }