Developer's Guide to Arrays & Controls
Developer's Guide to Arrays & Controls
This object provides a way of storing more than one value for a given name. These values can be accessed by another index.
Operations
ContainsIndex
[Link](array, index)
Gets whether or not the array contains the specified index. This is very useful when deciding if the array's index was initialized by some value or not.
array
The array to check.
index
The index to check.
Returns
"True" or "False" depending on if the index was present in the specified. array.
ContainsValue
[Link](array, value)
Gets whether or not the array contains the specified value. This is very useful when deciding if the array's value was stored in some index.
array
The array to check.
value
The value to check.
Returns
"True" or "False" depending on if the value was present in the specified. array. ending
GetAllIndices
[Link](array)
Returns
An array filled with all the indices of the specified array. The index of the returned array starts from 1.
GetItemCount
[Link](array)
Returns
The number of items in the specified array.
IsArray
[Link](array)
Returns
"True" if the specified variable is an array. "False" otherwise.
SetValue
[Link](arrayName, index, value)
index
Name of the index.
value
The value to set.
Returns
Nothing
GetValue
[Link](arrayName, index)
index
The name of the index.
Returns
RemoveValue
[Link](arrayName, index)
index
The index of the item to remove.
Returns
Nothing
Clock
This class provides access to the system clock
Properties
Time (This property is read-only.)
[Link]
Gets the current day of the month. WeekDay (This property is read-only.) only.)
[Link]
Gets the current day of the week. Hour (This property is read-only.)
[Link]
Controls
The Controls object allows you to add, move and interact with controls.
Properties
LastClickedButton (This property is read read-only.)
[Link]
Gets the last Button that was clicked on the Graphics Window. LastTypedTextBox (This property is read-only.)
[Link]
Events
ButtonClicked
[Link]
Operations
AddButton
[Link](caption, left, top)
Adds a button to the graphics window with the specified width and height.
caption
The caption to display in the button.
left
The x co-ordinate of the button.
top
The y co-ordinate of the button.
Returns
The button that was just added to the Graphics Window.
GetButtonCaption
[Link](buttonName)
Returns
The current caption of the button.
SetButtonCaption
[Link](buttonName, caption)
buttonName
The Button whose caption needs to be set.
caption
The new caption for the button.
Returns
Nothing
AddTextBox
[Link](left, top)
Adds a text input box to the graphics window with the specified width and height.
left
The x co-ordinate of the text box.
top
The y co-ordinate of the text box.
Returns
The text box that was just added to the Graphics Window.
AddMultiLineTextBox
[Link](left, top)
Adds a multi-line text input box to the graphics window with the specified width and height. line
left
The x co-ordinate of the text box.
top
The y co-ordinate of the text box.
Returns
The text box that was just added to the Graphics Window.
GetTextBoxText
[Link](textBoxName)
Returns
The text in the TextBox
SetTextBoxText
[Link](textBoxName, text)
text
The new text for the TextBox.
Returns
Nothing
Remove
[Link](controlName)
Returns
Nothing
Move
[Link](control, x, y)
x
The x co-ordinate of the new position.
y
The y co-ordinate of the new position.
Returns
Nothing
SetSize
[Link](control, width, height)
width
The width of the control.
height
Returns
Nothing
HideControl
[Link](controlName)
Returns
Nothing
ShowControl
[Link](controlName)
Returns
Nothing
Desktop
This class provides methods to interact with the desktop.
Properties
Width (This property is read-only.)
[Link]
Gets the screen width of the primary desktop. Height (This property is read-only.)
[Link]
Operations
SetWallPaper
[Link](fileOrUrl)
Sets the specified picture as the desktop's wallpaper. This file could be a local file or a network file or even an internet url.
fileOrUrl
The filename or url of the picture.
Returns
Nothing
Dictionary
This class provides access to an online Dictionary service.
Operations
GetDefinition
[Link](word)
Returns
The definition(s) of the specified word.
GetDefinitionInFrench
[Link](word)
Returns
The definition(s) of the specified word.
File
The File object provides methods to access, read and write information from and to a file on disk. Using this object, it is possible to save and open settings across multiple sessions of your program.
Properties
LastError
[Link]
Gets or sets the last encountered file operation based error message. This property is useful for finding out when some method fails to execute.
Operations
ReadContents
[Link](filePath)
Opens a file and reads the entire file's contents. This method will be fast for small files that are less than an MB in size, but will start to slow down and will be noticeable for files greater than 10MB.
filePath
The full path of the file to read. An example of a full path will be c: c:\temp\[Link].
Returns
The entire contents of the file.
WriteContents
[Link](filePath, contents)
Opens a file and writes the specified contents into it, replacing the original contents with the new content.
filePath
The full path of the file to write to. An example of a full path will be c: c:\temp\[Link].
contents
The contents to write into the specified file.
Returns
If the operation was successful, this will return "SUCCESS". Otherwise, it will return "FAILED".
ReadLine
[Link](filePath, lineNumber)
Opens the specified file and reads the contents at the specified line number.
filePath
The full path of the file to read from. An example of a full path will be c: c:\temp\[Link].
lineNumber
The line number of the text to be read.
Returns
The text at the specified line of the specified file.
WriteLine
[Link](filePath, lineNumber, contents)
Opens the specified file and write the contents at the specified line number. This operation will overwrite any existing content at the specified line.
filePath
The full path of the file to read from. An example of a full path will be c: c:\temp\[Link].
lineNumber
The line number of the text to write.
contents
The contents to write at the specified line of the specified file.
Returns
If the operation was successful, this will return "SUCCESS". Otherwise, it will return "FAILED".
InsertLine
[Link](filePath, lineNumber, contents)
Opens the specified file and inserts the contents at the specified line number. This operation will not overwrite any existing content at the specifid line.
filePath
The full path of the file to read from. An example of a full path will be c: c:\temp\[Link].
lineNumber
The line number of the text to insert.
contents
The contents to insert into the file.
Returns
If the operation was successful, this will return "SUCCESS". Otherwise, it will return "FAILED".
AppendContents
[Link](filePath, contents)
Opens the specified file and appends the contents to the end of the file.
filePath
The full path of the file to read from. An example of a full path will be c: c:\temp\[Link].
contents
The contents to append to the end of the file.
Returns
If the operation was successful, this will return "SUCCESS". Otherwise, it will return "FAILED".
CopyFile
[Link](sourceFilePath, destinationFilePath)
Copies the specified source file to the destination file path. If the destination points to a location that doesn't exist, the method will attempt to create it automatically. Existing files will be overwritten. It is always best to check if the destination file exists if you don't want to overwrite existing files.
sourceFilePath
The full path of the file that needs to be copied. An example of a full path will be c: c:\temp\[Link].
destinationFilePath
The destination location or the file path.
Returns
If the operation was successful, this will return "SUCCESS". Otherwise, it will return "FAILED".
DeleteFile
[Link](filePath)
Returns
If the operation was successful, this will return "SUCCESS". Otherwise, it will return "FAILED".
CreateDirectory
[Link](directoryPath)
Returns
If the operation was successful, this will return "SUCCESS". Otherwise, it will return "FAILED".
DeleteDirectory
[Link](directoryPath)
Returns
If the operation was successful, this will return "SUCCESS". Otherwise, it will return "FAILED".
GetFiles
[Link](directoryPath)
Gets the path of all the files in the specified directory path.
directoryPath
The directory to look for files.
Returns
If the operation was successful, this will return the files as an array. Otherwise, it will return "FAILED".
GetDirectories
[Link](directoryPath)
Gets the path of all the directories in the specified directory path.
directoryPath
The directory to look for subdirectories.
Returns
If the operation was successful, this will return the list of directories as an array. Otherwise, it will return "FAILED".
GetTemporaryFilePath
[Link]()
Creates a new temporary file in a temporary directory and returns the full file path.
Returns
The full file path of the temporary file.
GetSettingsFilePath
[Link]()
Gets the full path of the settings file for this program. The settings file name is based on the program's name and is present in the same location as the program.
Returns
The full path of the settings file specific for this program.
Flickr
This class provides access to Flickr photo services.
Operations
GetPictureOfMoment
[Link]()
GetRandomPicture
[Link](tag)
Gets the url for a random picture tagged with the specified tag.
tag
The tag for the requested picture.
Returns
A file url for Flickr's random picture
GraphicsWindow
The GraphicsWindow provides graphics related input and output functionality. For example, using this class, it is possible to draw and fill circles and rectangles.
Properties
BackgroundColor
[Link]
Gets or sets the brush color to be used to fill shapes drawn on the Graphics Window. CanResize
[Link]
Specifies whether or not the Graphics Window can be resized by the user. PenWidth
[Link]
Gets or sets the width of the pen used to draw shapes on the Graphics Window. PenColor
[Link]
Gets or sets the color of the pen used to draw shapes on the Graphics Window. FontName
[Link]
Gets or sets the Font Name to be used when drawing text on the Graphics Window. FontSize
[Link]
Gets or sets the Font Size to be used when drawing text on the Graphics Window. FontBold
[Link]
Gets or sets whether or not the font to be used when drawing text on the Graphics Window, is bold. FontItalic
[Link]
Gets or sets whether or not the font to be used when drawing text on the Graphics Window, is italic. Title
[Link]
Gets or sets the Top Position of the graphics window. LastKey (This property is read-only.)
[Link]
Gets the last key that was pressed or released. LastText (This property is read-only.) only.)
[Link]
Gets the last text that was entered on the Graphics Window. MouseX (This property is read-only.)
[Link]
Gets the x-position of the mouse relative to the Graphics Window. position MouseY (This property is read-only.)
[Link]
Gets the y-position of the mouse relative to the Graphics Window. position
Events
KeyDown
[Link]
Operations
Show
[Link]()
Hide
[Link]()
DrawRectangle
[Link](x, y, width, height)
y
The y co-ordinate of the rectangle.
width
The width of the rectangle.
height
The height of the rectangle.
Returns
Nothing
FillRectangle
[Link](x, y, width, height)
x
The x co-ordinate of the rectangle.
y
The y co-ordinate of the rectangle.
width
The width of the rectangle.
height
The height of the rectangle.
Returns
Nothing
DrawEllipse
[Link](x, y, width, height)
y
The y co-ordinate of the ellipse.
width
The width of the ellipse.
height
The height of the ellipse.
Returns
Nothing
FillEllipse
[Link](x, y, width, height)
y
The y co-ordinate of the ellipse.
width
The width of the ellipse.
height
The height of the ellipse.
Returns
Nothing
DrawTriangle
[Link](x1, y1, x2, y2, x3, y3)
y1
The y co-ordinate of the first point.
x2
The x co-ordinate of the second point.
y2
The y co-ordinate of the second point.
x3
The x co-ordinate of the third point.
y3
The y co-ordinate of the third point.
Returns
Nothing
FillTriangle
[Link](x1, y1, x2, y2, x3, y3)
Draws and fills a triangle on the screen using the selected brush.
x1
The x co-ordinate of the first point.
y1
The y co-ordinate of the first point.
x2
The x co-ordinate of the second point.
y2
The y co-ordinate of the second point.
x3
The x co-ordinate of the third point.
y3
The y co-ordinate of the third point.
Returns
Nothing
DrawLine
[Link](x1, y1, x2, y2)
y1
The y co-ordinate of the first point.
x2
The x co-ordinate of the second point.
y2
The y co-ordinate of the second point.
Returns
Nothing
DrawText
[Link](x, y, text)
y
The y co-ordinate of the text start point.
text
The text to draw
Returns
Nothing
DrawBoundText
[Link](x, y, width, text)
y
The y co-ordinate of the text start point.
width
The maximum available width. This parameter helps define when the text should wrap.
text
The text to draw.
Returns
Nothing
DrawResizedImage
[Link](imageName, x, y, width, height)
Draws the specified image from memory on to the screen, in the specified size.
imageName
The name of the image to draw
x
The x co-ordinate of the point to draw the image at.
y
The y co-ordinate of the point to draw the image at. ordinate
width
The width to draw the image.
height
The height to draw the image.
Returns
Nothing
DrawImage
[Link](imageName, x, y)
x
The x co-ordinate of the point to draw the image at. ordinate
y
The y co-ordinate of the point to draw the image at. ordinate
Returns
Nothing
SetPixel
[Link](x, y, color)
Draws the pixel specified by the x and y co co-ordinates using the specified color.
x
The x co-ordinate of the pixel.
y
The y co-ordinate of the pixel.
color
Returns
Nothing
GetPixel
[Link](x, y)
y
The y co-ordinate of the pixel.
Returns
The color of the pixel.
GetRandomColor
[Link]()
GetColorFromRGB
[Link](red, green, blue)
green
The green component of the color (0-255). 255).
blue
The blue component of the color (0-255).
Returns
Returns a color that can be used to set the brush or pen color.
Clear
[Link]()
Nothing
ShowMessage
[Link](text, title)
title
The title for the message box.
Returns
Nothing
ImageList
This class helps to load and store images in memory.
Operations
LoadImage
[Link](fileNameOrUrl)
Returns
Returns the name of the image that was loaded.
GetWidthOfImage
[Link](imageName)
Returns
The width of the specified image.
GetHeightOfImage
[Link](imageName)
Returns
The height of the specified image.
Math
The Math class provides lots of useful mathematics related methods
Properties
Pi (This property is read-only.)
[Link]
Operations
Abs
[Link](number)
Gets the absolute value of the given number. For example, -32.233 will return 32.233. 32.233
number
The number to get the absolute value for.
Returns
The absolute value of the given number.
Ceiling
[Link](number)
Gets an integer that is greater than or equal to the specified decimal number. For example, 32.233 will return 33.
number
The number whose ceiling is required.
Returns
The ceiling value of the given number.
Floor
[Link](number)
Gets an integer that is less than or equal to the specified decimal number. For example, 32.233 will return 32.
number
The number whose floor value is required.
Returns
The floor value of the given number.
NaturalLog
[Link](number)
Returns
The natural log value of the given number.
Log
[Link](number)
Returns
The log value of the given number
Cos
[Link](angle)
Returns
The cosine of the given angle.
Sin
[Link](angle)
Returns
The sine of the given angle
Tan
[Link](angle)
Returns
The tangent of the given angle.
ArcSin
[Link](sinValue)
Returns
The angle (in radians) for the given sine Value.
ArcCos
[Link](cosValue)
Returns
The angle (in radians) for the given cosine Value.
ArcTan
[Link](tanValue)
Returns
The angle (in radians) for the given tangent Value.
GetDegrees
[Link](angle)
Returns
The converted angle in degrees.
GetRadians
[Link](angle)
Returns
The converted angle in radians.
SquareRoot
[Link](number)
Returns
The square root value of the given number.
Power
[Link](baseNumber, exponent)
exponent
The power to raise the base number.
Returns
The baseNumber raised to the specified exponent.
Round
[Link](number)
Rounds a given number to the nearest integer. For example 32.233 will be rounded to 32.0 while 32.566 will be rounded to 33.
number
The number whose approximation is required.
Returns
The rounded value of the given number.
Max
[Link](number1, number2)
number2
The second of the two numbers to compare.
Returns
The greater value of the two numbers.
Min
[Link](number1, number2)
number2
The second of the two numbers to compare.
Returns
The smaller value of the two numbers.
Remainder
[Link](dividend, divisor)
Divides the first number by the second and returns the remainder.
dividend
The number to divide.
divisor
The number that divides.
Returns
The remainder after the division.
GetRandomNumber
[Link](maxNumber)
Returns
A Random number that is less than or equal to the specified max.
Mouse
The mouse class provides accessors to get or set the mouse related properties, like the cursor position, pointer, etc.
Properties
MouseX
[Link]
Gets or sets the mouse cursor's y co co-ordinate. IsLeftButtonDown (This property is read read-only.)
[Link]
Gets whether or not the left button is pressed. IsRightButtonDown (This property is read read-only.)
[Link]
Operations
HideCursor
[Link]()
ShowCursor
[Link]()
Network
This private helper class provides network access methods
Operations
DownloadFile
[Link](url)
Returns
A local file name that the remote file was downloaded as.
GetWebPageContents
[Link](url)
Returns
The contents of the specified web page.
Program
The Program class provides helpers to control the program execution.
Properties
ArgumentCount (This property is read read-only.)
[Link]
Gets the number of command-line arguments passed to this program. line Directory (This property is read-only.) only.)
[Link]
Operations
Delay
[Link](milliSeconds)
Returns
Nothing
End
[Link]()
GetArgument
[Link](index)
Returns
The command-line argument at the specified index. line
Shapes
The Shape object allows you to add, move and rotate shapes to the Graphics window.
Operations
AddRectangle
[Link](width, height)
height
The height of the rectangle shape.
Returns
The Rectangle shape that was just added to the Graphics Window.
AddEllipse
[Link](width, height)
height
The height of the ellipse shape.
Returns
The Ellipse shape that was just added to the Graphics Window.
AddTriangle
[Link](x1, y1, x2, y2, x3, y3)
y1
The y co-ordinate of the first point.
x2
The x co-ordinate of the second point.
y2
The y co-ordinate of the second point.
x3
The x co-ordinate of the third point.
y3
The y co-ordinate of the third point.
Returns
The Triangle shape that was just added to the Graphics Window.
AddLine
[Link](x1, y1, x2, y2)
y1
The y co-ordinate of the first point.
x2
The x co-ordinate of the second point.
y2
The y co-ordinate of the second point.
Returns
The line that was just added to the Graphics Window.
AddImage
[Link](imageName)
Returns
The image that was just added to the Graphics Window.
AddText
[Link](text)
Returns
The text shape that was just added to the Graphics Window.
SetText
[Link](shapeName, text)
shapeName
The name of the text shape.
text
The new text value to set.
Returns
Nothing
Remove
[Link](shapeName)
Returns
Nothing
Move
[Link](shapeName, x, y)
x
The x co-ordinate of the new position.
y
The y co-ordinate of the new position.
Returns
Nothing
Rotate
[Link](shapeName, angle)
Rotates the shape with the specified name to the specified angle.
shapeName
The name of the shape to rotate.
angle
The angle to rotate the shape.
Returns
Nothing
Zoom
Scales the shape using the specified zoom levels. Minimum is 0.1 and maximum is 20.
shapeName
The name of the shape to rotate.
scaleX
The x-axis zoom level.
scaleY
The y-axis zoom level.
Returns
Nothing
Animate
[Link](shapeName, x, y, duration)
x
The x co-ordinate of the new position.
y
The y co-ordinate of the new position.
duration
The time for the animation, in milliseconds.
Returns
Nothing
GetLeft
[Link](shapeName)
Returns
The left co-ordinate of the shape.
GetTop
[Link](shapeName)
shapeName
The name of the shape.
Returns
The top co-ordinate of the shape.
GetOpacity
[Link](shapeName)
Returns
The opacity of the object as a value between 0 and 100. 0 is completely transparent and 100 is completely opaque.
SetOpacity
[Link](shapeName, level)
level
The opacity level ranging from 0 to 100. 0 is completely transparent and 100 is completely opaque.
Returns
Nothing
HideShape
[Link](shapeName)
Returns
Nothing
ShowShape
[Link](shapeName)
Returns
Nothing
Sound
The Sound object provides operations that allow the playback of sounds. Some sample sounds are provided along with the library.
Operations
PlayClick
[Link]()
PlayClickAndWait
[Link]()
PlayChime
[Link]()
PlayChimeAndWait
[Link]()
PlayChimes
[Link]()
PlayChimesAndWait
[Link]()
PlayBellRing
[Link]()
PlayBellRingAndWait
[Link]()
PlayMusic
[Link](notes)
Returns
Nothing
Play
[Link](filePath)
Nothing
PlayAndWait
[Link](filePath)
Plays an audio file and waits until it is finished playing. This could be an mp3 or wav or wma file. Other file formats may or may not play depending on the audio codecs installed on the user's computer. If the file was already paused, this operation will resume from the position where the playback was paused.
filePath
The path for the audio file. This could either be a local file (eg: c: c:\music\track1.mp3) or a file on the network (eg: e [Link]
Returns
Nothing
Pause
[Link](filePath)
Pauses playback of an audio file. If the file was not already playing, this operation will not do anything.
filePath
The path for the audio file. This could either be a local file (eg: c: c:\music\track1.mp3) or a file on the network (eg: track1.mp3) [Link]
Returns
Nothing
Stop
[Link](filePath)
Stops playback of an audio file. If the file was not already playing, this operation will not do anything.
filePath
The path for the audio file. This could either be a local file (eg: c: c:\music\track1.mp3) or a file on the network (eg: track1.mp3) [Link]
Returns
Nothing
Stack
This object provides a way of storing values just like stacking up a plate. You can push a value to the top of the stack and pop it off. You can only pop the values one by one off the stack and the last pushed value will be the first one to pop out.
Operations
PushValue
[Link](stackName, value)
value
The value to push.
Returns
Nothing
GetCount
[Link](stackName)
Returns
The number of items in the specified stack.
PopValue
[Link](stackName)
Returns
The value from the stack.
TextWindow
The TextWindow provides text-related input and output functionalities. For example using this class, related it is possible to write or read some text or number to and from the text based text window. text-based
Properties
ForegroundColor
[Link]
Gets or sets the foreground color of the text to be output in the text window. BackgroundColor
[Link]
Gets or sets the background color of the text to be output in the text window. CursorLeft
[Link]
Gets or sets the cursor's column position on the text window. CursorTop
[Link]
Gets or sets the cursor's row position on the text window. Left
[Link]
Operations
Show
[Link]()
Hide
[Link]()
Clear
[Link]()
Pause
[Link]()
PauseIfVisible
[Link]()
Waits for user input only when the TextWindow is already open.
Returns
Nothing
PauseWithoutMessage
[Link]()
Read
[Link]()
Reads a line of text from the text window. This function will not return until the user hits ENTER.
Returns
The text that was read from the text window
ReadKey
[Link]()
ReadNumber
[Link]()
Reads a number from the text window. This function will not return until the user hits ENTER.
Returns
The number that was read from the text window
WriteLine
[Link](data)
Writes text or number to the text window. A new line character will be appended to the output, so that the next time something is written to the text window, it will go in a new line.
data
The text or number to write to the text window.
Returns
Nothing
Write
[Link](data)
Writes text or number to the text window. A new line character will be appended to the output, so that the next time something is written to the text window, it will go in a new line.
data
The text or number to write to the text window.
Returns
Nothing
Text
The Text object provides helpful operations for working with Text.
Operations
Append
[Link](text1, text2)
Appends two text inputs and returns the result as another text. This operation is particularly useful when dealing with unknown text in variables which could accidentally be treated as numbers and get added, instead of getting appended.
text1
First part of the text to be appended.
text2
Second part of the text to be appended.
Returns
The appended text containing both the specified parts.
GetLength
[Link](text)
Returns
The length of the given text.
IsSubText
[Link](text, subText)
subText
The sub-text to search for.
Returns
True if the subtext was found within the given text.
EndsWith
[Link](text, subText)
Gets whether or not a given text ends with the specified subText.
text
The larger text to search within.
subText
Returns
True if the subtext was found at the end of the given text.
StartsWith
[Link](text, subText)
Gets whether or not a given text starts with the specified subText.
text
The larger text to search within.
subText
The sub-text to search for.
Returns
True if the subtext was found at the start of the given text.
GetSubText
[Link](text, start, length)
start
Specifies where to start from.
length
Specifies the length of the sub text.
Returns
The requested sub-text
GetSubTextToEnd
[Link](text, start)
Gets a sub-text from the given text from a specified position to the end. text
text
The text to derive the sub-text from.
start
Specifies where to start from.
Returns
The requested sub-text.
GetIndexOf
[Link](text, subText)
Finds the position where a sub-text appears in the specified text. text
text
The text to search in.
subText
The text to search for.
Returns
The position at which the sub-text appears in the specified text. If the text doesn't appear, it returns 0. text
ConvertToLowerCase
[Link](text)
Returns
The lower case version of the given text.
ConvertToUpperCase
[Link](text)
Returns
The upper case version of the given text.
GetCharacter
[Link](characterCode)
Given the unicode character code, gets the corresponding character, which can then be used with regular text.
characterCode
The character code (Unicode based) for the required character.
Returns
A unicode character that corresponds to the code specified.
GetCharacterCode
[Link](character)
Returns
A unicode based code that corresponds to the character specified.
Timer
The Timer object provides an easy way for doing something repeatedly with a constant interval between.
Properties
Interval
[Link]
Gets or sets the interval (in milliseconds) specifying how often the timer should raise the Tick event. This value can range from 10 to 100000000
Events
Tick
[Link]
Operations
Pause
[Link]()
Resume
[Link]()
Resumes the timer from a paused state. Tick events will now be raised.
Returns
Nothing
Turtle
The Turtle provides Logo-like functionality to draw shapes by manipulating the properties of a pen like and drawing primitives.
Properties
Speed
[Link]
Specifies how fast the turtle should move. Valid values are 1 to 10. If Speed is set to 10, the turtle moves and rotates instantly. Angle
[Link]
Gets or sets the current angle of the turtle. While setting, this will turn the turtle instantly to the new angle. X
Turtle.X
Gets or sets the X location of the Turtle. While setting, this will move the turtle instantly to the new location. Y
Turtle.Y
Gets or sets the Y location of the Turtle. While setting, this will move the turtle instantly to the new location.
Operations
Show
[Link]()
Hide
[Link]()
PenDown
[Link]()
PenUp
[Link]()
Move
[Link](distance)
Moves the turtle to a specified distance. If the pen is down, it will draw a line as it moves.
distance
The distance to move the turtle.
Returns
Nothing
MoveTo
[Link](x, y)
Turns and moves the turtle to the specified location. If the pen is down, it will draw a line as it moves.
x
The x co-ordinate of the destination point. ordinate
y
The y co-ordinate of the destination point. ordinate
Returns
Nothing
Turn
[Link](angle)
Turns the turtle by the specified angle. Angle is in degrees and can be either positive or negative. If the angle is positive, the turtle turns to its right. If it is negative, the turtle turns to its left.
angle
The angle to turn the turtle.
Returns
Nothing
TurnRight
[Link]()
TurnLeft
[Link]()