Add background image to library
Create page style
Create a trace graph style
Define a page named "pageName" with style "pSt"
After loading show the page named "pageName"
|
LIB(background,"SDHC/bground.png");
STYLE(pSt,Page){image=background;}
STYLE(gSt,DRAW){type=t;col=blue;width=3;xorigin=3;}
STYLE(bSt,DRAW){type=b;col=White;back=\\40ffffff;width=1;}
VAR(YVal,0,U16);VAR(XVal,0,U16);
PAGE(page1,pSt)
{
DRAW(graph1,420,210,gSt,240,145);
DRAW(graphb,420,210,bSt,240,145);
DRAW(graph3,400,190,gSt2,250,140);
LOOP(graph,FOREVER)
{
CALC(YVal,210,"RND");
DRAW(graph1,XVal,YVal);;
CALC(XVal,XVal,20,"+");
IF(XVal>422?[LOAD(XVal,0);RESET(graph1);]);
WAIT(100);
}
}
SHOW(page1);
|