Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ivac2:firdef_map_polygon [2013/12/04 01:10]
127.0.0.1 external edit
ivac2:firdef_map_polygon [2017/04/08 14:27] (current)
Line 6: Line 6:
 ^Element|polygon|| ^Element|polygon||
 ^Attribute^Format^Remarks^ ^Attribute^Format^Remarks^
-|stipple|integer|stipple line bitwise pattern definition| 
 |width|float|line width in pixels| |width|float|line width in pixels|
 |color|string|color id name| |color|string|color id name|
Line 18: Line 17:
  
 {{:​ivac2:​firdef:​firdef_opengl_polygon.png?​|}} {{:​ivac2:​firdef:​firdef_opengl_polygon.png?​|}}
 +
 +The drawing can be written as:
 +
 +<code XML>
 +  <polygon color="​myPredefinedColor">​
 +      <point x="v0 x" y="v0 y" />
 +      <point x="v1 x" y="v1 y" />
 +      <point x="v2 x" y="v2 y" />
 +      <point x="v3 x" y="v3 y" />
 +      <point x="v4 x" y="v4 y" />
 +      <point x="v5 x" y="v5 y" />
 +  </​polygon>​
 +</​code>​
  
  
 ===== Example ===== ===== Example =====
  
-    <polygon r="​0"​ g="​128"​ b="​0">​ +The following code draws a filled rectangle:​ 
-        <point x="​1.00222"​ y="​0.298888"/​+ 
-        <point x="0.989001" ​y="​0.288488"/​+<code XML
-        <​point ​x="0.975529" ​y="0.27872"/>​ +  <polygon color="myPredefinedColor">​ 
-        <​point ​x="0.974503" ​y="0.277813"/>​ +      <​point ​lat="N0504413" ​lon="E0043108"/>​ 
-        <​point ​x="0.97358" ​y="0.276798"/>​ +      <​point ​lat="N0504421" ​lon="E0042601"/>​ 
-        <​point ​x="0.972781" ​y="0.275686"/>​ +      <​point ​lat="N0504528" ​lon="E0042119"/>​ 
-        <point x="​0.972106"​ y="​0.274487"​/> +      <​point ​lat="N0504730" ​lon="E0041718"/>​ 
-    </polygon>+  </polygon
 +</code>
  
  
Line 39: Line 52:
 </p> </p>
 </​HTML>​ </​HTML>​
-