aboutsummaryrefslogtreecommitdiff
path: root/fbwarn/rectangle.bvg
diff options
context:
space:
mode:
authoraxtloss <axtlos@getcryst.al>2024-02-25 14:42:49 +0100
committeraxtloss <axtlos@getcryst.al>2024-02-25 14:42:49 +0100
commit997368fe5f7ae8651982d0ba509bb54051b54e34 (patch)
tree7aa0e232ebf095b26981cc206affe6ed3519818c /fbwarn/rectangle.bvg
parent507d58d48f3e99f5fd45171cdbadd9c690f47fe1 (diff)
downloadfsverify-997368fe5f7ae8651982d0ba509bb54051b54e34.tar.gz
fsverify-997368fe5f7ae8651982d0ba509bb54051b54e34.tar.bz2
Expand rectangle function with fill arg
Diffstat (limited to 'fbwarn/rectangle.bvg')
-rw-r--r--fbwarn/rectangle.bvg47
1 files changed, 47 insertions, 0 deletions
diff --git a/fbwarn/rectangle.bvg b/fbwarn/rectangle.bvg
new file mode 100644
index 0000000..a1effbd
--- /dev/null
+++ b/fbwarn/rectangle.bvg
@@ -0,0 +1,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
+*/ \ No newline at end of file