read.AmigaBasicShape: Read Amiga Basic Shape files

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/basic.r

Description

Read Amiga Basic Shape files

Usage

1

Arguments

file

A character string of the filename of the Amiga Basic Shape file to be read.

disk

A virtual Commodore Amiga disk from which the file should be read. This should be an amigaDisk object. Using this argument requires the adfExplorer package. When set to NULL, this argument is ignored.

...

Arguments passed to rawToAmigaBasicShape.

Details

AmigaBasic used the term 'shapes' for graphics (sprites and blitter objects) which it could display. These graphics were stored in a specific binary format, which can be read with this function. See AmigaBasicShape for more details. The file can also be read from a virtual Amiga disk (amigaDisk).

Value

Returns an AmigaBasicShape class object read from the file.

Author(s)

Pepijn de Vries

See Also

Other AmigaBasicShape.operations: AmigaBasicShape, rasterToAmigaBasicShape(), write.AmigaBasicShape()

Other io.operations: read.AmigaBasicBMAP(), read.AmigaBasic(), read.AmigaBitmapFontSet(), read.AmigaBitmapFont(), read.AmigaIcon(), read.SysConfig(), read.iff(), write.AmigaBasicShape(), write.AmigaBasic(), write.AmigaBitmapFont(), write.AmigaIcon(), write.SysConfig(), write.iff()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 
filename <- system.file("ball.shp", package = "AmigaFFH")
ball     <- read.AmigaBasicShape(filename)
## This is a sprite:
ball$flags[["fVSprite"]]

filename <- system.file("r_logo.shp", package = "AmigaFFH")
## The palette is not stored with an Amiga Basic Shape, so let's provide one:
r_logo   <- read.AmigaBasicShape(filename,
                                 palette = c("#FFFFFF", "#2266BB", "#3366BB", "#4477AA",
                                 "#778899", "#999999", "#AAAAAA", "#BBBBBB"))
## This is a blitter object:
r_logo$flags[["fVSprite"]]

## Just for fun, plot it:
plot(r_logo)

## End(Not run)

AmigaFFH documentation built on Sept. 5, 2021, 5:22 p.m.