Description | Example | Return Message | Group

Graphics SetColor

Set the color of a label, marker, ground track, swath or polygon of an object

Syntax

Graphics <ObjectPath> SetColor {Color} [{Item}]

Description

The Graphics SetColor command is used to identify the {Color} to be used for displaying an object's label and marker and other graphics items. For valid {Color} options see Common Options.

{Item} identifies the type of graphic whose color is to be changed. The following table descibes the valid {Item} values for each object type:

Object {Item}
Satellite, Aircraft, Missile, Launch Vehicle Label, Marker, GroundTrack, Swath
Ship, Ground Vehicle Label, Marker, GroundTrack
Facility, Place, Target Label, Marker
Area Target Label, Marker, Polygon
Star Label, Marker
Planet Label, Marker, Orbit

The planet's orbit will only be visible in certain 2d projections.

Sensor N/A

Note: If you don't specify an {Item}, the color is changed for all of the object's graphics.

Note: If an icon has been specified as the Marker type, then this command with the Marker {Item} has no effect.

Example

To change the color of the marker for the Shuttle to yellow:

Graphics */Satellite/Shuttle SetColor 4 Marker

To change the color of the sensor footprint:

Graphics */Satellite/Shuttle/Sensor/Tracker SetColor red

To change the color of the planet label:

Graphics */Planet/Jupiter SetColor %255000255 Label

ReturnMessage

If activated, Connect returns an acknowledgement message.

Group Membership

This command belongs to the following group(s):

Area Targets

Facilities, Places & Targets

2D Object Graphics

Line Targets

Sensors

Stars & Planets

Vehicles

Version

10

STK Programming Interface 11.0.1