Skip to content

Field Center Card ​

Import FieldCenterCard from yugioh-card. Pass card fields in the constructor's data option or to setData().

Front

Example data ​

json
{
  "artwork": "/artwork.png",
  "renderBackSide": false,
  "roundCorners": true,
  "renderScale": 1
}

Parameters ​

FieldTypeDefaultMeaning and values
artworkstring''Artwork URL or absolute path
roundCornersbooleantrueRound the corners
renderBackSidebooleanfalseShow the back. Artwork appears on the front
renderScalenumber1Scale relative to native dimensions

Replace /artwork.png in the example with your artwork URL.