Skip to content

Image Primitive Functions

zetaepyon edited this page Jan 9, 2018 · 1 revision

These interface functions allow for the display and manipulation of images.

windower.prim.create(prim_name)

  • prim_name string - name of the primitive to create. Try to choose something unique.

windower.prim.delete(prim_name)

  • prim_name string - name of the primitive to delete.

windower.prim.set_color(prim_name, a, r, g, b)

  • prim_name string - name of the primitive to operate on
  • a integer - Alpha
  • r integer - Red
  • g integer - Green
  • b integer - Blue

windower.prim.set_fit_to_texture(prim_name, fit)

  • prim_name string - name of the primitive to operate on
  • fit boolean - FitToTexture

windower.prim.set_position(prim_name, x_pos, y_pos)

  • prim_name string - name of the primitive to operate on
  • x_pos number - X position
  • y_pos number - Y position

windower.prim.set_size(prim_name, x, y)

  • prim_name string - name of the primitive to operate on
  • x number - X size
  • y number - Y size

windower.prim.set_texture(prim_name, texture)

  • prim_name string - name of the primitive to operate on
  • texture string - texture to set. This must be the absolute path to the file.

windower.prim.set_repeat(prim_name, x_repeat, y_repeat)

  • prim_name string - name of the primitive to operate on
  • x_repeat number - X repetition value
  • y_repeat number - Y repetition value

windower.prim.set_visibility(prim_name, visible)

  • prim_name string - name of the primitive to operate on
  • visible boolean - Visibility
Clone this wiki locally