#AutoIt3Wrapper_Run_AU3Check=n #include "MoGraphics.au3" _AutoItObject_Startup() _GDIPlus_Startup() $hGUI = GUICreate("Example 19 - I Love Kinetic Typography", 520, 230) GUISetState() $hGpx = _GDIPlus_GraphicsCreateFromHWND($hGUI) $oScene = _MoGraph_SceneCreate() ; Move 'I' at the start from 340;230 to 340;140: $oI_YValue = _MoGraph_EaseValueCreate(230, 140, 0, 50) $oText_I = _MoGraph_TextCreate("I", 340, $oI_YValue, 0, 0, "Rockwell", 48, 1, _MoGraph_SolidBrushCreate(0, 0, 0, 220)) _MoGraph_SceneAddObject($oScene, $oText_I) ; Move 'LOVE' after 'I' from -160;100 to 20;100: ; 3rd argument is 50 to match the end of 'I' animation ; 4th argument is the end of animation (start+length) $oLove_XValue = _MoGraph_EaseValueCreate(-160, 20, 50, 100) $oText_Love = _MoGraph_TextCreate("LOVE", $oLove_XValue, 100, 0, 0, "Rockwell", 48, 1, _MoGraph_SolidBrushCreate(0, 0, 0, 160)) _MoGraph_SceneAddObject($oScene, $oText_Love) ; Move 'KINETIC' after 'LOVE' from 520;100 to 190;100 $oKinetic_XValue = _MoGraph_EaseValueCreate(520, 190, 100, 150) $oText_Kinetic = _MoGraph_TextCreate("KINETIC", $oKinetic_XValue, 100, 0, 0, "Rockwell", 48, 1, _MoGraph_SolidBrushCreate(0, 0, 0, 220)) _MoGraph_SceneAddObject($oScene, $oText_Kinetic) ; Move 'TYPOGRAPHY' after 'KINETIC' from 110;-60 to 110;60 $oTypography_YValue = _MoGraph_EaseValueCreate(-60, 60, 150, 200) $oText_Typography = _MoGraph_TextCreate("TYPOGRAPHY", 110, $oTypography_YValue, 0, 0, "Rockwell", 48, 1, _MoGraph_SolidBrushCreate(0, 0, 0, 220)) _MoGraph_SceneAddObject($oScene, $oText_Typography) $oSettings = _MoGraph_GraphicsRendererCreateSettings($hGpx, 520, 230, 0xFFFFFFFF) $oRenderer = _MoGraph_GraphicsRendererCreate($oScene, $oSettings) While 1 _MoGraph_RendererRenderFrameNext($oRenderer) Switch GUIGetMsg() Case -3 ExitLoop EndSwitch WEnd _GDIPlus_GraphicsDispose($hGpx) _GDIPlus_Shutdown() _AutoItObject_Shutdown()