Giter VIP home page Giter VIP logo

ft-demos's Introduction

Flaschen-Taschen Demos

By Carl Gorringe

Here are some programs that I wrote for the Noisebridge Flaschen Taschen Project, based on code written by hzeller.

I've also created ft-mod, a Music Module Player for the Flaschen Taschen.

Install How-to

This works on a unix-like OS such as Linux or Mac OS X.

Check out the project

This project uses the API provided in the flaschen-taschen project. We use it in a sub-module, so we have to check out with the --recursive option:

  git clone --recursive https://github.com/cgorringe/ft-demos

Either make & run the server locally, or use the remote servers (see original README). Set up your display using the environment variable:

$ export FT_DISPLAY=localhost or servername

Now make and run the demos:

$ cd ft-demos
$ make all
$ ./random-dots

Demos provided

Use the -? command-line option on any demo program to list it's options.

  1. random-dots
  2. quilt
  3. nb-logo - logo that traverses the border
  4. plasma - multi-colored plasma
  5. blur bolt or boxes - burred simulated sound waves or rectangles
  6. lines - like an old-school screensaver
  7. hack - rotating letters + blur effect
  8. fractal - zooming Mandelbrot fractal
  9. midi - converts a midi bytestream into a player piano demo of scrolling dots
  10. life - Conway's Game of Life
  11. maze - maze generator
  12. sierpinski - Sierpinski's Triangle
  13. matrix - Matrix Rain

Noisebridge hosts


License

Copyright (c) 2016 Carl Gorringe. All rights reserved.

Licensed under the the terms of the GNU General Public License version 2 (GPLv2).

ft-demos's People

Contributors

cgorringe avatar hzeller avatar mlgraham avatar yosinski 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

Watchers

 avatar  avatar  avatar  avatar

ft-demos's Issues

Using random() instead of arc4random_uniform() ?

The arc4random_uniform(int range) function seems to be specialized for a particular platform, so this code does not compile without modifications.

Would it hurt to replace it with calls to random() % range ? The random() function might not be the best ever random generator, but it is available in all standard C libraries (#include <stdlib.h>)

(or just some simple file with an

  inline int rangedRandom(int range) {
#ifdef MACOS
   return arc4random_uniform(range);
#else
    return random() % range;
#endif
  }

)

blur has the last column black

In 'blur', the last column is always black. This is probably due to the

  // draw black border & blur on every frame

Which is not quite clear to me why that is. However, if I remove the black box, then there is some artifact on the right (looks like pixel are collecting) - so there is presumably a reason for this.

However, it would be good to fill the screen fully. Should this just be hacked with opt_width+=1; somewhere ? :)

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.