mardi 7 juin 2022

fastdraw64 tuto 7 clipping "fd_view"

 



#include "fastdraw.cpp"

image t800;

float  zoom = 0;

bool s = true;


void draw() {

zoom+=0.03;

float kx = 0.6*cos(zoom*0.05);

kx = kx*kx;

float ky = 3.14/3*cos(zoom*0.3);

     fd_clear(0,0,100);

  

     fd_view(200,100,700,600);

fd_image(t800,100*kx,100*ky);

 fd_view(100,250,900,600);

fd_image(t800,0,0,150,100);

fd_view(100,150,900,600);

fd_image(t800,120,80,250,250);

 fd_view(100,300,900,400);

fd_image(t800,120+350,80,450,300);

fd_view(300,200,400,700);

fd_image(t800,50,350,900,600);


fd_view(0,00,900,600);

        fd_image(t800,t800.bmWidth/2,t800.bmHeight/2,ky,kx,kx,100,200);

}


int main() {

t800 = fd_loadimage("c:/dos/t800.bmp");

       fd_window("fd64 tuto6 ",1000,800);

        fd_loop(draw);

return 0;

}