This file will become your README and also the index of your documentation.
If you are new to using nbdev here are some useful pointers to get you
started.
# make sure HexMagic package is installed in development mode
$ pip install -e .
# make changes under nbs/ directory
# ...
# compile to have changes apply to HexMagic
$ nbdev_prepare
from HexMagic.core import MapPath, MapSize, MapRect, MapCord , PrimitiveDemo
from HexMagic.core import Hex
from HexMagic.core import StyleCSS, SVGBuilder
from HexMagic.core import HexGrid, HexPosition , HexRegion, GosperCurve, windy_edge , unique_windy_edge
from HexMagic.core import Terrain
from HexMagic.core import ClimatePreset, Climate
mySize = MapSize(480,480)
myBounds = MapRect(MapCord(0,0), mySize)
sampleMap, plates = Terrain.fromSeeds(myBounds,radius=10)
sampleMap.colorMap()
sgrid = sampleMap.hexGrid
sgrid.builder.adjust("regions", sgrid.styleLayer(f=windy_edge(iterations=2, offset_factor=0.1)))
sampleMap.hexGrid.builder.show()
Install latest from the GitHub repository:
$ pip install git+https://github.com/ArthurConner/HexMagic.git
or from conda
$ conda install -c ArthurConner HexMagic
or from pypi
$ pip install HexMagic
Documentation can be found hosted on this GitHub repository’s pages. Additionally you can find package manager specific guidelines on conda and pypi respectively.
Fill me in please! Don’t forget code examples:
1+1