@@ -29,16 +29,16 @@ local current_folder = current_module:gsub("%.", "/")
29
29
local timer = require (current_module .. " .timer" )
30
30
31
31
local colors = {
32
- bg = {108 , 190 , 228 },
33
- white = {255 , 255 , 255 },
34
- blue = { 39 , 170 , 225 },
35
- pink = {231 , 74 , 153 },
36
- shadow = {0 , 0 , 0 , 255 / 3 }
32
+ bg = {.42 , .75 , .89 },
33
+ white = { 1 , 1 , 1 },
34
+ blue = {.15 , .67 , .88 },
35
+ pink = {.91 , .29 , .6 },
36
+ shadow = {0 , 0 , 0 , .33 }
37
37
}
38
38
39
39
-- patch shader:send if 'lighten' gets optimized away
40
40
local function safesend (shader , name , ...)
41
- if shader :getExternVariable (name ) then
41
+ if shader :hasUniform (name ) then
42
42
shader :send (name , ... )
43
43
end
44
44
end
@@ -107,11 +107,11 @@ function splashlib.new(init)
107
107
local big_y = - rain .spacing_y + y
108
108
109
109
love .graphics .setBlendMode (" subtract" )
110
- love .graphics .setColor (255 , 255 , 255 , 128 )
110
+ love .graphics .setColor (1 , 1 , 1 , .5 )
111
111
love .graphics .draw (rain .batch , - rain .spacing_x , small_y , 0 , 0.5 , 0.5 )
112
112
113
113
love .graphics .setBlendMode (" alpha" )
114
- love .graphics .setColor (208 , 208 , 208 , 255 )
114
+ love .graphics .setColor (.81 , .81 , .81 , 1 )
115
115
love .graphics .draw (rain .batch , - rain .spacing_x , big_y )
116
116
117
117
love .graphics .draw (gradient )
@@ -340,12 +340,12 @@ function splashlib:draw()
340
340
)
341
341
love .graphics .pop ()
342
342
343
- love .graphics .setColor (255 , 255 , 255 , 255 * self .heart .scale )
343
+ love .graphics .setColor (1 , 1 , 1 , self .heart .scale )
344
344
love .graphics .draw (self .heart .sprite , 0 , 5 , self .heart .rot , self .heart .scale , self .heart .scale , 43 , 39 )
345
345
love .graphics .pop ()
346
346
end )
347
347
348
- love .graphics .setColor (255 , 255 , 255 , 255 * self .alpha )
348
+ love .graphics .setColor (1 , 1 , 1 , self .alpha )
349
349
love .graphics .setShader (self .maskshader )
350
350
love .graphics .draw (self .canvas , 0 ,0 )
351
351
love .graphics .setShader ()
0 commit comments