import cpython/turtle
title "Nim Turtle"
shape "turtle"
shapesize 2, 2, 8
color "green", "yellow"
speed "fast"
beginFill()
while true:
forward 200
left 170
if position() < (1.0, 1.0):
break
endFill()
mainLoop()
proc backward(distance: float) {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc backward(distance: int) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc begin_fill() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
KeyError], tags: [RootEffect].}
-
proc begin_poly() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
KeyError], tags: [RootEffect].}
-
proc bgpic(): string {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc bgpic(picname: string) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc bye() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
KeyError], tags: [RootEffect].}
-
proc circle(radius, extent, steps: float) {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc circle(radius, extent, steps: int) {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc circle(radius: float) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc circle(radius: int) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc clear() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
KeyError], tags: [RootEffect].}
-
proc clearscreen(): bool {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc clearstamp(stampid: int) {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc clearstamps() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
KeyError], tags: [RootEffect].}
-
proc color(): tuple[penColor, fillColor: string] {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc color(colour: string) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc color(colourA, colourB: (float, float, float)) {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc color(colourA, colourB: (int, int, int)) {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc color(colourA, colourB: string) {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc color(red, green, blue: float) {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc color(red, green, blue: int) {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc colormode(cmode: float) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc colormode(cmode: int) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc degrees(fullcircle = 360.0) {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc delay(): float {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc delay(delai: float) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc delay(delai: int) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc distance(x, y: float): float {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc distance(x, y: int): float {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc dot(size: int; color: string) {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc end_fill() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
KeyError], tags: [RootEffect].}
-
proc end_poly() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
KeyError], tags: [RootEffect].}
-
proc exitonclick() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
KeyError], tags: [RootEffect].}
-
proc fillcolor(): string {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc fillcolor(red, green, blue: float) {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc fillcolor(red, green, blue: int) {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc filling(): bool {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc forward(distance: float) {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc forward(distance: int) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc get_shapepoly(): seq[tuple[x, y: float]] {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc getshapes(): seq[string] {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc goto(x, y: float) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc goto(x, y: int) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc hideturtle() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
KeyError], tags: [RootEffect].}
-
proc home() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
KeyError], tags: [RootEffect].}
-
proc isdown(): bool {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc isvisible(): bool {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc left(angle: float) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc left(angle: int) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc mainloop() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
KeyError], tags: [RootEffect].}
-
proc mode(): string {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc mode(modes: string) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc pencolor(): string {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc pencolor(colour: (float, float, float)) {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc pencolor(colour: (int, int, int)) {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc pencolor(colour: string) {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc pencolor(red, green, blue: float) {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc pencolor(red, green, blue: int) {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc pendown(): int {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc pensize(): int {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc pensize(width: int) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc penup(): int {....raises: [Exception, ValueError, OSError, IOError, EOFError,
KeyError], tags: [RootEffect].}
-
proc position(): tuple[x, y: float] {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc radians(): float {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc register_shape(gif_file_path: string) {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc register_shape(name: string; shape: seq[(float, float)]) {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc register_shape(name: string; shape: seq[(int, int)]) {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc reset() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
KeyError], tags: [RootEffect].}
-
proc resetscreen(): bool {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc resizemode(): string {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc resizemode(resizemod: string) {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc right(angle: float) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc right(angle: int) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc screensize(canvwidth, canvheight: float; bg: (float, float, float)) {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc screensize(canvwidth, canvheight: float; bg: string) {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc screensize(canvwidth, canvheight: int; bg: (int, int, int)) {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc screensize(canvwidth, canvheight: int; bg: string) {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc setheading(to_angle: float) {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc setheading(to_angle: int) {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc setposition(x, y: float) {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc setposition(x, y: int) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc settiltangle(angle: float) {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc setundobuffer() {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc setundobuffer(size: int) {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc setup(width, height: float; startx, starty: int) {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc setup(width, height: int; startx, starty: int) {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc setworldcoordinates(llx, lly, urx, ury: float) {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc setworldcoordinates(llx, lly, urx, ury: int) {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc setx(x: float) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc setx(x: int) {....raises: [Exception, ValueError, OSError, IOError, EOFError,
KeyError], tags: [RootEffect].}
-
proc sety(y: float) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc sety(y: int) {....raises: [Exception, ValueError, OSError, IOError, EOFError,
KeyError], tags: [RootEffect].}
-
proc shape(): string {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc shape(name: string) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc shapesize(): tuple[stretch_wid, stretch_len, outline: float] {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc shapesize(stretch_wid, stretch_len, outline: float) {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc shapesize(stretch_wid, stretch_len, outline: int) {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc shearfactor(): float {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc shearfactor(shear: float) {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc shearfactor(shear: int) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc showturtle() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
KeyError], tags: [RootEffect].}
-
proc speed(): int {....raises: [Exception, ValueError, OSError, IOError, EOFError,
KeyError], tags: [RootEffect].}
-
proc speed(sped: range[0 .. 10]) {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc speed(sped: string) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc stamp(): int {....raises: [Exception, ValueError, OSError, IOError, EOFError,
KeyError], tags: [RootEffect].}
-
proc textinput(title, prompt: string): string {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc tilt(angle: float) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc tilt(angle: int) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc tiltangle(angle: float) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc tiltangle(angle: int) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc title(titlestring: string) {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc towards(x, y: float): float {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc towards(x, y: int): float {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc tracer(): float {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc tracer(n, delai: float) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc tracer(n, delai: int) {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc turtlesize(): tuple[stretch_wid, stretch_len, outline: float] {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc turtlesize(stretch_wid, stretch_len, outline: float) {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc turtlesize(stretch_wid, stretch_len, outline: int) {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc undo() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
KeyError], tags: [RootEffect].}
-
proc update() {....raises: [Exception, ValueError, OSError, IOError, EOFError,
KeyError], tags: [RootEffect].}
-
proc window_height(): int {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc window_width(): int {....raises: [Exception, ValueError, OSError, IOError,
EOFError, KeyError], tags: [RootEffect].}
-
proc write(arg: string; move = false; align = "left";
font = ("Arial", 9, "normal")) {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc write(arg: string; move: bool) {....raises: [Exception, ValueError, OSError,
IOError, EOFError, KeyError], tags: [RootEffect].}
-
proc write(arg: string; move: bool; align: string) {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc write_docstringdict(filename = "turtle_docstringdict") {.
...raises: [Exception, ValueError, OSError, IOError, EOFError, KeyError],
tags: [RootEffect].}
-
proc xcor(): float {....raises: [Exception, ValueError, OSError, IOError, EOFError,
KeyError], tags: [RootEffect].}
-
proc ycor(): float {....raises: [Exception, ValueError, OSError, IOError, EOFError,
KeyError], tags: [RootEffect].}
-