Subscribe Bookmark RSS Feed

Display text at (x,y) in 3d scene?

pmroz

Super User

Joined:

Jun 23, 2011

Hi folks,



I'm trying to add a custom legend to a graph box using the 3D methods.
 I've got colored boxes working just fine.  Now I
need to add text to the top of each colored box and I can't for the
life of me figure out how.  I'm pretty sure I need to use the
TRANSLATE command but it's not working the way I think it should.
 I'm creating an ORTHO2D object, and I want to put text at
particular X, Y values.



Here's some sample code:




style="font-size: 10pt; font-family: "Courier New"; color: black;">nlegend
style="">     

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">10

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">legend_color

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">
{

style="font-size: 10pt; font-family: "Courier New"; color: navy;">-

style="font-size: 10pt; font-family: "Courier New"; color: teal;">127

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: navy;">-

style="font-size: 10pt; font-family: "Courier New"; color: teal;">240

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: navy;">-

style="font-size: 10pt; font-family: "Courier New"; color: teal;">25343

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: navy;">-

style="font-size: 10pt; font-family: "Courier New"; color: teal;">54527

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: navy;">-

style="font-size: 10pt; font-family: "Courier New"; color: teal;">4652983

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: navy;">-

style="font-size: 10pt; font-family: "Courier New"; color: teal;">12058438

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: navy;">-

style="font-size: 10pt; font-family: "Courier New"; color: teal;">16765952

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">                       

style="font-size: 10pt; font-family: "Courier New"; color: navy;">-

style="font-size: 10pt; font-family: "Courier New"; color: teal;">16736768

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: navy;">-

style="font-size: 10pt; font-family: "Courier New"; color: teal;">15728640

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: navy;">-

style="font-size: 10pt; font-family: "Courier New"; color: teal;">8323072

style="font-size: 10pt; font-family: "Courier New"; color: black;">}

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">legend_list
style=""> 

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">
{

style="font-size: 10pt; font-family: "Courier New"; color: teal;">10

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">20

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">30

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">40

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">50

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">60

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">70

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">80

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">90

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">100

style="font-size: 10pt; font-family: "Courier New"; color: black;">}

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">

 





style="font-size: 10pt; font-family: "Courier New"; color: black;">legend_scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Scene
Display
List

style="font-size: 10pt; font-family: "Courier New"; color: black;">()

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: green;">//Create
a display list

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">

 





style="font-size: 10pt; font-family: "Courier New"; color: black;">lxmin

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">lxmax

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">150

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">ldelta

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">
lxmax

style="font-size: 10pt; font-family: "Courier New"; color: navy;">/

style="font-size: 10pt; font-family: "Courier New"; color: black;">
nlegend

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">l_xsize

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">
ldelta

style="font-size: 10pt; font-family: "Courier New"; color: navy;">*

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">.8

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">

 





style="font-size: 10pt; font-family: "Courier New"; color: black;">ly1

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">ly2

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">4.5

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">

 





style="font-size: 10pt; font-family: "Courier New"; color: green;">/*
Creates a display list named
legend_scene that holds vertices for the squares.





style="font-size: 10pt; font-family: "Courier New"; color: green;">
style="">  
All the z vertices are zero
since this is a two dimensional scene.
style=""> 
Put
the





style="font-size: 10pt; font-family: "Courier New"; color: green;">
style="">  
count corresponding to the
color just above each square */

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">for

style="font-size: 10pt; font-family: "Courier New"; color: black;">
(i

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">1

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
i

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><=

style="font-size: 10pt; font-family: "Courier New"; color: black;">
nlegend

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
i

style="font-size: 10pt; font-family: "Courier New"; color: navy;">++,

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">

 





style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
lx1

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">
(i

style="font-size: 10pt; font-family: "Courier New"; color: navy;">-

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">1

style="font-size: 10pt; font-family: "Courier New"; color: black;">)

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: navy;">*

style="font-size: 10pt; font-family: "Courier New"; color: black;">
ldelta

style="font-size: 10pt; font-family: "Courier New"; color: navy;">+

style="font-size: 10pt; font-family: "Courier New"; color: black;">
lxmin

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
lx2

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">
lx1

style="font-size: 10pt; font-family: "Courier New"; color: navy;">+

style="font-size: 10pt; font-family: "Courier New"; color: black;">
l_xsize

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">

 





style="font-size: 10pt; font-family: "Courier New"; color: green;">//
Draw one square

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
legend_scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
color(legend_color[i])

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
legend_scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
Begin(

style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">polygon

style="font-size: 10pt; font-family: "Courier New"; color: black;">)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
legend_scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
Vertex(lx1

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
ly1

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: black;">)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
legend_scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
Vertex(lx1

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
ly2

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: black;">)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
legend_scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
Vertex(lx2

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
ly2

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: black;">)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
legend_scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
Vertex(lx2

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
ly1

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: black;">)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
legend_scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
End()

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">


style="font-size: 10pt; font-family: "Courier New"; color: black;">)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">legend_scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
translate(

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
ly2

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: black;">)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">for

style="font-size: 10pt; font-family: "Courier New"; color: black;">
(i

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">1

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
i

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><=

style="font-size: 10pt; font-family: "Courier New"; color: black;">
nlegend

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
i

style="font-size: 10pt; font-family: "Courier New"; color: navy;">++,

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">

 





style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
legend_scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
color(

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: black;">)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">    

style="font-size: 10pt; font-family: "Courier New"; color: green;">//
black

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: green;">//
translate doesn't work quite
the way I expected it to...

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
legend_scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
translate(ldelta

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: black;">)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
legend_scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">text

style="font-size: 10pt; font-family: "Courier New"; color: black;">(

style="font-size: 10pt; font-family: "Courier New"; color: black;">center

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
baseline

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">.1

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">char

style="font-size: 10pt; font-family: "Courier New"; color: black;">(

style="font-size: 10pt; font-family: "Courier New"; color: black;">legend_list[i]))

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">

 





style="font-size: 10pt; font-family: "Courier New"; color: green;">//Put
the scene in a display box,
and create a new window.

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Scene
Box

style="font-size: 10pt; font-family: "Courier New"; color: black;">(

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">300

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">50

style="font-size: 10pt; font-family: "Courier New"; color: black;">
)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">New
Window

style="font-size: 10pt; font-family: "Courier New"; color: black;">(

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: purple;">"Sample
Legend"

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
scene )

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
Ortho2d(

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">150

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">10

style="font-size: 10pt; font-family: "Courier New"; color: black;">)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
Call List(legend_scene)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">

 





style="font-size: 10pt; font-family: "Courier New"; color: green;">//
Update the scene to see the
output

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
Update

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">




 







Thanks a ton,

Peter
3 REPLIES
aim

Community Trekker

Joined:

Jun 23, 2011

Increase text size from 0.1 to 2 or 3.That will do the trick.
pmroz

Super User

Joined:

Jun 23, 2011

Wonderful - works great!  Thanks a lot aim.  I
tweaked the code a bit and here it is.  Which brings up an
additional question: the text is kind of fuzzy - anyone know how to
make it appear any crisper?  Thanks - Peter




style="font-size: 10pt; font-family: "Courier New"; color: black;">nlegend
style="">     

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">10

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">legend_color

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">
{

style="font-size: 10pt; font-family: "Courier New"; color: navy;">-

style="font-size: 10pt; font-family: "Courier New"; color: teal;">127

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: navy;">-

style="font-size: 10pt; font-family: "Courier New"; color: teal;">240

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: navy;">-

style="font-size: 10pt; font-family: "Courier New"; color: teal;">25343

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: navy;">-

style="font-size: 10pt; font-family: "Courier New"; color: teal;">54527

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: navy;">-

style="font-size: 10pt; font-family: "Courier New"; color: teal;">4652983

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: navy;">-

style="font-size: 10pt; font-family: "Courier New"; color: teal;">12058438

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: navy;">-

style="font-size: 10pt; font-family: "Courier New"; color: teal;">16765952

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">                       

style="font-size: 10pt; font-family: "Courier New"; color: navy;">-

style="font-size: 10pt; font-family: "Courier New"; color: teal;">16736768

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: navy;">-

style="font-size: 10pt; font-family: "Courier New"; color: teal;">15728640

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: navy;">-

style="font-size: 10pt; font-family: "Courier New"; color: teal;">8323072

style="font-size: 10pt; font-family: "Courier New"; color: black;">}

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">legend_list
style=""> 

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">
{

style="font-size: 10pt; font-family: "Courier New"; color: teal;">10

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">20

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">30

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">40

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">50

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">60

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">70

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">80

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">90

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">100

style="font-size: 10pt; font-family: "Courier New"; color: black;">}

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">

 





style="font-size: 10pt; font-family: "Courier New"; color: black;">legend_scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Scene
Display
List

style="font-size: 10pt; font-family: "Courier New"; color: black;">()

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: green;">//Create
a display list

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">

 





style="font-size: 10pt; font-family: "Courier New"; color: black;">lxmin

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">lxmax

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">150

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">ldelta

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">
lxmax

style="font-size: 10pt; font-family: "Courier New"; color: navy;">/

style="font-size: 10pt; font-family: "Courier New"; color: black;">
nlegend

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">l_xsize

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">
ldelta

style="font-size: 10pt; font-family: "Courier New"; color: navy;">*

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">.8

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">

 





style="font-size: 10pt; font-family: "Courier New"; color: black;">ly1

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">ly2

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">4.5

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">

 





style="font-size: 10pt; font-family: "Courier New"; color: green;">/*
Creates a display list named
legend_scene that holds vertices for the squares.





style="font-size: 10pt; font-family: "Courier New"; color: green;">
style="">  
All the z vertices are zero
since this is a two dimensional scene.
style=""> 
Put
the





style="font-size: 10pt; font-family: "Courier New"; color: green;">
style="">  
count corresponding to the
color just above each square */

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">for

style="font-size: 10pt; font-family: "Courier New"; color: black;">
(i

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">1

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
i

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><=

style="font-size: 10pt; font-family: "Courier New"; color: black;">
nlegend

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
i

style="font-size: 10pt; font-family: "Courier New"; color: navy;">++,

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">

 





style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
lx1

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">
(i

style="font-size: 10pt; font-family: "Courier New"; color: navy;">-

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">1

style="font-size: 10pt; font-family: "Courier New"; color: black;">)

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: navy;">*

style="font-size: 10pt; font-family: "Courier New"; color: black;">
ldelta

style="font-size: 10pt; font-family: "Courier New"; color: navy;">+

style="font-size: 10pt; font-family: "Courier New"; color: black;">
lxmin

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
lx2

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">
lx1

style="font-size: 10pt; font-family: "Courier New"; color: navy;">+

style="font-size: 10pt; font-family: "Courier New"; color: black;">
l_xsize

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">

 





style="font-size: 10pt; font-family: "Courier New"; color: green;">//
Draw one square

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
legend_scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
color(legend_color[i])

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
legend_scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
Begin(

style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">polygon

style="font-size: 10pt; font-family: "Courier New"; color: black;">)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
legend_scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
Vertex(lx1

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
ly1

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: black;">)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
legend_scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
Vertex(lx1

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
ly2

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: black;">)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
legend_scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
Vertex(lx2

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
ly2

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: black;">)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
legend_scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
Vertex(lx2

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
ly1

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: black;">)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
legend_scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
End()

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">


style="font-size: 10pt; font-family: "Courier New"; color: black;">)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">legend_scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
translate(

style="font-size: 10pt; font-family: "Courier New"; color: navy;">-

style="font-size: 10pt; font-family: "Courier New"; color: black;">ldelta

style="font-size: 10pt; font-family: "Courier New"; color: navy;">/

style="font-size: 10pt; font-family: "Courier New"; color: teal;">1.5

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
ly2

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: black;">)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">legend_scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
color(

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: black;">)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">    

style="font-size: 10pt; font-family: "Courier New"; color: green;">//
black

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">for

style="font-size: 10pt; font-family: "Courier New"; color: black;">
(i

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">1

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
i

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><=

style="font-size: 10pt; font-family: "Courier New"; color: black;">
nlegend

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
i

style="font-size: 10pt; font-family: "Courier New"; color: navy;">++,

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">


style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
legend_scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
translate(ldelta

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: black;">)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="">     
legend_scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">text

style="font-size: 10pt; font-family: "Courier New"; color: black;">(

style="font-size: 10pt; font-family: "Courier New"; color: black;">center

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
baseline

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">3

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">char

style="font-size: 10pt; font-family: "Courier New"; color: black;">(

style="font-size: 10pt; font-family: "Courier New"; color: black;">legend_list[i]))

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">

 





style="font-size: 10pt; font-family: "Courier New"; color: green;">//Put
the scene in a display box,
and create a new window.

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;">=

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Scene
Box

style="font-size: 10pt; font-family: "Courier New"; color: black;">(

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">300

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">50

style="font-size: 10pt; font-family: "Courier New"; color: black;">
)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">New
Window

style="font-size: 10pt; font-family: "Courier New"; color: black;">(

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: purple;">"Sample
Legend"

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">
scene )

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
Ortho2d(

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">150

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">0

style="font-size: 10pt; font-family: "Courier New"; color: navy;">,

style="font-size: 10pt; font-family: "Courier New"; color: black;">

style="font-size: 10pt; font-family: "Courier New"; color: teal;">10

style="font-size: 10pt; font-family: "Courier New"; color: black;">)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
Call List(legend_scene)

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">

 





style="font-size: 10pt; font-family: "Courier New"; color: green;">//
Update the scene to see the
output

style="font-size: 10pt; font-family: "Courier New"; color: black;">





style="font-size: 10pt; font-family: "Courier New"; color: black;">scene

style="font-size: 10pt; font-family: "Courier New"; color: navy;"><<

style="font-size: 10pt; font-family: "Courier New"; color: black;">
Update

style="font-size: 10pt; font-family: "Courier New"; color: navy;">;

style="font-size: 10pt; font-family: "Courier New"; color: black;">




 


aim

Community Trekker

Joined:

Jun 23, 2011

To display text, font is first rendered, then transformed to reflect current projection/perspective. To keep small font sharp(er) -- just reduce post-rendered transform. In your case: just keep Ortho2D size commensurate with Scene Box size, so the text would appear less distorted.





style="TEXT-ALIGN: left; WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: 16px/20px 'Times New Roman'; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"
class=Apple-style-span>
style="LINE-HEIGHT: 16px; FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 13px"
class=Apple-style-span>
style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">nlegend     
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">10

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">legend_color
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
{

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">-

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">127

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">-

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">240

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">-

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">25343

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">-

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">54527

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">-

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">4652983

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">-

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">12058438

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">-

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">16765952

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">                       
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">-

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">16736768

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">-

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">15728640

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">-

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">8323072

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">}

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">legend_list 
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
{

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">10

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">20

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">30

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">40

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">50

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">60

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">70

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">80

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">90

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">100

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">}

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt"> 

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">legend_scene
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: rgb(0,0,221); FONT-SIZE: 10pt">Scene
Display List

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">()

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: green; FONT-SIZE: 10pt">//Create a
display list

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt"> 

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">lxmin
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">lxmax
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">150

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">ldelta
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
lxmax
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">/

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
nlegend

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">l_xsize
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
ldelta
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">*

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">.8

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt"> 

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">ly1
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">ly2
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="BACKGROUND-COLOR: #ffff66"> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">
style="BACKGROUND-COLOR: #ffff66" color=#ff3300>8
.5

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt"> 

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: green; FONT-SIZE: 10pt">/* Creates a
display list named legend_scene that holds vertices for the squares.
class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: green; FONT-SIZE: 10pt">  
class=Apple-converted-space> 
All the z vertices are zero
since this is a two dimensional scene. 
class=Apple-converted-space> 
Put the

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: green; FONT-SIZE: 10pt">  
class=Apple-converted-space> 
count corresponding to the color
just above each square */

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: rgb(0,0,221); FONT-SIZE: 10pt">for

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
(i
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">1

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
i
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><=

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
nlegend

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
i

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">++,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt"> 

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">     
class=Apple-converted-space> 
lx1
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
(i
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">-

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">1

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">)

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">*

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
ldelta
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">+

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
lxmin

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">     
class=Apple-converted-space> 
lx2
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
lx1
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">+

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
l_xsize

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt"> 

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: green; FONT-SIZE: 10pt">// Draw one
square

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">     
class=Apple-converted-space> 
legend_scene
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
color(legend_color[i])

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">     
class=Apple-converted-space> 
legend_scene
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
Begin(

style="FONT-FAMILY: 'Courier New'; COLOR: rgb(0,0,221); FONT-SIZE: 10pt">polygon

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">)

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">     
class=Apple-converted-space> 
legend_scene
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
Vertex(lx1

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
ly1

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">)

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">     
class=Apple-converted-space> 
legend_scene
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
Vertex(lx1

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
ly2

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">)

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">     
class=Apple-converted-space> 
legend_scene
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
Vertex(lx2

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
ly2

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">)

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">     
class=Apple-converted-space> 
legend_scene
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
Vertex(lx2

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
ly1

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">)

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">     
class=Apple-converted-space> 
legend_scene
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
End()

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">)

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">legend_scene
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
translate(

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">-

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">ldelta

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">/

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">1.5

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
ly2

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">)

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">legend_scene
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
color(

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">)

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">    
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: green; FONT-SIZE: 10pt">//
black

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: rgb(0,0,221); FONT-SIZE: 10pt">for

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
(i
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">1

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
i
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><=

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
nlegend

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
i

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">++,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">     
class=Apple-converted-space> 
legend_scene
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
translate(ldelta

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">)

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">     
class=Apple-converted-space> 
legend_scene
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: rgb(0,0,221); FONT-SIZE: 10pt">text

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">(

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">center

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
baseline

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space>
style="BACKGROUND-COLOR: #ffff66"> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">
color=#ff3300>5
style="BACKGROUND-COLOR: #ffff66">

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: rgb(0,0,221); FONT-SIZE: 10pt">char

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">(

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">legend_list[i]))

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">)

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt"> 

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: green; FONT-SIZE: 10pt">//Put the
scene in a display box, and create a new window.

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">scene
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">=

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: rgb(0,0,221); FONT-SIZE: 10pt">Scene
Box

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">(

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">300

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">50

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
)

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: rgb(0,0,221); FONT-SIZE: 10pt">New
Window

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">(

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: purple; FONT-SIZE: 10pt">"Sample
Legend"

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
scene
class=Apple-converted-space> 
)

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">scene
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
Ortho2d(

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">150

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">0

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">,
style="BACKGROUND-COLOR: #ffff66">

style="FONT-FAMILY: 'Courier New'; COLOR: teal; FONT-SIZE: 10pt">
style="BACKGROUND-COLOR: #ffff00" color=#ff3333>
style="BACKGROUND-COLOR: #ffff66">25

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">)

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">scene
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
Call
List(legend_scene)

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt"> 

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: green; FONT-SIZE: 10pt">// Update the
scene to see the output

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space> 


style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">scene
class=Apple-converted-space> 

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt"><<

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">
class=Apple-converted-space> 
Update

style="FONT-FAMILY: 'Courier New'; COLOR: navy; FONT-SIZE: 10pt">;

style="FONT-FAMILY: 'Courier New'; COLOR: black; FONT-SIZE: 10pt">

class=Apple-converted-space>