Vivid.Transformable protocol (vivid v0.4.5)

Copy Markdown View Source

This protocol is used to apply point transformations to a shape.

Summary

Types

t()

All the types that implement this protocol.

Functions

Transform all of a shape's points using fun.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

transform(shape, fun)

@spec transform(Vivid.Shape.t(), function()) :: Vivid.Shape.t()

Transform all of a shape's points using fun.