[Free] Text Path View An Ai2 Extension to Use this extension as text path animation.

TextPath

An Ai2 Extension to Use this extension as text path animation.

šŸ§© TextPathView

An extension for MIT App Inventor 2.
Developed by th using Fast. Use this extension as text path animation.

:memo: Specifications


:floppy_disk: Size: 16.38 KB
:gear: Version: 1.0
:iphone: Minimum API Level: 7
:date: Updated On: 2025-02-08T18:30:00Z
:computer: Built & documented using: FAST-CLI

Telegram: here
Find more Extension here
Apps On PlayStore: here
Demo apk and more info here
TextPath.aia (19.8 KB)
io.th.textpathview.textpathview.aix (16.4 KB)






Events:

TextPathView has total 2 events.

AnimationStartedBlock

:yellow_heart: AnimationStarted

Event triggered when the animation starts

AnimationEndedBlock

:yellow_heart: AnimationEnded

Event triggered when the animation ends

Methods:

TextPathView has total 19 methods.

InitBlock

:purple_heart: Init

Attach the TextPathView to an HVArrangement.

Parameter Type
arrangement component

SetShadowBlock

:purple_heart: SetShadow

Set the shadow layer

Parameter Type
radius number
dx number
dy number
color number

SetPaintTypeBlock

:purple_heart: SetPaintType

Set the paint type for the text. Use 0 for SINGLE and 1 for MULTIPLY.

Parameter Type
type number

SetPhaseBlock

:purple_heart: SetPhase

Set the phase (Rang of 0.0 to 1.0 )of the animation.

Parameter Type
phase number

PhaseBlock

:purple_heart: Phase

Get the current phase of the animation.

StartAnimationBlock

:purple_heart: StartAnimation

Start the animation with optional looping. Set loop to true for infinite looping.

Parameter Type
loop boolean

PauseAnimationBlock

:purple_heart: PauseAnimation

Pause the running animation.

ResumeAnimationBlock

:purple_heart: ResumeAnimation

Resume the paused animation.

ReverseAnimationBlock

:purple_heart: ReverseAnimation

Reverse the animation.

SetStartDelayBlock

:purple_heart: SetStartDelay

Set a start delay for the animation in milliseconds.

Parameter Type
delay number

SetAnimationSpeedBlock

:purple_heart: SetAnimationSpeed

Set the speed of the animation. Higher values make it faster.

Parameter Type
speed number

SetEasingFunctionBlock

:purple_heart: SetEasingFunction

Set a custom easing function. Use values like Linear, Bounce, or Accelerate.

Parameter Type
easing text

SetAnimationColorBlock

:purple_heart: SetAnimationColor

Change the color of the animated path dynamically.

Parameter Type
color number

StartAnimationWithRepeatsBlock

:purple_heart: StartAnimationWithRepeats

Start the animation with a specified number of repeats.

Parameter Type
repeatCount number

SetStrokeWidthBlock

:purple_heart: SetStrokeWidth

Set the stroke width of the animated path.

Parameter Type
width number

SetGradientColorBlock

:purple_heart: SetGradientColor

Apply a gradient color to the animated path.

Parameter Type
startColor number
endColor number

StartBounceAnimationBlock

:purple_heart: StartBounceAnimation

Start the animation with a bounce effect.

ResetAnimationBlock

:purple_heart: ResetAnimation

Reset the animation to its initial state.

SetAntiAliasBlock

:purple_heart: SetAntiAlias

Enable or disable anti-aliasing for smoother path rendering.

Parameter Type
enabled boolean

Setters:

TextPathView has total 5 setter properties.

TextBlock

:green_heart: Text

Set the text to be displayed

  • Input type: text

TextColorBlock

:green_heart: TextColor

Set the text color

  • Input type: number

TextSizeBlock

:green_heart: TextSize

Set the text size

  • Input type: number

TextWeightBlock

:green_heart: TextWeight

Set the text weight

  • Input type: number

DurationBlock

:green_heart: Duration

Set the duration of the animation

  • Input type: number

demo blocks

Screen shot

demo video

Youtube

Thanks

TechHamara