• Preparing search index...
  • The search index is not available
tsParticles - v3.0.0
  • tsParticles
  • tsParticles Image Shape
  • Utils
  • replaceImageColor

Function replaceImageColor

  • replaceImageColor(image, imageData, color, particle): Promise<IParticleImage>
  • Replaces the color in a SVG image

    Parameters

    • image: IImage

      the SVG image to replace

    • imageData: IImageShape

      the image shape data

    • color: IHsl

      the replacement color

    • particle: Particle

      the particle where the replaced data is going to be used

    Returns Promise<IParticleImage>

    the image with the color replaced

    • Defined in shapes/image/src/Utils.ts:151

Settings

Member Visibility
tsParticles - v3.0.0
  • Loading...