The functions in this section use the standard raster port, the address of which is held in the variable stdrast.
Most of the time you don't need to worry about this because the E functions which open windows and screens set up this variable (see 11.3.2 Intuition support functions).
So, by default, these functions affect the last window or screen opened.
When you close a window or screen, stdrast becomes NIL and calls to these functions have no effect.
There is a worked example using these functions in Part Three (see 22.3 Graphics).
The descriptions in this section follow the same style as the previous section.
Plot(x,y,pen=1)
SetColour function.
Line(x1,y1,x2,y2,pen=1)
Box(x1,y1,x2,y2,pen=1)
Colour(fore-pen,back-pen=0)
TextF(x,y,format-string,arg1,arg2,...)
WriteF except the resulting string is drawn on the current raster port (usually the last window or screen to be opened) ,starting at point (x,y).
Take care not to use any line-feed, carriage return, tab or escape characters in the string--they don't behave like they do in WriteF.
SetColour(scrnptr,pen,r,g,b)
pen can be anything up to 255, depending on the screen depth.
Regardless of the chipset being used, r, g and b are taken from the range zero to 255, so 24-bit colours are always specified.
In operation, though, the values are scaled to 12-bit colour for non-AGA machines.
SetStdRast(newrast)
stdrast before setting it to the new value.
The following code fragments are equivalent:
oldstdrast:=SetStdRast(newstdrast) oldstdrast:=stdrast stdrast:=newstdrast
SetTopaz(size=8)
Go to the Next or Previous section, the Detailed Contents, or the Amiga E Encyclopedia.