Skip to content

Commit cd7c05d

Browse files
author
maroslaw
committed
#10 configurable fill style
1 parent 99f8c47 commit cd7c05d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rainyday.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ function RainyDay(canvasid, sourceid, width, height, opacity, blur) {
6868

6969
// frames per second animation speed
7070
this.VARIABLE_FPS = 25;
71+
72+
// context fill style when no REFLECTION_NONE is used
73+
this.VARIABLE_FILL_STYLE = '#8ED6FF';
7174
}
7275

7376
/**
@@ -444,7 +447,7 @@ RainyDay.prototype.GRAVITY_NON_LINEAR = function(drop) {
444447
* @param drop raindrop object
445448
*/
446449
RainyDay.prototype.REFLECTION_NONE = function(drop) {
447-
this.context.fillStyle = '#8ED6FF';
450+
this.context.fillStyle = this.VARIABLE_FILL_STYLE;
448451
this.context.fill();
449452
};
450453

0 commit comments

Comments
 (0)