Code Monkey home page Code Monkey logo

pycl-convergence's Introduction

PyCl-Convergence

Python/OpenCl Cellular Automata explorer

I encourage anyone who is willing to contribute to this code do so: Fork the Github repository and upload your successive changes!

Dependencies:

  • sudo apt-get install python-pyopencl

  • sudo apt-get install python-scipy

  • sudo apt-get install python-tk

  • sudo apt-get install python-pygame

OpenCL CPU Framework:

AMD

Intel

GPU OpenCL compatibility:

nvidia:

  • sudo apt-get install nvidia-opencl-dev

AMD:

  • Pending ... Message me at reddit's /u/slackermanz if you have compatibility suggestions!

A "Litmus Test":

If your machine can run GPU-accelerated simulations with https://code.google.com/p/reaction-diffusion/ it should also be able to run this program.

Once that is set up...

Open the terminal in './PyCl-Convergence/ConwayCL-Final'

Run the Python script './PyCl-Convergence/ConwayCL-Final/main.py' in the terminal with: 'python main.py'

  • Spam the ENTER key to use default settings

  • Right Click to toggle pause

  • Click the scrollwheel or press 'R' key to restart/reseed world

  • 'Forward' mouse button or 'E' key to change rule

  • 'Back' mousebutton or 'T' key to use a Bitmap image seed

  • 'Q' key to toggle image-capture recording (creates a series of Avidemux-compatible Bitmaps)

  • 'P' to wipe the screen clear of all living cells

  • 'F' to toggle use of 'Photographic' filter

  • 'I' to toggle use of 'Game Mode' (Prerequisite: 'F' for Filter Mode must be on)

  • '0' through '9' to load a rule from the 'RulePlaylist' file

There's Three Modes: DRAW, VIEW, and GAME

DRAW (Typical Default)

  • Scrollwheel to increase Drawn Square Size

  • 'SPACEBAR' to toggle DRAW or VIEW modes

VIEW

  • 'SPACEBAR' to toggle DRAW or VIEW modes

  • The game world will become centered on the mouse location

  • Scrollwheel to Zoom in or out

GAME (Temporarily Default Override)

  • 'I' to toggle use of 'Game Mode'

  • Spacebar or Left Click to shoot at the Mouse Position

  • 'F' to toggle use of 'Photographic' filter

pycl-convergence's People

Contributors

epitron avatar infinitesearchspace avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

sin-tel

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.