lundi 30 mai 2022
Camera Security using smartphone as camera ...written in processing
mercredi 18 mai 2022
fastdraw64 tuto6 rotate & scale
#include "fastdraw.cpp"
BITMAP t800;
float zoom = 0;
bool s = true;
void draw() {
zoom=zoom+0.03;
float kx = sin(zoom*0.05);
kx = kx*kx;
float ky = 3.14/3*cos(zoom*0.3);
fd_clear(0,0,100);
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 tuto4 ",1000,800);
fd_loop(draw);
return 0;
}
lundi 16 mai 2022
fastdraw64 tuto 5 special effect ....
#include "fastdraw64.cpp"
BITMAP t800;
float time= 0;
void draw() {
time+=0.1;
fd_clear(0,0,100);
for (int ys=0;ys<t800.bmHeight;ys++)
fd_hline_bitmap(100+20*sin(0.04*ys-0.5*time),200+ys,t800,ys);
}
int main() {
t800 = fd_loadimage("c:/dos/t800.bmp");
fd_window("fd64 tuto5 special effects.. ",1000,800);
fd_loop(draw);
return 0;
}
dimanche 15 mai 2022
fastdraw64 tuto 4 scale image
#include "fastdraw.cpp"
BITMAP t800;
void draw() {
fd_clear(0,0,100);
fd_image(t800,0,0,150,100);
fd_image(t800,120,80,250,250);
fd_image(t800,120+350,80,450,300);
fd_image(t800,50,350,900,600);
}
int main() {
t800 = fd_loadimage("c:/dos/t800.bmp");
fd_window("fd64 tuto4 ",1000,800);
fd_loop(draw);
return 0;
}
jeudi 12 mai 2022
fastdraw64 tuto3 view image 330 FPS
mardi 10 mai 2022
fastdraw64 tuto2 ellipse
// fd64 tuto 2
#include "fastdraw.cpp"
void draw() {
fd_clear(0,0,100); // clear screen
fd_ellipse(mouseX,mouseY,80,80,rgb(255,0,0)); // drawing ellipse using mouse coordinates
}
int main() {
fd_window("fd64 tuto2",800,600); // create fastdraw window
fd_loop(draw); // call draw function
return 0;
}
FastDraw64 tuto 1 create window
fastdraw64 is a graphic engine software rendering running on 64 bits windows platform written in C and assembly language
// fastdraw64 tuto1 create window
#include "fastdraw.cpp"
void draw() {
fd_clear(0,0,100); // clear the buffer
}
int main() {
fd_window("fd64 tuto1",800,600);
fd_loop(draw);
return 0;
}