[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.34 Picture language and graphics

Function: make-window-frame xsize ysize [x-begin y-begin x-end y-end]

creates a window whose size is xsize x ysize.
Window coordinate can be specified with x-begin, y-begin, x-end and y-end. If you specify x-begin and so on coordinate system of the window has direction which is used in mathematics (x-axis is right directed and y-axis is up directed). If you don’t specify x-begin and so on coordinate system has direction which is used in computer graphics (x-axis is right directed and y-axis is down directed).

Coordinate which you specify is conserved when the window is resized.
The window is disposed when it is closed.

Function: make-painter-frame xsize ysize [x-begin y-begin x-end y-end]

creates a painter frame whose size is xsize x ysize.
Coordinate which you specify is conserved when the window is resized.

Function: load-image-painer image-file-name

reads the image file as a image painter. JPEG, GIF and PNG image formats are available.

Function: below-painter above below

paints the given painter along y-axis. Size of the painter is half of the given size along y-axis.

Function: beside-painter left right

paints the given painter along x-axis. Size of the painter is half of the given size along x-axis.

Function: display-painter frame painter x y

paints the painter to the given frame. Coordinates which the frame has are used.

Function: draw-line frame begin-x begin-y end-x end-y

draws a line to the frame.

Function: draw-string frame string x y

draws the given string to the frame.

Function: draw-rectangle frame left-top-x left-top-y right-bottom-x right-bottom-y

draws a rectangle to the frame.

Function: draw-oval frame left-top-x left-top-y right-bottom-x right-bottom-y

draws a oval to the frame.

Function: fill-rectangle frame left-top-x left-top-y right-bottom-x right-bottom-y

draws and fills a rectangle to the frame.

Function: fill-oval frame left-top-x left-top-y right-bottom-x right-bottom-y

draws and fills a oval to the frame.

Function: clear-rectangle frame left-top-x left-top-y right-bottom-x right-bottom-y

clears a rectangle to the frame, i.e. fills a rectangle with the background color.

Function: clear-screen frame

clears the frame and cancels what has been painted.

Function: set-current-color! frame color

sets foreground color of the frame to the given color.

Function: make-color red green blue [alpha]

creates a color object. red, green, blue and alpha are specified with a real number in range [0.0, 1.0].

Variable: *color-black*
Variable: *color-blue*
Variable: *color-cyan*
Variable: *color-dark-gray*
Variable: *color-gray*
Variable: *color-green*
Variable: *color-light-gray*
Variable: *color-magenta*
Variable: *color-orange*
Variable: *color-pink*
Variable: *color-red*
Variable: *color-white*
Variable: *color-yellow*

Predefined color objects.


[ << ] [ < ] [ Up ] [ > ] [ >> ]

This document was generated on August 9, 2012 using texi2html 5.0.