utils

package
v0.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcCoords

func CalcCoords(p image.Point, bounds image.Rectangle) image.Point

CalclCoords calculates the coordinates wrt to the bounds. it scales accordingly

func Scale

func Scale(w, h int, bounds image.Rectangle) (int, int)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL