output video uses full window height. reduced canvas size for faster pixel averaging. load d3 from cdnjs over http or https