Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Activities/Pilas
(view source)
Revision as of 07:04, 10 April 2012
296 bytes added
,
07:04, 10 April 2012
→From the Pilas documentation in Spanish
Line 68:
Line 68:
Link to Spanish [http://readthedocs.org/docs/pilas/en/latest/empezando.html]
Link to Spanish [http://readthedocs.org/docs/pilas/en/latest/empezando.html]
−
mono.sonreir()
//monkey smile
+
mono.sonreir()
//monkey smile
−
mono.gritar()
//monkey shout
+
mono.gritar()
//monkey shout
mono.decir("Hello World!")
mono.decir("Hello World!")
mono.x = 100
mono.x = 100
mono.y = 100
mono.y = 100
−
mono.escala = 2
//set scale
+
mono.escala = 2
//set scale
+
mono.rotacion = 40 //rotate 40 degrees
+
mono.rotacion = [360] // the [] means animate
+
mono.x = [-200, 200] //animate horizontally
+
mono.x = [-200, 200] * 5 //go side to side 5 times
+
mono.x = [-200, 200], 10 //animate over 10 seconds
Tonyforster
2,486
edits