var searchIndex = {}; searchIndex["sprite"] = {"doc":"A library for sprite hierarchy and scene management","items":[[4,"EaseFunction","sprite","",null,null],[13,"QuadraticIn","","",0,null],[13,"QuadraticOut","","",0,null],[13,"QuadraticInOut","","",0,null],[13,"CubicIn","","",0,null],[13,"CubicOut","","",0,null],[13,"CubicInOut","","",0,null],[13,"QuarticIn","","",0,null],[13,"QuarticOut","","",0,null],[13,"QuarticInOut","","",0,null],[13,"QuinticIn","","",0,null],[13,"QuinticOut","","",0,null],[13,"QuinticInOut","","",0,null],[13,"SineIn","","",0,null],[13,"SineOut","","",0,null],[13,"SineInOut","","",0,null],[13,"CircularIn","","",0,null],[13,"CircularOut","","",0,null],[13,"CircularInOut","","",0,null],[13,"ExponentialIn","","",0,null],[13,"ExponentialOut","","",0,null],[13,"ExponentialInOut","","",0,null],[13,"ElasticIn","","",0,null],[13,"ElasticOut","","",0,null],[13,"ElasticInOut","","",0,null],[13,"BackIn","","",0,null],[13,"BackOut","","",0,null],[13,"BackInOut","","",0,null],[13,"BounceIn","","",0,null],[13,"BounceOut","","",0,null],[13,"BounceInOut","","",0,null],[3,"Scene","","A scene is used to manage sprite's life and run animation with sprite",null,null],[3,"Sprite","","A sprite is a texture with some properties.",null,null],[4,"Animation","","Animations supported by Sprite",null,null],[13,"MoveTo","","duration, x, y",1,null],[13,"MoveBy","","duration, x, y",1,null],[13,"RotateTo","","duration, deg",1,null],[13,"RotateBy","","duration, deg",1,null],[13,"ScaleTo","","duration, sx, sy",1,null],[13,"ScaleBy","","duration, sx, sy",1,null],[13,"FlipX","","Flip sprite in x direction",1,null],[13,"FlipY","","Flip sprite in y direction",1,null],[13,"Show","","Set the sprite's visibility to true",1,null],[13,"Hide","","Set the sprite's visibility to false",1,null],[13,"ToggleVisibility","","Toggle the sprite's visibility",1,null],[13,"Blink","","duration, times",1,null],[13,"FadeIn","","duration",1,null],[13,"FadeOut","","duration",1,null],[13,"FadeTo","","duration, opacity",1,null],[13,"Ease","","ease_function, animation",1,null],[4,"AnimationState","","The state of animation",null,null],[13,"Move","","time, begin_x, begin_y, change_x, change_y, duration",2,null],[13,"Rotate","","time, begin, change, duration",2,null],[13,"Scale","","time, begin_x, begin_y, change_x, change_y, duration",2,null],[13,"Flip","","flip_x, flip_y",2,null],[13,"Visibility","","visible",2,null],[13,"Blink","","past_time, duration, blinked_times, total_times",2,null],[13,"Fade","","time, begin, change, duration",2,null],[13,"Ease","","ease_function, animation",2,null],[11,"eq","","",1,null],[11,"ne","","",1,null],[11,"clone","","",1,null],[11,"to_state","","Generate a new state from Animation with specified Sprite",1,null],[11,"clone","","",2,null],[11,"update","","Update the state and change the sprite's properties",2,null],[11,"new","","Create a new scene",3,{"inputs":[],"output":{"name":"scene"}}],[11,"event","","Update animation's state",3,null],[11,"draw","","Render this scene",3,null],[11,"draw_tinted","","Render this scene with tint",3,null],[11,"run","","Register animation with sprite",3,null],[11,"pause","","Pause a running animation of the sprite",3,null],[11,"resume","","Resume a paused animation of the sprite",3,null],[11,"toggle","","Toggle an animation of the sprite",3,null],[11,"stop","","Stop a running animation of the sprite",3,null],[11,"stop_all","","Stop all running animations of the sprite",3,null],[11,"running","","Get all the running animations in the scene",3,null],[11,"add_child","","Add sprite to scene",3,null],[11,"remove_child","","Remove the child by `id` from the scene's children or grandchild\nwill stop all the animations run by this child",3,null],[11,"child","","Find the child by `id` from the scene's children or grandchild",3,null],[11,"child_mut","","Find the child by `id` from this sprite's children or grandchild, mutability",3,null],[11,"from_texture","","Crate sprite from a texture",4,{"inputs":[{"name":"rc"}],"output":{"name":"sprite"}}],[11,"id","","Get the sprite's id",4,null],[11,"get_visible","","Whether or not the sprite is visible",4,null],[11,"set_visible","","Set the sprite's visibility",4,null],[11,"get_anchor","","Get the sprite's anchor point",4,null],[11,"set_anchor","","Set the sprite's anchor point",4,null],[11,"get_position","","Get the sprite's position",4,null],[11,"set_position","","Set the sprite's position",4,null],[11,"set_color","","Set the sprite's draw color (tint)",4,null],[11,"get_color","","get the sprite's color.s",4,null],[11,"get_rotation","","Get the sprite's rotation (in degree)",4,null],[11,"set_rotation","","Set the sprite's rotation (in degree)",4,null],[11,"get_scale","","Get the sprite's scale",4,null],[11,"set_scale","","Set the sprite's scale",4,null],[11,"get_flip_x","","Whether or not the sprite is flipped horizontally.",4,null],[11,"set_flip_x","","Flip the sprite",4,null],[11,"get_flip_y","","Whether or not the sprite is flipped vertically.",4,null],[11,"set_flip_y","","Flip the sprite",4,null],[11,"get_opacity","","Get the sprite's opacity",4,null],[11,"set_opacity","","Set the sprite's opacity",4,null],[11,"get_texture","","Get the sprite's texture",4,null],[11,"set_texture","","Set the sprite's texture",4,null],[11,"add_child","","Add a sprite as the child of this sprite, return the added sprite's id.",4,null],[11,"remove_child","","Remove the child by `id` from this sprite's children or grandchild",4,null],[11,"child","","Find the child by `id` from this sprite's children or grandchild",4,null],[11,"child_mut","","Find the child by `id` from this sprite's children or grandchild, mutability",4,null],[11,"children","","Get the sprite's children",4,null],[11,"draw","","Draw this sprite and its children",4,null],[11,"draw_tinted","","Draw this sprite and its children with color",4,null],[11,"bounding_box","","Get the sprite's bounding box",4,null],[11,"eq","","",0,null],[11,"clone","","",0,null]],"paths":[[4,"EaseFunction"],[4,"Animation"],[4,"AnimationState"],[3,"Scene"],[3,"Sprite"]]}; initSearch(searchIndex);