[][src]Function pyxel::load

pub fn load<R: Read + Seek>(r: R) -> Result<Pyxel, PyxelError>

Load a Pyxel document from a reader.

Examples

use std::fs::File;
let file = File::open("resources/doc.pyxel")?;
let doc = pyxel::load(file)?;