🎨Leaver

Leaver

Creador de tarjetas de despedida

Kind: global class

new Leaver()

Leave image builder

Example

const leaveCardURL = await new Leaver()
        .setAvatar(member.user.displayAvatarURL({ format: 'png', size: 4096 }))
        .setBackground('IMAGE', https://i.imgur.com/aClDVjh.jpg)
        .setTitulo("Titulo de la Tarjeta")
        .setSubtitulo("Subtitulo de la Tarjeta")
        .setOpacityOverlay("0.5")
        .setColorTitulo(#FFFFFF)
        .setColorSubtitulo(#FFFFFF)
        .setColorCircle(#FFFFFF)
        .setColorOverlay(#FFFFFF)
        .setTypeOverlay("rounded")
      leaverCardURL.build()
        .then(data => {
            canvacard.write(data, "LeaverCard.png");
        })

leaver.data

Fondo de la tarjeta

Kind: instance property of Leaver Properties

leaver.avatar : string

Avatar de la tarjeta

Kind: instance property of Leaver\

leaver.titulo : string

Título creado con Canvacard

Kind: instance property of Leaver\

leaver.subtitulo : string

Subtítulo creado con Canvacard

Kind: instance property of Leaver\

leaver.colorTitulo : string

Color del título creado con Canvacard

Kind: instance property of Leaver\

leaver.colorSubtitulo : string

Color del Subtítulo creado con Canvacard

Kind: instance property of Leaver\

leaver.colorCircle : string

Color del circulo

Kind: instance property of Leaver\

leaver.colorOverlay : number | string

Color del overlay

Kind: instance property of Leaver\

leaver.opacityOverlay : string

Opacidad del overlay

Kind: instance property of Leaver\

leaver.typeOverlay : string

Tipo de overlay

Kind: instance property of Leaver\

leaver.colorBackground : string

Color del fondo

Kind: instance property of Leaver\

leaver.setColor(id, color) ⇒ Leaver

Establecer color

Kind: instance method of Leaver

leaver.setAvatar(value) ⇒ Leaver

Valor del avatar

Kind: instance method of Leaver

leaver.setTitulo(value) ⇒ Leaver

Valor del título

Kind: instance method of Leaver

leaver.setSubtitulo(value) ⇒ Leaver

Valor del subtítulo

Kind: instance method of Leaver

leaver.setColorTitulo(value) ⇒ Leaver

Valor del color del título

Kind: instance method of Leaver

leaver.setColorSubtitulo(value) ⇒ Leaver

Valor del color del subtítulo

Kind: instance method of Leaver

leaver.setColorCircle(value) ⇒ Leaver

Valor del color del círculo

Kind: instance method of Leaver

leaver.setColorOverlay(value) ⇒ Leaver

Valor del color del overlay

Kind: instance method of Leaver

leaver.setOpacityOverlay(value) ⇒ Leaver

Valor del color del overlay

Kind: instance method of Leaver

leaver.setBackground(type, [data])

Establecer imagen / color de fondo

Kind: instance method of Leaver

leaver.setTypeOverlay(type)

Establecer rectangle / rounded de overlay

Kind: instance method of Leaver

leaver.build(ops) ⇒ Promise.<Buffer>

Construye la tarjeta de despedida

Kind: instance method of Leaver

Last updated