ColorF

ColorF

Constructor

public ColorF(float red, float green, float blue, float alpha);

  • red - the red intensity. A value from 0.0f to 1.0f.

  • green - the green intensity. A value from 0.0f to 1.0f.

  • blue - the blue intensity. A value from 0.0f to 1.0f.

  • alpha - the alpha intensity. A value from 0.0f to 1.0f. A value of 1 indicates solid, a 0 indicates transparent.

Properties / Public variables

  • Black - a static property to return the black colour.

  • White - a static property to return the white colour.

  • Transparent - a static property to return transparency.

  • R - the red intensity.

  • G - the green intensity.

  • B - the blue intensity.

  • A - the alpha intensity.

Methods