Add four new tiling patterns

This commit is contained in:
2021-09-16 18:39:22 +02:00
parent ca82b2fb94
commit 09cbcbd1fe
5 changed files with 3 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 265 B

After

Width:  |  Height:  |  Size: 205 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 277 B

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 B

View File

@@ -217,6 +217,8 @@ func (tm *TemplateManager) bgPattern() template.URL {
if now.Weekday() == time.Wednesday && rand.Intn(20) == 0 { if now.Weekday() == time.Wednesday && rand.Intn(20) == 0 {
file = "checker_wednesday.png" file = "checker_wednesday.png"
} else if month == time.August && day == 8 {
file = "checker_dwarf.png"
} else if month == time.August && day == 24 { } else if month == time.August && day == 24 {
file = "checker_developers.png" file = "checker_developers.png"
} else if month == time.October && day == 31 { } else if month == time.October && day == 31 {
@@ -224,7 +226,7 @@ func (tm *TemplateManager) bgPattern() template.URL {
} else if month == time.December && day == 25 || day == 26 || day == 27 { } else if month == time.December && day == 25 || day == 26 || day == 27 {
file = "checker_christmas.png" file = "checker_christmas.png"
} else { } else {
file = fmt.Sprintf("checker%d.png", now.UnixNano()%17) file = fmt.Sprintf("checker%d.png", now.UnixNano()%18)
} }
var buf = bytes.Buffer{} var buf = bytes.Buffer{}