Author Topic: Water Waves  (Read 5909 times)

0 Members and 1 Guest are viewing this topic.

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Water Waves
« Reply #15 on: January 11, 2020, 11:39:20 am »
Oh just found reply #7 added beach:
Code: QB64: [Select]
  1. _TITLE "Waves over beach" 'By SMcNeil mod Ken G.  mod b+ 2020-01-11
  2. SCREEN _NEWIMAGE(800, 600, 32)
  3. COLOR , _RGB32(155, 100, 50) ' alittle beach
  4. FOR k = 0 TO 8
  5.     k(k) = _RGB32((9 - k) * 8, (9 - k) * 8, 128 + 128 / (9 - k)) ' a little colr reversal
  6. i = 802
  7.     LINE (0, 0)-(800, 600), _RGBA32(155, 100, 50, 5), BF 'water recedes
  8.     i = (i - 8)
  9.     IF i < -80 THEN i = 800
  10.     FOR m = 0 TO 640 STEP 40
  11.         COLOR k(m \ 80)
  12.         FOR j = -600 TO 600 STEP 50
  13.             sz = (RND * 30) + 5
  14.             CIRCLE (i + m, SIN(_D2R(i)) * 300 + 300 + j), sz
  15.             PAINT (i + m, SIN(_D2R(i)) * 300 + 300 + j), k(m \ 80)
  16.         NEXT
  17.     NEXT
  18.     _LIMIT 60
  19.  
« Last Edit: January 11, 2020, 11:48:44 am by bplus »

Offline SierraKen

  • Forum Resident
  • Posts: 1454
    • View Profile
Re: Water Waves
« Reply #16 on: January 11, 2020, 12:32:59 pm »
Incredible stuff guys! I had a feeling you all have done this before. :D Thanks for sharing. Awesome beach B+!
« Last Edit: January 11, 2020, 12:34:20 pm by SierraKen »

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: Water Waves
« Reply #17 on: January 12, 2020, 01:27:54 pm »
Nice sources, but one problem. When try compiling STxAxTIC 5000+ rows source code to exe, CC1Plus.EXE eat up to 7 gigabytes of RAM and EXE file is not creates after long time. Please someone try also compiling this source code under 1.3, if it works for you.

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Water Waves
« Reply #18 on: January 12, 2020, 01:34:30 pm »
Nice sources, but one problem. When try compiling STxAxTIC 5000+ rows source code to exe, CC1Plus.EXE eat up to 7 gigabytes of RAM and EXE file is not creates after long time. Please someone try also compiling this source code under 1.3, if it works for you.

Yes it worked on my system w10-64 QB64 v1.3, I just checked mode 14 and not very thorough test but it compiled.

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: Water Waves
« Reply #19 on: January 12, 2020, 01:37:07 pm »
BPlus, May I ask what version 1.3 you use? Maybe I'll have to upgrade.

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Water Waves
« Reply #20 on: January 12, 2020, 01:47:24 pm »
I think the version 1.3 [stable] git 96937f0 I got soon after the announcement of the update, so it's not particularly new.

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: Water Waves
« Reply #21 on: January 12, 2020, 01:52:39 pm »
Thank you BPlus. It is strange. This version doesn't work for me, but I downloaded the same version again, did a clean install in a new folder, and it works there.