rawToAmigaBasicShape | R Documentation |
Coerce raw data into an AmigaBasicShape()
-class object
rawToAmigaBasicShape(x, palette)
x |
A |
palette |
A |
AmigaBasicShape()
objects are comprehensive representations of blitter
and sprite graphics that can be used in AmigaBasic()
scripts. Use this function
to convert raw
content to an AmigaBasicShape()
object.
returns an AmigaBasicShape()
-class object.
Pepijn de Vries
Other raw.operations:
as.AmigaBasic()
,
as.raw.AmigaBasic()
,
colourToAmigaRaw()
,
packBitmap()
,
rawToAmigaBasicBMAP()
,
rawToAmigaBasic()
,
rawToAmigaBitmapFontSet()
,
rawToAmigaBitmapFont()
,
rawToAmigaIcon()
,
rawToHWSprite()
,
rawToIFFChunk()
,
rawToSysConfig()
,
simpleAmigaIcon()
## Not run:
filename <- system.file("ball.shp", package = "AmigaFFH")
## read as binary:
con <- file(filename, "rb")
ball.raw <- readBin(con, "raw", file.size(filename))
close(con)
## convert raw data into something useful:
ball <- rawToAmigaBasicShape(ball.raw)
## A shortcut would be to call read.AmigaBasicShape
ball2 <- read.AmigaBasicShape(filename)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.