New padding.
This commit is contained in:
parent
84e5bac1b9
commit
284d38096c
15
src/snek/service/util.py
Normal file
15
src/snek/service/util.py
Normal file
@ -0,0 +1,15 @@
|
||||
import random
|
||||
|
||||
|
||||
from snek.system.service import BaseService
|
||||
|
||||
|
||||
class UtilService(BaseService):
|
||||
|
||||
async def random_light_hex_color(self):
|
||||
|
||||
r = random.randint(128, 255)
|
||||
g = random.randint(128, 255)
|
||||
b = random.randint(128, 255)
|
||||
|
||||
return "#{:02x}{:02x}{:02x}".format(r, g, b)
|
Loading…
Reference in New Issue
Block a user