From 997368fe5f7ae8651982d0ba509bb54051b54e34 Mon Sep 17 00:00:00 2001 From: axtloss Date: Sun, 25 Feb 2024 14:42:49 +0100 Subject: Expand rectangle function with fill arg --- fbwarn/rectangle.bvg | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 fbwarn/rectangle.bvg (limited to 'fbwarn/rectangle.bvg') 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 -- cgit v1.2.3