Metadata-Version: 2.1
Name: lrtools
Version: 1.0.1
Summary: Python library for loading and writing Line Rider tracks
Home-page: https://github.com/Conqu3red/trk-python
Author: Conqu3red
License: UNKNOWN
Platform: UNKNOWN
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# TRK-Loader-Python
 Line Rider .trk format implemented in Python 3


# Loading Tracks
```python
from lrtools.trkformat import * # trk format
from lrtools.track import * # track and line objects
from lrtools.utils import * # utilities
```
To load a track `name.trk`:
```python
track = load_trk("track.trk", "name")
```
# Saving Tracks
```python
from lrtools.trkformat import * # trk format
from lrtools.track import * # track and line objects
from lrtools.utils import * # utilities
```
To save a track as `name.trk`:
```python
track = Track()
save_trk(track, "name.trk")
```

# Track Structure
```python
# assuming track is a Track object:
track.YGravity : int # Y gravity
track.XGravity : int # X gravity
track.GravityWellSize : int # Gravity well size
track.BGColorR : int
track.BGColorG : int
track.BGColorB : int
track.LineColorR : int
track.LineColorG : int
track.LineColorB : int
track.lines : List[Line]
track.Filename : str
track.Name : str
track.Remount : bool
track.ZeroStart : bool
track.frictionless : bool
track.ver : int (61 or 62)
track.StartOffset : Vector
track.Triggers : list
track.StartZoom : int
track.current_id : int
track.Triggers : list
```
# Todo
- Add `prune()` method to `Track.Track` to prune line IDs
- write the rest of the docs on other parts line line triggers and the `Line` object
- Add JSON support

