User Tools


reference:constants

Constants

The following constants are predefined.

Constants

General Purpose

#ON 1
#OFF 0
#YES 1
#NO 0
#TRUE 1
#FALSE 0
#PI 3.14159265358979323846
#EXP 2.71828182845904523536

Color Codes (RGB Value)

#C_CLEAR &H00000000 Transparent
#C_AQUA &HFF00FFFF Light Blue
#C_BLACK &HFF000000 Black
#C_BLUE &HFF0000FF Blue
#C_CYAN &HFF00FFFF Light Blue
#C_FUCHSIA &HFFFF00FF Bright Purple
#C_GRAY &HFF808080 Gray
#C_GREEN &HFF008000 Green
#C_LIME &HFF00FF00 Bright Green
#C_MAGENTA &HFFFF00FF Bright Purple
#C_MAROON &HFF800000 Maroon
#C_NAVY &HFF000080 Navy Blue
#C_OLIVE &HFF808000 Olive Color
#C_PURPLE &HFF800080 Purple
#C_RED &HFFFF0000 Red
#C_SILVER &HFFC0C0C0 Silver
#C_TEAL &HFF008080 Blue Green
#C_WHITE &HFFFFFFFF White
#C_YELLOW &HFFFFFF00 Yellow

Arguments of BUTTON Functions

#B_RUP 0
#B_RDOWN 1
#B_RLEFT 2
#B_RRIGHT 3
#B_LUP 4
#B_LDOWN 5
#B_LLEFT 6
#B_LRIGHT 7
#B_L1 8
#B_R1 9
#B_L2 10
#B_R2 11
#B_SL 8
#B_SR 9
#B_S1 10
#B_S2 11
#B_LSTICK 12
#B_RSTICK 13
#B_RANY 14
#B_LANY 15
#B_ANY 16

Arguments of TATTR, SPSET, SPCHR Commands

#A_ROT0 0
#A_ROT90 1
#A_ROT180 2
#A_ROT270 3
#A_REVH 4
#A_REVV 8
#A_ADD 16

Arguments of SPCHK, TCHK Commands

#CHKXY 1
#CHKZ 2
#CHKR 4
#CHKS 8
#CHKC 16
#CHKV 32
#CHKUV 64
#CHKI 128

Return Value of TYPEOF

#T_DEFAULT 0
#T_INT 1
#T_REAL 2
#T_STR 3
#T_INTARRAY 5
#T_REALARRAY 6
#T_STRARRAY 7

Graphic Drawing Method

#G_NORMAL 0
#G_NORMAL2 1
#G_ALPHA 2
#G_ALPHA2 3
#G_ADD 4

Arguments of BQPARAM Command

#BQAPF 0
#BQLPF 1
#BQHPF 2
#BQBPF 3
#BQBSF 4
#BQLSF 5
#BQHSF 6
#BQPEQ 7

Arguments of FFTWFN Command

#WFRECT 0
#WFHAMM 1
#WFHANN 2
#WFBLKM 3

Arguments of ARYOP Command

#AOPADD 0
#AOPSUB 1
#AOPMUL 2
#AOPDIV 3
#AOPMAD 4
#AOPLIP 5
#AOPCLP 6

Arguments of EFCEN and EFCSET Commands

#EFCOFF 0
#EFCON 1
#EFCBATH 1
#EFCCAVE 2
#EFCSPACE 3
#EFCREFSROOM 0
#EFCREFLROOM 1
#EFCREFHALL 2
#EFCREFCAVE 3
#EFCREFNONE 4
#EFCREVROOM 0
#EFCREVHALL 1
#EFCREVMETAL 2
#EFCREVCAVE 3
#EFCREVREV 4

Arguments of PCMVOL Command

#PVLEFT 0
#PVRIGHT 1

Other

#GRPWIDTH 2048 Graphic Page Width
#GRPHEIGHT 2048 Graphic Page Height
#GRPF 5 Font Graphic Page
#GSPRITE 4095 Sprite ID used for Graphic Page
#TCONSOLE 4 Text Screen ID used for Console Display
#MAXT 3 Maximum ID of normal text screen
#MAXSP 4094 Maximum ID of Normal Sprite
#MAXGRP 4 Maximum Graphic Page ID
#HARDWARE 10 Hardware Identification Number
#VERSION Version Number
#_LINE A special constant that replaces the line number where this constant is written
#_SLOT A special constant that replaces the slot number where this constant is written
#_FILENAME A special constant that replaces the file name string where this constant is written

・The version number is 4000000+X*10000+Y*100 when the version is 4.X.Y. For example, 4.2.1 will be 4020100.

reference/constants.txt · Last modified: 2020/08/24 12:17 (external edit)

Page Tools