Skip to content

Yu-Gi-Oh! Series 2 ​

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

Blue-Eyes White Dragon

Example data ​

json
{
  "language": "jp",
  "name": "[青眼の白龍(ブルーアイズ・ホワイト・ドラゴン)]",
  "attribute": "light",
  "level": 8,
  "monsterTypeLine": "ドラゴン[族(ぞく)]",
  "atk": 3000,
  "def": 2500,
  "cardNumber": "LB-01"
}

Parameters ​

FieldTypeDefaultMeaning and values
languageenum'jp'jp Japanese
textStylePresetenum''Font and text layout preset. '' Language default, custom1 Custom preset 1, custom2 Custom preset 2
namestring''Card name
nameColorstring''Name color. Empty uses the default
nameTextAlignenum'left'left Left, center Centered, right Right
applyNameGradientbooleanfalseEnable the name gradient
nameGradientColor1string'#999999'Name gradient start color
nameGradientColor2string'#ffffff'Name gradient end color
cardLayoutenum'monster'monster Monster, spell Spell, trap Trap
attributeenum'dark'Monster Attributes include dark DARK, light LIGHT, earth EARTH, water WATER, fire FIRE, wind WIND, divine DIVINE, '' Hide the Attribute
spellTrapIconenum'''' No icon, equip Equip, field Field, quick-play Quick-Play, ritual Ritual, continuous Continuous, counter Counter
artworkstring''Artwork URL or absolute path
monsterFrameenum'normal'Monster frames include normal Normal, effect Effect, ritual Ritual, fusion Fusion, tormentor Obelisk the Tormentor, sky-dragon Slifer the Sky Dragon, winged-dragon The Winged Dragon of Ra
levelnumber0Monster Level
monsterTypeLinestring''Monster type line
atknumber0ATK. -1 shows ???? and -2 shows X000
defnumber0DEF. -1 shows ???? and -2 shows X000
cardTextstring''Card Text. \n starts a new segment
compressCardTextSegmentsnumber[][]Fit each selected segment on one line. Numbering starts at 1
cardTextAlignenum'justify'left Left, center Centered, right Right, justify Justified
bodyTextFontSizeScalenumber1Font size multiplier for Card Text and its ruby text
bodyTextStrokeWidthnumber0Stroke width for Card Text, the monster type line, and their ruby text
cardNumberstring''Set number
passwordstring''Card password. A string preserves leading zeros
copyrightLanguageenum'''' Hide the copyright mark, jp Japanese
cornerMarkenum'''' No mark, laser1 Hologram pattern 1, laser2 Hologram pattern 2, laser3 Hologram pattern 3, laser4 Solid-color mark
roundCornersbooleantrueRound the corners
renderScalenumber1Scale relative to native dimensions

Use [text(reading)] to add ruby to supported fields such as the card name.