Giter VIP home page Giter VIP logo

badapple-ti84's People

Contributors

fb39ca4 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

badapple-ti84's Issues

Is there a way to support audio on TI-84?

Awesome work! I was able to get this working on wabbitemu, but it seems that there is no audio. Does TI-84 support any audio output, or it's just an emulator issue?

"Array index out of range" while encoding a 400 frame 96 * 64 video

So I modified the file "convertframes.py" to convert my Bad Apple video (containing only 400 frames because I have a ti-84 plus, with only 469kb of storage) to a binary file, every frame has the same size as what fb39ca4 used, but an error message popped up on line 21:

import png
import gzip

numFrames = 400    #### I changed 6572 to 400 because my calculator doesn't have enough storage
frameRange = range(1, numFrames + 1)

treshold = 127
usePFrames = 1

rawFrames = []

frameData = array('B')

idx = -1
for frameNum in frameRange:
    originalData = png.Reader("C:\\Users\\bin\\frames\\badapple" + str(frameNum).zfill(3) + ".png").read_flat()[2]
    pixelData = array('B')
    for i in range(96 * 4, 96 * 68):
        if (i & 7 == 0):
            idx += 1;
        frameData.append(1 if (originalData[3 * i + 1] > treshold) else 0)  #### ERROR RIGHT HERE
    print("loaded frame " + str(frameNum))

f = gzip.open('./frames.bin.gz', 'wb')
frameData.tofile(f)
f.close()

it says "IndexError: array index out of range". But I used the same frame size, what is causing the error here? How do I fix it?

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.