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