Oasys.D3PLOT.Colour class
Constants
- Colour.BLACK
Colour black
- Colour.BLUE
Colour blue
- Colour.CURRENT
Overlay colour defined in display options for objects
- Colour.CYAN
Colour cyan
- Colour.DARK_ORANGE
Colour dark orange
- Colour.DEFAULT
Default colour for objects
- Colour.ENTITY
Overlay colour same as entity colour for objects
- Colour.GREEN
Colour green
- Colour.GREEN_CYAN
Colour green/cyan
- Colour.GREY
Colour grey
- Colour.LIGHT_BLUE
Colour light blue
- Colour.MAGENTA
Colour magenta
- Colour.MEDIUM_BLUE
Colour medium blue
- Colour.ORANGE
Colour orange
- Colour.RED
Colour red
- Colour.RED_MAGENTA
Colour red/magenta
- Colour.WHITE
Colour white
- Colour.YELLOW
Colour yellow
- Colour.YELLOW_GREEN
Colour yellow/green
Static methods
- classmethod Colour.GetFromName(name)
Returns the colour for a given core or user colour name
- Parameters:
name (string) – The name of the colour, for example red or user_green or green/cyan
- Returns:
colour value (integer)
- Return type:
int
- 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 value (integer)
- Return type:
int