Module guih.presets.tex

texture presets

Functions

preset.checker (...) Makes a checkerboard texture with any amount of colors
preset.brick (color_between, brick_color) Generates a tileable brick texture with 2 colors


Functions

preset.checker (...)
Makes a checkerboard texture with any amount of colors

Parameters:

  • ... number colors to make the texture from

Returns:

    table guih.texture

Usage:

    local GuiH = require("GuiH")
    local texture = guih.presets.tex.checkerboard(colors.white,colors.black,colors.gray)
    print(texture)
preset.brick (color_between, brick_color)
Generates a tileable brick texture with 2 colors

Parameters:

  • color_between number
  • brick_color number

Returns:

    table guih.texture

Usage:

    local GuiH = require("GuiH")
    local texture = guih.presets.tex.brick(colors.brown,colors.orange)
    print(texture)
generated by LDoc 1.4.6 Last updated 2022-06-23 16:51:50