up3
Build and deploy / Build (push) Has been cancelled
Build and deploy / Update Contributors (push) Has been cancelled
Build and deploy / Deploy (push) Has been cancelled

This commit is contained in:
2026-07-09 08:33:57 +08:00
commit 26ed99fda6
845 changed files with 75419 additions and 0 deletions
+50
View File
@@ -0,0 +1,50 @@
package bossbar
// Colour is the colour of a BossBar.
type Colour struct{ colour }
// Pink is the colour for a pink boss bar.
func Pink() Colour {
return Colour{colour(0)}
}
// Blue is the colour for a blue boss bar.
func Blue() Colour {
return Colour{colour(1)}
}
// Red is the colour for a red boss bar.
func Red() Colour {
return Colour{colour(2)}
}
// Green is the colour for a green boss bar.
func Green() Colour {
return Colour{colour(3)}
}
// Yellow is the colour for a yellow boss bar.
func Yellow() Colour {
return Colour{colour(4)}
}
// Purple is the colour for a purple boss bar.
func Purple() Colour {
return Colour{colour(5)}
}
// RebeccaPurple is the colour for a rebecca purple boss bar.
func RebeccaPurple() Colour {
return Colour{colour(6)}
}
// White is the colour for a white boss bar.
func White() Colour {
return Colour{colour(7)}
}
type colour uint8
func (c colour) Uint8() uint8 {
return uint8(c)
}