1. Color example:
<HTML>
<Head>
<Title> coordinates 1 </title>
<Object ID = "sgworld" classid = "CLSID: 3a4f91b1-65a8-11d5-85c1-0001023952c1" style = "visibility: hidden; Height: 0"> </Object>
<SCRIPT type = "text/JavaScript">
Function Init ()
{
VaR coord = sgworld. creator. createposition (-71.00864, 42.36229 );
VaR radius = 500.0; // 500 Meter
VaR outlinecolor = sgworld. creator. createcolor (0, 0, 0, 0 );
// Red
VaR redcircle = sgworld. creator. createcircle (coord, radius, outlinecolor, sgworld. creator. createcolor (255, 0, 0 ));
Sgworld. creator. createtextlabel (coord, "createcolor (255, 0, 0) \ r \ nred", sgworld. creator. createlabelstyle ());
// Green, with Alpha transparency
Coord. X-= 0.015;
VaR greencircle = sgworld. creator. createcircle (coord, radius, outlinecolor, sgworld. creator. createcolor (0,255, 0,100 ));
Sgworld. creator. createtextlabel (coord, "createcolor (0,255, 0,100) \ r \ ngreen, with Alpha transparency", sgworld. creator. createlabelstyle ());
// Blue, using HTML color format
Coord. Y + = 0.015;
VaR bluecircle = sgworld. creator. createcircle (coord, radius, outlinecolor, "# 0000ff ");
Sgworld. creator. createtextlabel (coord, "\" # 0000ff \ "\ r \ nblue, using HTML color format", sgworld. creator. createlabelstyle ());
// Yellow, using abgr format ///////////////////////////////////// ////////////////
Coord. x + = 0.015;
VaR yellowcircle = sgworld. creator. createcircle (coord, radius, outlinecolor, 0xaa00ffff );
Sgworld. creator. createtextlabel (coord, "0xaa00ffff \ r \ nyellow, using abgr format", sgworld. creator. createlabelstyle ());
Coord. altitude = 4000;
Coord. Y-= 0.035;
Coord. Pitch =-45;
Sgworld. Navigate. flyto (coord );
}
</SCRIPT>
</Head>
<Body onload = "Init ();">
</Body>
</Html>