Skip to content

Releases: JujuAdams/ColorMod

1.3.0

27 Oct 14:50

Choose a tag to compare

  • 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 of 1.5 will 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

25 Oct 15:39

Choose a tag to compare

  • Fixes palettes not being read correctly when a sprite has an origin other than top-left

1.2.0

19 Oct 13:14

Choose a tag to compare

  • Adds ColorModFromSprite(sprite, image, useRows) to create a ColorMod struct from a palette sprite (either row-oriented or column-oriented)
  • Improves comments
  • Adds moduloHint parameter to skip modulo calculation step
  • Fixes infinite loop when a default palette has a duplicate colour
  • Adds helper functions ColorModSpriteRowToArray() and ColorModSpriteColumnToArray()

1.1.0

03 Apr 12:50

Choose a tag to compare

  • 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

1.0.0

02 Apr 18:34

Choose a tag to compare

Merge branch 'main' of https://github.com/JujuAdams/ColorMod