reanimate-0.3.1.0: Animation library based on SVGs.

Safe HaskellNone
LanguageHaskell2010

Reanimate.Builtin.CirclePlot

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