Skip to content

Commit f45397a

Browse files
added more art features
1 parent 1a70776 commit f45397a

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
A programing language designed to interact with UI's.
33

44
Based off Python syntax, Visualscript is a high-level programming language desinged to interact with ui's.
5+
56
Example Usage:
67

78
log("Hello world")

src/VisualScript.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,20 @@ def artClose():
7272
def artSpeed(speed):
7373
tur.turtle.speed(speed)
7474
return
75+
def artColor(color):
76+
tur.turtle.color(color)
77+
return
78+
def artKey(function, key):
79+
tur.turtle.onkey(function, key)
80+
return
81+
def artSpecial(feature):
82+
if feature == "stamp":
83+
tur.turtle.stamp()
84+
elif feature == "dot":
85+
tur.turtle.dot()
7586

7687

7788

78-
7989
custom_features = {
8090

8191
}

0 commit comments

Comments
 (0)