Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411487 Posts in 69377 Topics- by 58433 Members - Latest Member: graysonsolis

April 29, 2024, 11:41:01 AM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsDeveloperPlaytestingPrismacode - Turtle Graphics in HTML5 Canvas
Pages: [1]
Print
Author Topic: Prismacode - Turtle Graphics in HTML5 Canvas  (Read 744 times)
frosty
Level 1
*


ice cold & refreshing


View Profile WWW
« on: July 05, 2013, 11:15:52 AM »


I've been working on this on and off for the past 2-3 years.  It started as a PHP prototype but eventually ported it to Coffeescript & Canvas.

There are still some things I'd like to add, like variables and functions, to allow for fractals, etc., but there's still some pretty neat stuff you can do with it right now.

Any feedback would be great, but I'm mostly interested in how easy it is for people to figure out.

Thanks!

http://prismaco.de




Logged

Citiral
Level 0
*


Just Doing This For Beer


View Profile
« Reply #1 on: July 05, 2013, 04:09:54 PM »

This is really neat!
I love how you can, in a handful of lines, make really intricate designs.

Seeing the premade code at first looked really confusing, but when I tried making my own design I got the hang of it in a matter of minutes. This is something I can see myself coming back to time and again when I get bored.

Functions and variables sound neat, but I think it's best to also try and keep it simple as I think the simplicity is the beauty of it.

(also, boxes: http://prismaco.de/program/3f8 )
(edit: even more colorful boxes: http://prismaco.de/program/3f9 . This tool is awesome!)

double edit: I think I have found a bug, it wont draw when I put a range on my color parameter in a spin loop:

This works,
Code:
MOVETO -300 -20
REPEAT 10 {

  SPIN 47:22 {

    COLOR 30
    REPEAT 4 {
      LINE 30
      TURN 90
    }
    LINE 40
  }
}

but this doesnt.
Code:
MOVETO -300 -20
REPEAT 10 {

  SPIN 47:22 {

    COLOR 30:250
    REPEAT 4 {
      LINE 30
      TURN 90
    }
    LINE 40
  }
}
Or maybe I am just overlooking something.
« Last Edit: July 05, 2013, 04:16:03 PM by Citiral » Logged
frosty
Level 1
*


ice cold & refreshing


View Profile WWW
« Reply #2 on: July 05, 2013, 06:20:46 PM »

Thanks, Citiral!

I think your bug is because currently ranges are defined at compile-time and expect the containing loop to be constant (not a range itself). 

I hadn't considered that use case, but I'll try to figure out a way to support it.

Also, regarding variables, etc. I definitely agree on keeping it simple.  They will probably be "hidden" under an Advanced section.
Logged

MagicInkGames
Level 0
*


Magic Ink Games


View Profile WWW
« Reply #3 on: July 06, 2013, 11:07:07 AM »

very nice!
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic