This commit is contained in:
yukun 2019-11-28 18:42:38 +01:00
parent 6d8964243c
commit d9c00e4682
3 changed files with 23 additions and 23 deletions

View File

@ -76,7 +76,7 @@ int main(){
std::cout <<"picture" << std::endl;
vkvm::Color backgroundColor = vkvm::getBackgroundColor();
for(int i = 0; i<1000; i++) {
Imagedisplay imagedisplay("../src/P7.bmp");
Imagedisplay imagedisplay("../src/P6.bmp");
for (int w = 0; w < vkvm::getWidth(); w++) {
for (int h = 0; h < vkvm::getHeight(); h++) {
unsigned int a ;
@ -89,7 +89,7 @@ int main(){
sleep(5);
vkvm::setDefaultValues();
Imagedisplay imagedisplay2("../src/P6.bmp");
Imagedisplay imagedisplay2("../src/P8.bmp");
for (int w = 0; w < vkvm::getWidth(); w++) {
for (int h = 0; h < vkvm::getHeight(); h++) {
@ -101,28 +101,28 @@ int main(){
sleep(5);
vkvm::setDefaultValues();
// Imagedisplay imagedisplay3("../src/P6.bmp");
// for (int w = 0; w < vkvm::getWidth(); w++) {
// for (int h = 0; h < vkvm::getHeight(); h++){
// unsigned int a ;
// a = imagedisplay3.getPixel(w, h);
// vkvm::setPixel(w,h,vkvm::Color(a));
// }
//
// }
// sleep(5);
// vkvm::setDefaultValues();
Imagedisplay imagedisplay3("../src/P9.bmp");
for (int w = 0; w < vkvm::getWidth(); w++) {
for (int h = 0; h < vkvm::getHeight(); h++){
unsigned int a ;
a = imagedisplay3.getPixel(w, h);
vkvm::setPixel(w,h,vkvm::Color(a));
}
// Imagedisplay imagedisplay4("../src/P7.bmp");
// for (int w = 0; w < vkvm::getWidth(); w++) {
// for (int h = 0; h < vkvm::getHeight(); h++){
// unsigned int a ;
// a = imagedisplay4.getPixel(w, h);
// vkvm::setPixel(w,h,vkvm::Color(a));
// }
//
// }
// sleep(5);
}
sleep(5);
vkvm::setDefaultValues();
Imagedisplay imagedisplay4("../src/P10.bmp");
for (int w = 0; w < vkvm::getWidth(); w++) {
for (int h = 0; h < vkvm::getHeight(); h++){
unsigned int a ;
a = imagedisplay4.getPixel(w, h);
vkvm::setPixel(w,h,vkvm::Color(a));
}
}
sleep(5);
}
});

Binary file not shown.

Before

Width:  |  Height:  |  Size: 753 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB