Synopsis

PDX_MSGT gdx_EntityGetColor(long option, MDA_PTR gdx_ent_ptr, char **name, double *red, double *green, double *blue)

Purpose

Given a GDX entity, get the native color.

Description

Get the orig_db_ptr for the specified GDX entity and find the associated attribute entity. If an attribute and color is found, allocate memory for color and copy it.

Input

option

Options (not used)

gdx_ent_ptr

GDX entity

Output

name

Name of colour, or NULL (memory allocated must be freed by application)

red

Red component

green

Green component > -1 if not defined

blue

Blue component /

Return

      GDX_NOERR
      .fi