GithubHelp home page GithubHelp logo

chrispritchard / substrate Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 183 KB

A port to immutable and functional F# from the original Java implementation by j.tarbell (http://www.complexification.net/gallery/machines/substrate/)

License: The Unlicense

F# 100.00%
fsharp corert substrate computer-art art

substrate's Introduction

Substrate

A port to immutable and functional F# from the original Java implementation by j.tarbell (http://www.complexification.net/gallery/machines/substrate/)

screenshot

This specific implementation is a port of the code found here, more or less: http://www.complexification.net/gallery/machines/substrate/appletl/substrate_l.pde

Changes from the source include:

  • Obviously, its in F# and makes use of immutability, purity and all the pipelining/match goodness to be much more concise than the original java
  • I haven't implemented the colouring, the 'sand painter' effect. Just because I don't really like the colours they had, but I might add this at a later date

## System.Drawing.Common

The output of this code, defined in Program.fs, makes use of System.Drawing.Common to compose a png. This works fine in windows, as it uses native GDI+. On Linux and Mac you will need to install 'libgdiplus' to get this working.

Update - MonoGame integration

Using my wrapped monogame core loop fsharp-gamecore, this project now draws in real time. If you want a bitmap, feel free to walk back prior to this change in the commit history.

Core RT

Because the core algorithm is quite slow (average 30 seconds on my i7), I have added CoreRT. If you run dotnet publish -r win-x64 or linux-x64 or osx-x64 and have the right requirements for CoreRT (things like C++ Build tools on windows, or clang and supporting libs on linux) it will output an executable that is MUCH faster (i.e. 10x).

substrate's People

Contributors

chrispritchard avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.