Open main menu

Difference between revisions of "AGI/Specifications/Logic"

m
colour -> color
m (→‎Other commands: fix broken source usage, typo)
m (colour -> color)
Line 821: Line 821:
draw.pic(n)
draw.pic(n)


:A PICTURE resource number i, where i is the value of vn is executed. As the result, the background picture is created in the internal buffer of the interpreter. Before execution, the buffer is cleared, i.e. all pixels are set to colour 15 and priority 4.
:A PICTURE resource number i, where i is the value of vn is executed. As the result, the background picture is created in the internal buffer of the interpreter. Before execution, the buffer is cleared, i.e. all pixels are set to color 15 and priority 4.


overlay.pic(n)
overlay.pic(n)
Line 924: Line 924:
set.text.attribute(fg,bg)
set.text.attribute(fg,bg)


:Sets foreground and background colours for display, '''get.num''' and '''get.string''' commands.
:Sets foreground and background colors for display, '''get.num''' and '''get.string''' commands.


clear.lines(n,m,c)
clear.lines(n,m,c)


:Clears text lines from n to m using colour c.
:Clears text lines from n to m using color c.


clear.text.rect(x1,y1,x2,y2,c)
clear.text.rect(x1,y1,x2,y2,c)


:Clears a rectangular area with top left corner coordinates (x1,y1) and bottom right coordinates (x2,y2) using colour c.
:Clears a rectangular area with top left corner coordinates (x1,y1) and bottom right coordinates (x2,y2) using color c.


status.line.on()
status.line.on()
2,051

edits