项目

一般

简介

功能改进 #28 » canvas.xml

示例xml文件 - 王 绪伦, 2024-02-18 15:44

 
1
<?xml version="1.0" encoding="utf-8"?>
2
<Canvas width="300" height="600">
3
  <Parameter>
4
    <Variable name="Radius" value="1" desc="半径" />
5
    <Variable name="Height" value="2" desc="高度" />
6
  </Parameter>
7
  <Scene>
8
  	<Scene position="0,0,0" rotation="0" layer="1" >
9
		  <Polygon fill="#FF0000" line="#FFFFFF" layer="1" position="150,150" >
10
					<Vertex coordinate="-100,0"/>
11
					<Vertex coordinate="100,0"/>
12
					<Vertex coordinate="100,100"/>
13
					<Vertex coordinate="-100,100"/>
14
		  </Polygon>
15
  	</Scene>
16
	  <Circle position="150,100" radius="100" />
17
	  <Rect fill="#FF0000" line="#FFFFFF" layer="1" position="50,50" width="200" height="100" />
18
	  <Polyline line="#FFFFFF00" layer="1">
19
				<Vertex coordinate="0,0"/>
20
				<Vertex coordinate="300,0"/>
21
	  </Polyline>
22
	  <Label text="s0" position="150,100"/>
23
  </Scene>
24
</Canvas>
(2-2/2)