1.2.3 • Published 3 months ago
anl v1.2.3
Animated Logo
This library allows Discord RPC Image and electron Image to be moving like a gif.
Electron
An example of using images in electron, all images have to be 60x60.
const { ElectronAnimatedLogo } = require('../index.js');
app.whenReady().then((() => {
const window = new BrowserWindow({
width: 410,
frame: null,
height: 728,
webPreferences: {
nodeIntegration: true
},
minWidth: 400
});
new ElectronAnimatedLogo({
window,
interval: 40,
directory: './images',
start: true
});
}));
Discord RPC
Example.
const { DiscordRPCAnimated } = require('../index.js');
const presence = require('discord-rich-presence')('id');
new DiscordRPCAnimated({
type: 'small', // small/large
start: true,
assets: [
...[]
],
instance: presence,
interval: 40
});