summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2014-12-06 06:42:51 (GMT)
committerMichele Bini <michele.bini@gmail.com>2014-12-06 06:42:51 (GMT)
commite5438000e012830efae148ef278f288d291b85f2 (patch)
tree2ddabe0abe231de0dcef67b1cd9698e6bbedfd74
parent56fc0ae9d275f145551e9a4a58e4e40a353c0850 (diff)
Progress with background animation
-rw-r--r--SunkenMoon.html.coffee14
1 files changed, 7 insertions, 7 deletions
diff --git a/SunkenMoon.html.coffee b/SunkenMoon.html.coffee
index 01495c4..881adb3 100644
--- a/SunkenMoon.html.coffee
+++ b/SunkenMoon.html.coffee
@@ -4,7 +4,7 @@
# This program is available under the terms of the MIT License
-version = "0.1.764"
+version = "0.1.769"
{ htmlcup } = require 'htmlcup'
@@ -481,7 +481,7 @@ genPage = ->
colors: [ "cyan", "blue" ]
randomStuff: @>
{ random, sqrt, ctx } = @
- s = sqrt(15000 / (random() * 100 + 1)) | 0
+ s = sqrt(15000 / (random() * 50 + 1)) | 0
@withRect (random() * @w | 0), (random() * @h | 0), s, s >> 2, (x,y,w,h)->
ctx.fillRect x,y,w,h
@
@@ -496,9 +496,9 @@ genPage = ->
for k,v of colors
ctx.fillStyle = v
colors[k] = ctx.fillStyle
- ctx.globalAlpha = 0.06
- if false
- x = 300
+ ctx.globalAlpha = 0.1
+ if true
+ x = 200
while x-- > 0
@randomStuff()
waterscapeSuperFrame: waterscapeSuper.frame
@@ -567,8 +567,8 @@ genPage = ->
logscale: 2
__proto__: WaterPlane
# color: "blue"
- colors: [ "#0000ff", "#0077ff" ]
- alpha: 0.3
+ colors: [ "#000033", "#001155" ]
+ alpha: 0.2
lower:
color: "#051555"
__proto__: ColorPlane