Skip to content
This repository was archived by the owner on Jul 23, 2020. It is now read-only.
This repository was archived by the owner on Jul 23, 2020. It is now read-only.

Alpha key-ing #5

@sdboer78

Description

@sdboer78

I like to use this application for alpha keying subtitles on my livestream.
Is it possible to add the following features?

Outline / shadow for fonts. Configurable in config.json: outline-size, fill-color

Configure the background- and text color in the config.json (in my case: #00FF00 / #FFFFFF)

image

Like:

import ptext

screen = pygame.display.set_mode((854, 480))
screen.fill((0, 255, 0))

ptext.draw("And there I find You in the mystery", (20, 70), fontsize=70, shadow=(0.1,0.1), scolor="#202020", sysfontname="Quebab Shadow FFP", owidth=0.5, ocolor=(0,0,0), color=(255,255,255))

pygame.display.flip()
while not any(event.type in (pygame.KEYDOWN, pygame.QUIT) for event in pygame.event.get()):
        pass

from: https://github.com/cosmologicon/pygame-text

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions