animate_str animates a string from one point to another point. It takes seven arguments.
Position X and Y are the first two arguments of animate_str of type integer. These arguments set the initial position of string.And here you set where from animation should start.
Speed is Fourth argument of type integer.Here you can set speed of animation.
Fifth argument of type string. Here you specify where should your string move as if you want to move string from left to right then pass right as a argument here.
This argument is case insensitive.
Here you can set the color of string. Please read [this] page for information about colors in Cquery.
Desired string to be animated.
Understanding Arguments:
Position X and Y arguments:
Position X and Y are the first two arguments of animate_str of type integer. These arguments set the initial position of string.And here you set where from animation should start.
End point:
End point is third argument of type integer. Here you specify where should your animation stop.
Speed:
Speed is Fourth argument of type integer.Here you can set speed of animation.
Direction:
Fifth argument of type string. Here you specify where should your string move as if you want to move string from left to right then pass right as a argument here.
This argument is case insensitive.
Color:
Here you can set the color of string. Please read [this] page for information about colors in Cquery.
String:
Desired string to be animated.
Examples:
#include<cquery.h> void main(void) { //MOVING LEFT TO RIGHT animate_str(1,3,20,100,"rIght","pink","hello world"); }
#include<cquery.h> void main(void) { //MOVING RIGHT TO LEFT animate_str(20,3,1,100,"LEFT","pink","hello world"); }
#include<cquery.h> void main(void) { //MOVING TOP TO DOWN animate_str(5,1,20,100,"DoWn","pink","hello world"); }
#include<cquery.h> void main(void) { //MOVING DOWN TO TOP animate_str(5,30,2,100,"Top","pink","hello world"); }