Home
Free Midlets
Help

DRAWGEL

Syntax: DRAWGEL gelname, x, y

The DRAWGEL command is used to draw the GEL (Graphics Element) directly into the background image. This can be used to define pseudo character based backgrounds.

Example

1000 GELLOAD "CHAR1", 0, 0, 8, 8
1010 GELLOAD "CHAR2", 8, 0, 8, 8
1020 GELLOAD "CHAR3", 16, 0, 8, 8
1030 WIDTH%=SCREENWIDTH(0)
1040 FOR I%=0 TO WIDTH% STEP 8
1050 DRAWGEL "CHAR1", I%, 16
1060 DRAWGEL "CHAR2", I%, 24
1070 DRAWGEL "CHAR3", I%, 32
1080 NEXT I%