Releases: JujuAdams/ColorMod
Releases Β· JujuAdams/ColorMod
1.3.0
- Adds
.SetShaderBlend(nameA, nameB, blendFactor)to blend between two palettes - Adds
.SetShaderIndex(paletteIndex)to apply the palette to a palette index. This can be used to blend between two palettes if you use a number with a fractional part e.g. a palette index of1.5will perform a 50% blend between palette index 1 and palette index 2 - Adds
.PaletteGetIndex(paletteName)in aid of the above
See comments in the ColorMod for method parameters.
1.2.1
1.2.0
- Adds
ColorModFromSprite(sprite, image, useRows)to create a ColorMod struct from a palette sprite (either row-oriented or column-oriented) - Improves comments
- Adds
moduloHintparameter to skip modulo calculation step - Fixes infinite loop when a default palette has a duplicate colour
- Adds helper functions
ColorModSpriteRowToArray()andColorModSpriteColumnToArray()
1.1.0
- Fixes off-by-half in shader that I missed first time round - thank you @xotmatrix for pointing that out!
- @gurpreetsinghmatharoo fixed some typos, many thanks to him too
- Made
.PaletteAdd()a bit easier to use - Improved demo