Struct Playscii.Frame
Json frame object in the Playscii file.
Inherited Members
Namespace: SadConsole.Readers
Assembly: SadConsole.dll
Syntax
public struct Playscii.Frame
Fields
delay
Duration for this frame.
Declaration
public float delay
Field Value
Type | Description |
---|---|
float |
layers
Playscii frame layers that will be converted to ScreenSurface.
Declaration
public Playscii.Layer[] layers
Field Value
Type | Description |
---|---|
Layer[] |
Methods
ToScreenSurface(int, int, IFont, Palette)
Converts the Playscii frame to SadConsole ScreenSurface.
Declaration
public ScreenSurface ToScreenSurface(int width, int height, IFont font, Palette colors)
Parameters
Type | Name | Description |
---|---|---|
int | width | Width of the ScreenSurface. |
int | height | Height of the ScreenSurface. |
IFont | font | IFont to be used when creating the ScreenSurface. |
Palette | colors |
Returns
Type | Description |
---|---|
ScreenSurface | ScreenSurface containing the image from the first animation frame. |