All Projects → epost → purescript-free-turtle

epost / purescript-free-turtle

Licence: MIT License
A toy turtle graphics interpreter based on the Free monad, in PureScript, with HTML Canvas graphics support.

Programming Languages

purescript
368 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
Dhall
116 projects

Projects that are alternatives of or similar to purescript-free-turtle

code with me
flutter app and code demos
Stars: ✭ 31 (+93.75%)
Mutual labels:  tutorial-code
tutorial-go-fiber-rest-api
📖 Build a RESTful API on Go: Fiber, PostgreSQL, JWT and Swagger docs in isolated Docker containers.
Stars: ✭ 175 (+993.75%)
Mutual labels:  tutorial-code
launchpad
Resources to get started in Quantum Computing!
Stars: ✭ 21 (+31.25%)
Mutual labels:  tutorial-code
ARKitPhysics
ARKit Demo for Physics
Stars: ✭ 21 (+31.25%)
Mutual labels:  tutorial-code
nlp-class
A Natural Language Processing course taught by Professor Ghassemi
Stars: ✭ 95 (+493.75%)
Mutual labels:  tutorial-code
go-basics
🔥 Исходники к курсу "Язык Go Для Начинающих"
Stars: ✭ 76 (+375%)
Mutual labels:  tutorial-code
database-engine
LSM-Tree Key-Value Store based on RocksDB
Stars: ✭ 47 (+193.75%)
Mutual labels:  tutorial-code
trtl
Tk-powered Ruby turtle graphics
Stars: ✭ 65 (+306.25%)
Mutual labels:  turtle-graphics
python-tutorial-codes
Python 🐍 Tutorials
Stars: ✭ 23 (+43.75%)
Mutual labels:  tutorial-code
Monthly-App-Challenge-2022
Retos mensuales de la comunidad MoureDev para crear pequeñas aplicaciones en base a requisitos
Stars: ✭ 153 (+856.25%)
Mutual labels:  tutorial-code
example-static-website-docker-nginx-certbot
Example static website with Docker, Nginx and Certbot
Stars: ✭ 29 (+81.25%)
Mutual labels:  tutorial-code
wxWidgetsTutorials
wxWidgets Tutorials
Stars: ✭ 39 (+143.75%)
Mutual labels:  tutorial-code
Django-Course
Python Django Web开发 入门到实践 搭建博客网站 Blog 视频地址:
Stars: ✭ 31 (+93.75%)
Mutual labels:  tutorial-code
Tutorials
Introductory tutorial notebooks for learning data science, as part of the Data Science in Practice materials.
Stars: ✭ 66 (+312.5%)
Mutual labels:  tutorial-code
rxandroid2-retrofit2
Small tutorial to get started with RxAndroid 2 and Retrofit 2
Stars: ✭ 55 (+243.75%)
Mutual labels:  tutorial-code
coding-notes
I'm compiling comprehensive coding tutorials for many different languages and frameworks! 🐲
Stars: ✭ 201 (+1156.25%)
Mutual labels:  tutorial-code
intro-kotlin-mutliplatform
Kotlin Multiplatform project (MPP), JVM and JS
Stars: ✭ 21 (+31.25%)
Mutual labels:  tutorial-code
QR-Scanner
A React Native QR code scanner app built using Expo
Stars: ✭ 17 (+6.25%)
Mutual labels:  tutorial-code
friendlyhello-docker
《Docker 学习新手笔记:从入门到放弃》一文与示例代码
Stars: ✭ 30 (+87.5%)
Mutual labels:  tutorial-code
youtube-android
Source code as seen on my YouTube videos!
Stars: ✭ 35 (+118.75%)
Mutual labels:  tutorial-code

PureScript Free Turtle interpreter

A simple Turtle graphics system implemented using a Free monad, intended for educational purposes. It comes with an interpreter that translates programs in the Turtle language to HTML canvas graphics.

img/two-stars.png

main :: Effect Context2D
main = CanvasInterpreter.render "turtleCanvas" do
  color Purple
  star

  forward 40.0
  left 100.0

  color Red
  star

star = do
  penDown
  right 144.0
  forward 100.0
  right 144.0
  forward 100.0
  right 144.0
  forward 100.0
  right 144.0
  forward 100.0
  right 144.0
  forward 100.0
  penUp

Usage

In your shell, type:

npm install
npm run build
npm run bundle

Then point your browser to ./html/index.html.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].