These are the code samples for The Book of OpenLayer3. Feel free to download the source code and contribute to this repository:
Demonstrates the power and flexibility of the ImageSource to render on a canvas element.
ImageSource