2 using namespace Psychlops;
4 Psychlops::Image Noise1(300,300);
5 Psychlops::Point point1;
6 Psychlops::Color col1,col2;
7 Psychlops::Rectangle rect1(50,50);
8 double d1,d2,d3,d4,x,y;
10 void psychlops_main() {
12 Canvas sampleA(Canvas::fullscreen);
14 col1.set(0.8,0.4,0.1);
17 point1=Noise1.getCenter();
18 d1=Noise1.getHcenter();
19 d2=Noise1.getVcenter();
20 d3=Noise1.getHeight();
22 col2=Noise1.getPix(100,100);
24 //get
\96½
\97ß
\82Ì
\93à
\97e
\82ð
\89æ
\96Ê
\95\
\8e¦
\82·
\82é
27 sampleA.msg("getCenter_x:",50,200);
28 sampleA.var(x,200,200);//getCenter:X
29 sampleA.msg("getCenter_y:",50,250);
30 sampleA.var(y,200,250);//getCenter:Y
31 sampleA.msg("getHcenter:",50,300);
32 sampleA.var(d1,200,300);//getHcenter
33 sampleA.msg("getVcenter:",50,350);
34 sampleA.var(d2,200,350);//getVcenter
35 sampleA.msg("gettHeight:",50,400);
36 sampleA.var(d3,200,400);//getHeight
37 sampleA.msg("getWidth:",50,450);
38 sampleA.var(d4,200,450);//getWidth
39 //
\8eæ
\93¾
\82µ
\82½
\90F
\82Å
\89~
\82ð
\95`
\89æ
\82·
\82é
40 sampleA.oval(rect1,col2);
44 while(!Input::get(Keyboard::spc));