mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-27 04:01:04 +00:00
dark avatar backgrounds only
This commit is contained in:
parent
b044c2ae19
commit
e4fe93249f
1 changed files with 4 additions and 1 deletions
|
@ -5,7 +5,10 @@ var randomcolor = require('randomcolor');
|
|||
|
||||
// core
|
||||
module.exports = function(name) {
|
||||
var color = randomcolor({seed: name});
|
||||
var color = randomcolor({
|
||||
seed: name,
|
||||
luminosity: 'dark',
|
||||
});
|
||||
var letter = name.substring(0, 1).toUpperCase();
|
||||
|
||||
var svg = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>';
|
||||
|
|
Loading…
Reference in a new issue