Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet thread from alt.ascii-art, started 21 Jan 2003.
 _   _                     _        _             _     _           
| | | |___  ___ _ __   ___| |_     / \   _ __ ___| |__ (_)_   _____ 
| | | / __|/ _ \ '_ \ / _ \ __|   / _ \ | '__/ __| '_ \| \ \ / / _ \
| |_| \__ \  __/ | | |  __/ |_   / ___ \| | | (__| | | | |\ V /  __/
 \___/|___/\___|_| |_|\___|\__| /_/   \_\_|  \___|_| |_|_| \_/ \___|
music video in text

music video in text

alt.ascii-art · 11 messages · 21 Jan 2003 - 22 Jan 2003
I am currently working on a viewer for animations I am creating.

They have turned out rather large...and therefore do not work in browsers.

Please take a look at my current animation here:

http://www.jdneff.com/anim.php

The current version of the viewer is rather clunky, but functional.

I would love to hear what people have to say.

JD Neff
http://www.jdneff.com/

 _.--- JD Neff spoke in alt.ascii-art --------._ 
> http://www.jdneff.com/anim.php

Nice php work.  looks good in elinks.
But the app its self is an exe.
Any chance of a source code release so I can play with it under linux?

'---...____ Faux_Pseudo ________________...---~~~

-- 
   ICQ=66618055  :  (Now Playing)  http://asciipr0n.com/fp  updated=10/30
 YIM=faux_pseudo : Rev: /nin/purest_feeling_ii/09-Down_In_It-III.mp3
   Fear is the   : Now: uld_have_been/14-The_Day_The_World_Went_Away.mp3
   mind killer   : Fwd: nin/purest_feeling_ii_import/08_-_sanctified.mp3

Faux_Pseudo <Fau...@yahoo.comERCIAL> wrote:
>  _.--- JD Neff spoke in alt.ascii-art --------._ 
>> http://www.jdneff.com/anim.php
> 
> Nice php work.  looks good in elinks.
> But the app its self is an exe.
> Any chance of a source code release so I can play with it under linux?
> 
> '---...____ Faux_Pseudo ________________...---~~~

AOL.

F:P - either that or code one yourself. The file format is simple. I viewed
the animation by setting an xterm to 160x84, loading the file in vim and
holding Page Down.

-- 
Harry Mason ("hjm200.ecs@soton@ac@uk" =~ tr/@./.@/)

On Tue, 21 Jan 2003 09:45:06 +0000, Harry Mason wrote:


> F:P - either that or code one yourself. The file format is simple. I viewed
> the animation by setting an xterm to 160x84, loading the file in vim and
> holding Page Down.

Mm, I wrote it.

It's in Python and uses the curses module. It doesn't check the terminal
size, so make it big enough and set font to tiny.

Source code follows:

#!/usr/bin/python

import time, curses, sys

def show(screen, filename, pause):
    f = file(filename)
    done = 0
    while not done:
        # read the current frame
        row = 0
        while 1:
            line = f.readline().rstrip()
            if line == '': #EOF
                done = 1
                break
            if line == ',':
                break
            screen.addstr(row,0,line)
            row += 1
        #display the frame
        screen.refresh()
        #pause
        time.sleep(pause)

if len(sys.argv) not in (2,3):
    print "Usage: %s <filename> [pause in milliseconds]" % sys.argv[0]
    raise SystemExit
    
filename = sys.argv[1]
if len(sys.argv) == 3:
    pause = 1.0 / sys.argv[2]
else:
    pause = 0.042
screen = curses.initscr()
try:
    show(screen, filename, pause)
except KeyboardInterrupt:
    pass
curses.endwin()

###############END OF PYTHON CODE###############

Have fun!

On Mon, 20 Jan 2003 21:01:42 +0000, lament wrote:

>     pause = 1.0 / sys.argv[2]

Er, this should be

    pause = 1 / float(sys.argv[2])

But you probably don't need that anyway, unless the animation uses something
other than 24 frames per second.

Harry Mason <spa...@no.spam> wrote in message news:<slr...@servalan.ecs.soton.ac.uk>...
> Faux_Pseudo <Fau...@yahoo.comERCIAL> wrote:
> >  _.--- JD Neff spoke in alt.ascii-art --------._ 
> >> http://www.jdneff.com/anim.php
> > 
> > Nice php work.  looks good in elinks.
> > But the app its self is an exe.
> > Any chance of a source code release so I can play with it under linux?
> > 
> > '---...____ Faux_Pseudo ________________...---~~~
> 
> AOL.
> 
> F:P - either that or code one yourself. The file format is simple. I viewed
> the animation by setting an xterm to 160x84, loading the file in vim and
> holding Page Down.

well, once i have a more stable version for windows i am planning on
porting to other os's

but i would like to know, wadja think of the anim?

"lament" <ayz...@shaw.NOSPAM.ca> wrote in message news:<pan...@shaw.NOSPAM.ca>...
> On Mon, 20 Jan 2003 21:01:42 +0000, lament wrote:
> 
> >     pause = 1.0 / sys.argv[2]
> 
> Er, this should be
> 
>     pause = 1 / float(sys.argv[2])
> 
> But you probably don't need that anyway, unless the animation uses something
> other than 24 frames per second.

glad to see somebody has written a python script.

mind if i post on my site where the anim lives?

i would be more than happy to mention where i got that code.

also the anim is actually 12fps

JD Neff <ban...@hotmail.com> wrote:
> http://www.jdneff.com/anim.php
> well, once i have a more stable version for windows i am planning on
> porting to other os's
> 
> but i would like to know, wadja think of the anim?

I couldn't read the subtitles (I assume they were lyrics). They need to be a
bit bigger. The rest of it was nice and clear. Did you create it yourself, or
just encode it?

Have you tried encoding using light text on black? It might look better for
animations.

-- 
Harry Mason ("hjm200.ecs@soton@ac@uk" =~ tr/@./.@/)

 _.--- lament spoke in alt.ascii-art --------._ 
> Source code follows:
>     pause = 1.0 / sys.argv[2]

fixed

Here is the error I got while trying to run it as 
$ scriptname animation

Traceback (most recent call last):
  File "../asciiveiw.python", line 36, in ?
    show(screen, filename, pause)
  File "../asciiveiw.python", line 18, in show
    screen.addstr(row,0,line)
_curses.error: addstr() returned ERR

and here is the error I got when running it as 
$ scriptname animation 100

Traceback (most recent call last):
  File "../asciiveiw.python", line 31, in ?
    pause = 1 / sys.argv[2]
TypeError: unsupported operand type(s) for /: 'int' and 'str'


'---...____ Faux_Pseudo ________________...---~~~

-- 
   ICQ=66618055  :  (Now Playing)  http://asciipr0n.com/fp  updated=10/30
 YIM=faux_pseudo : Rev: eil_diamond/tap_root_manuscript/02_Free_Life.mp3
 I am the pusher : Now: idal/feel_like_shit_deja-vu/08_It's_Not_Easy.mp3
  I'm the whore  : Fwd: jazz_singer/neil_diamond_-_Love_On_The_Rocks.mp3

On Tue, 21 Jan 2003 23:54:43 +0000, Faux_Pseudo wrote:

>  _.--- lament spoke in alt.ascii-art --------._ 
>> Source code follows:
>>     pause = 1.0 / sys.argv[2]
> 
> fixed
> 
> Here is the error I got while trying to run it as 
> $ scriptname animation
> 
> Traceback (most recent call last):
>   File "../asciiveiw.python", line 36, in ?
>     show(screen, filename, pause)
>   File "../asciiveiw.python", line 18, in show
>     screen.addstr(row,0,line)
> _curses.error: addstr() returned ERR

The program doesn't do any size checking. Make your terminal bigger.
Also set font to something tiny, or the animation won't fit on the screen.

> and here is the error I got when running it as 
> $ scriptname animation 100
> 
> Traceback (most recent call last):
>   File "../asciiveiw.python", line 31, in ?
>     pause = 1 / sys.argv[2]
> TypeError: unsupported operand type(s) for /: 'int' and 'str'

I already posted a fix to that one. Should be

    pause = 1 / float(sys.argv[2])

On Tue, 21 Jan 2003 10:09:22 +0000, JD Neff wrote:

> "lament" <ayz...@shaw.NOSPAM.ca> wrote in message news:<pan...@shaw.NOSPAM.ca>...
>> On Mon, 20 Jan 2003 21:01:42 +0000, lament wrote:
>> 
>> >     pause = 1.0 / sys.argv[2]
>> 
>> Er, this should be
>> 
>>     pause = 1 / float(sys.argv[2])
>> 
>> But you probably don't need that anyway, unless the animation uses something
>> other than 24 frames per second.
> 
> glad to see somebody has written a python script.

Many people do that :)

> mind if i post on my site where the anim lives?
> 
> i would be more than happy to mention where i got that code.

Sure. Consider the script public domain.

> also the anim is actually 12fps

Oh. Hm, there's hardly any difference :)

About this thread. These messages were posted publicly to the newsgroup alt.ascii-art in 2003 and are mirrored here unchanged as part of the Historic Archives – only email addresses are masked. The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can. Are you one of the authors? Contact us to get your posts attributed, connected to your artist profile, or removed.

Report this message

Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.

Help classify this post