reanimate-1.1.3.0: Animation library based on SVGs.
CopyrightWritten by David Himmelstrup
LicenseUnlicense
Maintainerlemmih@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Reanimate.Builtin.CirclePlot

Description

Convenience module for rendering circle plots.

Synopsis

Documentation

circlePlot Source #

Arguments

:: Int

Number of diagonal pixels. Only affects quality, not size.

-> (Double -> Double -> PixelRGBA8)

Angle and radius in radians and percent respectively.

-> Tree 

Circle plots are scaled to screenHeight.

Example:

circlePlot 500 $ \ang r ->
  promotePixel $ toRGB8 $ uncurryRGB sRGB $ hsv (ang/pi*180) r 1