代码拉取完成,页面将自动刷新
This is a javascript SDK for rendering YU-GI-OH card. Import ygo-card
in your website, you can easily paint the standard YU-GI-OH cards!
$ yarn add ygo-card
# or
$ npm i ygo-card -D --save
import { Card } from 'ygo-card';
const canvas = document.getElementById('card');
const data = {
name: 'Ghost Ogre & Snow Rabbit',
_id: '59438930',
type: 'monster',
type2: 'effect',
type3: 'tuner',
attribute: 'light',
level: 3,
race: 'Psychic',
desc: 'When a monster on the field activates its effect, or when a Spell/Trap that is already face-up on the field activates its effect (Quick Effect): You can send this card from your hand or field to the GY; destroy that card on the field. You can only use this effect of "Ghost Ogre & Snow Rabbit" once per turn',
attack: 0,
defend: 1800,
};
const card = new Card({ data, canvas, moldPath: './dist/mold'});
card.render();
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。