home *** CD-ROM | disk | FTP | other *** search
/ Chip: Hang es video / CHIP_ZENESZERKESZTO_2005.ISO / audio_1 / softstep / softstep3.msi / Data1.cab / drawstarpaint.ufn < prev    next >
Text File  |  2001-07-06  |  2KB  |  133 lines

  1. 0
  2. 0
  3. 0
  4. 0
  5. 0. 
  6. 1. Initialize = pixsize(320,240), Pixon, ~PixShapeSet(1, 1, 1, 0),~PixPatternSet(0, rgb(255,128,0), 0),~PixFreeze(1),    ; freeze frame for drawing~PixToolTip(),    ; remove the frame tool tip~goto(me+1),~
  7. 2. Paint Star = switch(Run, me+2, me+1) ; Draw on Run, move frame on Stop
  8. 3. UnFreeze = PixFreeze(0)
  9. 4. Get Mouse = M.(PixMouse(1, 0)),  ; get mouse flag~LED(M),              ; show button down on LED~Switch(M, me+1, 0)   ; draw on mouse button down
  10. 5. Draw Shape = Switch(PixMouse(1, 1) and 2 , me+1, 0), ; rand color on right btn~x.(PixMouse(1, 5) - 20),    ; get mouse to star center~y.(PixMouse(1, 6) - 20),~PixShape(X, Y, 40, 40, 9001,1)   ; draw the shape~
  11. 6. Random Color = R.(ran*256), G.(ran*256), B.(ran*256), ; get color~PixPatternSet(0, rgb(r,g,b), 0), ; set fgnd color~PixShapeSet(1, 1, 1, rgb(r/2,g/2,b/2)) ; set outline color
  12. 7. 
  13. 8. 
  14. 9. 
  15. 10. 
  16. 11. 
  17. 12. 
  18. 13. 
  19. 14. 
  20. 15. 
  21. 16. 
  22. 17. 
  23. 18. 
  24. 19. 
  25. 20. 
  26. 21. 
  27. 22. 
  28. 23. 
  29. 24. 
  30. 25. 
  31. 26. 
  32. 27. 
  33. 28. 
  34. 29. 
  35. 30. 
  36. 31. 
  37. 32. 
  38. 33. 
  39. 34. 
  40. 35. 
  41. 36. 
  42. 37. 
  43. 38. 
  44. 39. 
  45. 40. 
  46. 41. 
  47. 42. 
  48. 43. 
  49. 44. 
  50. 45. 
  51. 46. 
  52. 47. 
  53. 48. 
  54. 49. 
  55. 50. 
  56. 51. 
  57. 52. 
  58. 53. 
  59. 54. 
  60. 55. 
  61. 56. 
  62. 57. 
  63. 58. 
  64. 59. 
  65. 60. 
  66. 61. 
  67. 62. 
  68. 63. 
  69. 64. 
  70. 65. 
  71. 66. 
  72. 67. 
  73. 68. 
  74. 69. 
  75. 70. 
  76. 71. 
  77. 72. 
  78. 73. 
  79. 74. 
  80. 75. 
  81. 76. 
  82. 77. 
  83. 78. 
  84. 79. 
  85. 80. 
  86. 81. 
  87. 82. 
  88. 83. 
  89. 84. 
  90. 85. 
  91. 86. 
  92. 87. 
  93. 88. 
  94. 89. 
  95. 90. 
  96. 91. 
  97. 92. 
  98. 93. 
  99. 94. 
  100. 95. 
  101. 96. 
  102. 97. 
  103. 98. 
  104. 99. 
  105. 100. 
  106. 101. 
  107. 102. 
  108. 103. 
  109. 104. 
  110. 105. 
  111. 106. 
  112. 107. 
  113. 108. 
  114. 109. 
  115. 110. 
  116. 111. 
  117. 112. 
  118. 113. 
  119. 114. 
  120. 115. 
  121. 116. 
  122. 117. 
  123. 118. 
  124. 119. 
  125. 120. 
  126. 121. 
  127. 122. 
  128. 123. 
  129. 124. 
  130. 125. 
  131. 126. 
  132. 127. 
  133.