The Colour class gives access to colours in Reporter. More...
The REPORTER JavaScript API provides many class constants, properties and methods. For Arup to
be able to extend and enhance the API in the future any constant, property or method names beginning with a lowercase
or uppercase letter are reserved.
If you need to add your own properties or methods to one of the existing classes then to avoid any potential future conflict you
should ensure that the name begins with either an underscore (_) or a dollar sign ($) or the name is prefixed with your
own unique identifier.
For example if company 'ABC' need to add a property called 'example' then to avoid any potential future conflict use one of:
i.textColour = Colour.Red();
For other colours use Colour.RGB().
Details of functionsBlack() [static]DescriptionCreates a black colour |
No arguments
ReturnsColour object Return typeColour |
ExampleTo set the text colour of item i to black: i.textColour = Colour.Black();
|
Blue() [static]DescriptionCreates a blue colour |
No arguments
ReturnsColour object Return typeColour |
ExampleTo set the text colour of item i to blue: i.textColour = Colour.Blue();
|
Cyan() [static]DescriptionCreates a cyan colour |
No arguments
ReturnsColour object Return typeColour |
ExampleTo set the text colour of item i to cyan: i.textColour = Colour.Cyan();
|
Green() [static]DescriptionCreates a green colour |
No arguments
ReturnsColour object Return typeColour |
ExampleTo set the text colour of item i to green: i.textColour = Colour.Green();
|
Grey10() [static]DescriptionCreates a 10% grey colour |
No arguments
ReturnsColour object Return typeColour |
ExampleTo set the text colour of item i to 10% grey: i.textColour = Colour.Grey10();
|
Grey20() [static]DescriptionCreates a 20% grey colour |
No arguments
ReturnsColour object Return typeColour |
ExampleTo set the text colour of item i to 10% grey: i.textColour = Colour.Grey20();
|
Grey30() [static]DescriptionCreates a 30% grey colour |
No arguments
ReturnsColour object Return typeColour |
ExampleTo set the text colour of item i to 30% grey: i.textColour = Colour.Grey30();
|
Grey40() [static]DescriptionCreates a 40% grey colour |
No arguments
ReturnsColour object Return typeColour |
ExampleTo set the text colour of item i to 40% grey: i.textColour = Colour.Grey40();
|
Grey50() [static]DescriptionCreates a 50% grey colour |
No arguments
ReturnsColour object Return typeColour |
ExampleTo set the text colour of item i to 50% grey: i.textColour = Colour.Grey50();
|
Grey60() [static]DescriptionCreates a 60% grey colour |
No arguments
ReturnsColour object Return typeColour |
ExampleTo set the text colour of item i to 60% grey: i.textColour = Colour.Grey60();
|
Grey70() [static]DescriptionCreates a 70% grey colour |
No arguments
ReturnsColour object Return typeColour |
ExampleTo set the text colour of item i to 70% grey: i.textColour = Colour.Grey70();
|
Grey80() [static]DescriptionCreates a 80% grey colour |
No arguments
ReturnsColour object Return typeColour |
ExampleTo set the text colour of item i to 80% grey: i.textColour = Colour.Grey80();
|
Grey90() [static]DescriptionCreates a 90% grey colour |
No arguments
ReturnsColour object Return typeColour |
ExampleTo set the text colour of item i to 90% grey: i.textColour = Colour.Grey90();
|
Magenta() [static]DescriptionCreates a magenta colour |
No arguments
ReturnsColour object Return typeColour |
ExampleTo set the text colour of item i to magenta: i.textColour = Colour.Magenta();
|
None() [static]DescriptionNo colour |
No arguments
ReturnsColour object Return typeColour |
ExampleTo set the fill colour of item i to no colour: i.fillColour = Colour.None();
|
RGB(red[integer], green[integer], blue[integer]) [static]DescriptionCreates a colour from red, green and blue components |
red component of colour (0-255).
green component of colour (0-255).
blue component of colour (0-255).
ReturnsColour object Return typeColour |
ExampleTo set the text colour of item i to red: i.textColour = Colour.RGB(255, 0, 0);
|
Red() [static]DescriptionCreates a red colour |
No arguments
ReturnsColour object Return typeColour |
ExampleTo set the text colour of item i to red: i.textColour = Colour.Red();
|
White() [static]DescriptionCreates a white colour |
No arguments
ReturnsColour object Return typeColour |
ExampleTo set the text colour of item i to white: i.textColour = Colour.White();
|
Yellow() [static]DescriptionCreates a yellow colour |
No arguments
ReturnsColour object Return typeColour |
ExampleTo set the text colour of item i to yellow: i.textColour = Colour.Yellow();
|