Add four new tiling patterns
This commit is contained in:
1 parent
ca82b2fb94
commit
09cbcbd1fe
5 files changed
+3
-1
No files matched your search
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 |
@@ -217,6 +217,8 @@ func (tm *TemplateManager) bgPattern() template.URL {
|
||||
|
||||
if now.Weekday() == time.Wednesday && rand.Intn(20) == 0 {
|
||||
file = "checker_wednesday.png"
|
||||
} else if month == time.August && day == 8 {
|
||||
file = "checker_dwarf.png"
|
||||
} else if month == time.August && day == 24 {
|
||||
file = "checker_developers.png"
|
||||
} 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 {
|
||||
file = "checker_christmas.png"
|
||||
} else {
|
||||
file = fmt.Sprintf("checker%d.png", now.UnixNano()%17)
|
||||
file = fmt.Sprintf("checker%d.png", now.UnixNano()%18)
|
||||
}
|
||||
|
||||
var buf = bytes.Buffer{}
|
||||
|
||||
Reference in new issue
Block a user