Advertisement
Shaun_B

RGB Script Workshop example for v0.0.2a

Feb 23rd, 2014
425
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. REM This is an example of RGB Workshop Script
  2. REM I can't think of a better name for it yet but RGB Workshop
  3. REM is being designed as a learning language for children and
  4. REM is in alpha stages (v0.0.2a) - for testing purposes it is
  5. REM available at http://yearofcodes.tumblr.com/RGB-Workshop
  6. REM a list of available commands are at http://yearofcodes.tumblr.com/rgb-workshop-help
  7. REM
  8. REM clear canvas and sets colour to a light blue sort of colour
  9. clear canvas 10, 10, 16
  10. REM set colour to a shade of red
  11. set colour 16, 0, 2
  12. REM draw box at position 1, 1, 100 wide and 10 height
  13. draw box 1,1,100,10
  14. REM set colour to black
  15. set colour 0, 0, 0
  16. REM draw star at 50, 50 at 12% width and 12% height of canvas
  17. draw star 50, 50, 12, 12
  18. REM FINISH
  19. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement