Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Commit 8dbd420

Browse files
author
DirectiveAthena
committed
Feature: Colors are assembled when called
1 parent 32171a6 commit 8dbd420

File tree

2 files changed

+301
-156
lines changed

2 files changed

+301
-156
lines changed

src/AthenaColor/Styling/RgbControlled/Bodies.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,18 @@
77

88
# Custom Packages
99
from .RgbControlled import RgbControlled
10-
from AthenaColor import init
11-
from AthenaColor.BASE import end_codes
1210

1311
# ----------------------------------------------------------------------------------------------------------------------
1412
# - Code -
1513
# ----------------------------------------------------------------------------------------------------------------------
16-
esc = init.esc
17-
end = end_codes.color
18-
1914
Fore = RgbControlled(
20-
prefix= f"{esc}[38;2;",
21-
sufix= end
15+
param_code= f"[38;2;",
2216
)
2317

2418
Back = RgbControlled(
25-
prefix= f"{esc}[48;2;",
26-
sufix= end
19+
param_code= f"[48;2;",
2720
)
2821

2922
Underline = RgbControlled(
30-
prefix= f"{esc}[58;2;",
31-
sufix= end
23+
param_code= f"[58;2;",
3224
)

0 commit comments

Comments
 (0)