     for y in 0..<h / 8 {
         for x in 0..<w / 8 {
             let (r, g, b) = image.pixel(Int(x), Int(y))
-            var color = rgb(UInt8(r), UInt8(g), UInt8(b))
+            var color = rgb(r, g, b)
             drawPoint(x, y, &color)
         }
     }

}

func testVideoRead() {
    let videoFilePath = "/Users/david/Desktop/Datasets/videos/sample10.mp4"
    let videoStream = VideoStream(filePath: videoFilePath)
    resizeWindow(Int32(videoStream.frame.width),
                 Int32(videoStream.frame.height))

    createWindow(300, 300)
    testCBasicFunction()
    testDrawFunctions()
    testImageRead()
    testVideoRead()
}


runGraphics {
    if (CommandLine.arguments.count > 1) {
        print("Command line arguments for '\(CommandLine.arguments[0])'")
        for arg in CommandLine.arguments[1...] {
            print("* \(arg)")
        }
    }
    main()
}
