@icenore/ng-tm-colors-text
v1.3.2
Published
A program that take a Trackmania text with $ code and return a style for every chars
Downloads
17
Maintainers
Readme
Description
It's a package for Angular
application, in Typescript.
If you want the package in javascript, you can use tm-colors-text
.
This package return an array with each char of a text with style to be used in ngFor.
Installation
$ npm install --save @icenore/ng-tm-colors-text
Usage
Import
import { TmColorsText } from '@icenore/ng-tm-colors-text';
Return
This return an array of Object like this:
[{
"char": "a",
"style": "color: #FFF; font-size: 18px; font-weight: normal; text-shadow: none;",
"index": "0"
}]