Updated docs to include saturation parameter and setter
Added test for saturation setting along with other setter functions
Added theme setters to add colors, remove colors, and update color parameters
updateColor setter accepts an object with two key-value pairs. The first is the name of the color to be modified. The second is the property to update and the value you wish to update it to.
let color = new Color({
name: 'Red',
colorKeys: ['#ff0000', '#ff3200'],
ratios: [3, 4, 5]
});
let theme = new Theme ({
colors: [color]
backgroundColor: '#f5f5f5'
});
theme.updateColor = {name: 'Red', ratios: [4.5, 7, 9]}
Description
Fixes #138
theme.saturation = x
updateColor
setter accepts an object with two key-value pairs. The first is the name of the color to be modified. The second is the property to update and the value you wish to update it to.Motivation
Theme
sScreenshots
To-do list