Close
To suscribe Cquery.h please enter your email below..
After suscribing kindly check your mail box immediately
to complete your suscription.
I don't want any update | Let me download
Cquery.h
Code less C fast..
Download v0.1
Cquery.h is written by a student of SSUET by keeping TURBOC compiler in his mind only.
All the code are copyrighted so please respect other's efforts :) and don't distribute Cquery.h with your name.
Thanks.

Monday, 31 March 2014

animate_str(position x,position y,end point,speed,direction,color,string)

animate_str animates a string from one point to another point. It takes seven arguments.

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");
}