Available on:
Alias: NEW IMAGES

NEW SEQUENCE

The NEW SEQUENCE command allows you to define a memory area where you can store a set of images coming from the screen (with the GET IMAGE command), or from another graphic resource.

The area must be defined by (constant) number of strips, (constant) frames, (constant) width and (constant) height, expressed in pixels. The actual size, in terms of bytes of RAM, will depend on the graphics mode selected at the time.

If it is not possible to define an image in that screen mode, a specific error will be issued.

SYNTAX

 = NEW SEQUENCE( strips, frames, width, height )


Legend
  • id : identifier
  • type : datatype
  • v : value
  • "..." : string
  • [...] : optional

EXAMPLE

 background = NEW SEQUENCE(2, 16, 32,32)


ABBREVIATION: NwSeq

Join BASIC 10Liner Contest with ugBASIC!

An interesting competition is held at the beginning of each year: the BASIC 10Liner Contest. It is possible to use ugBASIC to participate in the next "BASIC10Liner" competition, in the following categories:

  • PUR-120 - A game in 10 lines of max 120 characters (w/abbrev.)
  • EXTREME-256 - A game in 10 lines of max 256 characters (w/abbrev.)
  • SCHAU - Any program in 10 lines of max 256 characters (w/abbrev.)
In order to reduce space you can use this abbreviation for this instruction:

NEW SEQUENCE ↔ NwSeq

Any problem?

If you have found a problem with this keyword, if you think there is a bug or, more simply, you would like it to be improved, open an issue for this example on GitHub.
Thank you!

open an issue BACK TO KEYWORDS