Library initialisation and event loop | |
Windows | |
Canvas (the area of a window where you can draw) | |
Color (the main attribute of the pen) | |
 Functions manipulating the RGB model | |
 Predefined neutral RGB colors | Neutral RGB colors are the ones whose (r,g,b) triplets verify r = g = b, that is, black, white, and all levels of gray in between |
 Predefined primary RGB colors | Primary RGB colors are the three colors whose (r,g,b) triplets have one saturated channel and twos zeroed channels, that is, red, green and blue |
 Predefined secondary RGB colors | Secondary RGB colors are the three RGB colors (namely cyan, magenta and yellow) obtained by computing the sum of two of the three primary RGB colors (namely red, green, blue). They have two saturated channel and one zeroed channel |
 Predefined tertiary RGB colors | Tertiary RGB colors are the six colors (namely pink, orange, violet, azure, spring, lawn) obtained by computing the mean between one of the three primary RGB colors (red, green, blue) and one the three secondary RGB colors (cyan, magenta, yellow) at the exclusion of the complementary color that would result into neutral gray |
Pen (what you use to draw on a canvas) | |
 Symbolic constants for pen attributes | |
 Setting the active pen attributes | |
Drawing (what you can do with a pen on a canvas) | |
 Drawing simple shapes (points, lines, boxes, circles...) | |
 Drawing complex shapes (polygons, Bezier curves...) | |
 Drawing Text | |
 Drawing images | |
Input Control (how to deal with mouse and keyboard) | |
 Actively reading the current state of the keyboard | |
 Actively reading the current state of the mouse | |
 Being Passively notified of state changes by events | More advanced programmers in C can be notified of events such as a change of the state of the mouse and the keyboard by making some of their own functions be automatically called by the bx-lib. This requires the knowledge that functions may be passed as arguments to other functions. The notifications occur when the bx-lib "has the hand" on the system, that is, during the execution of functions such as bx_wait(), bx_loop() and bx_show_canvas() |
Directories (how to inspect file system easily) | |
Audio (how to play sounds and music easily) | |