Added: model_index(model) Enumerate a model name to a index number. Parameters: model (string): `string`: Name of the model Returns: - `int`: Index of color model. --- Usage: - `model_index("monochromatic")`
new() Generate and initiate the properties of a new theme object. Returns: - New theme object. --- Usage: - `theme = new()`
Theme Theme object holding a dictionay alike structure. Fields: keys (string[]): List of named keys. colors (color[]): List of colors.
Sürüm Notları
⋅
v3
Updated: method generate_scheme(this, primary, model) Generate a multi color scheme. Namespace types: Theme Parameters: this (Theme): `Theme` : Theme object. primary (color): `color` : Origin color to base the profile. model (string): `string`: Color model selection, default='monochromatic', options=('monochromatic', 'triadic near', 'triadic far', 'tetradic') Returns: - `this`: Self, Theme object. --- Usage: - `theme = Theme.new().generate_scheme(#e3e3e3, "monochromatic")`
Theme Theme object holding a dictionary alike structure. Fields: keys (string[]): List of named keys. colors (color[]): List of colors.