Documentation ¶
Overview ¶
Package utils provide utility functions that helps development across the project.
Index ¶
- Constants
- func Fill_color(value float64) string
- func Hash(s string) string
- func Hex_val(str string, index, length int) float64
- func Map(value, a_min, a_max, b_min, b_max float64) float64
- func Merge(map_a map[string]interface{}, map_b map[string]interface{}) map[string]interface{}
- func Opacity(value float64) float64
Constants ¶
View Source
const ( BASE_COLOR string = "#9e2c7b" STROKE_COLOR string = "#000" STROKE_OPACITY float64 = 0.02 FILL_COLOR_DARK string = "#222" FILL_COLOR_LIGHT string = "#ddd" OPACITY_MIN float64 = 0.02 OPACITY_MAX float64 = 0.15 )
constants representing stroke, fill's opacity and color, base color, minimum and maximum opacity value
Variables ¶
This section is empty.
Functions ¶
func Fill_color ¶
Fill_color returns string to be used for fill color
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.