add canadian spellings

This commit is contained in:
Scott Richmond 2025-07-05 15:51:45 -04:00
parent 84101711f2
commit 4988ea6626
2 changed files with 9 additions and 0 deletions

View File

@ -1023,6 +1023,7 @@ let colors = #{
:black (0, 0, 0, 255) :black (0, 0, 0, 255)
:silver (192, 192, 192, 255) :silver (192, 192, 192, 255)
:gray (128, 128, 128, 255) :gray (128, 128, 128, 255)
:grey (128, 128, 128, 255)
:white (255, 255, 255, 255) :white (255, 255, 255, 255)
:maroon (128, 0, 0, 255) :maroon (128, 0, 0, 255)
:red (255, 0, 0, 255) :red (255, 0, 0, 255)
@ -1038,6 +1039,8 @@ let colors = #{
:aqua (0, 255, 25, 255) :aqua (0, 255, 25, 255)
} }
let colours = colors
& the initial turtle state & the initial turtle state
let turtle_init = #{ let turtle_init = #{
:position (0, 0) & let's call this the origin for now :position (0, 0) & let's call this the origin for now
@ -1117,6 +1120,8 @@ fn pencolor! {
((r as :number, g as :number, b as :number, a as :number)) -> add_command! (:turtle_0, (:pencolor, (r, g, b, a))) ((r as :number, g as :number, b as :number, a as :number)) -> add_command! (:turtle_0, (:pencolor, (r, g, b, a)))
} }
let pencolour! = pencolor!
let pc! = pencolor! let pc! = pencolor!
fn penwidth! { fn penwidth! {
@ -1233,6 +1238,8 @@ fn pencolor {
() -> do turtle_states > unbox > :turtle_0 > :pencolor () -> do turtle_states > unbox > :turtle_0 > :pencolor
} }
let pencolour = pencolor
fn penwidth { fn penwidth {
"Returns the turtle's pen width in pixels." "Returns the turtle's pen width in pixels."
() -> do turtle_states > unbox > :turtle_0 > :penwidth () -> do turtle_states > unbox > :turtle_0 > :penwidth
@ -1415,6 +1422,7 @@ fn read_input {
clear! clear!
coll? coll?
colors colors
colours
concat concat
cons cons
console console
@ -1493,6 +1501,7 @@ fn read_input {
pd! pd!
pencolor pencolor
pencolor! pencolor!
pencolour!
pendown! pendown!
pendown? pendown?
penup! penup!

Binary file not shown.