Moved from gim to gg for image creation
This commit is contained in:
37
README.md
37
README.md
@@ -31,17 +31,19 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
portalcode := nmslib.RndPortal()
|
||||
galaticAddress, _ := nmslib.P2gc(portalcode)
|
||||
fmt.Printf("Random portal code: %s\n", portalcode)
|
||||
|
||||
fmt.Printf("%s >> %s\n", portalcode, galaticAddress)
|
||||
nmslib.CreateBanner(portalcode, "./banners/"+portalcode+".png", 10)
|
||||
fmt.Printf("saving image to ./banners/%s.png\n", portalcode)
|
||||
|
||||
fmt.Println("Translating \"KIHTYOMOLES\" from Korvax To English: " + nmslib.Translate{Word: "KIHTYOMOLES"}.Kor2Eng())
|
||||
korvax := nmslib.Translate{Word: "Contraband"}
|
||||
fmt.Println("Translating \"Contraband\" from English to Korvax: " + korvax.Eng2Kor())
|
||||
portalcode := "21F2F8EDB94D"
|
||||
galacticCoords, err := nmslib.P2gc(portalcode)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Printf("Input:\t%s\nOutput:\t%s\n", portalcode, galacticCoords)
|
||||
|
||||
nmslib.CreateBanner(portalcode, "./NMH-BlueDream.png", 0)
|
||||
nmslib.CreateBanner(RndPortal(), "./Random.png", 0)
|
||||
|
||||
fmt.Println(nmslib.Translate{Word: "KIHTYOMOLES"}.Kor2Eng())
|
||||
korvax := nmslib.Translate{Word: "Contraband"}
|
||||
fmt.Println(korvax.Eng2Kor())
|
||||
}
|
||||
|
||||
|
||||
@@ -62,13 +64,13 @@ This function takes 3 parameters:
|
||||
|
||||
**Example:**
|
||||
|
||||
Horizontal Layout for Galactic Hub [HUB10-6A Icarus Sun](https://nomanssky.gamepedia.com/HUB10-6A_Icarus_Sun) Eniwa 68/L3
|
||||
Horizontal Layout for the NMH Capital planet [Blue Dream (aka Omins XI)](https://nomanssky.fandom.com/wiki/Omins_XI) in the [Notric-Lis XIII](https://nomanssky.fandom.com/wiki/Notric-Lis_XIII) system in the [Lahanhar Conflux](https://nomanssky.fandom.com/wiki/Lahanhar_Conflux) region
|
||||
|
||||
```golang
|
||||
nmslib.CreateBanner("006AFA556C30", "NewLennon.png", 0)
|
||||
nmslib.CreateBanner("21F2F8EDB94D", "NMH-BlueDream.png", 0)
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
Vertical layout for a random address
|
||||
|
||||
@@ -93,7 +95,7 @@ This function only takes 1 parameter and returns a string and error
|
||||
**Example:**
|
||||
|
||||
```golang
|
||||
ga, _ := nmslib.P3gc("21F2F8EDB94D")
|
||||
ga, _ := nmslib.P2gc("21F2F8EDB94D")
|
||||
fmt.Println(ga)
|
||||
```
|
||||
|
||||
@@ -103,14 +105,15 @@ Output:
|
||||
|
||||
### Converting Galactic coordinates to Portal codes with Gc2p()
|
||||
|
||||
This function only takes 1 parameter and returns a string and error
|
||||
This function only takes 2 parameters and returns a string and error
|
||||
|
||||
* galacticaddress: 16 char 4 block hex address
|
||||
* Planet ID [1-6]
|
||||
|
||||
**Example:**
|
||||
|
||||
```golang
|
||||
pc, _ := nmslib.P3gc("014C:0077:06DA:01F2")
|
||||
pc, _ := nmslib.Gc2p("014C:0077:06DA:01F2", 2)
|
||||
fmt.Println(pc)
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user