Skip to content

Commit e4fe932

Browse files
committed
dark avatar backgrounds only
1 parent b044c2a commit e4fe932

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/letter-avatars.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ var randomcolor = require('randomcolor');
55

66
// core
77
module.exports = function(name) {
8-
var color = randomcolor({seed: name});
8+
var color = randomcolor({
9+
seed: name,
10+
luminosity: 'dark',
11+
});
912
var letter = name.substring(0, 1).toUpperCase();
1013

1114
var svg = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>';

0 commit comments

Comments
 (0)