GithubHelp home page GithubHelp logo

sierpinski's Introduction

sierpinski

A demo of the Sierpinski Triangles fractal written in Ruby, rendered with Ruby2D.

Screenshot:

Screenshot of the Sierpinski Triangles fractal rendered at 9 iterations

Installation

$ ~ gem install ruby2d
$ ~ git clone https://github.com/cultureshocked/sierpinski
$ ~ cd sierpinski
$ ~/sierpinski ruby sierpinski.rb

Dependencies

ruby2d is the only external gem that this program uses.

However, ruby2d depends on SDL2 being installed on your system. Since ruby2d is built from source for all of its native SDL2 binaries, this means that it may also depend on the *-devel versions, varying from distro to distro.

I can't offer support for non-Arch Linux systems at this time, but this is how I would install the packages required on my system:

$ ~ sudo pacman -S sdl2
$ ~ gem install ruby2d

Testing

This project is being developed with the DDT paradigm for testing, as my last project was built with TDD (heapq-ruby)

As of right now, there are no unit tests; there is only a working prototype of the program.

License

GPLv3

sierpinski's People

Contributors

cultureshocked avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.