aboutsummaryrefslogtreecommitdiff
path: root/fbwarn/rectangle.bvg
blob: a1effbd490599ff4d91239bbedebfbedd05a7ff6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Single line comments are started with //

/*
A multiline comment can be
done in this fashion
basically like C
*/


// The IMG function is always required
// it initializes the image with its size
IMG (size=100, width=100)

// A function call can be split across multiple lines

// The viewport function defines the view of an image
// it functions like the svg viewport function
viewport (x=0,
	  y=0,
	  height=100,
	  width=100)

// A rectangle 
rectangle (x=0, y=0,
	   height=100,
	   width=100,
	   color="#5BCEFA",
	   fill=true,
	  thickness=0)

rectangle (x=20, y=0,
	   height=60,
	   width=100,
	   color="#F5A9B8",
	   fill=true,
	   thickness=0)

rectangle (x=40, y=0,
	   height=20
	   width=100,
	   color="#FFFFFF",
	   fill=true,
	   thickness=0)
/*
 A bvg file is parsed from top to bottom
 This means that the lowest element gets drawn over existing elements
*/