Skip to content

Rush Duel ​

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

Simplified Chinese LEGEND

Example data ​

json
{
  "language": "sc",
  "name": "青眼白龙",
  "cardLayout": "monster",
  "monsterFrame": "normal",
  "attribute": "light",
  "level": 8,
  "monsterTypeLine": "龙族/通常",
  "atk": 3000,
  "def": 2500,
  "cardText": "以高攻击力著称的传说之龙。任何对手都能将之粉碎,其破坏力不可估量。",
  "cardNumber": "RD/KP01-SC000",
  "showLegendMark": true
}

Parameters ​

FieldTypeDefaultMeaning and values
languageenum'sc'sc Simplified Chinese, jp Japanese
namestring''Card name
nameColorstring''Name color. Empty uses the default
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
levelnumber0Monster Level
monsterTypeLinestring''Monster type line
maximumAtknumber0MAXIMUM ATK. 0 hides the field
atknumber0ATK. Negative values show ?
defnumber0DEF. Negative values show ?
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''Password field for stored data
showLegendMarkbooleanfalseShow the LEGEND mark
cornerMarkenum'''' No mark, laser1 Hologram pattern 1, laser2 Hologram pattern 2, laser3 Hologram pattern 3, laser4 Solid-color mark
rarityenum'''' Default finish, sr Super Rare, rr Rush Rare, pser Prismatic Secret Rare
roundCornersbooleantrueRound the corners
renderScalenumber1Scale relative to native dimensions