GithubHelp home page GithubHelp logo

thales17 / guile-tortoise Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 278 KB

guile tortoise project inspired by the tutorial

License: GNU General Public License v3.0

Makefile 5.37% C 71.44% Scheme 23.19%

guile-tortoise's Introduction

Guile Tortoise

I started out following the code in the guile tutorial. I hit a but where the koch curve wasn't looking right so I wanted to make my own plotter in SDL. It was a bit of the distraction since the issue wasn't with gnuplot at all but with the order of the line segment args. I also added a few scheme files of my own. The sdlplotter I implemented takes a set of 4 doubles and plots the line to the screen. I added all the tortoise commands from the tutorial but also added tortoise-center that resets the position of the tortoise without clearing.

Running

  • If you build tortoise it will look for the sdlplotter binary in the bin folder so build that first
  • Once it is running you get a scheme REPL where you can input (tortoise-*) commands.
  • Alternativly libguile supports running a scheme file as an argument, i.e. ./tortoise ../test_pattern.scm
  • Quitting the repl will not close the sdlplotter or gnuplot but they should exit if you just close the windows.
  • The coordinates system is -10 to 10 on both axes and the tortoise starts in the center

Ubuntu Packages used to develop and build this

  • build-essential
  • guile-3.0
  • guile-3.0-dev
  • gnuplot
  • sdl2-dev

OpenBSD

Packages

  • gnuplot
  • guile2
  • gmake
  • sdl2

Building

  • gmake sdlplotter tortoise

Running

  • cd bin/
  • ./tortoise ../test_pattern.scm

Showcase

  • test pattern
  • koch curve from tutorial
  • spiral
  • squares
  • gnuplot vs sdlplotter

Happy Accidents

  • test pattern
  • spiral

guile-tortoise's People

Contributors

thales17 avatar

Stargazers

 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.