Add to images to library
Remove background colour from Ball image
Create a style for page
Create styles for images with different CurRel's
Define a page named "pageName" using "pageStyle"
Place background image at position 0,0 using imageStyle
Place Ball image at position 130,80 using imageStyle2
Place img1 image at position 230,150 using imageStyle3
Place img2 image at position 250,130 using imageStyle4
Place img3 image at position 250,140 using imageStyle
After loading show the page
|
LIB(background,"SDHC/bground.png");
LIB(BallImg,"SDHC/BallImg.bmp?back=\\ff0000");
LIB(img1,"SDHC/img1.png");
LIB(img2,"SDHC/img2.png");
LIB(img3,"SDHC/img3.png");
STYLE(pageStyle, Page) { back = black;}
STYLE(imageStyle, Image) { curRel=TL;}
STYLE(imageStyle2, Image) { curRel=CC;}
STYLE(imageStyle3, Image) { curRel=TR;}
STYLE(imageStyle4, Image) { curRel=BL;}
PAGE(pageName, pageStyle)
{
IMG(imageBackground,background,imageStyle,0,0);
IMG(imageBall,BallImg,imageStyle2,130,80);
IMG(image1,img1,imageStyle3,230,150);
IMG(image2,img2,imageStyle4,250,130);
IMG(image3,img3,imageStyle,250,150);
}
SHOW(pageName);
|