+ pixel color test
This commit is contained in:
parent
c7019f1569
commit
ceea51437a
@ -25,6 +25,24 @@ int main() {
|
||||
code = vkvm::getLastPressedKey();
|
||||
}
|
||||
|
||||
vkvm::setMode(vkvm::GraphicMode::RGB);
|
||||
|
||||
vkvm::setPixel(0,0, vkvm::getBackgroundColor());
|
||||
vkvm::setPixel(5,8, vkvm::getForegroundColor());
|
||||
|
||||
vkvm::Color color = vkvm::getPixel(0,0);
|
||||
vkvm::log(vkvm::INFO,"color = (", (int)color.getRed(), ", ", (int)color.getGreen(), ", ", (int)color.getBlue(), ")");
|
||||
color = vkvm::getPixel(5,8);
|
||||
vkvm::log(vkvm::INFO,"color = (", (int)color.getRed(), ", ", (int)color.getGreen(), ", ", (int)color.getBlue(), ")");
|
||||
|
||||
vkvm::setMode(vkvm::GraphicMode::TwoColors);
|
||||
|
||||
color = vkvm::getPixel(0,0);
|
||||
vkvm::log(vkvm::INFO,"color = (", (int)color.getRed(), ", ", (int)color.getGreen(), ", ", (int)color.getBlue(), ")");
|
||||
color = vkvm::getPixel(5,8);
|
||||
vkvm::log(vkvm::INFO,"color = (", (int)color.getRed(), ", ", (int)color.getGreen(), ", ", (int)color.getBlue(), ")");
|
||||
|
||||
|
||||
std::string input;
|
||||
while(input != "exit"){
|
||||
std::cout << "type r for redraw and t for timer (exit to exit)" << std::endl;
|
||||
|
Loading…
Reference in New Issue
Block a user