Author Topic: M for QBic by Fellippe mod by bplus  (Read 5365 times)

0 Members and 1 Guest are viewing this topic.

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
M for QBic by Fellippe mod by bplus
« on: March 05, 2018, 03:50:40 pm »
In case QBic1 does not make mistake in his business:

Here is mod of Fellippe's code that does split M into 2 colors AND bonus scales it!
Code: QB64: [Select]
  1. 'a fancy M:
  2. 'fellippe 2018-02-23 for QBic1, bplus mod to color M half and half
  3. DATA -1,-1,-1,-1,-1,-1,-1,-1,0,0
  4. DATA -1,-1,-1,-1,-1,-1,-1,-1,0,0
  5. DATA -1,0,0,0,0,0,0,-1,0,0
  6. DATA -1,0,0,0,0,0,0,-1,0,0
  7. DATA -1,0,0,0,0,0,0,-1,0,0
  8. DATA -1,-1,0,0,-1,-1,-1,-1,0,0
  9. DATA -1,-1,-1,0,0,-1,-1,-1,0,0
  10. DATA -1,-1,-1,-1,0,0,-1,-1,0,0
  11. DATA -1,-1,-1,-1,-1,0,0,-1,0,0
  12. DATA -1,-1,-1,-1,-1,-1,0,-1,0,0
  13. DATA -1,-1,-1,-1,-1,0,0,-1,0,0
  14. DATA -1,-1,-1,-1,0,0,-1,-1,0,0
  15. DATA -1,-1,-1,0,0,-1,-1,-1,0,0
  16. DATA -1,-1,0,0,-1,-1,-1,-1,0,0
  17. DATA -1,0,0,0,0,0,0,-1,0,0
  18. DATA -1,0,0,0,0,0,0,-1,0,0
  19. DATA -1,0,0,0,0,0,0,-1,0,0
  20. DATA -1,-1,-1,-1,-1,-1,-1,-1,0,0
  21. DATA -1,-1,-1,-1,-1,-1,-1,-1,0,0
  22. DATA 0,0,0,0,0,0,0,0,0,0
  23.  
  24.  
  25. DIM img(1 TO 20, 1 TO 10) AS _BYTE
  26. FOR i = 1 TO 20
  27.     FOR j = 1 TO 10
  28.         READ img(i, j)
  29.     NEXT
  30.  
  31. scale = 1
  32.     myColor = myColor + 1
  33.     IF myColor > 15 THEN myColor = 1: scale = scale + 1
  34.     IF scale > 30 THEN CLS: scale = 1
  35.     FOR i = 1 TO 19
  36.         FOR j = 1 TO 8
  37.             IF img(i, j) = 0 THEN
  38.                 IF i <= 10 THEN LINE (i * scale, j * scale)-STEP(scale, scale), myColor, BF ELSE LINE (i * scale, j * scale)-STEP(scale, scale), 16 - myColor, BF
  39.             ELSE
  40.                 LINE (i * scale, j * scale)-STEP(scale, scale), 15, BF
  41.             END IF
  42.         NEXT
  43.     NEXT
  44.     _DISPLAY
  45.     _LIMIT 20
  46.  
  47.  

Qbic might like it?
M for QBic.PNG
* M for QBic.PNG (Filesize: 14.47 KB, Dimensions: 767x428, Views: 486)