08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Graphics
1.
2. What are graphics?
Simply they are the images them selves
How can we represent an image in computer?
Image is a collection (2D array) of pixels, each
pixel represents a color that is a combination of
Red, Green and Blue colors (RGB system)
Pixel values may range from 0 to 255
Graphics system
S/W: computerized programmes for images
manipulation and control
H/W: for displaying pixels (CRT, LCD, ...)
3. Sequence of identical frames that differ only
on the position of the moving object
Example:
To draw a man waving his hand, we draw a
sequence of identical frames in which all body
parts are in-variant except the hand
8. Operating systems provide services to
programmers
These services can be, opening and reading
from a file, drawing pixels, moving pixels,...
Etc (services are called system calls)
API (Application Programming Interface) is a
set of built-in functions that provides access
to system calls
Examples:
Win 32 API for windows systems
Posix API for POSIX-based systems (Unix,
Linux,...)
9. #include <windows.h>
One library of those who exist in Win 32 API
Here We are interested in only one data type
and one function
COORD point;
point.X = 10;
point.Y = 10;
SetConsoleCursorPosition
(GetStdHandle(STD_OUTPUT_HANDLE), point);
10. Draw a star that moves on all the screen,
given that max console width is 80 pixels and
max height is 15 pixels
Draw an empty square that fits the console
boundaries
11. Main map
Moving snake
Snake collision with console boundaries
Food
Increasing snake length
Snake collision with it self
Score
Speed
User Interface
Files – Highest Scores