Documentation ¶
Overview ¶
Package isdf provides a single function to convert an input image into its Signed Distance Field representation. See https://github.com/mattdesl/image-sdf for the reference implementation used.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImageToSDF ¶
ImageToSDF converts an image using the image.Image interface to its Signed Distance Field representation. Spread affects the width of the distance fields while downscale decreases the resolution of the output image. A downscale value of 2.0 will turn a 512px image to 256px; 4.0 will result in a 128px output image. Converting from a high resolution image to a low resolution image results in better quality.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.