},
set_random_colors: function() {
function rand(offset) {
- return Math.floor(offset + Math.random() * 96).toString(16);
+ return Math.floor(offset + Math.random() * 96).toString(16).padStart(2, '0');
}
this.foreground = '#' + rand(159) + rand(159) + rand(159);
this.background = '#' + rand(0) + rand(0) + rand(0);