GetAlpha() public static method

public static GetAlpha ( ) : float
return float
Esempio n. 1
0
 public static void DrawLine(float x1, float y1, float x2, float y2, Color c)
 {
     if (Event.current.type == EventType.Repaint)
     {
         HandleUtility.ApplyWireMaterial();
         GL.Begin(1);
         GL.Color(new Color(c.r, c.g, c.b, c.a * AudioMixerDrawUtils.GetAlpha()));
         AudioMixerDrawUtils.Vertex(x1, y1);
         AudioMixerDrawUtils.Vertex(x2, y2);
         GL.End();
     }
 }
Esempio n. 2
0
 public static void DrawGradientRectHorizontal(Rect r, Color c1, Color c2)
 {
     if (Event.current.type == EventType.Repaint)
     {
         HandleUtility.ApplyWireMaterial();
         GL.Begin(7);
         GL.Color(new Color(c1.r, c1.g, c1.b, c1.a * AudioMixerDrawUtils.GetAlpha()));
         AudioMixerDrawUtils.Vertex(r.x + r.width, r.y);
         AudioMixerDrawUtils.Vertex(r.x + r.width, r.y + r.height);
         GL.Color(new Color(c2.r, c2.g, c2.b, c2.a * AudioMixerDrawUtils.GetAlpha()));
         AudioMixerDrawUtils.Vertex(r.x, r.y + r.height);
         AudioMixerDrawUtils.Vertex(r.x, r.y);
         GL.End();
     }
 }