Safe Haskell | None |
---|---|
Language | Haskell98 |
Parameter
Description
Warning: This is an experimental API. It can change at any time.
Synopsis
- data Parameter
- parametricDrawingOf :: ([Parameter], [Number] -> Picture) -> Program
- slider :: Text -> Parameter
- toggle :: Text -> Parameter
- counter :: Text -> Parameter
- constant :: (Text, Number) -> Parameter
- random :: Text -> Parameter
- timer :: Text -> Parameter
- currentHour :: Parameter
- currentMinute :: Parameter
- currentSecond :: Parameter
- converted :: (Parameter, Number -> Number) -> Parameter
- renamed :: (Parameter, Text) -> Parameter
Documentation
parametricDrawingOf :: ([Parameter], [Number] -> Picture) -> Program #
A drawing that depends on parameters. The first argument is a list of parameters. The second is a picture, which depends on the values of those parameters. Each number used to retrieve the picture is the value of the corresponding parameter in the first list.
constant :: (Text, Number) -> Parameter #
A Parameter
with a constant value, and no way to change it.
A Parameter
that has a randomly chosen value. It offers a button to
regenerate its value.