OpenEuphoria: Euphoria v4.1

# OpenEuphoria Manual

## Euphoria v4.1

routine or constant name search

| Up |  |  | TOC | Index
<< 7 Included Tools | < 8.46 Memory Constants | Up: 8 API Reference | 8.48 Graphics - Cross Platform > | 9 Release Notes >>

## 8.47 Graphics Constants

### 8.47.1 Error Code Constants

#### 8.47.1.1 BMP_SUCCESS

    include std/graphcst.e
    namespace graphcst
    public enum BMP_SUCCESS

#### 8.47.1.2 BMP_OPEN_FAILED

    include std/graphcst.e
    namespace graphcst
    public enum BMP_OPEN_FAILED

#### 8.47.1.3 BMP_UNEXPECTED_EOF

    include std/graphcst.e
    namespace graphcst
    public enum BMP_UNEXPECTED_EOF

#### 8.47.1.4 BMP_UNSUPPORTED_FORMAT

    include std/graphcst.e
    namespace graphcst
    public enum BMP_UNSUPPORTED_FORMAT

#### 8.47.1.5 BMP_INVALID_MODE

    include std/graphcst.e
    namespace graphcst
    public enum BMP_INVALID_MODE

### 8.47.2 video_config Sequence Accessors

#### 8.47.2.1 VC_COLOR

    include std/graphcst.e
    namespace graphcst
    public enum VC_COLOR

#### 8.47.2.2 VC_MODE

    include std/graphcst.e
    namespace graphcst
    public enum VC_MODE

#### 8.47.2.3 VC_LINES

    include std/graphcst.e
    namespace graphcst
    public enum VC_LINES

#### 8.47.2.4 VC_COLUMNS

    include std/graphcst.e
    namespace graphcst
    public enum VC_COLUMNS

#### 8.47.2.5 VC_XPIXELS

    include std/graphcst.e
    namespace graphcst
    public enum VC_XPIXELS

#### 8.47.2.6 VC_YPIXELS

    include std/graphcst.e
    namespace graphcst
    public enum VC_YPIXELS

#### 8.47.2.7 VC_NCOLORS

    include std/graphcst.e
    namespace graphcst
    public enum VC_NCOLORS

#### 8.47.2.8 VC_PAGES

    include std/graphcst.e
    namespace graphcst
    public enum VC_PAGES

#### 8.47.2.9 VC_SCRNLINES

    include std/graphcst.e
    namespace graphcst
    public enum VC_SCRNLINES

#### 8.47.2.10 VC_SCRNCOLS

    include std/graphcst.e
    namespace graphcst
    public enum VC_SCRNCOLS

#### 8.47.2.11 Colors

#### 8.47.2.12 BLACK

    include std/graphcst.e
    namespace graphcst
    public constant BLACK

#### 8.47.2.13 BLUE

    include std/graphcst.e
    namespace graphcst
    public constant BLUE

#### 8.47.2.14 GREEN

    include std/graphcst.e
    namespace graphcst
    public constant GREEN

#### 8.47.2.15 CYAN

    include std/graphcst.e
    namespace graphcst
    public constant CYAN

#### 8.47.2.16 RED

    include std/graphcst.e
    namespace graphcst
    public constant RED

#### 8.47.2.17 MAGENTA

    include std/graphcst.e
    namespace graphcst
    public constant MAGENTA

#### 8.47.2.18 BROWN

    include std/graphcst.e
    namespace graphcst
    public constant BROWN

#### 8.47.2.19 WHITE

    include std/graphcst.e
    namespace graphcst
    public constant WHITE

#### 8.47.2.20 GRAY

    include std/graphcst.e
    namespace graphcst
    public constant GRAY

#### 8.47.2.21 BRIGHT_BLUE

    include std/graphcst.e
    namespace graphcst
    public constant BRIGHT_BLUE

#### 8.47.2.22 BRIGHT_GREEN

    include std/graphcst.e
    namespace graphcst
    public constant BRIGHT_GREEN

#### 8.47.2.23 BRIGHT_CYAN

    include std/graphcst.e
    namespace graphcst
    public constant BRIGHT_CYAN

#### 8.47.2.24 BRIGHT_RED

    include std/graphcst.e
    namespace graphcst
    public constant BRIGHT_RED

#### 8.47.2.25 BRIGHT_MAGENTA

    include std/graphcst.e
    namespace graphcst
    public constant BRIGHT_MAGENTA

#### 8.47.2.26 YELLOW

    include std/graphcst.e
    namespace graphcst
    public constant YELLOW

#### 8.47.2.27 BRIGHT_WHITE

    include std/graphcst.e
    namespace graphcst
    public constant BRIGHT_WHITE

#### 8.47.2.28 true_fgcolor

    include std/graphcst.e
    namespace graphcst
    export sequence true_fgcolor

#### 8.47.2.29 true_bgcolor

    include std/graphcst.e
    namespace graphcst
    export sequence true_bgcolor

#### 8.47.2.30 BLINKING

    include std/graphcst.e
    namespace graphcst
    public constant BLINKING

Add to color number to get blinking text.

#### 8.47.2.31 BYTES_PER_CHAR

    include std/graphcst.e
    namespace graphcst
    public constant BYTES_PER_CHAR

#### 8.47.2.32 color

    include std/graphcst.e
    namespace graphcst
    public type color(object x)

### 8.47.3 Routines

#### 8.47.3.1 mixture

    include std/graphcst.e
    namespace graphcst
    public type mixture(object s)

Mixture Type

##### Comments:

A mixture is a `{red, green, blue}` triple of intensities, which enables you to define custom colors. Intensities must be from 0 (weakest) to 63 (strongest). Thus, the brightest white is `{63, 63, 63}`.

#### 8.47.3.2 video_config

    include std/graphcst.e
    namespace graphcst
    public function video_config()

returns a description of the current video configuration.

##### Returns:

A sequence, of 10 non-negative integers, laid out as follows:

1. color monitor? -- 0 if monochrome, 1 otherwise
2. current video mode
3. number of text rows in console buffer
4. number of text columns in console buffer
5. screen width in pixels
6. screen height in pixels
7. number of colors
8. number of display pages
9. number of text rows for current screen size
10. number of text columns for current screen size

##### Comments:

A public enum is available for convenient access to the returned configuration data:

- `VC_COLOR`
- `VC_MODE`
- `VC_LINES`
- `VC_COLUMNS`
- `VC_XPIXELS`
- `VC_YPIXELS`
- `VC_NCOLORS`
- `VC_PAGES`
- `VC_SCRNLINES`
- `VC_SCRNCOLS`

This routine makes it easy for you to parameterize a program so it will work in many different graphics modes.

##### Example 1:

    vc = video_config()
    -- vc could be {1, 3, 300, 132, 0, 0, 32, 8, 37, 90}

##### See Also:

graphics_mode

### 8.47.4 Color Set Selection

#### 8.47.4.1 FGSET

    include std/graphcst.e
    namespace graphcst
    public enum FGSET

Foreground ( text) set of colors

#### 8.47.4.2 BGSET

    include std/graphcst.e
    namespace graphcst
    public enum BGSET

Background set of colors

| Up |  |  | TOC | Index
<< 7 Included Tools | < 8.46 Memory Constants | Up: 8 API Reference | 8.48 Graphics - Cross Platform > | 9 Release Notes >>