Skip to content

Help needed with text display and library usage in general #39

Answered by Im-Beast
mabasic asked this question in Q&A
Discussion options

You must be logged in to vote

You can achieve the same thing with some maths and use of Computed, e.g.:

const figlet = `\
    ____                                 ______    _              __         __ 
   / __ \\  ___    ____   ____           / ____/   (_)   ____ _   / /  ___   / /_
  / / / / / _ \\  / __ \\ / __ \\ ______  / /_      / /   / __ \`/  / /  / _ \\ / __/
 / /_/ / /  __/ / / / // /_/ //_____/ / __/     / /   / /_/ /  / /  /  __// /_  
/_____/  \\___/ /_/ /_/ \\____/        /_/       /_/    \\__, /  /_/   \\___/ \\__/  
                                                     /____/                     
`;

new Label({
  parent: tui,
  rectangle: new Computed(() => {
    const tuiRectangle = tui.rectangle.value;

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
2 replies
@Im-Beast
Comment options

@mabasic
Comment options

Comment options

You must be logged in to vote
9 replies
@Im-Beast
Comment options

@mabasic
Comment options

@Im-Beast
Comment options

@mabasic
Comment options

@mabasic
Comment options

Answer selected by mabasic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants