Seed7 - The extensible programming language
Seed7 FAQ Manual Screenshots Examples Libraries Algorithms Download Links
Libraries AES ARC4 Array ASN.1 Bigfile Bigint Bigrat Bin32 Bin64 Bitdata Bitmapfont Bitset Bitsetof Boolean Browser Bstring Bytedata Cards Category CC config Cgi Cgi dialog Char Charsets Cipher Clib_file Color CLI Commands Complex Console Crc32 Deflate DES Dialog Dir Draw Duration Echo Editline Enable_input Enable_io Enable_output Encoding Environment External_file File File system Float Font Forloop Ftp Getf Gethttp Gethttps Graph Graph_file Gzip Hash Hashsetof Hmac Html_ent Httpserv Idxarray Image Inflate Inflate file Inifile Integer Keybd Line Listener LZW Make Math Msgdigest Null_file Osfiles Picture utility Pixmap_file Pixmapfont PKCS #1 Poll Process Progs Propertyfile Rational Reference Ref_list Scanfile Scanstri Set Shell Smtp Sockbase Socket SQL base Stdio Strifile String Stritext Subrange Tar Text Time TLS/SSL Triple DES Unicode Utf16 Utf8 Vectorfont 3D Vector Wildcard Window Wrinum X.509 Xmldom Xml_ent Zip
Libraries
Picture utility Source Code
 previous   up   next 

Function Summary
color
charColor (in char: ch, in color: background)
Map a character to a pixel color.
PRIMITIVE_WINDOW
createPixmap (in array string: pattern, in integer: scale, in color: background)
Convert a picture pattern into a pixmap.
void
drawPattern (inout PRIMITIVE_WINDOW: win, in integer: xPos, in integer: yPos, in array string: pattern, in integer: scale, in color: background)
Draws a scaled pattern to a position at a window.

Function Detail

charColor

const func color: charColor (in char: ch, in color: background)

Map a character to a pixel color. This is used for picture patterns, a simple way to describe graphic images as readable text.

Returns:
the color that corresponds to the given character ch.

createPixmap

const func PRIMITIVE_WINDOW: createPixmap (in array string: pattern, in integer: scale, in color: background)

Convert a picture pattern into a pixmap. A picture pattern is a simple way to describe graphic images as readable text. It is an array of strings, where every character describes the color of a pixel.

Returns:
the result of the conversion.

drawPattern

const proc: drawPattern (inout PRIMITIVE_WINDOW: win, in integer: xPos, in integer: yPos, in array string: pattern, in integer: scale, in color: background)

Draws a scaled pattern to a position at a window. The upper left corner of the pattern is drawn to (xPos, yPos). The pattern is drawn in horizontal lines from the middle upward and downward. This is done for better appearance at slow computers.



 previous   up   next