Giter Site home page Giter Site logo

asciiplayer's Introduction

Hi there ๐Ÿ‘‹

Meow~ Meow~ Meow~ Wang! Wang! Wang!

   |\_._/|        |,\__/|        |\__/,|        |\_._/|        |\_._/|        |\_._/|            .-"-.               .-"-.     
   | o o |        |  o o|        |o o  |        | 0 0 |        | 0 0 |        | 0 0 |          _/_-.-_\_           _/.-.-.\_   
   (  T  )        (   T )        ( T   )        (  T  )        (  T  )        (  T  )         / __} {__ \         /|( o o )|\  
  .^`-^-'^.      .^`--^'^.      .^`^--'^.      .^`-^-'^.      .^`-^-'^.      .^`-^-'^.       / //  "  \\ \       | //  "  \\ | 
  `.  ;  .'      `.  ;  .'      `.  ;  .'      `.  ;  .'      `.  ;  .'      `.  ;  .'      / / \'---'/ \ \     / / \'---'/ \ \
  | | | | |      | | | | |      | | | | |      | | | | |      | | | | |      | | | | |      \ \_/`"""`\_/ /     \ \_/`"""`\_/ /
 ((_((|))_))    ((_((|))_))    ((_((|))_))    ((_((|))_))    ((_((|))_))    ((_((|))_))      \           /       \           / 

asciiplayer's People

Contributors

codacy-badger avatar qeesung avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

asciiplayer's Issues

Installation is impossible

Really fun, this software has been rendered completely obsolete as you can't even install it. Any attempt to install it tosses
go: go.mod file not found in current directory or any parent directory.
'go get' is no longer supported outside a module.
To build and install a command, use 'go install' with a version,
like 'go install example.com/cmd@latest'
For more information, see https://golang.org/doc/go-get-install-deprecation
or run 'go help get' or 'go help install'.

Please port to C++ and add to the apt repository. Thank you.

[FEATURE REQUEST] Play n times

Hi! Very cool project!

It would be nice to be able to be able to stop the player after n plays (or frames?).

Or maybe have the program read the number of loops from the file data if it exists.
(Random Scala code (should give an idea) reading loop count bytes. Found here):

  val raf = new RandomAccessFile(src, "rw")
  // skip GIF header, 6 bytes. Don't care of it much.
  raf.skipBytes(6)
  // don't need image dimension
  raf.skipBytes(4)
  val flags = raf.readUnsignedByte()
  val headerSize = 3 * (1 << ((flags & 7) + 1)) // 00000111 - size of color table
  val headerExists = flags & 128 // 10000000 - is there a color table at all
  // skip background color and pixel ratio
  raf.skipBytes(2)
  if (headerExists != 0) {
    raf.skipBytes(headerSize)
  }
  val signature = raf.readUnsignedShort()
  require(signature == 0x21ff)
  raf.skipBytes(13) // NETSCAPE 2.0
  raf.skipBytes(1) // GIF animation flag has to be 1
  ctx.loopCount.foreach {
    v =>
      raf.writeByte(v & 0xff)
      raf.writeByte((v >> 8) & 0xff)
  }
  raf.close()

Turns out it's pretty hard finding information on parsing GIF data ๐Ÿค”

I might have a go (lol) at this, at some point.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.