skimg

This is just the skimg parts of sUtils, to load a little quicker when starting SkyOS and displaying images.

load(path)Load a skimg from a file.
draw(skimg [, x [, y [, output]]])Draw a skimg.
load(path)Source

Load a skimg from a file. The __call metamethod will call the draw function, so instead of skimg.draw(img[, x[, y[, tOutput]]]), you can do img([x[, y[, tOutput]]])

Parameters

  1. path string Path to the skimg file.

Returns

  1. table The loaded skimg.
draw(skimg [, x [, y [, output]]])Source

Draw a skimg.

Parameters

  1. skimg table The skimg image to draw.
  2. x? number X coordinate, defaults to 1.
  3. y? number Y coordinate, defaults to 1.
  4. output? table Output terminal, defaults to term.current()