LIL is a Language Make games, nicely

@rgb

This class encapsulates color information. This is the class that is used to instantiate colors written using color instructions.

Example code

//#0 is converted to:
@rgb {
	red: 0;
	green: 0;
	blue: 0;
}

//#FFF is converted to:
@rgb {
	red: 1.0;
	green: 1.0;
	blue: 1.0;
}

Member variables

  • red

    Type: var.f32

    The red component value of the color. Valid values are between 0.0 and 1.0.

    theColor.red: 0.5;
  • green

    Type: var.f32

    The green component value of the color. Valid values are between 0.0 and 1.0.

    theColor.green: 0.5;
  • blue

    Type: var.f32

    The blue component value of the color. Valid values are between 0.0 and 1.0.

    theColor.blue: 0.5;
  • alpha

    Type: var.f32

    The alpha component value of the color. Valid values are between 0.0 and 1.0.