Skip to content

Releases: Aedif/Tokenmagic

v0.6.1.3-beta

22 Feb 17:38

Choose a tag to compare

  • Updated pixi-filters.js to v5.1.1
  • Exposing Ascii, CRT, Dot, and RGB Split community filters through TMFX
  • Added alpha, alphaDiscard, and repeat options to the FilterSprite
  • Added alpha option to FilterGlow
  • Re-assign Poly and Sprite textures upon imagePath change
  • Fixed getPreset returning presets in a dirty state
  • Added randomized field which randomizes params before setting the flags
    • Accepts either arrays or objects that define the range to be used to generate the value
    • Range object:
      • val1 and val2 define the range
      • step defines the increment
      • link allows to set another param to the same randomzied value (useful for multi-component params such as scaleX and scaleY
        e.g.
  {
    filterType: "sprite",
    filterId: "randomOverlay",
    repeat: true,
    alphaDiscard: true,
    inverse: true,
    gridPadding: 1,
    translationX: 0,
    translationY: 0,
    top: true,
    randomized: {
     active: true,
      imagePath: [
        "modules/tokenmagic/fx/assets/distortion-1.png",
        "modules/tokenmagic/fx/assets/dots-1.png",
        "modules/tokenmagic/fx/assets/extrusion-1.png",
        "modules/tokenmagic/fx/assets/noise-2.jpg",
        "modules/tokenmagic/fx/assets/symbols-1.png",
        "modules/tokenmagic/fx/assets/waves-1.png",
      ],
      scaleX: { val1: 0.1, val2: 0.6, step: 0.01, link: 'scaleY' },
      rotation: { val1: 0, val2: 360, step: 1 },
      alpha: { val1: 0.5, val2: 1.0, step: 0.1 }
    },
  }

Overlay:

overlay.mp4

Randomizer:

randomizer.mp4