📄 sbgraf.txt
字号:
Graphics & Sound____________________________Colors:Mono: 0=black, 15=white, any=gray2bit: 0=black, 15=white 1-6,8=dark-gray, 7,9-14=light-gray4bit: 16 colors of gray8bit: 16 Standard VGA colorsSTEP keyword:The STEP keyword calculatesthe next x,y parameters relative to current position____________________________ARC [STEP] x,y,r, astart,aend[,aspect] [COLOR color]Draws an arcastart,aend = first,lastangle in rads.____________________________CHART {LINECHART|BARCHART} , array() [, {0|1|2|3} [, x1, y1, x2, y2]]Draws a chart of arrayvalues in the rectangulararea x1,y1,x2,y2type:0 = simple1 = with marks2 = with ruler3 = with marks & ruler____________________________CIRCLE [STEP] x,y,r [,aspect] [COLOR color] [FILLED]Draws a circle/ellipse.____________________________COLOR fg [, text_bg]Changes the current pencolor____________________________DRAWPOLY array() [,x-origin ,y-origin [, scalef]] [COLOR color]Draws a polylineeven elements for x (starting from 0)odd elements for y____________________________DRAW string____________________________LINE [STEP] x,y [{,|STEP} x2,y2] [COLOR color]Draws a line____________________________PSET [STEP] x,y [COLOR color]Draw a pixel at x,y position____________________________RECT [STEP] x,y [{,|STEP} x2,y2] [COLOR color] [FILLED]Draws a rectangular parallelogram____________________________TXTW(s), TXTH(s)Returns the text width/height of string sin pixels____________________________BEEPGenerates a beep sound____________________________PLAY stringPlay musical notesA-G[-|+|#][nnn][.] Play note A..G +|# - sharp - - flat . - multiplier 1.5On - Octave 0..6< - Moves down one octave> - Moves up one octaveNnn - Play note 0..84 (0 = pause)Pnnn - Pause 1..64Lnnn - Length of note 1..64 (1/nnn)Tnnn - Tempo 32..255 Number of 1/4 notes per minute.MS - Staccato (1/2)MN - Normal (3/4)ML - LegatoVnnn - Volume 0..100MF - Play on foregroundMB - Play on background____________________________SOUND freq, dur_ms [, vol]Plays a sound
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -