[Free] MagicLine drawing a magical visual effect.

🧩 MagicLine

An extension for MIT App Inventor 2.
Draw a straight line with two points according to a certain regular movement, thus drawing a magical visual effect. Developed by TechHamara using Fast.Telegram | GitHub
BuyMeaCoffee | YouTube
Find More Extension
Terms & Conditions

:memo: Specifications


:package: Package: io.th.magicline
:floppy_disk: Size: 11.83 KB
:gear: Version: 1.0
:iphone: Minimum API Level: 7
:date: Updated On: 2025-11-08T18:30:00Z
:computer: Built & documented using: FAST v2.8.4
:placard: Library used: thanks you zhangyuChen1991 for your MagicLine Library.
:arrow_down: Get aix here
:arrow_down: Get aia here
:placard: Find more info and apk on GitHub

Demo

Demo-blocks

M1
M2
M3

photo_2025-11-16_17-16-26
photo_2025-11-16_17-16-21
photo_2025-11-16_17-15-54
photo_2025-11-16_17-16-58
photo_2025-11-16_17-16-54
photo_2025-11-16_17-16-45
photo_2025-11-16_17-16-39
photo_2025-11-16_17-16-33

Blocks

OnDrawEnd_Event

OnDrawStart_Event


CircularFlowerPattern_Method
StartDraw_Method
StarFlowerPattern_Method
SpiralFlowerPattern_Method
Parameters_Method
Initialize_Method


LineColor_Set_Property
Height_Set_Property
BackgroundColor_Set_Property
AnimationDuration_Set_Property
Width_Set_Property
TextSize_Set_Property
TextColor_Set_Property
TextAtTop_Set_Property
TextAtBottom_Set_Property
LineWidth_Set_Property

Documentation

Events:

MagicLine has total 2 events.

OnDrawStart

Event raised when animation drawing starts

OnDrawEnd

Event raised when animation drawing ends

Methods:

MagicLine has total 6 methods.

Initialize

Initialize inside an arrangement.

Parameter Type
arrangement component

StartDraw

Start drawing the magic line animation

Parameters

Set custom parameters for the magic line animation

Parameter Type
p1XLength number
p1YLength number
p2XLength number
p2YLength number
speedP1 number
speedP2 number

SpiralFlowerPattern

Set a preset flower pattern - Spiral Flower

StarFlowerPattern

Set a preset flower pattern - Star Flower

CircularFlowerPattern

Set a preset flower pattern - Circular Flower

Setters:

MagicLine has total 10 setter properties.

BackgroundColor

Set the background color of the magic line view

  • Input type: number

LineColor

Set line color

  • Input type: number

LineWidth

Set line width

  • Input type: number

AnimationDuration

Set animation duration in milliseconds

  • Input type: number

Height

Set the height of the magic line view

  • Input type: number

Width

Set the width of the magic line view

  • Input type: number

TextAtTop

Set text to display at top of the drawing

  • Input type: text

TextAtBottom

Set text to display at bottom of the drawing

  • Input type: text

TextColor

Set the text color

  • Input type: number

TextSize

Set the text size

  • Input type: number

Thanks

@techhamara

feel free to contact us any quarry or suggestions.

2 Likes