Skip to content

Commit

Permalink
Fixes pencolor for turtle
Browse files Browse the repository at this point in the history
  • Loading branch information
deadprogram committed May 1, 2011
1 parent 9f4c671 commit f8f39ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/models/turtle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def init_turtle
end

def command_turtle(commands)
code = "getTurtle()." + commands ;
code = "getTurtle()." + URI.decode(commands) ;
@main_frame.evaluateJavaScript(code)
end

Expand Down
6 changes: 3 additions & 3 deletions public/js/pen.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,9 @@ Pen.prototype = {
},

penstyle: function(str) {
this.canvas.strokeStyle = this.strokeStyle = str;
return this;
this.strokeStyle = this.canvas.strokeStyle = str;

return this;
},

text: function(str) {
Expand Down
2 changes: 1 addition & 1 deletion public/turtle.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</style>

<!-- including the lib and an rgb to hsv color util function -->
<script src="js/pen_min.js"></script>
<script src="js/pen.js"></script>
<script src="js/hsv.js"></script>

<script>
Expand Down

0 comments on commit f8f39ce

Please sign in to comment.