πstring-gradient
string gradient library / author: Klient
require("morion/string-gradient")
example of usage:
local string_gradient = require("morion/string-gradient")
local ui = gui.begin({ "main" })
local checkbox = ui:new_checkbox(string_gradient.format("my element", {
color_rgb(255, 0, 0),
color_rgb(0, 255, 0),
color_rgb(0, 0, 255)
}))
functions:
format
.format(text: string, colors: table):
string
Name
Type
Description
text
string
text for formatting
colors
table
table of colors
Last updated