Skip to content

javascript version of my 2006 deadbeef character renderer

Notifications You must be signed in to change notification settings

subatomicglue/deadbeef-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deadbeef - fancypants webpage renderer

behold, my 2006 php ascii art renderer ported in 2019 to javascript! (hooray) (see the php version)

0xdeadbeef

dead beef is a fancy ascii rendering utility. it will place random ascii characters in between the empty spaces of a paragraph of text.

"it's magic! and you'll wow your friends" - says your mom

deadbeef

example code

you can see, we support a html-a-like markup, mainly l, c, r tags are the new ones

let db = new deadbeef()

let page_text = ` 
<c><b>centered</b></c> 

<r>right    </r> 
some text 
some text      is good to have
some <b>bold</b> text is nice to read 
<l pos=32>left indented 32</l>
<l pos=28>left indented 28</l>
<a href="dead link">dead link</a> - some dead link that doesn't work

<l pos=4>left indented 4</l>

`

let html = db.DrawPage( page_text, 6, 80, 15 )

see here for a working example

License

   deadbeef - fancypants webpage renderer
   Copyright (c) 2006, 2019 kevin meinert all rights reserved

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

About

javascript version of my 2006 deadbeef character renderer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published