python examples added

This commit is contained in:
aarneranta
2021-03-24 09:16:47 +01:00
parent 7afba566d5
commit b7c3877756
17 changed files with 2109 additions and 0 deletions

47
python/Draw.gf Normal file
View File

@@ -0,0 +1,47 @@
abstract Draw = {
flags startcat = Command ;
cat
Command ;
Object ;
ObjectRef ;
Shape ;
Colour ;
Size ;
Place ;
fun
drawCommand : Object -> Command ;
removeCommand : ObjectRef -> Command ;
moveCommand : ObjectRef -> Place -> Command ;
shapeObject : Size -> Colour -> Shape -> Object ;
theObjectRef : Object -> ObjectRef ;
itObjectRef : ObjectRef ;
circle_Shape : Shape ;
square_Shape : Shape ;
big_Size : Size ;
small_Size : Size ;
noSize : Size ;
green_Colour : Colour ;
red_Colour : Colour ;
blue_Colour : Colour ;
yellow_Colour : Colour ;
noColour : Colour ;
upPlace : Place ;
downPlace : Place ;
leftPlace : Place ;
rightPlace : Place ;
midPlace : Place ;
noPlace : Place ;
}