Package mgui.util

Class Colour2f

java.lang.Object
mgui.util.Colour
mgui.util.Colour2f
All Implemented Interfaces:
XMLObject

public class Colour2f
extends Colour
  • Constructor Details

    • Colour2f

      public Colour2f()
    • Colour2f

      public Colour2f​(float red, float green)
  • Method Details

    • getDims

      public int getDims()
      Overrides:
      getDims in class Colour
    • getAlpha

      public float getAlpha()
      Overrides:
      getAlpha in class Colour
    • getBlue

      public float getBlue()
      Overrides:
      getBlue in class Colour
    • getGreen

      public float getGreen()
      Overrides:
      getGreen in class Colour
    • getIntensity

      public float getIntensity()
      Overrides:
      getIntensity in class Colour
    • getRed

      public float getRed()
      Overrides:
      getRed in class Colour
    • setAlpha

      public void setAlpha​(int a)
      Overrides:
      setAlpha in class Colour
    • setBlue

      public void setBlue​(int g)
      Overrides:
      setBlue in class Colour
    • setGreen

      public void setGreen​(int b)
      Overrides:
      setGreen in class Colour
    • setIntensity

      public void setIntensity​(int i)
      Overrides:
      setIntensity in class Colour
    • setRed

      public void setRed​(int r)
      Overrides:
      setRed in class Colour
    • getXMLInstance

      public static XMLObject getXMLInstance​(org.xml.sax.Attributes attributes)