Download Now
Forums

    Reference Codebot.Animation.pas

    Part of the Codebot package

    The Codebot.Animation unit lets you move values smoothly over time.

    An easing describes how a value changes over time. Easings gives you the easings that come with the library by name, which are Linear, Easy, EasySlow, Extend, Drop, DropSlow, Snap, Bounce, Bouncy, Rubber, Spring, and Boing, and you can add your own. Interpolate applies an easing to a value.

    The Animator moves Float properties toward a target over a duration using an easing, such as Animator.Animate(FPosition, 100, 'Bounce', 0.5). Call Animator.Step regularly to update every animated property, such as from a TAnimationTimer, which ticks 60 times a second.

    TVec1Prop, TVec2Prop, TVec3Prop, and TVec4Prop are vector properties you can animate apart from the objects that own them, and IPropertyResolver finds one of them by name.

    Items 104 items

    NameKindLine
    Animatorfunction459
    DependencyLinkprocedure347
    DependencyUnlinkprocedure349
    Easingsfunction89
    IDependencyPropertyinterface97
    GetValuefunction102
    SetValueprocedure104
    Countproperty106
    Interpolatefunction85, 87
    IPropertyResolverinterface377
    Resolvefunction380
    TAnimationTimerclass392
    Createconstructor400
    Destroydestructor402
    Enabledproperty405
    OnTimerproperty407
    TAnimatorclass416
    Animateprocedure440, 441, 444, 445
    Stepprocedure449
    Stopprocedure447
    Animatedproperty451
    OnStartproperty453
    OnStopproperty455
    TDependencyChangeNotifyprocedural112
    TEasingprocedural30
    TEasingDefaultsrecord39
    Boingfunction64
    Bouncefunction56
    Bouncyfunction58
    Dropfunction50
    DropSlowfunction52
    Easyfunction44
    EasySlowfunction46
    Extendfunction48
    Linearfunction42
    Rubberfunction60
    Snapfunction54
    Springfunction62
    TEasingKeyValuealias82
    TEasingsclass71
    TVec1Proprecord118
    Equalsfunction151
    Linkprocedure143, 145
    Linkedfunction149
    Samefunction153
    Unlinkprocedure147
    Valueproperty157
    Vecproperty159
    Xproperty155
    TVec2Proprecord173
    Linkprocedure197, 199
    Linkedfunction203
    Unlinkprocedure201
    AsVec1property208
    Valueproperty210
    Vecproperty212
    Xproperty205
    Yproperty206
    TVec3Proprecord226
    Linkprocedure246, 248
    Linkedfunction252
    Unlinkprocedure250
    AsVec1property264
    AsVec2property265
    Headingproperty259
    Pitchproperty258
    Rollproperty260
    Valueproperty267
    Vecproperty269
    Xproperty254
    XYproperty262
    Yproperty255
    Zproperty256
    TVec4Proprecord283
    Linkprocedure304, 306
    Linkedfunction310
    Unlinkprocedure308
    Alphaproperty320
    AsVec1property330
    AsVec2property331
    AsVec3property332
    Blueproperty319
    Greenproperty318
    Redproperty317
    RGBproperty329
    S0property322
    S1property324
    T0property323
    T1property325
    Valueproperty334
    Vecproperty336
    Wproperty315
    Xproperty312
    XYproperty327
    XYZproperty328
    Yproperty313
    Zproperty314
    TVectorPropertyrecord359
    Resolverfield369
    Vec1Propfield361
    Vec2Propfield363
    Vec3Propfield365
    Vec4Propfield367
    VectorPropertyEmptyfunction385