Advertisement
Guest User

Untitled

a guest
Jun 11th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CLS
  2. pi = 3.14159265#
  3.  
  4.  
  5. 'Y
  6. xx(0) = .299
  7. xx(1) = .587
  8. xx(2) = .114
  9. 'I
  10. xx(3) = .595
  11. xx(4) = -.257
  12. xx(5) = -.321
  13. 'Q
  14. xx(6) = .212
  15. xx(7) = -.523
  16. xx(8) = .311
  17.  
  18. FOR a = 0 TO 8
  19. xx(a) = (xx(a) + 1) * 256
  20. NEXT
  21.  
  22. r = 97
  23. g = 100
  24. b = 128
  25.  
  26. y = xx(0) * r + xx(1) * g + xx(2) * b
  27. i = xx(3) * r + xx(4) * g + xx(5) * b
  28. q = xx(6) * r + xx(7) * g + xx(8) * b
  29.  
  30. y = (y) / 1024
  31. i = (i) / 1024
  32. q = (q) / 1024
  33.  
  34. FOR a = 0 TO 8
  35. PRINT xx(a),
  36. NEXT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement