aspect_ratio = 17.0 / 7.0;
image_width = 400;
image_height = trunc(Int, image_width / aspect_ratio);
viewport_height = 2;
viewport_width = viewport_height * image_width / image_height;
println("Aspect ratio: ", aspect_ratio);
println("Image: ", image_width, " x ", image_height);
println("Viewport: ", viewport_width, " x ", viewport_height);
YXNwZWN0X3JhdGlvID0gMTcuMCAvIDcuMDsKaW1hZ2Vfd2lkdGggPSA0MDA7CiAKaW1hZ2VfaGVpZ2h0ID0gdHJ1bmMoSW50LCBpbWFnZV93aWR0aCAvIGFzcGVjdF9yYXRpbyk7CiAKdmlld3BvcnRfaGVpZ2h0ID0gMjsKdmlld3BvcnRfd2lkdGggPSB2aWV3cG9ydF9oZWlnaHQgKiBpbWFnZV93aWR0aCAvIGltYWdlX2hlaWdodDsKCnByaW50bG4oIkFzcGVjdCByYXRpbzogIiwgYXNwZWN0X3JhdGlvKTsKcHJpbnRsbigiSW1hZ2U6ICIsIGltYWdlX3dpZHRoLCAiIHggIiwgaW1hZ2VfaGVpZ2h0KTsKcHJpbnRsbigiVmlld3BvcnQ6ICIsIHZpZXdwb3J0X3dpZHRoLCAiIHggIiwgdmlld3BvcnRfaGVpZ2h0KTsK