Create a library with the background image
Create a style for page with the image as background
Create a style for the circle1 - colour red, border white with 4px width, alignment to bottom-center.
Create a style for the circle2 - colour blueviolet, border black - colours written with hex values
Create a style for the circle3 - colours gold and maroon with 50% alpha transparency - \\80 - first two bytes in hex value
Define a page named "pageName" with style "pageStyle" Set current position to X=20px, Y=240px
Draw the circle named "circle1" - diameter=100px
Set current position to X=240px, Y=136px
Draw the circle named "circle2" with style "drawStyle2"
Draw the "circle3"
with style "drawStyle3", the position is defined here directly in DRAW command - X=450px, Y=50px,
Circle3 is transparent because we defined the transparency in style "drawStyle3"
After loading show the page named "pageName"
|
LIB(background,"SDHC/bground.png");
STYLE(pageStyle, Page) { image = background; }
STYLE(drawStyle1, Draw) { type = Circle; back = red; col = white; width = 4; currel=BC; }
STYLE(drawStyle2, Draw) { type = Circle; back = \\8A2BE2; col = \\000000; width = 2; currel=CC; }
STYLE(drawStyle3, Draw) { type = Circle; back = \\80FFD700; col = \\80800000; width = 5; currel=TR; }
PAGE(pageName, pageStyle)
{
POSN(20, 240);
DRAW(circle1, 120, drawStyle1);
POSN(240, 136);
DRAW(circle2, 150,drawStyle2);
DRAW(circle3, 200,drawStyle3,450,50);
}
SHOW(pageName);
|