FANDOM


Syntax

DOT [xcoordinate ycoordinate]

Explanation

DOT prints a dot at the point determined by its inputs. The color of the dot is printed in the current pen color.

DOT requires a list of two numbers as its input. Since DOT does not evaluate the contents of its input list, the list must contain two numbers. Use SENTENCE to compose the list as an argument for DOT if using variables for the X and Y coordinates.

See also SETXY and GETXY.

Examples

TO RANDOM.DOTS :COUNT :AREA

REPEAT :COUNT [DOT SE RANDOM :AREA RANDOM :AREA]

END

Pc logo 14

This is the result of the procedure. Its executes the "RANDOM.DOTS 300 50" command.

? RANDOM.DOTS \

? 300 50

?

This procedure call cause 300 dots to appear randomly in the quadrant defined from 0 to 50 turtle steps in both the X and Y directions.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.