星期二, 一月 27, 2009

给Blogger添加代码高亮

原文链接:
http://abhisanoujam.blogspot.com/2008/12/blogger-syntax-highlighting.html

星期一, 一月 26, 2009

新春快乐

又是一年春来到,大家过年好阿!

星期六, 一月 24, 2009

自己做的贪吃蛇2

已经可以长大,并且身体颜色随着食物颜色的变化而变化。

星期五, 一月 23, 2009

自己写的贪吃蛇


自己做的贪吃蛇,功能还不完善,如果你想看看这些丑陋的代码,请猛击:
http://code.google.com/p/rgame/

星期三, 一月 21, 2009

QB中的图像代码 [screen命令]

SCREEN - a graphics statement that sets the specifications for the
display screen

Syntax
SCREEN [mode] [,[colorswitch]][,[apage]][,[vpage]]
☆mode is an integer constant or expression that selects a screen mode
for a particular combination of display and adapter:

MDPA, CGA, EGA, or VGA (Text Only)
CGA, EGA, VGA, or MCGA Low- and Medium-Resolution Graphics
EGA and VGA Medium- and High-Resolution Graphics
EGA and VGA Monochrome High-Resolution Graphics
VGA and MCGA High-Resolution Graphics
Hercules and Other Adapters
☆colorswitch, apage, and vpage are Details



SCREEN 0: Text mode only
☆Either 40 x 25, 40 x 43, 40 x 50, 80 x 25, 80 x 43, or 80 x 50 text format
with 8 x 8 character box size (8 x 14, 9 x 14, or 9 x 16 with EGA or VGA)
☆16 colors assigned to 2 attributes
☆16 colors assigned to any of 16 attributes (with CGA or EGA)
☆64 colors assigned to any of 16 attributes (with EGA or VGA)

SCREEN 1: 320 x 200 graphics
☆40 x 25 text format, 8 x 8 character box
☆16 background colors and one of two sets of 3 foreground colors assigned
using COLOR statement with CGA
☆16 colors assigned to 4 attributes with EGA or VGA
SCREEN 2: 640 x 200 graphics
☆80 x 25 text format with character box size of 8 x 8
☆16 colors assigned to 2 attributes with EGA or VGA

SCREEN 7: 320 x 200 graphics
☆40 x 25 text format, character box size 8 x 8
☆32K page size, page ranges are 0-1 (64K), 0-3 (128K), or 0-7 (256K)
☆Assignment of 16 colors to any of 16 attributes
SCREEN 8: 640 x 200 graphics
☆80 x 25 text format, 8 x 8 character box
☆64K page size, page ranges are 0 (64K), 0-1 (128K), or 0-3 (246K)
☆Assignment of 16 colors to any of 16 attributes
SCREEN 9: 640 x 350 graphics
☆80 x 25 or 80 x 43 text format, 8 x 14 or 8 x 8 character box size
☆64K page size, page range is 0 (64K);
128K page size, page range is 0 (128K) or 0-1 (256K)
☆16 colors assigned to 4 attributes (64K adapter memory), or
64 colors assigned to 16 attributes (more than 64K adapter memory)

SCREEN 10: 640 x 350 graphics, monochrome monitor only
☆80 x 25 or 80 x 43 text format, 8 x 14 or 8 x 8 character box size
☆128K page size, page range is 0 (128K) or 0-1 (256K)
☆Up to 9 pseudocolors assigned to 4 attributes

SCREEN 11
☆640 x 480 graphics
☆80 x 30 or 80 x 60 text format, character box size of 8 x 16 or 8 x 8
☆Assignment of up to 256K colors to 2 attributes
Screen 12
☆640 x 480 graphics
☆80 x 30 or 80 x 60 text format, character box size of 8 x 16 or 8 x 8
☆Assignment of up to 256K colors to 16 attributes
☆VGA required
Screen 13
☆320 x 200 graphics
☆40 x 25 text format, character box size of 8 x 8
☆Assignment of up to 256K colors to up to 256 attributes

SCREEN 3: Hercules adapter required, monochrome monitor only
☆720 x 348 graphics
☆80 x 25 text format, 9 x 14 character box
☆2 screen pages (1 only if a second display adapter is installed)
☆PALETTE statement not supported
SCREEN 4:
☆Supports Olivetti (R) Personal Computers models M24, M240, M28,
M280, M380, M380/C, M380/T and AT&T (R) Personal Computers 6300
series
☆640 x 400 graphics
☆80 x 25 text format, 8 x 16 character box
☆1 of 16 colors assigned as the foreground color (selected by the
COLOR statement); background is fixed at black.

星期日, 一月 18, 2009

花之荼蘼

荼蘼是一种蔷薇科的草本植物,春天之后,往往直到盛夏才会开花。 因此人们常常认为荼靡花开是一年花季的终结。

苏轼诗:“荼靡不争春,寂寞开最 晚。”
任拙斋诗:“一年春事到荼靡。”
王琪诗:“一从梅粉褪残妆,涂抹新红上海棠。开到荼縻花事了,丝丝天棘出莓墙。”

开到荼蘼花事了,意为荼蘼花开时,春天那些五色斑斓,美艳不可方物的各类 花儿,都悄悄地把喧嚣让给即将到来的如火夏天。 荼蘼花开代表女子的青春已成过去。荼蘼花开,表示感情的终结。爱到荼靡,意蕴生命中最灿烂、最繁华或最刻骨铭心的爱即将失去。 很多人都说没有见过荼靡花。其实在佛教中,荼靡就是彼岸花,洋名"蔓珠沙华”。