Oasys.REPORTER.Colour class

Properties

property Colour.blue(read only): integer

Colour blue component (0-255)

property Colour.green(read only): integer

Colour green component (0-255)

property Colour.name(read only): string

Colour name

property Colour.red(read only): integer

Colour red component (0-255)

Static methods

classmethod Colour.Black()

Creates a black colour

Returns:

Colour object

Return type:

dict

Example

To set the text colour of item i to black:

textColour = Oasys.REPORTER.Colour.Black()
classmethod Colour.Blue()

Creates a blue colour

Returns:

Colour object

Return type:

dict

Example

To set the text colour of item i to blue:

textColour = Oasys.REPORTER.Colour.Blue()
classmethod Colour.Cyan()

Creates a cyan colour

Returns:

Colour object

Return type:

dict

Example

To set the text colour of item i to cyan:

textColour = Oasys.REPORTER.Colour.Cyan()
classmethod Colour.Green()

Creates a green colour

Returns:

Colour object

Return type:

dict

Example

To set the text colour of item i to green:

textColour = Oasys.REPORTER.Colour.Green()
classmethod Colour.Grey10()

Creates a 10% grey colour

Returns:

Colour object

Return type:

dict

Example

To set the text colour of item i to 10% grey:

textColour = Oasys.REPORTER.Colour.Grey10()
classmethod Colour.Grey20()

Creates a 20% grey colour

Returns:

Colour object

Return type:

dict

Example

To set the text colour of item i to 10% grey:

textColour = Oasys.REPORTER.Colour.Grey20()
classmethod Colour.Grey30()

Creates a 30% grey colour

Returns:

Colour object

Return type:

dict

Example

To set the text colour of item i to 30% grey:

textColour = Oasys.REPORTER.Colour.Grey30()
classmethod Colour.Grey40()

Creates a 40% grey colour

Returns:

Colour object

Return type:

dict

Example

To set the text colour of item i to 40% grey:

textColour = Oasys.REPORTER.Colour.Grey40()
classmethod Colour.Grey50()

Creates a 50% grey colour

Returns:

Colour object

Return type:

dict

Example

To set the text colour of item i to 50% grey:

textColour = Oasys.REPORTER.Colour.Grey50()
classmethod Colour.Grey60()

Creates a 60% grey colour

Returns:

Colour object

Return type:

dict

Example

To set the text colour of item i to 60% grey:

textColour = Oasys.REPORTER.Colour.Grey60()
classmethod Colour.Grey70()

Creates a 70% grey colour

Returns:

Colour object

Return type:

dict

Example

To set the text colour of item i to 70% grey:

textColour = Oasys.REPORTER.Colour.Grey70()
classmethod Colour.Grey80()

Creates a 80% grey colour

Returns:

Colour object

Return type:

dict

Example

To set the text colour of item i to 80% grey:

textColour = Oasys.REPORTER.Colour.Grey80()
classmethod Colour.Grey90()

Creates a 90% grey colour

Returns:

Colour object

Return type:

dict

Example

To set the text colour of item i to 90% grey:

textColour = Oasys.REPORTER.Colour.Grey90()
classmethod Colour.Magenta()

Creates a magenta colour

Returns:

Colour object

Return type:

dict

Example

To set the text colour of item i to magenta:

textColour = Oasys.REPORTER.Colour.Magenta()
classmethod Colour.NoColour()

No colour

Returns:

Colour object

Return type:

dict

Example

To set the fill colour of item i to no colour:

i.fillColour = Oasys.REPORTER.Colour.NoColour()
classmethod Colour.RGB(red, green, blue)

Creates a colour from red, green and blue components

Parameters:
  • red (integer) – red component of colour (0-255)

  • green (integer) – green component of colour (0-255)

  • blue (integer) – blue component of colour (0-255)

Returns:

Colour object

Return type:

dict

Example

To set the text colour of item i to red:

textColour = Oasys.REPORTER.Colour.RGB(255, 0, 0)
classmethod Colour.Red()

Creates a red colour

Returns:

Colour object

Return type:

dict

Example

To set the text colour of item i to red:

textColour = Oasys.REPORTER.Colour.Red()
classmethod Colour.White()

Creates a white colour

Returns:

Colour object

Return type:

dict

Example

To set the text colour of item i to white:

textColour = Oasys.REPORTER.Colour.White()
classmethod Colour.Yellow()

Creates a yellow colour

Returns:

Colour object

Return type:

dict

Example

To set the text colour of item i to yellow:

textColour = Oasys.REPORTER.Colour.Yellow()