πŸ“–string-gradient

string gradient library / author: Klient

the library allows you to create text with a gradient effect.

you can use it anywhere: gui, render and etc.

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