Last updated:
0 purchases
pythondpcolors 0.1.1
# python-dpcolors[![Build Status](https://travis-ci.org/nsavch/python-dpcolors.svg?branch=master)](https://travis-ci.org/nsavch/python-dpcolors)Python library for converting DarkPlaces color strings to various other formatsSupports the following conversions * dp -> irc * dp -> ansi 8 bit * dp -> ansi 24 bit * irc -> dp * irc -> ansi 8 bit * irc -> ansi 24 bit# Installation```bashpip install python-dpcolors```# Example usage```pythonfrom dpcolors import ColorStringcs = ColorString.from_dp('^3hello')print(cs.to_irc())print(cs.to_ansi_8bit())print(cs.to_ansi_24bit())cs = ColorString.from_irc('\x0305hello')print(cs.to_dp())```
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.