Coder Social home page Coder Social logo

fltk-starfield-simulation's Introduction

FLTK Starfield Simulation Demo

v1.0: 2017/01/22

Introduction

This tiny program shows off FLTK's simple concepts combined with powerful drawing methods very well, resulting in straightforward coding and good performance.

If the program looks yet complex on the first view, this is only because of the different options it can handle, which inevitably blow up the code a little.


History (cited from comment in source file)

I translated and enhanced a program written in SmallBasic language (SmallBasic by ChrisWS) to C++ and FLTK.

I found this code about 2009 "in the web", transcoded it and have improved it slowly over the years, then forgot about it for some more years and now (2017) have found it again and decided to make it public.

As there is no explicit claim for non free code in the original source, I "assume" it can be modified and redistributed freely.

Should this assumption be wrong, please mail me and I will remove it from public access.

This translated code can be used and modified freely without any restrictions in the assumption the original code is free too.

The original source can be found under this link:

SmallBasic Star_field.bas source


Description

This program simulates parallactic movement through a star field. 'Stars' can be of any number and can also be images. Also speed and colors can be adjusted, which gives some nice scenaries.

Check the supplied example*.sh scripts to see the possible arguments.

Test out the performance: call it with e.g. 1000 stars. On my not so new system this uses just 7% cpu! 10000 stars: 29% cpu!

Tested on Linux only. (But should work on Windows too)

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.