gr_pgsp.gml

来自「开放源码的编译器open watcom 1.6.0版的源代码」· GML 代码 · 共 42 行

GML
42
字号
.gfunc pg_setpalette
.if '&lang' eq 'C' .do begin
short _FAR _pg_setpalette( paletteentry _FAR *pal );
.do end
.el .do begin
integer*2 function _pg_setpalette( pal )
record /paletteentry/ pal(*)
.do end
.gfuncend
.desc begin
The &func &routine sets the internal palette of the presentation
graphics system.
The palette controls the colors, line styles, fill patterns
and plot characters used to display each series of data in a chart.
.pp
The argument
.arg pal
is an array of palette structures containing the new palette.
Each element of the palette is a structure containing the following fields:
.begterm 15
.note color
color used to display series
.note style
line style used for line and scatter charts
.note fill
fill pattern used to fill interior of bar and pie sections
.note plotchar
character plotted on line and scatter charts
.endterm
.desc end
.return begin
The &func &routine returns zero
if successful; otherwise, a non-zero value is returned.
.return end
.see begin
.seelist &function. _pg_defaultchart _pg_initchart _pg_chart _pg_chartpie _pg_chartscatter _pg_getpalette _pg_resetpalette
.see end
.grexam begin eg_pggp.&langsuff
.grexam end
.class &grfun
.system

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?