thehelp.colormap
1from dataclasses import dataclass 2from typing import Iterator 3 4 5@dataclass 6class Tag: 7 """Reduce the size of f-strings when using `rich`. 8 >>> from rich import print 9 >>> p = Tag("pale_turquoise4") 10 >>> c = Tag("cornflower_blue") 11 >>> print(f"{p}This{p.o} {c}is{c.o} {p}a{p.o} {c}string") 12 >>> same as 13 >>> print("[pale_turquoise4]This[/pale_turquoise4] [cornflower_blue]is[/cornflower_blue] [pale_turquoise4]a[/pale_turquoise4] [cornflower_blue]string") 14 """ 15 16 name: str 17 18 def __str__(self) -> str: 19 return f"[{self.name}]" 20 21 @property 22 def o(self) -> str: 23 """Closing tag for this tag.""" 24 return f"[/{self.name}]" 25 26 @property 27 def off(self) -> str: 28 """Closing tag for this tag.""" 29 return self.o 30 31 32class ColorMap: 33 """Color map for the rich colors at https://rich.readthedocs.io/en/stable/appendix/colors.html 34 35 See color options conveniently with your IDE's autocomplete. 36 37 Each color has two `Tag` properties: one using the full name and one using an abbreviation. 38 39 `ColorMap.aquamarine1` and `ColorMap.a1` return equivalent `Tag` instances. 40 41 >>> from rich import print 42 >>> 'To alternate colors, instead of doing this:' 43 >>> print("[aquamarine1]This [light_pink4]is [aquamarine]a [light_pink4]string") 44 >>> 'You can do:' 45 >>> c = ColorMap() 46 >>> print(f"{c.a1}This {c.lp4}is {c.a1}a {c.lp4}string")""" 47 48 @property 49 def _tag_list(self) -> list[Tag]: 50 tags = [ 51 getattr(self, obj) 52 for obj in dir(self) 53 if not obj.startswith("_") and isinstance(getattr(self, obj), Tag) 54 ] 55 return sorted(tags, key=lambda t: t.name) 56 57 def __len__(self) -> int: 58 return len(self._tag_list) 59 60 def __iter__(self) -> Iterator[Tag]: 61 for toggle in self._tag_list: 62 yield toggle 63 64 def __getitem__(self, key: int) -> Tag: 65 return self._tag_list[key] 66 67 @property 68 def aquamarine1(self) -> Tag: 69 """abbreviation: `a1`""" 70 return Tag("aquamarine1") 71 72 @property 73 def a1(self) -> Tag: 74 """aquamarine1""" 75 return self.aquamarine1 76 77 @property 78 def aquamarine3(self) -> Tag: 79 """abbreviation: `a3`""" 80 return Tag("aquamarine3") 81 82 @property 83 def a3(self) -> Tag: 84 """aquamarine3""" 85 return self.aquamarine3 86 87 @property 88 def black(self) -> Tag: 89 """abbreviation: `bl`""" 90 return Tag("black") 91 92 @property 93 def bl(self) -> Tag: 94 """black""" 95 return self.black 96 97 @property 98 def blue(self) -> Tag: 99 """abbreviation: `b`""" 100 return Tag("blue") 101 102 @property 103 def b(self) -> Tag: 104 """blue""" 105 return self.blue 106 107 @property 108 def blue1(self) -> Tag: 109 """abbreviation: `b1`""" 110 return Tag("blue1") 111 112 @property 113 def b1(self) -> Tag: 114 """blue1""" 115 return self.blue1 116 117 @property 118 def blue3(self) -> Tag: 119 """abbreviation: `b3`""" 120 return Tag("blue3") 121 122 @property 123 def b3(self) -> Tag: 124 """blue3""" 125 return self.blue3 126 127 @property 128 def blue_violet(self) -> Tag: 129 """abbreviation: `bv`""" 130 return Tag("blue_violet") 131 132 @property 133 def bv(self) -> Tag: 134 """blue_violet""" 135 return self.blue_violet 136 137 @property 138 def bright_black(self) -> Tag: 139 """abbreviation: `brbl`""" 140 return Tag("bright_black") 141 142 @property 143 def brbl(self) -> Tag: 144 """bright_black""" 145 return self.bright_black 146 147 @property 148 def bright_blue(self) -> Tag: 149 """abbreviation: `bb`""" 150 return Tag("bright_blue") 151 152 @property 153 def bb(self) -> Tag: 154 """bright_blue""" 155 return self.bright_blue 156 157 @property 158 def bright_cyan(self) -> Tag: 159 """abbreviation: `bc`""" 160 return Tag("bright_cyan") 161 162 @property 163 def bc(self) -> Tag: 164 """bright_cyan""" 165 return self.bright_cyan 166 167 @property 168 def bright_green(self) -> Tag: 169 """abbreviation: `bg`""" 170 return Tag("bright_green") 171 172 @property 173 def bg(self) -> Tag: 174 """bright_green""" 175 return self.bright_green 176 177 @property 178 def bright_magenta(self) -> Tag: 179 """abbreviation: `bm`""" 180 return Tag("bright_magenta") 181 182 @property 183 def bm(self) -> Tag: 184 """bright_magenta""" 185 return self.bright_magenta 186 187 @property 188 def bright_red(self) -> Tag: 189 """abbreviation: `br`""" 190 return Tag("bright_red") 191 192 @property 193 def br(self) -> Tag: 194 """bright_red""" 195 return self.bright_red 196 197 @property 198 def bright_white(self) -> Tag: 199 """abbreviation: `bw`""" 200 return Tag("bright_white") 201 202 @property 203 def bw(self) -> Tag: 204 """bright_white""" 205 return self.bright_white 206 207 @property 208 def bright_yellow(self) -> Tag: 209 """abbreviation: `by`""" 210 return Tag("bright_yellow") 211 212 @property 213 def by(self) -> Tag: 214 """bright_yellow""" 215 return self.bright_yellow 216 217 @property 218 def cadet_blue(self) -> Tag: 219 """abbreviation: `cb`""" 220 return Tag("cadet_blue") 221 222 @property 223 def cb(self) -> Tag: 224 """cadet_blue""" 225 return self.cadet_blue 226 227 @property 228 def chartreuse1(self) -> Tag: 229 """abbreviation: `ch1`""" 230 return Tag("chartreuse1") 231 232 @property 233 def ch1(self) -> Tag: 234 """chartreuse1""" 235 return self.chartreuse1 236 237 @property 238 def chartreuse2(self) -> Tag: 239 """abbreviation: `ch2`""" 240 return Tag("chartreuse2") 241 242 @property 243 def ch2(self) -> Tag: 244 """chartreuse2""" 245 return self.chartreuse2 246 247 @property 248 def chartreuse3(self) -> Tag: 249 """abbreviation: `ch3`""" 250 return Tag("chartreuse3") 251 252 @property 253 def ch3(self) -> Tag: 254 """chartreuse3""" 255 return self.chartreuse3 256 257 @property 258 def chartreuse4(self) -> Tag: 259 """abbreviation: `ch4`""" 260 return Tag("chartreuse4") 261 262 @property 263 def ch4(self) -> Tag: 264 """chartreuse4""" 265 return self.chartreuse4 266 267 @property 268 def cornflower_blue(self) -> Tag: 269 """abbreviation: `cobl`""" 270 return Tag("cornflower_blue") 271 272 @property 273 def cobl(self) -> Tag: 274 """cornflower_blue""" 275 return self.cornflower_blue 276 277 @property 278 def cornsilk1(self) -> Tag: 279 """abbreviation: `co1`""" 280 return Tag("cornsilk1") 281 282 @property 283 def co1(self) -> Tag: 284 """cornsilk1""" 285 return self.cornsilk1 286 287 @property 288 def cyan(self) -> Tag: 289 """abbreviation: `c`""" 290 return Tag("cyan") 291 292 @property 293 def c(self) -> Tag: 294 """cyan""" 295 return self.cyan 296 297 @property 298 def cyan1(self) -> Tag: 299 """abbreviation: `c1`""" 300 return Tag("cyan1") 301 302 @property 303 def c1(self) -> Tag: 304 """cyan1""" 305 return self.cyan1 306 307 @property 308 def cyan2(self) -> Tag: 309 """abbreviation: `c2`""" 310 return Tag("cyan2") 311 312 @property 313 def c2(self) -> Tag: 314 """cyan2""" 315 return self.cyan2 316 317 @property 318 def cyan3(self) -> Tag: 319 """abbreviation: `c3`""" 320 return Tag("cyan3") 321 322 @property 323 def c3(self) -> Tag: 324 """cyan3""" 325 return self.cyan3 326 327 @property 328 def dark_blue(self) -> Tag: 329 """abbreviation: `db`""" 330 return Tag("dark_blue") 331 332 @property 333 def db(self) -> Tag: 334 """dark_blue""" 335 return self.dark_blue 336 337 @property 338 def dark_cyan(self) -> Tag: 339 """abbreviation: `dc`""" 340 return Tag("dark_cyan") 341 342 @property 343 def dc(self) -> Tag: 344 """dark_cyan""" 345 return self.dark_cyan 346 347 @property 348 def dark_goldenrod(self) -> Tag: 349 """abbreviation: `dg`""" 350 return Tag("dark_goldenrod") 351 352 @property 353 def dg(self) -> Tag: 354 """dark_goldenrod""" 355 return self.dark_goldenrod 356 357 @property 358 def dark_green(self) -> Tag: 359 """abbreviation: `dagr`""" 360 return Tag("dark_green") 361 362 @property 363 def dagr(self) -> Tag: 364 """dark_green""" 365 return self.dark_green 366 367 @property 368 def dark_khaki(self) -> Tag: 369 """abbreviation: `dk`""" 370 return Tag("dark_khaki") 371 372 @property 373 def dk(self) -> Tag: 374 """dark_khaki""" 375 return self.dark_khaki 376 377 @property 378 def dark_magenta(self) -> Tag: 379 """abbreviation: `dm`""" 380 return Tag("dark_magenta") 381 382 @property 383 def dm(self) -> Tag: 384 """dark_magenta""" 385 return self.dark_magenta 386 387 @property 388 def dark_olive_green1(self) -> Tag: 389 """abbreviation: `dog1`""" 390 return Tag("dark_olive_green1") 391 392 @property 393 def dog1(self) -> Tag: 394 """dark_olive_green1""" 395 return self.dark_olive_green1 396 397 @property 398 def dark_olive_green2(self) -> Tag: 399 """abbreviation: `dog2`""" 400 return Tag("dark_olive_green2") 401 402 @property 403 def dog2(self) -> Tag: 404 """dark_olive_green2""" 405 return self.dark_olive_green2 406 407 @property 408 def dark_olive_green3(self) -> Tag: 409 """abbreviation: `dog3`""" 410 return Tag("dark_olive_green3") 411 412 @property 413 def dog3(self) -> Tag: 414 """dark_olive_green3""" 415 return self.dark_olive_green3 416 417 @property 418 def dark_orange(self) -> Tag: 419 """abbreviation: `do`""" 420 return Tag("dark_orange") 421 422 @property 423 def do(self) -> Tag: 424 """dark_orange""" 425 return self.dark_orange 426 427 @property 428 def dark_orange3(self) -> Tag: 429 """abbreviation: `do3`""" 430 return Tag("dark_orange3") 431 432 @property 433 def do3(self) -> Tag: 434 """dark_orange3""" 435 return self.dark_orange3 436 437 @property 438 def dark_red(self) -> Tag: 439 """abbreviation: `dr`""" 440 return Tag("dark_red") 441 442 @property 443 def dr(self) -> Tag: 444 """dark_red""" 445 return self.dark_red 446 447 @property 448 def dark_sea_green(self) -> Tag: 449 """abbreviation: `dsg`""" 450 return Tag("dark_sea_green") 451 452 @property 453 def dsg(self) -> Tag: 454 """dark_sea_green""" 455 return self.dark_sea_green 456 457 @property 458 def dark_sea_green1(self) -> Tag: 459 """abbreviation: `dsg1`""" 460 return Tag("dark_sea_green1") 461 462 @property 463 def dsg1(self) -> Tag: 464 """dark_sea_green1""" 465 return self.dark_sea_green1 466 467 @property 468 def dark_sea_green2(self) -> Tag: 469 """abbreviation: `dsg2`""" 470 return Tag("dark_sea_green2") 471 472 @property 473 def dsg2(self) -> Tag: 474 """dark_sea_green2""" 475 return self.dark_sea_green2 476 477 @property 478 def dark_sea_green3(self) -> Tag: 479 """abbreviation: `dsg3`""" 480 return Tag("dark_sea_green3") 481 482 @property 483 def dsg3(self) -> Tag: 484 """dark_sea_green3""" 485 return self.dark_sea_green3 486 487 @property 488 def dark_sea_green4(self) -> Tag: 489 """abbreviation: `dsg4`""" 490 return Tag("dark_sea_green4") 491 492 @property 493 def dsg4(self) -> Tag: 494 """dark_sea_green4""" 495 return self.dark_sea_green4 496 497 @property 498 def dark_slate_gray1(self) -> Tag: 499 """abbreviation: `daslgr1`""" 500 return Tag("dark_slate_gray1") 501 502 @property 503 def daslgr1(self) -> Tag: 504 """dark_slate_gray1""" 505 return self.dark_slate_gray1 506 507 @property 508 def dark_slate_gray2(self) -> Tag: 509 """abbreviation: `daslgr2`""" 510 return Tag("dark_slate_gray2") 511 512 @property 513 def daslgr2(self) -> Tag: 514 """dark_slate_gray2""" 515 return self.dark_slate_gray2 516 517 @property 518 def dark_slate_gray3(self) -> Tag: 519 """abbreviation: `daslgr3`""" 520 return Tag("dark_slate_gray3") 521 522 @property 523 def daslgr3(self) -> Tag: 524 """dark_slate_gray3""" 525 return self.dark_slate_gray3 526 527 @property 528 def dark_turquoise(self) -> Tag: 529 """abbreviation: `dt`""" 530 return Tag("dark_turquoise") 531 532 @property 533 def dt(self) -> Tag: 534 """dark_turquoise""" 535 return self.dark_turquoise 536 537 @property 538 def dark_violet(self) -> Tag: 539 """abbreviation: `dv`""" 540 return Tag("dark_violet") 541 542 @property 543 def dv(self) -> Tag: 544 """dark_violet""" 545 return self.dark_violet 546 547 @property 548 def deep_pink1(self) -> Tag: 549 """abbreviation: `dp1`""" 550 return Tag("deep_pink1") 551 552 @property 553 def dp1(self) -> Tag: 554 """deep_pink1""" 555 return self.deep_pink1 556 557 @property 558 def deep_pink2(self) -> Tag: 559 """abbreviation: `dp2`""" 560 return Tag("deep_pink2") 561 562 @property 563 def dp2(self) -> Tag: 564 """deep_pink2""" 565 return self.deep_pink2 566 567 @property 568 def deep_pink3(self) -> Tag: 569 """abbreviation: `dp3`""" 570 return Tag("deep_pink3") 571 572 @property 573 def dp3(self) -> Tag: 574 """deep_pink3""" 575 return self.deep_pink3 576 577 @property 578 def deep_pink4(self) -> Tag: 579 """abbreviation: `dp4`""" 580 return Tag("deep_pink4") 581 582 @property 583 def dp4(self) -> Tag: 584 """deep_pink4""" 585 return self.deep_pink4 586 587 @property 588 def deep_sky_blue1(self) -> Tag: 589 """abbreviation: `dsb1`""" 590 return Tag("deep_sky_blue1") 591 592 @property 593 def dsb1(self) -> Tag: 594 """deep_sky_blue1""" 595 return self.deep_sky_blue1 596 597 @property 598 def deep_sky_blue2(self) -> Tag: 599 """abbreviation: `dsb2`""" 600 return Tag("deep_sky_blue2") 601 602 @property 603 def dsb2(self) -> Tag: 604 """deep_sky_blue2""" 605 return self.deep_sky_blue2 606 607 @property 608 def deep_sky_blue3(self) -> Tag: 609 """abbreviation: `dsb3`""" 610 return Tag("deep_sky_blue3") 611 612 @property 613 def dsb3(self) -> Tag: 614 """deep_sky_blue3""" 615 return self.deep_sky_blue3 616 617 @property 618 def deep_sky_blue4(self) -> Tag: 619 """abbreviation: `dsb4`""" 620 return Tag("deep_sky_blue4") 621 622 @property 623 def dsb4(self) -> Tag: 624 """deep_sky_blue4""" 625 return self.deep_sky_blue4 626 627 @property 628 def dodger_blue1(self) -> Tag: 629 """abbreviation: `db1`""" 630 return Tag("dodger_blue1") 631 632 @property 633 def db1(self) -> Tag: 634 """dodger_blue1""" 635 return self.dodger_blue1 636 637 @property 638 def dodger_blue2(self) -> Tag: 639 """abbreviation: `db2`""" 640 return Tag("dodger_blue2") 641 642 @property 643 def db2(self) -> Tag: 644 """dodger_blue2""" 645 return self.dodger_blue2 646 647 @property 648 def dodger_blue3(self) -> Tag: 649 """abbreviation: `db3`""" 650 return Tag("dodger_blue3") 651 652 @property 653 def db3(self) -> Tag: 654 """dodger_blue3""" 655 return self.dodger_blue3 656 657 @property 658 def gold1(self) -> Tag: 659 """abbreviation: `go1`""" 660 return Tag("gold1") 661 662 @property 663 def go1(self) -> Tag: 664 """gold1""" 665 return self.gold1 666 667 @property 668 def gold3(self) -> Tag: 669 """abbreviation: `go3`""" 670 return Tag("gold3") 671 672 @property 673 def go3(self) -> Tag: 674 """gold3""" 675 return self.gold3 676 677 @property 678 def green(self) -> Tag: 679 """abbreviation: `g`""" 680 return Tag("green") 681 682 @property 683 def g(self) -> Tag: 684 """green""" 685 return self.green 686 687 @property 688 def green1(self) -> Tag: 689 """abbreviation: `g1`""" 690 return Tag("green1") 691 692 @property 693 def g1(self) -> Tag: 694 """green1""" 695 return self.green1 696 697 @property 698 def green3(self) -> Tag: 699 """abbreviation: `g3`""" 700 return Tag("green3") 701 702 @property 703 def g3(self) -> Tag: 704 """green3""" 705 return self.green3 706 707 @property 708 def green4(self) -> Tag: 709 """abbreviation: `g4`""" 710 return Tag("green4") 711 712 @property 713 def g4(self) -> Tag: 714 """green4""" 715 return self.green4 716 717 @property 718 def green_yellow(self) -> Tag: 719 """abbreviation: `gy`""" 720 return Tag("green_yellow") 721 722 @property 723 def gy(self) -> Tag: 724 """green_yellow""" 725 return self.green_yellow 726 727 @property 728 def grey0(self) -> Tag: 729 """abbreviation: `grey0`""" 730 return Tag("grey0") 731 732 @property 733 def grey100(self) -> Tag: 734 """abbreviation: `grey100`""" 735 return Tag("grey100") 736 737 @property 738 def grey11(self) -> Tag: 739 """abbreviation: `grey11`""" 740 return Tag("grey11") 741 742 @property 743 def grey15(self) -> Tag: 744 """abbreviation: `grey15`""" 745 return Tag("grey15") 746 747 @property 748 def grey19(self) -> Tag: 749 """abbreviation: `grey19`""" 750 return Tag("grey19") 751 752 @property 753 def grey23(self) -> Tag: 754 """abbreviation: `grey23`""" 755 return Tag("grey23") 756 757 @property 758 def grey27(self) -> Tag: 759 """abbreviation: `grey27`""" 760 return Tag("grey27") 761 762 @property 763 def grey3(self) -> Tag: 764 """abbreviation: `grey3`""" 765 return Tag("grey3") 766 767 @property 768 def grey30(self) -> Tag: 769 """abbreviation: `grey30`""" 770 return Tag("grey30") 771 772 @property 773 def grey35(self) -> Tag: 774 """abbreviation: `grey35`""" 775 return Tag("grey35") 776 777 @property 778 def grey37(self) -> Tag: 779 """abbreviation: `grey37`""" 780 return Tag("grey37") 781 782 @property 783 def grey39(self) -> Tag: 784 """abbreviation: `grey39`""" 785 return Tag("grey39") 786 787 @property 788 def grey42(self) -> Tag: 789 """abbreviation: `grey42`""" 790 return Tag("grey42") 791 792 @property 793 def grey46(self) -> Tag: 794 """abbreviation: `grey46`""" 795 return Tag("grey46") 796 797 @property 798 def grey50(self) -> Tag: 799 """abbreviation: `grey50`""" 800 return Tag("grey50") 801 802 @property 803 def grey53(self) -> Tag: 804 """abbreviation: `grey53`""" 805 return Tag("grey53") 806 807 @property 808 def grey54(self) -> Tag: 809 """abbreviation: `grey54`""" 810 return Tag("grey54") 811 812 @property 813 def grey58(self) -> Tag: 814 """abbreviation: `grey58`""" 815 return Tag("grey58") 816 817 @property 818 def grey62(self) -> Tag: 819 """abbreviation: `grey62`""" 820 return Tag("grey62") 821 822 @property 823 def grey63(self) -> Tag: 824 """abbreviation: `grey63`""" 825 return Tag("grey63") 826 827 @property 828 def grey66(self) -> Tag: 829 """abbreviation: `grey66`""" 830 return Tag("grey66") 831 832 @property 833 def grey69(self) -> Tag: 834 """abbreviation: `grey69`""" 835 return Tag("grey69") 836 837 @property 838 def grey7(self) -> Tag: 839 """abbreviation: `grey7`""" 840 return Tag("grey7") 841 842 @property 843 def grey70(self) -> Tag: 844 """abbreviation: `grey70`""" 845 return Tag("grey70") 846 847 @property 848 def grey74(self) -> Tag: 849 """abbreviation: `grey74`""" 850 return Tag("grey74") 851 852 @property 853 def grey78(self) -> Tag: 854 """abbreviation: `grey78`""" 855 return Tag("grey78") 856 857 @property 858 def grey82(self) -> Tag: 859 """abbreviation: `grey82`""" 860 return Tag("grey82") 861 862 @property 863 def grey84(self) -> Tag: 864 """abbreviation: `grey84`""" 865 return Tag("grey84") 866 867 @property 868 def grey85(self) -> Tag: 869 """abbreviation: `grey85`""" 870 return Tag("grey85") 871 872 @property 873 def grey89(self) -> Tag: 874 """abbreviation: `grey89`""" 875 return Tag("grey89") 876 877 @property 878 def grey93(self) -> Tag: 879 """abbreviation: `grey93`""" 880 return Tag("grey93") 881 882 @property 883 def honeydew2(self) -> Tag: 884 """abbreviation: `ho2`""" 885 return Tag("honeydew2") 886 887 @property 888 def ho2(self) -> Tag: 889 """honeydew2""" 890 return self.honeydew2 891 892 @property 893 def hot_pink(self) -> Tag: 894 """abbreviation: `hp`""" 895 return Tag("hot_pink") 896 897 @property 898 def hp(self) -> Tag: 899 """hot_pink""" 900 return self.hot_pink 901 902 @property 903 def hot_pink2(self) -> Tag: 904 """abbreviation: `hp2`""" 905 return Tag("hot_pink2") 906 907 @property 908 def hp2(self) -> Tag: 909 """hot_pink2""" 910 return self.hot_pink2 911 912 @property 913 def hot_pink3(self) -> Tag: 914 """abbreviation: `hp3`""" 915 return Tag("hot_pink3") 916 917 @property 918 def hp3(self) -> Tag: 919 """hot_pink3""" 920 return self.hot_pink3 921 922 @property 923 def indian_red(self) -> Tag: 924 """abbreviation: `ir`""" 925 return Tag("indian_red") 926 927 @property 928 def ir(self) -> Tag: 929 """indian_red""" 930 return self.indian_red 931 932 @property 933 def indian_red1(self) -> Tag: 934 """abbreviation: `ir1`""" 935 return Tag("indian_red1") 936 937 @property 938 def ir1(self) -> Tag: 939 """indian_red1""" 940 return self.indian_red1 941 942 @property 943 def khaki1(self) -> Tag: 944 """abbreviation: `k1`""" 945 return Tag("khaki1") 946 947 @property 948 def k1(self) -> Tag: 949 """khaki1""" 950 return self.khaki1 951 952 @property 953 def khaki3(self) -> Tag: 954 """abbreviation: `k3`""" 955 return Tag("khaki3") 956 957 @property 958 def k3(self) -> Tag: 959 """khaki3""" 960 return self.khaki3 961 962 @property 963 def light_coral(self) -> Tag: 964 """abbreviation: `lc`""" 965 return Tag("light_coral") 966 967 @property 968 def lc(self) -> Tag: 969 """light_coral""" 970 return self.light_coral 971 972 @property 973 def light_cyan1(self) -> Tag: 974 """abbreviation: `lc1`""" 975 return Tag("light_cyan1") 976 977 @property 978 def lc1(self) -> Tag: 979 """light_cyan1""" 980 return self.light_cyan1 981 982 @property 983 def light_cyan3(self) -> Tag: 984 """abbreviation: `lc3`""" 985 return Tag("light_cyan3") 986 987 @property 988 def lc3(self) -> Tag: 989 """light_cyan3""" 990 return self.light_cyan3 991 992 @property 993 def light_goldenrod1(self) -> Tag: 994 """abbreviation: `lg1`""" 995 return Tag("light_goldenrod1") 996 997 @property 998 def lg1(self) -> Tag: 999 """light_goldenrod1""" 1000 return self.light_goldenrod1 1001 1002 @property 1003 def light_goldenrod2(self) -> Tag: 1004 """abbreviation: `lg2`""" 1005 return Tag("light_goldenrod2") 1006 1007 @property 1008 def lg2(self) -> Tag: 1009 """light_goldenrod2""" 1010 return self.light_goldenrod2 1011 1012 @property 1013 def light_goldenrod3(self) -> Tag: 1014 """abbreviation: `lg3`""" 1015 return Tag("light_goldenrod3") 1016 1017 @property 1018 def lg3(self) -> Tag: 1019 """light_goldenrod3""" 1020 return self.light_goldenrod3 1021 1022 @property 1023 def light_green(self) -> Tag: 1024 """abbreviation: `lg`""" 1025 return Tag("light_green") 1026 1027 @property 1028 def lg(self) -> Tag: 1029 """light_green""" 1030 return self.light_green 1031 1032 @property 1033 def light_pink1(self) -> Tag: 1034 """abbreviation: `lp1`""" 1035 return Tag("light_pink1") 1036 1037 @property 1038 def lp1(self) -> Tag: 1039 """light_pink1""" 1040 return self.light_pink1 1041 1042 @property 1043 def light_pink3(self) -> Tag: 1044 """abbreviation: `lp3`""" 1045 return Tag("light_pink3") 1046 1047 @property 1048 def lp3(self) -> Tag: 1049 """light_pink3""" 1050 return self.light_pink3 1051 1052 @property 1053 def light_pink4(self) -> Tag: 1054 """abbreviation: `lp4`""" 1055 return Tag("light_pink4") 1056 1057 @property 1058 def lp4(self) -> Tag: 1059 """light_pink4""" 1060 return self.light_pink4 1061 1062 @property 1063 def light_salmon1(self) -> Tag: 1064 """abbreviation: `ls1`""" 1065 return Tag("light_salmon1") 1066 1067 @property 1068 def ls1(self) -> Tag: 1069 """light_salmon1""" 1070 return self.light_salmon1 1071 1072 @property 1073 def light_salmon3(self) -> Tag: 1074 """abbreviation: `ls3`""" 1075 return Tag("light_salmon3") 1076 1077 @property 1078 def ls3(self) -> Tag: 1079 """light_salmon3""" 1080 return self.light_salmon3 1081 1082 @property 1083 def light_sea_green(self) -> Tag: 1084 """abbreviation: `lsg`""" 1085 return Tag("light_sea_green") 1086 1087 @property 1088 def lsg(self) -> Tag: 1089 """light_sea_green""" 1090 return self.light_sea_green 1091 1092 @property 1093 def light_sky_blue1(self) -> Tag: 1094 """abbreviation: `lsb1`""" 1095 return Tag("light_sky_blue1") 1096 1097 @property 1098 def lsb1(self) -> Tag: 1099 """light_sky_blue1""" 1100 return self.light_sky_blue1 1101 1102 @property 1103 def light_sky_blue3(self) -> Tag: 1104 """abbreviation: `lsb3`""" 1105 return Tag("light_sky_blue3") 1106 1107 @property 1108 def lsb3(self) -> Tag: 1109 """light_sky_blue3""" 1110 return self.light_sky_blue3 1111 1112 @property 1113 def light_slate_blue(self) -> Tag: 1114 """abbreviation: `lsb`""" 1115 return Tag("light_slate_blue") 1116 1117 @property 1118 def lsb(self) -> Tag: 1119 """light_slate_blue""" 1120 return self.light_slate_blue 1121 1122 @property 1123 def light_slate_grey(self) -> Tag: 1124 """abbreviation: `lislgr`""" 1125 return Tag("light_slate_grey") 1126 1127 @property 1128 def lislgr(self) -> Tag: 1129 """light_slate_grey""" 1130 return self.light_slate_grey 1131 1132 @property 1133 def light_steel_blue(self) -> Tag: 1134 """abbreviation: `listbl`""" 1135 return Tag("light_steel_blue") 1136 1137 @property 1138 def listbl(self) -> Tag: 1139 """light_steel_blue""" 1140 return self.light_steel_blue 1141 1142 @property 1143 def light_steel_blue1(self) -> Tag: 1144 """abbreviation: `listbl1`""" 1145 return Tag("light_steel_blue1") 1146 1147 @property 1148 def listbl1(self) -> Tag: 1149 """light_steel_blue1""" 1150 return self.light_steel_blue1 1151 1152 @property 1153 def light_steel_blue3(self) -> Tag: 1154 """abbreviation: `listbl3`""" 1155 return Tag("light_steel_blue3") 1156 1157 @property 1158 def listbl3(self) -> Tag: 1159 """light_steel_blue3""" 1160 return self.light_steel_blue3 1161 1162 @property 1163 def light_yellow3(self) -> Tag: 1164 """abbreviation: `ly3`""" 1165 return Tag("light_yellow3") 1166 1167 @property 1168 def ly3(self) -> Tag: 1169 """light_yellow3""" 1170 return self.light_yellow3 1171 1172 @property 1173 def magenta(self) -> Tag: 1174 """abbreviation: `m`""" 1175 return Tag("magenta") 1176 1177 @property 1178 def m(self) -> Tag: 1179 """magenta""" 1180 return self.magenta 1181 1182 @property 1183 def magenta1(self) -> Tag: 1184 """abbreviation: `m1`""" 1185 return Tag("magenta1") 1186 1187 @property 1188 def m1(self) -> Tag: 1189 """magenta1""" 1190 return self.magenta1 1191 1192 @property 1193 def magenta2(self) -> Tag: 1194 """abbreviation: `m2`""" 1195 return Tag("magenta2") 1196 1197 @property 1198 def m2(self) -> Tag: 1199 """magenta2""" 1200 return self.magenta2 1201 1202 @property 1203 def magenta3(self) -> Tag: 1204 """abbreviation: `m3`""" 1205 return Tag("magenta3") 1206 1207 @property 1208 def m3(self) -> Tag: 1209 """magenta3""" 1210 return self.magenta3 1211 1212 @property 1213 def medium_orchid(self) -> Tag: 1214 """abbreviation: `mo`""" 1215 return Tag("medium_orchid") 1216 1217 @property 1218 def mo(self) -> Tag: 1219 """medium_orchid""" 1220 return self.medium_orchid 1221 1222 @property 1223 def medium_orchid1(self) -> Tag: 1224 """abbreviation: `mo1`""" 1225 return Tag("medium_orchid1") 1226 1227 @property 1228 def mo1(self) -> Tag: 1229 """medium_orchid1""" 1230 return self.medium_orchid1 1231 1232 @property 1233 def medium_orchid3(self) -> Tag: 1234 """abbreviation: `mo3`""" 1235 return Tag("medium_orchid3") 1236 1237 @property 1238 def mo3(self) -> Tag: 1239 """medium_orchid3""" 1240 return self.medium_orchid3 1241 1242 @property 1243 def medium_purple(self) -> Tag: 1244 """abbreviation: `mp`""" 1245 return Tag("medium_purple") 1246 1247 @property 1248 def mp(self) -> Tag: 1249 """medium_purple""" 1250 return self.medium_purple 1251 1252 @property 1253 def medium_purple1(self) -> Tag: 1254 """abbreviation: `mp1`""" 1255 return Tag("medium_purple1") 1256 1257 @property 1258 def mp1(self) -> Tag: 1259 """medium_purple1""" 1260 return self.medium_purple1 1261 1262 @property 1263 def medium_purple2(self) -> Tag: 1264 """abbreviation: `mp2`""" 1265 return Tag("medium_purple2") 1266 1267 @property 1268 def mp2(self) -> Tag: 1269 """medium_purple2""" 1270 return self.medium_purple2 1271 1272 @property 1273 def medium_purple3(self) -> Tag: 1274 """abbreviation: `mp3`""" 1275 return Tag("medium_purple3") 1276 1277 @property 1278 def mp3(self) -> Tag: 1279 """medium_purple3""" 1280 return self.medium_purple3 1281 1282 @property 1283 def medium_purple4(self) -> Tag: 1284 """abbreviation: `mp4`""" 1285 return Tag("medium_purple4") 1286 1287 @property 1288 def mp4(self) -> Tag: 1289 """medium_purple4""" 1290 return self.medium_purple4 1291 1292 @property 1293 def medium_spring_green(self) -> Tag: 1294 """abbreviation: `msg`""" 1295 return Tag("medium_spring_green") 1296 1297 @property 1298 def msg(self) -> Tag: 1299 """medium_spring_green""" 1300 return self.medium_spring_green 1301 1302 @property 1303 def medium_turquoise(self) -> Tag: 1304 """abbreviation: `mt`""" 1305 return Tag("medium_turquoise") 1306 1307 @property 1308 def mt(self) -> Tag: 1309 """medium_turquoise""" 1310 return self.medium_turquoise 1311 1312 @property 1313 def medium_violet_red(self) -> Tag: 1314 """abbreviation: `mvr`""" 1315 return Tag("medium_violet_red") 1316 1317 @property 1318 def mvr(self) -> Tag: 1319 """medium_violet_red""" 1320 return self.medium_violet_red 1321 1322 @property 1323 def misty_rose1(self) -> Tag: 1324 """abbreviation: `mr1`""" 1325 return Tag("misty_rose1") 1326 1327 @property 1328 def mr1(self) -> Tag: 1329 """misty_rose1""" 1330 return self.misty_rose1 1331 1332 @property 1333 def misty_rose3(self) -> Tag: 1334 """abbreviation: `mr3`""" 1335 return Tag("misty_rose3") 1336 1337 @property 1338 def mr3(self) -> Tag: 1339 """misty_rose3""" 1340 return self.misty_rose3 1341 1342 @property 1343 def navajo_white1(self) -> Tag: 1344 """abbreviation: `nw1`""" 1345 return Tag("navajo_white1") 1346 1347 @property 1348 def nw1(self) -> Tag: 1349 """navajo_white1""" 1350 return self.navajo_white1 1351 1352 @property 1353 def navajo_white3(self) -> Tag: 1354 """abbreviation: `nw3`""" 1355 return Tag("navajo_white3") 1356 1357 @property 1358 def nw3(self) -> Tag: 1359 """navajo_white3""" 1360 return self.navajo_white3 1361 1362 @property 1363 def navy_blue(self) -> Tag: 1364 """abbreviation: `nb`""" 1365 return Tag("navy_blue") 1366 1367 @property 1368 def nb(self) -> Tag: 1369 """navy_blue""" 1370 return self.navy_blue 1371 1372 @property 1373 def orange1(self) -> Tag: 1374 """abbreviation: `o1`""" 1375 return Tag("orange1") 1376 1377 @property 1378 def o1(self) -> Tag: 1379 """orange1""" 1380 return self.orange1 1381 1382 @property 1383 def orange3(self) -> Tag: 1384 """abbreviation: `o3`""" 1385 return Tag("orange3") 1386 1387 @property 1388 def o3(self) -> Tag: 1389 """orange3""" 1390 return self.orange3 1391 1392 @property 1393 def orange4(self) -> Tag: 1394 """abbreviation: `o4`""" 1395 return Tag("orange4") 1396 1397 @property 1398 def o4(self) -> Tag: 1399 """orange4""" 1400 return self.orange4 1401 1402 @property 1403 def orange_red1(self) -> Tag: 1404 """abbreviation: `orre1`""" 1405 return Tag("orange_red1") 1406 1407 @property 1408 def orre1(self) -> Tag: 1409 """orange_red1""" 1410 return self.orange_red1 1411 1412 @property 1413 def orchid(self) -> Tag: 1414 """abbreviation: `or_`""" 1415 return Tag("orchid") 1416 1417 @property 1418 def or_(self) -> Tag: 1419 """orchid""" 1420 return self.orchid 1421 1422 @property 1423 def orchid1(self) -> Tag: 1424 """abbreviation: `or1`""" 1425 return Tag("orchid1") 1426 1427 @property 1428 def or1(self) -> Tag: 1429 """orchid1""" 1430 return self.orchid1 1431 1432 @property 1433 def orchid2(self) -> Tag: 1434 """abbreviation: `or2`""" 1435 return Tag("orchid2") 1436 1437 @property 1438 def or2(self) -> Tag: 1439 """orchid2""" 1440 return self.orchid2 1441 1442 @property 1443 def pale_green1(self) -> Tag: 1444 """abbreviation: `pg1`""" 1445 return Tag("pale_green1") 1446 1447 @property 1448 def pg1(self) -> Tag: 1449 """pale_green1""" 1450 return self.pale_green1 1451 1452 @property 1453 def pale_green3(self) -> Tag: 1454 """abbreviation: `pg3`""" 1455 return Tag("pale_green3") 1456 1457 @property 1458 def pg3(self) -> Tag: 1459 """pale_green3""" 1460 return self.pale_green3 1461 1462 @property 1463 def pale_turquoise1(self) -> Tag: 1464 """abbreviation: `pt1`""" 1465 return Tag("pale_turquoise1") 1466 1467 @property 1468 def pt1(self) -> Tag: 1469 """pale_turquoise1""" 1470 return self.pale_turquoise1 1471 1472 @property 1473 def pale_turquoise4(self) -> Tag: 1474 """abbreviation: `pt4`""" 1475 return Tag("pale_turquoise4") 1476 1477 @property 1478 def pt4(self) -> Tag: 1479 """pale_turquoise4""" 1480 return self.pale_turquoise4 1481 1482 @property 1483 def pale_violet_red1(self) -> Tag: 1484 """abbreviation: `pvr1`""" 1485 return Tag("pale_violet_red1") 1486 1487 @property 1488 def pvr1(self) -> Tag: 1489 """pale_violet_red1""" 1490 return self.pale_violet_red1 1491 1492 @property 1493 def pink1(self) -> Tag: 1494 """abbreviation: `p1`""" 1495 return Tag("pink1") 1496 1497 @property 1498 def p1(self) -> Tag: 1499 """pink1""" 1500 return self.pink1 1501 1502 @property 1503 def pink3(self) -> Tag: 1504 """abbreviation: `p3`""" 1505 return Tag("pink3") 1506 1507 @property 1508 def p3(self) -> Tag: 1509 """pink3""" 1510 return self.pink3 1511 1512 @property 1513 def plum1(self) -> Tag: 1514 """abbreviation: `pl1`""" 1515 return Tag("plum1") 1516 1517 @property 1518 def pl1(self) -> Tag: 1519 """plum1""" 1520 return self.plum1 1521 1522 @property 1523 def plum2(self) -> Tag: 1524 """abbreviation: `pl2`""" 1525 return Tag("plum2") 1526 1527 @property 1528 def pl2(self) -> Tag: 1529 """plum2""" 1530 return self.plum2 1531 1532 @property 1533 def plum3(self) -> Tag: 1534 """abbreviation: `pl3`""" 1535 return Tag("plum3") 1536 1537 @property 1538 def pl3(self) -> Tag: 1539 """plum3""" 1540 return self.plum3 1541 1542 @property 1543 def plum4(self) -> Tag: 1544 """abbreviation: `pl4`""" 1545 return Tag("plum4") 1546 1547 @property 1548 def pl4(self) -> Tag: 1549 """plum4""" 1550 return self.plum4 1551 1552 @property 1553 def purple(self) -> Tag: 1554 """abbreviation: `pu`""" 1555 return Tag("purple") 1556 1557 @property 1558 def pu(self) -> Tag: 1559 """purple""" 1560 return self.purple 1561 1562 @property 1563 def purple3(self) -> Tag: 1564 """abbreviation: `pu3`""" 1565 return Tag("purple3") 1566 1567 @property 1568 def pu3(self) -> Tag: 1569 """purple3""" 1570 return self.purple3 1571 1572 @property 1573 def purple4(self) -> Tag: 1574 """abbreviation: `pu4`""" 1575 return Tag("purple4") 1576 1577 @property 1578 def pu4(self) -> Tag: 1579 """purple4""" 1580 return self.purple4 1581 1582 @property 1583 def red(self) -> Tag: 1584 """abbreviation: `r`""" 1585 return Tag("red") 1586 1587 @property 1588 def r(self) -> Tag: 1589 """red""" 1590 return self.red 1591 1592 @property 1593 def red1(self) -> Tag: 1594 """abbreviation: `r1`""" 1595 return Tag("red1") 1596 1597 @property 1598 def r1(self) -> Tag: 1599 """red1""" 1600 return self.red1 1601 1602 @property 1603 def red3(self) -> Tag: 1604 """abbreviation: `r3`""" 1605 return Tag("red3") 1606 1607 @property 1608 def r3(self) -> Tag: 1609 """red3""" 1610 return self.red3 1611 1612 @property 1613 def rosy_brown(self) -> Tag: 1614 """abbreviation: `rb`""" 1615 return Tag("rosy_brown") 1616 1617 @property 1618 def rb(self) -> Tag: 1619 """rosy_brown""" 1620 return self.rosy_brown 1621 1622 @property 1623 def royal_blue1(self) -> Tag: 1624 """abbreviation: `rb1`""" 1625 return Tag("royal_blue1") 1626 1627 @property 1628 def rb1(self) -> Tag: 1629 """royal_blue1""" 1630 return self.royal_blue1 1631 1632 @property 1633 def salmon1(self) -> Tag: 1634 """abbreviation: `s1`""" 1635 return Tag("salmon1") 1636 1637 @property 1638 def s1(self) -> Tag: 1639 """salmon1""" 1640 return self.salmon1 1641 1642 @property 1643 def sandy_brown(self) -> Tag: 1644 """abbreviation: `sb`""" 1645 return Tag("sandy_brown") 1646 1647 @property 1648 def sb(self) -> Tag: 1649 """sandy_brown""" 1650 return self.sandy_brown 1651 1652 @property 1653 def sea_green1(self) -> Tag: 1654 """abbreviation: `sg1`""" 1655 return Tag("sea_green1") 1656 1657 @property 1658 def sg1(self) -> Tag: 1659 """sea_green1""" 1660 return self.sea_green1 1661 1662 @property 1663 def sea_green2(self) -> Tag: 1664 """abbreviation: `sg2`""" 1665 return Tag("sea_green2") 1666 1667 @property 1668 def sg2(self) -> Tag: 1669 """sea_green2""" 1670 return self.sea_green2 1671 1672 @property 1673 def sea_green3(self) -> Tag: 1674 """abbreviation: `sg3`""" 1675 return Tag("sea_green3") 1676 1677 @property 1678 def sg3(self) -> Tag: 1679 """sea_green3""" 1680 return self.sea_green3 1681 1682 @property 1683 def sky_blue1(self) -> Tag: 1684 """abbreviation: `sb1`""" 1685 return Tag("sky_blue1") 1686 1687 @property 1688 def sb1(self) -> Tag: 1689 """sky_blue1""" 1690 return self.sky_blue1 1691 1692 @property 1693 def sky_blue2(self) -> Tag: 1694 """abbreviation: `sb2`""" 1695 return Tag("sky_blue2") 1696 1697 @property 1698 def sb2(self) -> Tag: 1699 """sky_blue2""" 1700 return self.sky_blue2 1701 1702 @property 1703 def sky_blue3(self) -> Tag: 1704 """abbreviation: `sb3`""" 1705 return Tag("sky_blue3") 1706 1707 @property 1708 def sb3(self) -> Tag: 1709 """sky_blue3""" 1710 return self.sky_blue3 1711 1712 @property 1713 def slate_blue1(self) -> Tag: 1714 """abbreviation: `slbl1`""" 1715 return Tag("slate_blue1") 1716 1717 @property 1718 def slbl1(self) -> Tag: 1719 """slate_blue1""" 1720 return self.slate_blue1 1721 1722 @property 1723 def slate_blue3(self) -> Tag: 1724 """abbreviation: `slbl3`""" 1725 return Tag("slate_blue3") 1726 1727 @property 1728 def slbl3(self) -> Tag: 1729 """slate_blue3""" 1730 return self.slate_blue3 1731 1732 @property 1733 def spring_green1(self) -> Tag: 1734 """abbreviation: `spgr1`""" 1735 return Tag("spring_green1") 1736 1737 @property 1738 def spgr1(self) -> Tag: 1739 """spring_green1""" 1740 return self.spring_green1 1741 1742 @property 1743 def spring_green2(self) -> Tag: 1744 """abbreviation: `spgr2`""" 1745 return Tag("spring_green2") 1746 1747 @property 1748 def spgr2(self) -> Tag: 1749 """spring_green2""" 1750 return self.spring_green2 1751 1752 @property 1753 def spring_green3(self) -> Tag: 1754 """abbreviation: `spgr3`""" 1755 return Tag("spring_green3") 1756 1757 @property 1758 def spgr3(self) -> Tag: 1759 """spring_green3""" 1760 return self.spring_green3 1761 1762 @property 1763 def spring_green4(self) -> Tag: 1764 """abbreviation: `spgr4`""" 1765 return Tag("spring_green4") 1766 1767 @property 1768 def spgr4(self) -> Tag: 1769 """spring_green4""" 1770 return self.spring_green4 1771 1772 @property 1773 def steel_blue(self) -> Tag: 1774 """abbreviation: `stbl`""" 1775 return Tag("steel_blue") 1776 1777 @property 1778 def stbl(self) -> Tag: 1779 """steel_blue""" 1780 return self.steel_blue 1781 1782 @property 1783 def steel_blue1(self) -> Tag: 1784 """abbreviation: `stbl1`""" 1785 return Tag("steel_blue1") 1786 1787 @property 1788 def stbl1(self) -> Tag: 1789 """steel_blue1""" 1790 return self.steel_blue1 1791 1792 @property 1793 def steel_blue3(self) -> Tag: 1794 """abbreviation: `stbl3`""" 1795 return Tag("steel_blue3") 1796 1797 @property 1798 def stbl3(self) -> Tag: 1799 """steel_blue3""" 1800 return self.steel_blue3 1801 1802 @property 1803 def tan(self) -> Tag: 1804 """abbreviation: `ta`""" 1805 return Tag("tan") 1806 1807 @property 1808 def ta(self) -> Tag: 1809 """tan""" 1810 return self.tan 1811 1812 @property 1813 def thistle1(self) -> Tag: 1814 """abbreviation: `th1`""" 1815 return Tag("thistle1") 1816 1817 @property 1818 def th1(self) -> Tag: 1819 """thistle1""" 1820 return self.thistle1 1821 1822 @property 1823 def thistle3(self) -> Tag: 1824 """abbreviation: `th3`""" 1825 return Tag("thistle3") 1826 1827 @property 1828 def th3(self) -> Tag: 1829 """thistle3""" 1830 return self.thistle3 1831 1832 @property 1833 def turquoise2(self) -> Tag: 1834 """abbreviation: `t2`""" 1835 return Tag("turquoise2") 1836 1837 @property 1838 def t2(self) -> Tag: 1839 """turquoise2""" 1840 return self.turquoise2 1841 1842 @property 1843 def turquoise4(self) -> Tag: 1844 """abbreviation: `t4`""" 1845 return Tag("turquoise4") 1846 1847 @property 1848 def t4(self) -> Tag: 1849 """turquoise4""" 1850 return self.turquoise4 1851 1852 @property 1853 def violet(self) -> Tag: 1854 """abbreviation: `v`""" 1855 return Tag("violet") 1856 1857 @property 1858 def v(self) -> Tag: 1859 """violet""" 1860 return self.violet 1861 1862 @property 1863 def wheat1(self) -> Tag: 1864 """abbreviation: `wh1`""" 1865 return Tag("wheat1") 1866 1867 @property 1868 def wh1(self) -> Tag: 1869 """wheat1""" 1870 return self.wheat1 1871 1872 @property 1873 def wheat4(self) -> Tag: 1874 """abbreviation: `wh4`""" 1875 return Tag("wheat4") 1876 1877 @property 1878 def wh4(self) -> Tag: 1879 """wheat4""" 1880 return self.wheat4 1881 1882 @property 1883 def white(self) -> Tag: 1884 """abbreviation: `w`""" 1885 return Tag("white") 1886 1887 @property 1888 def w(self) -> Tag: 1889 """white""" 1890 return self.white 1891 1892 @property 1893 def yellow(self) -> Tag: 1894 """abbreviation: `y`""" 1895 return Tag("yellow") 1896 1897 @property 1898 def y(self) -> Tag: 1899 """yellow""" 1900 return self.yellow 1901 1902 @property 1903 def yellow1(self) -> Tag: 1904 """abbreviation: `y1`""" 1905 return Tag("yellow1") 1906 1907 @property 1908 def y1(self) -> Tag: 1909 """yellow1""" 1910 return self.yellow1 1911 1912 @property 1913 def yellow2(self) -> Tag: 1914 """abbreviation: `y2`""" 1915 return Tag("yellow2") 1916 1917 @property 1918 def y2(self) -> Tag: 1919 """yellow2""" 1920 return self.yellow2 1921 1922 @property 1923 def yellow3(self) -> Tag: 1924 """abbreviation: `y3`""" 1925 return Tag("yellow3") 1926 1927 @property 1928 def y3(self) -> Tag: 1929 """yellow3""" 1930 return self.yellow3 1931 1932 @property 1933 def yellow4(self) -> Tag: 1934 """abbreviation: `y4`""" 1935 return Tag("yellow4") 1936 1937 @property 1938 def y4(self) -> Tag: 1939 """yellow4""" 1940 return self.yellow4
@dataclass
class
Tag:
6@dataclass 7class Tag: 8 """Reduce the size of f-strings when using `rich`. 9 >>> from rich import print 10 >>> p = Tag("pale_turquoise4") 11 >>> c = Tag("cornflower_blue") 12 >>> print(f"{p}This{p.o} {c}is{c.o} {p}a{p.o} {c}string") 13 >>> same as 14 >>> print("[pale_turquoise4]This[/pale_turquoise4] [cornflower_blue]is[/cornflower_blue] [pale_turquoise4]a[/pale_turquoise4] [cornflower_blue]string") 15 """ 16 17 name: str 18 19 def __str__(self) -> str: 20 return f"[{self.name}]" 21 22 @property 23 def o(self) -> str: 24 """Closing tag for this tag.""" 25 return f"[/{self.name}]" 26 27 @property 28 def off(self) -> str: 29 """Closing tag for this tag.""" 30 return self.o
Reduce the size of f-strings when using rich
.
>>> from rich import print
>>> p = Tag("pale_turquoise4")
>>> c = Tag("cornflower_blue")
>>> print(f"{p}This{p.o} {c}is{c.o} {p}a{p.o} {c}string")
>>> same as
>>> print("[pale_turquoise4]This[/pale_turquoise4] [cornflower_blue]is[/cornflower_blue] [pale_turquoise4]a[/pale_turquoise4] [cornflower_blue]string")
class
ColorMap:
33class ColorMap: 34 """Color map for the rich colors at https://rich.readthedocs.io/en/stable/appendix/colors.html 35 36 See color options conveniently with your IDE's autocomplete. 37 38 Each color has two `Tag` properties: one using the full name and one using an abbreviation. 39 40 `ColorMap.aquamarine1` and `ColorMap.a1` return equivalent `Tag` instances. 41 42 >>> from rich import print 43 >>> 'To alternate colors, instead of doing this:' 44 >>> print("[aquamarine1]This [light_pink4]is [aquamarine]a [light_pink4]string") 45 >>> 'You can do:' 46 >>> c = ColorMap() 47 >>> print(f"{c.a1}This {c.lp4}is {c.a1}a {c.lp4}string")""" 48 49 @property 50 def _tag_list(self) -> list[Tag]: 51 tags = [ 52 getattr(self, obj) 53 for obj in dir(self) 54 if not obj.startswith("_") and isinstance(getattr(self, obj), Tag) 55 ] 56 return sorted(tags, key=lambda t: t.name) 57 58 def __len__(self) -> int: 59 return len(self._tag_list) 60 61 def __iter__(self) -> Iterator[Tag]: 62 for toggle in self._tag_list: 63 yield toggle 64 65 def __getitem__(self, key: int) -> Tag: 66 return self._tag_list[key] 67 68 @property 69 def aquamarine1(self) -> Tag: 70 """abbreviation: `a1`""" 71 return Tag("aquamarine1") 72 73 @property 74 def a1(self) -> Tag: 75 """aquamarine1""" 76 return self.aquamarine1 77 78 @property 79 def aquamarine3(self) -> Tag: 80 """abbreviation: `a3`""" 81 return Tag("aquamarine3") 82 83 @property 84 def a3(self) -> Tag: 85 """aquamarine3""" 86 return self.aquamarine3 87 88 @property 89 def black(self) -> Tag: 90 """abbreviation: `bl`""" 91 return Tag("black") 92 93 @property 94 def bl(self) -> Tag: 95 """black""" 96 return self.black 97 98 @property 99 def blue(self) -> Tag: 100 """abbreviation: `b`""" 101 return Tag("blue") 102 103 @property 104 def b(self) -> Tag: 105 """blue""" 106 return self.blue 107 108 @property 109 def blue1(self) -> Tag: 110 """abbreviation: `b1`""" 111 return Tag("blue1") 112 113 @property 114 def b1(self) -> Tag: 115 """blue1""" 116 return self.blue1 117 118 @property 119 def blue3(self) -> Tag: 120 """abbreviation: `b3`""" 121 return Tag("blue3") 122 123 @property 124 def b3(self) -> Tag: 125 """blue3""" 126 return self.blue3 127 128 @property 129 def blue_violet(self) -> Tag: 130 """abbreviation: `bv`""" 131 return Tag("blue_violet") 132 133 @property 134 def bv(self) -> Tag: 135 """blue_violet""" 136 return self.blue_violet 137 138 @property 139 def bright_black(self) -> Tag: 140 """abbreviation: `brbl`""" 141 return Tag("bright_black") 142 143 @property 144 def brbl(self) -> Tag: 145 """bright_black""" 146 return self.bright_black 147 148 @property 149 def bright_blue(self) -> Tag: 150 """abbreviation: `bb`""" 151 return Tag("bright_blue") 152 153 @property 154 def bb(self) -> Tag: 155 """bright_blue""" 156 return self.bright_blue 157 158 @property 159 def bright_cyan(self) -> Tag: 160 """abbreviation: `bc`""" 161 return Tag("bright_cyan") 162 163 @property 164 def bc(self) -> Tag: 165 """bright_cyan""" 166 return self.bright_cyan 167 168 @property 169 def bright_green(self) -> Tag: 170 """abbreviation: `bg`""" 171 return Tag("bright_green") 172 173 @property 174 def bg(self) -> Tag: 175 """bright_green""" 176 return self.bright_green 177 178 @property 179 def bright_magenta(self) -> Tag: 180 """abbreviation: `bm`""" 181 return Tag("bright_magenta") 182 183 @property 184 def bm(self) -> Tag: 185 """bright_magenta""" 186 return self.bright_magenta 187 188 @property 189 def bright_red(self) -> Tag: 190 """abbreviation: `br`""" 191 return Tag("bright_red") 192 193 @property 194 def br(self) -> Tag: 195 """bright_red""" 196 return self.bright_red 197 198 @property 199 def bright_white(self) -> Tag: 200 """abbreviation: `bw`""" 201 return Tag("bright_white") 202 203 @property 204 def bw(self) -> Tag: 205 """bright_white""" 206 return self.bright_white 207 208 @property 209 def bright_yellow(self) -> Tag: 210 """abbreviation: `by`""" 211 return Tag("bright_yellow") 212 213 @property 214 def by(self) -> Tag: 215 """bright_yellow""" 216 return self.bright_yellow 217 218 @property 219 def cadet_blue(self) -> Tag: 220 """abbreviation: `cb`""" 221 return Tag("cadet_blue") 222 223 @property 224 def cb(self) -> Tag: 225 """cadet_blue""" 226 return self.cadet_blue 227 228 @property 229 def chartreuse1(self) -> Tag: 230 """abbreviation: `ch1`""" 231 return Tag("chartreuse1") 232 233 @property 234 def ch1(self) -> Tag: 235 """chartreuse1""" 236 return self.chartreuse1 237 238 @property 239 def chartreuse2(self) -> Tag: 240 """abbreviation: `ch2`""" 241 return Tag("chartreuse2") 242 243 @property 244 def ch2(self) -> Tag: 245 """chartreuse2""" 246 return self.chartreuse2 247 248 @property 249 def chartreuse3(self) -> Tag: 250 """abbreviation: `ch3`""" 251 return Tag("chartreuse3") 252 253 @property 254 def ch3(self) -> Tag: 255 """chartreuse3""" 256 return self.chartreuse3 257 258 @property 259 def chartreuse4(self) -> Tag: 260 """abbreviation: `ch4`""" 261 return Tag("chartreuse4") 262 263 @property 264 def ch4(self) -> Tag: 265 """chartreuse4""" 266 return self.chartreuse4 267 268 @property 269 def cornflower_blue(self) -> Tag: 270 """abbreviation: `cobl`""" 271 return Tag("cornflower_blue") 272 273 @property 274 def cobl(self) -> Tag: 275 """cornflower_blue""" 276 return self.cornflower_blue 277 278 @property 279 def cornsilk1(self) -> Tag: 280 """abbreviation: `co1`""" 281 return Tag("cornsilk1") 282 283 @property 284 def co1(self) -> Tag: 285 """cornsilk1""" 286 return self.cornsilk1 287 288 @property 289 def cyan(self) -> Tag: 290 """abbreviation: `c`""" 291 return Tag("cyan") 292 293 @property 294 def c(self) -> Tag: 295 """cyan""" 296 return self.cyan 297 298 @property 299 def cyan1(self) -> Tag: 300 """abbreviation: `c1`""" 301 return Tag("cyan1") 302 303 @property 304 def c1(self) -> Tag: 305 """cyan1""" 306 return self.cyan1 307 308 @property 309 def cyan2(self) -> Tag: 310 """abbreviation: `c2`""" 311 return Tag("cyan2") 312 313 @property 314 def c2(self) -> Tag: 315 """cyan2""" 316 return self.cyan2 317 318 @property 319 def cyan3(self) -> Tag: 320 """abbreviation: `c3`""" 321 return Tag("cyan3") 322 323 @property 324 def c3(self) -> Tag: 325 """cyan3""" 326 return self.cyan3 327 328 @property 329 def dark_blue(self) -> Tag: 330 """abbreviation: `db`""" 331 return Tag("dark_blue") 332 333 @property 334 def db(self) -> Tag: 335 """dark_blue""" 336 return self.dark_blue 337 338 @property 339 def dark_cyan(self) -> Tag: 340 """abbreviation: `dc`""" 341 return Tag("dark_cyan") 342 343 @property 344 def dc(self) -> Tag: 345 """dark_cyan""" 346 return self.dark_cyan 347 348 @property 349 def dark_goldenrod(self) -> Tag: 350 """abbreviation: `dg`""" 351 return Tag("dark_goldenrod") 352 353 @property 354 def dg(self) -> Tag: 355 """dark_goldenrod""" 356 return self.dark_goldenrod 357 358 @property 359 def dark_green(self) -> Tag: 360 """abbreviation: `dagr`""" 361 return Tag("dark_green") 362 363 @property 364 def dagr(self) -> Tag: 365 """dark_green""" 366 return self.dark_green 367 368 @property 369 def dark_khaki(self) -> Tag: 370 """abbreviation: `dk`""" 371 return Tag("dark_khaki") 372 373 @property 374 def dk(self) -> Tag: 375 """dark_khaki""" 376 return self.dark_khaki 377 378 @property 379 def dark_magenta(self) -> Tag: 380 """abbreviation: `dm`""" 381 return Tag("dark_magenta") 382 383 @property 384 def dm(self) -> Tag: 385 """dark_magenta""" 386 return self.dark_magenta 387 388 @property 389 def dark_olive_green1(self) -> Tag: 390 """abbreviation: `dog1`""" 391 return Tag("dark_olive_green1") 392 393 @property 394 def dog1(self) -> Tag: 395 """dark_olive_green1""" 396 return self.dark_olive_green1 397 398 @property 399 def dark_olive_green2(self) -> Tag: 400 """abbreviation: `dog2`""" 401 return Tag("dark_olive_green2") 402 403 @property 404 def dog2(self) -> Tag: 405 """dark_olive_green2""" 406 return self.dark_olive_green2 407 408 @property 409 def dark_olive_green3(self) -> Tag: 410 """abbreviation: `dog3`""" 411 return Tag("dark_olive_green3") 412 413 @property 414 def dog3(self) -> Tag: 415 """dark_olive_green3""" 416 return self.dark_olive_green3 417 418 @property 419 def dark_orange(self) -> Tag: 420 """abbreviation: `do`""" 421 return Tag("dark_orange") 422 423 @property 424 def do(self) -> Tag: 425 """dark_orange""" 426 return self.dark_orange 427 428 @property 429 def dark_orange3(self) -> Tag: 430 """abbreviation: `do3`""" 431 return Tag("dark_orange3") 432 433 @property 434 def do3(self) -> Tag: 435 """dark_orange3""" 436 return self.dark_orange3 437 438 @property 439 def dark_red(self) -> Tag: 440 """abbreviation: `dr`""" 441 return Tag("dark_red") 442 443 @property 444 def dr(self) -> Tag: 445 """dark_red""" 446 return self.dark_red 447 448 @property 449 def dark_sea_green(self) -> Tag: 450 """abbreviation: `dsg`""" 451 return Tag("dark_sea_green") 452 453 @property 454 def dsg(self) -> Tag: 455 """dark_sea_green""" 456 return self.dark_sea_green 457 458 @property 459 def dark_sea_green1(self) -> Tag: 460 """abbreviation: `dsg1`""" 461 return Tag("dark_sea_green1") 462 463 @property 464 def dsg1(self) -> Tag: 465 """dark_sea_green1""" 466 return self.dark_sea_green1 467 468 @property 469 def dark_sea_green2(self) -> Tag: 470 """abbreviation: `dsg2`""" 471 return Tag("dark_sea_green2") 472 473 @property 474 def dsg2(self) -> Tag: 475 """dark_sea_green2""" 476 return self.dark_sea_green2 477 478 @property 479 def dark_sea_green3(self) -> Tag: 480 """abbreviation: `dsg3`""" 481 return Tag("dark_sea_green3") 482 483 @property 484 def dsg3(self) -> Tag: 485 """dark_sea_green3""" 486 return self.dark_sea_green3 487 488 @property 489 def dark_sea_green4(self) -> Tag: 490 """abbreviation: `dsg4`""" 491 return Tag("dark_sea_green4") 492 493 @property 494 def dsg4(self) -> Tag: 495 """dark_sea_green4""" 496 return self.dark_sea_green4 497 498 @property 499 def dark_slate_gray1(self) -> Tag: 500 """abbreviation: `daslgr1`""" 501 return Tag("dark_slate_gray1") 502 503 @property 504 def daslgr1(self) -> Tag: 505 """dark_slate_gray1""" 506 return self.dark_slate_gray1 507 508 @property 509 def dark_slate_gray2(self) -> Tag: 510 """abbreviation: `daslgr2`""" 511 return Tag("dark_slate_gray2") 512 513 @property 514 def daslgr2(self) -> Tag: 515 """dark_slate_gray2""" 516 return self.dark_slate_gray2 517 518 @property 519 def dark_slate_gray3(self) -> Tag: 520 """abbreviation: `daslgr3`""" 521 return Tag("dark_slate_gray3") 522 523 @property 524 def daslgr3(self) -> Tag: 525 """dark_slate_gray3""" 526 return self.dark_slate_gray3 527 528 @property 529 def dark_turquoise(self) -> Tag: 530 """abbreviation: `dt`""" 531 return Tag("dark_turquoise") 532 533 @property 534 def dt(self) -> Tag: 535 """dark_turquoise""" 536 return self.dark_turquoise 537 538 @property 539 def dark_violet(self) -> Tag: 540 """abbreviation: `dv`""" 541 return Tag("dark_violet") 542 543 @property 544 def dv(self) -> Tag: 545 """dark_violet""" 546 return self.dark_violet 547 548 @property 549 def deep_pink1(self) -> Tag: 550 """abbreviation: `dp1`""" 551 return Tag("deep_pink1") 552 553 @property 554 def dp1(self) -> Tag: 555 """deep_pink1""" 556 return self.deep_pink1 557 558 @property 559 def deep_pink2(self) -> Tag: 560 """abbreviation: `dp2`""" 561 return Tag("deep_pink2") 562 563 @property 564 def dp2(self) -> Tag: 565 """deep_pink2""" 566 return self.deep_pink2 567 568 @property 569 def deep_pink3(self) -> Tag: 570 """abbreviation: `dp3`""" 571 return Tag("deep_pink3") 572 573 @property 574 def dp3(self) -> Tag: 575 """deep_pink3""" 576 return self.deep_pink3 577 578 @property 579 def deep_pink4(self) -> Tag: 580 """abbreviation: `dp4`""" 581 return Tag("deep_pink4") 582 583 @property 584 def dp4(self) -> Tag: 585 """deep_pink4""" 586 return self.deep_pink4 587 588 @property 589 def deep_sky_blue1(self) -> Tag: 590 """abbreviation: `dsb1`""" 591 return Tag("deep_sky_blue1") 592 593 @property 594 def dsb1(self) -> Tag: 595 """deep_sky_blue1""" 596 return self.deep_sky_blue1 597 598 @property 599 def deep_sky_blue2(self) -> Tag: 600 """abbreviation: `dsb2`""" 601 return Tag("deep_sky_blue2") 602 603 @property 604 def dsb2(self) -> Tag: 605 """deep_sky_blue2""" 606 return self.deep_sky_blue2 607 608 @property 609 def deep_sky_blue3(self) -> Tag: 610 """abbreviation: `dsb3`""" 611 return Tag("deep_sky_blue3") 612 613 @property 614 def dsb3(self) -> Tag: 615 """deep_sky_blue3""" 616 return self.deep_sky_blue3 617 618 @property 619 def deep_sky_blue4(self) -> Tag: 620 """abbreviation: `dsb4`""" 621 return Tag("deep_sky_blue4") 622 623 @property 624 def dsb4(self) -> Tag: 625 """deep_sky_blue4""" 626 return self.deep_sky_blue4 627 628 @property 629 def dodger_blue1(self) -> Tag: 630 """abbreviation: `db1`""" 631 return Tag("dodger_blue1") 632 633 @property 634 def db1(self) -> Tag: 635 """dodger_blue1""" 636 return self.dodger_blue1 637 638 @property 639 def dodger_blue2(self) -> Tag: 640 """abbreviation: `db2`""" 641 return Tag("dodger_blue2") 642 643 @property 644 def db2(self) -> Tag: 645 """dodger_blue2""" 646 return self.dodger_blue2 647 648 @property 649 def dodger_blue3(self) -> Tag: 650 """abbreviation: `db3`""" 651 return Tag("dodger_blue3") 652 653 @property 654 def db3(self) -> Tag: 655 """dodger_blue3""" 656 return self.dodger_blue3 657 658 @property 659 def gold1(self) -> Tag: 660 """abbreviation: `go1`""" 661 return Tag("gold1") 662 663 @property 664 def go1(self) -> Tag: 665 """gold1""" 666 return self.gold1 667 668 @property 669 def gold3(self) -> Tag: 670 """abbreviation: `go3`""" 671 return Tag("gold3") 672 673 @property 674 def go3(self) -> Tag: 675 """gold3""" 676 return self.gold3 677 678 @property 679 def green(self) -> Tag: 680 """abbreviation: `g`""" 681 return Tag("green") 682 683 @property 684 def g(self) -> Tag: 685 """green""" 686 return self.green 687 688 @property 689 def green1(self) -> Tag: 690 """abbreviation: `g1`""" 691 return Tag("green1") 692 693 @property 694 def g1(self) -> Tag: 695 """green1""" 696 return self.green1 697 698 @property 699 def green3(self) -> Tag: 700 """abbreviation: `g3`""" 701 return Tag("green3") 702 703 @property 704 def g3(self) -> Tag: 705 """green3""" 706 return self.green3 707 708 @property 709 def green4(self) -> Tag: 710 """abbreviation: `g4`""" 711 return Tag("green4") 712 713 @property 714 def g4(self) -> Tag: 715 """green4""" 716 return self.green4 717 718 @property 719 def green_yellow(self) -> Tag: 720 """abbreviation: `gy`""" 721 return Tag("green_yellow") 722 723 @property 724 def gy(self) -> Tag: 725 """green_yellow""" 726 return self.green_yellow 727 728 @property 729 def grey0(self) -> Tag: 730 """abbreviation: `grey0`""" 731 return Tag("grey0") 732 733 @property 734 def grey100(self) -> Tag: 735 """abbreviation: `grey100`""" 736 return Tag("grey100") 737 738 @property 739 def grey11(self) -> Tag: 740 """abbreviation: `grey11`""" 741 return Tag("grey11") 742 743 @property 744 def grey15(self) -> Tag: 745 """abbreviation: `grey15`""" 746 return Tag("grey15") 747 748 @property 749 def grey19(self) -> Tag: 750 """abbreviation: `grey19`""" 751 return Tag("grey19") 752 753 @property 754 def grey23(self) -> Tag: 755 """abbreviation: `grey23`""" 756 return Tag("grey23") 757 758 @property 759 def grey27(self) -> Tag: 760 """abbreviation: `grey27`""" 761 return Tag("grey27") 762 763 @property 764 def grey3(self) -> Tag: 765 """abbreviation: `grey3`""" 766 return Tag("grey3") 767 768 @property 769 def grey30(self) -> Tag: 770 """abbreviation: `grey30`""" 771 return Tag("grey30") 772 773 @property 774 def grey35(self) -> Tag: 775 """abbreviation: `grey35`""" 776 return Tag("grey35") 777 778 @property 779 def grey37(self) -> Tag: 780 """abbreviation: `grey37`""" 781 return Tag("grey37") 782 783 @property 784 def grey39(self) -> Tag: 785 """abbreviation: `grey39`""" 786 return Tag("grey39") 787 788 @property 789 def grey42(self) -> Tag: 790 """abbreviation: `grey42`""" 791 return Tag("grey42") 792 793 @property 794 def grey46(self) -> Tag: 795 """abbreviation: `grey46`""" 796 return Tag("grey46") 797 798 @property 799 def grey50(self) -> Tag: 800 """abbreviation: `grey50`""" 801 return Tag("grey50") 802 803 @property 804 def grey53(self) -> Tag: 805 """abbreviation: `grey53`""" 806 return Tag("grey53") 807 808 @property 809 def grey54(self) -> Tag: 810 """abbreviation: `grey54`""" 811 return Tag("grey54") 812 813 @property 814 def grey58(self) -> Tag: 815 """abbreviation: `grey58`""" 816 return Tag("grey58") 817 818 @property 819 def grey62(self) -> Tag: 820 """abbreviation: `grey62`""" 821 return Tag("grey62") 822 823 @property 824 def grey63(self) -> Tag: 825 """abbreviation: `grey63`""" 826 return Tag("grey63") 827 828 @property 829 def grey66(self) -> Tag: 830 """abbreviation: `grey66`""" 831 return Tag("grey66") 832 833 @property 834 def grey69(self) -> Tag: 835 """abbreviation: `grey69`""" 836 return Tag("grey69") 837 838 @property 839 def grey7(self) -> Tag: 840 """abbreviation: `grey7`""" 841 return Tag("grey7") 842 843 @property 844 def grey70(self) -> Tag: 845 """abbreviation: `grey70`""" 846 return Tag("grey70") 847 848 @property 849 def grey74(self) -> Tag: 850 """abbreviation: `grey74`""" 851 return Tag("grey74") 852 853 @property 854 def grey78(self) -> Tag: 855 """abbreviation: `grey78`""" 856 return Tag("grey78") 857 858 @property 859 def grey82(self) -> Tag: 860 """abbreviation: `grey82`""" 861 return Tag("grey82") 862 863 @property 864 def grey84(self) -> Tag: 865 """abbreviation: `grey84`""" 866 return Tag("grey84") 867 868 @property 869 def grey85(self) -> Tag: 870 """abbreviation: `grey85`""" 871 return Tag("grey85") 872 873 @property 874 def grey89(self) -> Tag: 875 """abbreviation: `grey89`""" 876 return Tag("grey89") 877 878 @property 879 def grey93(self) -> Tag: 880 """abbreviation: `grey93`""" 881 return Tag("grey93") 882 883 @property 884 def honeydew2(self) -> Tag: 885 """abbreviation: `ho2`""" 886 return Tag("honeydew2") 887 888 @property 889 def ho2(self) -> Tag: 890 """honeydew2""" 891 return self.honeydew2 892 893 @property 894 def hot_pink(self) -> Tag: 895 """abbreviation: `hp`""" 896 return Tag("hot_pink") 897 898 @property 899 def hp(self) -> Tag: 900 """hot_pink""" 901 return self.hot_pink 902 903 @property 904 def hot_pink2(self) -> Tag: 905 """abbreviation: `hp2`""" 906 return Tag("hot_pink2") 907 908 @property 909 def hp2(self) -> Tag: 910 """hot_pink2""" 911 return self.hot_pink2 912 913 @property 914 def hot_pink3(self) -> Tag: 915 """abbreviation: `hp3`""" 916 return Tag("hot_pink3") 917 918 @property 919 def hp3(self) -> Tag: 920 """hot_pink3""" 921 return self.hot_pink3 922 923 @property 924 def indian_red(self) -> Tag: 925 """abbreviation: `ir`""" 926 return Tag("indian_red") 927 928 @property 929 def ir(self) -> Tag: 930 """indian_red""" 931 return self.indian_red 932 933 @property 934 def indian_red1(self) -> Tag: 935 """abbreviation: `ir1`""" 936 return Tag("indian_red1") 937 938 @property 939 def ir1(self) -> Tag: 940 """indian_red1""" 941 return self.indian_red1 942 943 @property 944 def khaki1(self) -> Tag: 945 """abbreviation: `k1`""" 946 return Tag("khaki1") 947 948 @property 949 def k1(self) -> Tag: 950 """khaki1""" 951 return self.khaki1 952 953 @property 954 def khaki3(self) -> Tag: 955 """abbreviation: `k3`""" 956 return Tag("khaki3") 957 958 @property 959 def k3(self) -> Tag: 960 """khaki3""" 961 return self.khaki3 962 963 @property 964 def light_coral(self) -> Tag: 965 """abbreviation: `lc`""" 966 return Tag("light_coral") 967 968 @property 969 def lc(self) -> Tag: 970 """light_coral""" 971 return self.light_coral 972 973 @property 974 def light_cyan1(self) -> Tag: 975 """abbreviation: `lc1`""" 976 return Tag("light_cyan1") 977 978 @property 979 def lc1(self) -> Tag: 980 """light_cyan1""" 981 return self.light_cyan1 982 983 @property 984 def light_cyan3(self) -> Tag: 985 """abbreviation: `lc3`""" 986 return Tag("light_cyan3") 987 988 @property 989 def lc3(self) -> Tag: 990 """light_cyan3""" 991 return self.light_cyan3 992 993 @property 994 def light_goldenrod1(self) -> Tag: 995 """abbreviation: `lg1`""" 996 return Tag("light_goldenrod1") 997 998 @property 999 def lg1(self) -> Tag: 1000 """light_goldenrod1""" 1001 return self.light_goldenrod1 1002 1003 @property 1004 def light_goldenrod2(self) -> Tag: 1005 """abbreviation: `lg2`""" 1006 return Tag("light_goldenrod2") 1007 1008 @property 1009 def lg2(self) -> Tag: 1010 """light_goldenrod2""" 1011 return self.light_goldenrod2 1012 1013 @property 1014 def light_goldenrod3(self) -> Tag: 1015 """abbreviation: `lg3`""" 1016 return Tag("light_goldenrod3") 1017 1018 @property 1019 def lg3(self) -> Tag: 1020 """light_goldenrod3""" 1021 return self.light_goldenrod3 1022 1023 @property 1024 def light_green(self) -> Tag: 1025 """abbreviation: `lg`""" 1026 return Tag("light_green") 1027 1028 @property 1029 def lg(self) -> Tag: 1030 """light_green""" 1031 return self.light_green 1032 1033 @property 1034 def light_pink1(self) -> Tag: 1035 """abbreviation: `lp1`""" 1036 return Tag("light_pink1") 1037 1038 @property 1039 def lp1(self) -> Tag: 1040 """light_pink1""" 1041 return self.light_pink1 1042 1043 @property 1044 def light_pink3(self) -> Tag: 1045 """abbreviation: `lp3`""" 1046 return Tag("light_pink3") 1047 1048 @property 1049 def lp3(self) -> Tag: 1050 """light_pink3""" 1051 return self.light_pink3 1052 1053 @property 1054 def light_pink4(self) -> Tag: 1055 """abbreviation: `lp4`""" 1056 return Tag("light_pink4") 1057 1058 @property 1059 def lp4(self) -> Tag: 1060 """light_pink4""" 1061 return self.light_pink4 1062 1063 @property 1064 def light_salmon1(self) -> Tag: 1065 """abbreviation: `ls1`""" 1066 return Tag("light_salmon1") 1067 1068 @property 1069 def ls1(self) -> Tag: 1070 """light_salmon1""" 1071 return self.light_salmon1 1072 1073 @property 1074 def light_salmon3(self) -> Tag: 1075 """abbreviation: `ls3`""" 1076 return Tag("light_salmon3") 1077 1078 @property 1079 def ls3(self) -> Tag: 1080 """light_salmon3""" 1081 return self.light_salmon3 1082 1083 @property 1084 def light_sea_green(self) -> Tag: 1085 """abbreviation: `lsg`""" 1086 return Tag("light_sea_green") 1087 1088 @property 1089 def lsg(self) -> Tag: 1090 """light_sea_green""" 1091 return self.light_sea_green 1092 1093 @property 1094 def light_sky_blue1(self) -> Tag: 1095 """abbreviation: `lsb1`""" 1096 return Tag("light_sky_blue1") 1097 1098 @property 1099 def lsb1(self) -> Tag: 1100 """light_sky_blue1""" 1101 return self.light_sky_blue1 1102 1103 @property 1104 def light_sky_blue3(self) -> Tag: 1105 """abbreviation: `lsb3`""" 1106 return Tag("light_sky_blue3") 1107 1108 @property 1109 def lsb3(self) -> Tag: 1110 """light_sky_blue3""" 1111 return self.light_sky_blue3 1112 1113 @property 1114 def light_slate_blue(self) -> Tag: 1115 """abbreviation: `lsb`""" 1116 return Tag("light_slate_blue") 1117 1118 @property 1119 def lsb(self) -> Tag: 1120 """light_slate_blue""" 1121 return self.light_slate_blue 1122 1123 @property 1124 def light_slate_grey(self) -> Tag: 1125 """abbreviation: `lislgr`""" 1126 return Tag("light_slate_grey") 1127 1128 @property 1129 def lislgr(self) -> Tag: 1130 """light_slate_grey""" 1131 return self.light_slate_grey 1132 1133 @property 1134 def light_steel_blue(self) -> Tag: 1135 """abbreviation: `listbl`""" 1136 return Tag("light_steel_blue") 1137 1138 @property 1139 def listbl(self) -> Tag: 1140 """light_steel_blue""" 1141 return self.light_steel_blue 1142 1143 @property 1144 def light_steel_blue1(self) -> Tag: 1145 """abbreviation: `listbl1`""" 1146 return Tag("light_steel_blue1") 1147 1148 @property 1149 def listbl1(self) -> Tag: 1150 """light_steel_blue1""" 1151 return self.light_steel_blue1 1152 1153 @property 1154 def light_steel_blue3(self) -> Tag: 1155 """abbreviation: `listbl3`""" 1156 return Tag("light_steel_blue3") 1157 1158 @property 1159 def listbl3(self) -> Tag: 1160 """light_steel_blue3""" 1161 return self.light_steel_blue3 1162 1163 @property 1164 def light_yellow3(self) -> Tag: 1165 """abbreviation: `ly3`""" 1166 return Tag("light_yellow3") 1167 1168 @property 1169 def ly3(self) -> Tag: 1170 """light_yellow3""" 1171 return self.light_yellow3 1172 1173 @property 1174 def magenta(self) -> Tag: 1175 """abbreviation: `m`""" 1176 return Tag("magenta") 1177 1178 @property 1179 def m(self) -> Tag: 1180 """magenta""" 1181 return self.magenta 1182 1183 @property 1184 def magenta1(self) -> Tag: 1185 """abbreviation: `m1`""" 1186 return Tag("magenta1") 1187 1188 @property 1189 def m1(self) -> Tag: 1190 """magenta1""" 1191 return self.magenta1 1192 1193 @property 1194 def magenta2(self) -> Tag: 1195 """abbreviation: `m2`""" 1196 return Tag("magenta2") 1197 1198 @property 1199 def m2(self) -> Tag: 1200 """magenta2""" 1201 return self.magenta2 1202 1203 @property 1204 def magenta3(self) -> Tag: 1205 """abbreviation: `m3`""" 1206 return Tag("magenta3") 1207 1208 @property 1209 def m3(self) -> Tag: 1210 """magenta3""" 1211 return self.magenta3 1212 1213 @property 1214 def medium_orchid(self) -> Tag: 1215 """abbreviation: `mo`""" 1216 return Tag("medium_orchid") 1217 1218 @property 1219 def mo(self) -> Tag: 1220 """medium_orchid""" 1221 return self.medium_orchid 1222 1223 @property 1224 def medium_orchid1(self) -> Tag: 1225 """abbreviation: `mo1`""" 1226 return Tag("medium_orchid1") 1227 1228 @property 1229 def mo1(self) -> Tag: 1230 """medium_orchid1""" 1231 return self.medium_orchid1 1232 1233 @property 1234 def medium_orchid3(self) -> Tag: 1235 """abbreviation: `mo3`""" 1236 return Tag("medium_orchid3") 1237 1238 @property 1239 def mo3(self) -> Tag: 1240 """medium_orchid3""" 1241 return self.medium_orchid3 1242 1243 @property 1244 def medium_purple(self) -> Tag: 1245 """abbreviation: `mp`""" 1246 return Tag("medium_purple") 1247 1248 @property 1249 def mp(self) -> Tag: 1250 """medium_purple""" 1251 return self.medium_purple 1252 1253 @property 1254 def medium_purple1(self) -> Tag: 1255 """abbreviation: `mp1`""" 1256 return Tag("medium_purple1") 1257 1258 @property 1259 def mp1(self) -> Tag: 1260 """medium_purple1""" 1261 return self.medium_purple1 1262 1263 @property 1264 def medium_purple2(self) -> Tag: 1265 """abbreviation: `mp2`""" 1266 return Tag("medium_purple2") 1267 1268 @property 1269 def mp2(self) -> Tag: 1270 """medium_purple2""" 1271 return self.medium_purple2 1272 1273 @property 1274 def medium_purple3(self) -> Tag: 1275 """abbreviation: `mp3`""" 1276 return Tag("medium_purple3") 1277 1278 @property 1279 def mp3(self) -> Tag: 1280 """medium_purple3""" 1281 return self.medium_purple3 1282 1283 @property 1284 def medium_purple4(self) -> Tag: 1285 """abbreviation: `mp4`""" 1286 return Tag("medium_purple4") 1287 1288 @property 1289 def mp4(self) -> Tag: 1290 """medium_purple4""" 1291 return self.medium_purple4 1292 1293 @property 1294 def medium_spring_green(self) -> Tag: 1295 """abbreviation: `msg`""" 1296 return Tag("medium_spring_green") 1297 1298 @property 1299 def msg(self) -> Tag: 1300 """medium_spring_green""" 1301 return self.medium_spring_green 1302 1303 @property 1304 def medium_turquoise(self) -> Tag: 1305 """abbreviation: `mt`""" 1306 return Tag("medium_turquoise") 1307 1308 @property 1309 def mt(self) -> Tag: 1310 """medium_turquoise""" 1311 return self.medium_turquoise 1312 1313 @property 1314 def medium_violet_red(self) -> Tag: 1315 """abbreviation: `mvr`""" 1316 return Tag("medium_violet_red") 1317 1318 @property 1319 def mvr(self) -> Tag: 1320 """medium_violet_red""" 1321 return self.medium_violet_red 1322 1323 @property 1324 def misty_rose1(self) -> Tag: 1325 """abbreviation: `mr1`""" 1326 return Tag("misty_rose1") 1327 1328 @property 1329 def mr1(self) -> Tag: 1330 """misty_rose1""" 1331 return self.misty_rose1 1332 1333 @property 1334 def misty_rose3(self) -> Tag: 1335 """abbreviation: `mr3`""" 1336 return Tag("misty_rose3") 1337 1338 @property 1339 def mr3(self) -> Tag: 1340 """misty_rose3""" 1341 return self.misty_rose3 1342 1343 @property 1344 def navajo_white1(self) -> Tag: 1345 """abbreviation: `nw1`""" 1346 return Tag("navajo_white1") 1347 1348 @property 1349 def nw1(self) -> Tag: 1350 """navajo_white1""" 1351 return self.navajo_white1 1352 1353 @property 1354 def navajo_white3(self) -> Tag: 1355 """abbreviation: `nw3`""" 1356 return Tag("navajo_white3") 1357 1358 @property 1359 def nw3(self) -> Tag: 1360 """navajo_white3""" 1361 return self.navajo_white3 1362 1363 @property 1364 def navy_blue(self) -> Tag: 1365 """abbreviation: `nb`""" 1366 return Tag("navy_blue") 1367 1368 @property 1369 def nb(self) -> Tag: 1370 """navy_blue""" 1371 return self.navy_blue 1372 1373 @property 1374 def orange1(self) -> Tag: 1375 """abbreviation: `o1`""" 1376 return Tag("orange1") 1377 1378 @property 1379 def o1(self) -> Tag: 1380 """orange1""" 1381 return self.orange1 1382 1383 @property 1384 def orange3(self) -> Tag: 1385 """abbreviation: `o3`""" 1386 return Tag("orange3") 1387 1388 @property 1389 def o3(self) -> Tag: 1390 """orange3""" 1391 return self.orange3 1392 1393 @property 1394 def orange4(self) -> Tag: 1395 """abbreviation: `o4`""" 1396 return Tag("orange4") 1397 1398 @property 1399 def o4(self) -> Tag: 1400 """orange4""" 1401 return self.orange4 1402 1403 @property 1404 def orange_red1(self) -> Tag: 1405 """abbreviation: `orre1`""" 1406 return Tag("orange_red1") 1407 1408 @property 1409 def orre1(self) -> Tag: 1410 """orange_red1""" 1411 return self.orange_red1 1412 1413 @property 1414 def orchid(self) -> Tag: 1415 """abbreviation: `or_`""" 1416 return Tag("orchid") 1417 1418 @property 1419 def or_(self) -> Tag: 1420 """orchid""" 1421 return self.orchid 1422 1423 @property 1424 def orchid1(self) -> Tag: 1425 """abbreviation: `or1`""" 1426 return Tag("orchid1") 1427 1428 @property 1429 def or1(self) -> Tag: 1430 """orchid1""" 1431 return self.orchid1 1432 1433 @property 1434 def orchid2(self) -> Tag: 1435 """abbreviation: `or2`""" 1436 return Tag("orchid2") 1437 1438 @property 1439 def or2(self) -> Tag: 1440 """orchid2""" 1441 return self.orchid2 1442 1443 @property 1444 def pale_green1(self) -> Tag: 1445 """abbreviation: `pg1`""" 1446 return Tag("pale_green1") 1447 1448 @property 1449 def pg1(self) -> Tag: 1450 """pale_green1""" 1451 return self.pale_green1 1452 1453 @property 1454 def pale_green3(self) -> Tag: 1455 """abbreviation: `pg3`""" 1456 return Tag("pale_green3") 1457 1458 @property 1459 def pg3(self) -> Tag: 1460 """pale_green3""" 1461 return self.pale_green3 1462 1463 @property 1464 def pale_turquoise1(self) -> Tag: 1465 """abbreviation: `pt1`""" 1466 return Tag("pale_turquoise1") 1467 1468 @property 1469 def pt1(self) -> Tag: 1470 """pale_turquoise1""" 1471 return self.pale_turquoise1 1472 1473 @property 1474 def pale_turquoise4(self) -> Tag: 1475 """abbreviation: `pt4`""" 1476 return Tag("pale_turquoise4") 1477 1478 @property 1479 def pt4(self) -> Tag: 1480 """pale_turquoise4""" 1481 return self.pale_turquoise4 1482 1483 @property 1484 def pale_violet_red1(self) -> Tag: 1485 """abbreviation: `pvr1`""" 1486 return Tag("pale_violet_red1") 1487 1488 @property 1489 def pvr1(self) -> Tag: 1490 """pale_violet_red1""" 1491 return self.pale_violet_red1 1492 1493 @property 1494 def pink1(self) -> Tag: 1495 """abbreviation: `p1`""" 1496 return Tag("pink1") 1497 1498 @property 1499 def p1(self) -> Tag: 1500 """pink1""" 1501 return self.pink1 1502 1503 @property 1504 def pink3(self) -> Tag: 1505 """abbreviation: `p3`""" 1506 return Tag("pink3") 1507 1508 @property 1509 def p3(self) -> Tag: 1510 """pink3""" 1511 return self.pink3 1512 1513 @property 1514 def plum1(self) -> Tag: 1515 """abbreviation: `pl1`""" 1516 return Tag("plum1") 1517 1518 @property 1519 def pl1(self) -> Tag: 1520 """plum1""" 1521 return self.plum1 1522 1523 @property 1524 def plum2(self) -> Tag: 1525 """abbreviation: `pl2`""" 1526 return Tag("plum2") 1527 1528 @property 1529 def pl2(self) -> Tag: 1530 """plum2""" 1531 return self.plum2 1532 1533 @property 1534 def plum3(self) -> Tag: 1535 """abbreviation: `pl3`""" 1536 return Tag("plum3") 1537 1538 @property 1539 def pl3(self) -> Tag: 1540 """plum3""" 1541 return self.plum3 1542 1543 @property 1544 def plum4(self) -> Tag: 1545 """abbreviation: `pl4`""" 1546 return Tag("plum4") 1547 1548 @property 1549 def pl4(self) -> Tag: 1550 """plum4""" 1551 return self.plum4 1552 1553 @property 1554 def purple(self) -> Tag: 1555 """abbreviation: `pu`""" 1556 return Tag("purple") 1557 1558 @property 1559 def pu(self) -> Tag: 1560 """purple""" 1561 return self.purple 1562 1563 @property 1564 def purple3(self) -> Tag: 1565 """abbreviation: `pu3`""" 1566 return Tag("purple3") 1567 1568 @property 1569 def pu3(self) -> Tag: 1570 """purple3""" 1571 return self.purple3 1572 1573 @property 1574 def purple4(self) -> Tag: 1575 """abbreviation: `pu4`""" 1576 return Tag("purple4") 1577 1578 @property 1579 def pu4(self) -> Tag: 1580 """purple4""" 1581 return self.purple4 1582 1583 @property 1584 def red(self) -> Tag: 1585 """abbreviation: `r`""" 1586 return Tag("red") 1587 1588 @property 1589 def r(self) -> Tag: 1590 """red""" 1591 return self.red 1592 1593 @property 1594 def red1(self) -> Tag: 1595 """abbreviation: `r1`""" 1596 return Tag("red1") 1597 1598 @property 1599 def r1(self) -> Tag: 1600 """red1""" 1601 return self.red1 1602 1603 @property 1604 def red3(self) -> Tag: 1605 """abbreviation: `r3`""" 1606 return Tag("red3") 1607 1608 @property 1609 def r3(self) -> Tag: 1610 """red3""" 1611 return self.red3 1612 1613 @property 1614 def rosy_brown(self) -> Tag: 1615 """abbreviation: `rb`""" 1616 return Tag("rosy_brown") 1617 1618 @property 1619 def rb(self) -> Tag: 1620 """rosy_brown""" 1621 return self.rosy_brown 1622 1623 @property 1624 def royal_blue1(self) -> Tag: 1625 """abbreviation: `rb1`""" 1626 return Tag("royal_blue1") 1627 1628 @property 1629 def rb1(self) -> Tag: 1630 """royal_blue1""" 1631 return self.royal_blue1 1632 1633 @property 1634 def salmon1(self) -> Tag: 1635 """abbreviation: `s1`""" 1636 return Tag("salmon1") 1637 1638 @property 1639 def s1(self) -> Tag: 1640 """salmon1""" 1641 return self.salmon1 1642 1643 @property 1644 def sandy_brown(self) -> Tag: 1645 """abbreviation: `sb`""" 1646 return Tag("sandy_brown") 1647 1648 @property 1649 def sb(self) -> Tag: 1650 """sandy_brown""" 1651 return self.sandy_brown 1652 1653 @property 1654 def sea_green1(self) -> Tag: 1655 """abbreviation: `sg1`""" 1656 return Tag("sea_green1") 1657 1658 @property 1659 def sg1(self) -> Tag: 1660 """sea_green1""" 1661 return self.sea_green1 1662 1663 @property 1664 def sea_green2(self) -> Tag: 1665 """abbreviation: `sg2`""" 1666 return Tag("sea_green2") 1667 1668 @property 1669 def sg2(self) -> Tag: 1670 """sea_green2""" 1671 return self.sea_green2 1672 1673 @property 1674 def sea_green3(self) -> Tag: 1675 """abbreviation: `sg3`""" 1676 return Tag("sea_green3") 1677 1678 @property 1679 def sg3(self) -> Tag: 1680 """sea_green3""" 1681 return self.sea_green3 1682 1683 @property 1684 def sky_blue1(self) -> Tag: 1685 """abbreviation: `sb1`""" 1686 return Tag("sky_blue1") 1687 1688 @property 1689 def sb1(self) -> Tag: 1690 """sky_blue1""" 1691 return self.sky_blue1 1692 1693 @property 1694 def sky_blue2(self) -> Tag: 1695 """abbreviation: `sb2`""" 1696 return Tag("sky_blue2") 1697 1698 @property 1699 def sb2(self) -> Tag: 1700 """sky_blue2""" 1701 return self.sky_blue2 1702 1703 @property 1704 def sky_blue3(self) -> Tag: 1705 """abbreviation: `sb3`""" 1706 return Tag("sky_blue3") 1707 1708 @property 1709 def sb3(self) -> Tag: 1710 """sky_blue3""" 1711 return self.sky_blue3 1712 1713 @property 1714 def slate_blue1(self) -> Tag: 1715 """abbreviation: `slbl1`""" 1716 return Tag("slate_blue1") 1717 1718 @property 1719 def slbl1(self) -> Tag: 1720 """slate_blue1""" 1721 return self.slate_blue1 1722 1723 @property 1724 def slate_blue3(self) -> Tag: 1725 """abbreviation: `slbl3`""" 1726 return Tag("slate_blue3") 1727 1728 @property 1729 def slbl3(self) -> Tag: 1730 """slate_blue3""" 1731 return self.slate_blue3 1732 1733 @property 1734 def spring_green1(self) -> Tag: 1735 """abbreviation: `spgr1`""" 1736 return Tag("spring_green1") 1737 1738 @property 1739 def spgr1(self) -> Tag: 1740 """spring_green1""" 1741 return self.spring_green1 1742 1743 @property 1744 def spring_green2(self) -> Tag: 1745 """abbreviation: `spgr2`""" 1746 return Tag("spring_green2") 1747 1748 @property 1749 def spgr2(self) -> Tag: 1750 """spring_green2""" 1751 return self.spring_green2 1752 1753 @property 1754 def spring_green3(self) -> Tag: 1755 """abbreviation: `spgr3`""" 1756 return Tag("spring_green3") 1757 1758 @property 1759 def spgr3(self) -> Tag: 1760 """spring_green3""" 1761 return self.spring_green3 1762 1763 @property 1764 def spring_green4(self) -> Tag: 1765 """abbreviation: `spgr4`""" 1766 return Tag("spring_green4") 1767 1768 @property 1769 def spgr4(self) -> Tag: 1770 """spring_green4""" 1771 return self.spring_green4 1772 1773 @property 1774 def steel_blue(self) -> Tag: 1775 """abbreviation: `stbl`""" 1776 return Tag("steel_blue") 1777 1778 @property 1779 def stbl(self) -> Tag: 1780 """steel_blue""" 1781 return self.steel_blue 1782 1783 @property 1784 def steel_blue1(self) -> Tag: 1785 """abbreviation: `stbl1`""" 1786 return Tag("steel_blue1") 1787 1788 @property 1789 def stbl1(self) -> Tag: 1790 """steel_blue1""" 1791 return self.steel_blue1 1792 1793 @property 1794 def steel_blue3(self) -> Tag: 1795 """abbreviation: `stbl3`""" 1796 return Tag("steel_blue3") 1797 1798 @property 1799 def stbl3(self) -> Tag: 1800 """steel_blue3""" 1801 return self.steel_blue3 1802 1803 @property 1804 def tan(self) -> Tag: 1805 """abbreviation: `ta`""" 1806 return Tag("tan") 1807 1808 @property 1809 def ta(self) -> Tag: 1810 """tan""" 1811 return self.tan 1812 1813 @property 1814 def thistle1(self) -> Tag: 1815 """abbreviation: `th1`""" 1816 return Tag("thistle1") 1817 1818 @property 1819 def th1(self) -> Tag: 1820 """thistle1""" 1821 return self.thistle1 1822 1823 @property 1824 def thistle3(self) -> Tag: 1825 """abbreviation: `th3`""" 1826 return Tag("thistle3") 1827 1828 @property 1829 def th3(self) -> Tag: 1830 """thistle3""" 1831 return self.thistle3 1832 1833 @property 1834 def turquoise2(self) -> Tag: 1835 """abbreviation: `t2`""" 1836 return Tag("turquoise2") 1837 1838 @property 1839 def t2(self) -> Tag: 1840 """turquoise2""" 1841 return self.turquoise2 1842 1843 @property 1844 def turquoise4(self) -> Tag: 1845 """abbreviation: `t4`""" 1846 return Tag("turquoise4") 1847 1848 @property 1849 def t4(self) -> Tag: 1850 """turquoise4""" 1851 return self.turquoise4 1852 1853 @property 1854 def violet(self) -> Tag: 1855 """abbreviation: `v`""" 1856 return Tag("violet") 1857 1858 @property 1859 def v(self) -> Tag: 1860 """violet""" 1861 return self.violet 1862 1863 @property 1864 def wheat1(self) -> Tag: 1865 """abbreviation: `wh1`""" 1866 return Tag("wheat1") 1867 1868 @property 1869 def wh1(self) -> Tag: 1870 """wheat1""" 1871 return self.wheat1 1872 1873 @property 1874 def wheat4(self) -> Tag: 1875 """abbreviation: `wh4`""" 1876 return Tag("wheat4") 1877 1878 @property 1879 def wh4(self) -> Tag: 1880 """wheat4""" 1881 return self.wheat4 1882 1883 @property 1884 def white(self) -> Tag: 1885 """abbreviation: `w`""" 1886 return Tag("white") 1887 1888 @property 1889 def w(self) -> Tag: 1890 """white""" 1891 return self.white 1892 1893 @property 1894 def yellow(self) -> Tag: 1895 """abbreviation: `y`""" 1896 return Tag("yellow") 1897 1898 @property 1899 def y(self) -> Tag: 1900 """yellow""" 1901 return self.yellow 1902 1903 @property 1904 def yellow1(self) -> Tag: 1905 """abbreviation: `y1`""" 1906 return Tag("yellow1") 1907 1908 @property 1909 def y1(self) -> Tag: 1910 """yellow1""" 1911 return self.yellow1 1912 1913 @property 1914 def yellow2(self) -> Tag: 1915 """abbreviation: `y2`""" 1916 return Tag("yellow2") 1917 1918 @property 1919 def y2(self) -> Tag: 1920 """yellow2""" 1921 return self.yellow2 1922 1923 @property 1924 def yellow3(self) -> Tag: 1925 """abbreviation: `y3`""" 1926 return Tag("yellow3") 1927 1928 @property 1929 def y3(self) -> Tag: 1930 """yellow3""" 1931 return self.yellow3 1932 1933 @property 1934 def yellow4(self) -> Tag: 1935 """abbreviation: `y4`""" 1936 return Tag("yellow4") 1937 1938 @property 1939 def y4(self) -> Tag: 1940 """yellow4""" 1941 return self.yellow4
Color map for the rich colors at https://rich.readthedocs.io/en/stable/appendix/colors.html
See color options conveniently with your IDE's autocomplete.
Each color has two Tag
properties: one using the full name and one using an abbreviation.
ColorMap.aquamarine1
and ColorMap.a1
return equivalent Tag
instances.
>>> from rich import print
>>> 'To alternate colors, instead of doing this:'
>>> print("[aquamarine1]This [light_pink4]is [aquamarine]a [light_pink4]string")
>>> 'You can do:'
>>> c = ColorMap()
>>> print(f"{c.a1}This {c.lp4}is {c.a1}a {c.lp4}string")