Skip to content

Latest commit

 

History

History

README.md

rspress-plugin-live2d NPM Version

简体中文

Rspress plugin for live2d, powered by on-my-live2d.

example

Usage

npm install rspress-plugin-live2d
pnpm install rspress-plugin-live2d
import * as path from 'path';
import { defineConfig } from 'rspress/config';
import live2d from 'rspress-plugin-live2d';

export default defineConfig({
  root: path.join(__dirname, 'docs'),
  title: 'Rspress x Live2d Example',
  plugins: [
    live2d({
      models: [
        {
          path: 'https://model.oml2d.com/HK416-1-normal/model.json',
          position: [0, 60],
          scale: 0.08,
          stageStyle: {
            height: 450,
          },
        },
      ],
    }),
  ],
});

Configure

Find more models and configuration on On My Live2D.