Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canvallax clouds #3

Open
VVL99 opened this issue Jul 11, 2023 · 1 comment
Open

Canvallax clouds #3

VVL99 opened this issue Jul 11, 2023 · 1 comment

Comments

@VVL99
Copy link

VVL99 commented Jul 11, 2023

Thank you for your work, I really liked it and have included it on the site.
http://vvl99.narod.ru/Clouds.html
If you reload the page, the code from Canvallax v.1 and Canvallax v.2 will be used randomly:
if (type) { ctx.translate(randomRange(halfw, width - (w * maxScale * 1.3)), randomRange(halfh + halfh / 4, height - (h * maxScale))) } else { ctx.translate( weightedRandom( width - (w * randScale), 5 ), weightedRandom( height- (h * randScale), 5) ) };
Which corresponds to:
location.hash = type ? "puffy_clouds" : "cumulus_clouds";

  • time:
    "morning", "noon", "twilight", "evening", "night", "afternoon".
    I tried to vary the clouds as much as possible depending on the time of day.
@VVL99 VVL99 changed the title Canvallax cloads Canvallax clouds Jul 11, 2023
@VVL99
Copy link
Author

VVL99 commented Oct 25, 2023

Added options - _http://vvl99.narod.ru/Clouds.html#4?1?81
#[0-9] - Scene.
?[0-1] - Cloud type.
?[0-100] - Percentage of clouds.
Made for testing, but may be useful for viewing.
For example, a thunderstorm on scenes 4 and 8 with clouds over 80.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant