This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Html exposing (Html) | |
import Html.Attributes exposing (style) | |
import Color exposing (Color) | |
import Mouse | |
(=>) = (,) | |
toRgbaString color = | |
let {red, green, blue, alpha} = Color.toRgb color | |
in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Html exposing (Html) | |
import Html.Attributes exposing (style) | |
import Color exposing (Color) | |
(=>) = (,) | |
toRgbaString color = | |
let {red, green, blue, alpha} = Color.toRgb color | |
in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Html exposing (Html) | |
import Html.Attributes | |
import Html.Events | |
import Mouse | |
import Signal exposing (Signal, Address) | |
import StartApp | |
import Json.Decode exposing ((:=)) | |
import List |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Html exposing (Html, Attribute) | |
import Html.Attributes | |
import Html.Events | |
import Signal exposing (Address) | |
import Json.Decode exposing (Decoder, (:=)) | |
import Time | |
import List |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import String | |
import List | |
infixl 2 => | |
(=>) = (,) | |
type Json | |
= Number Float | |
| String String |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Html exposing (Html, Attribute) | |
import Html.Attributes | |
import Html.Events | |
import Signal exposing (Address, Message) | |
import List | |
import Json.Decode exposing (Decoder, (:=)) | |
------------------- | |
--- HELPER CODE --- | |
------------------- | |
nth : Int -> List a -> Maybe a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Html exposing (Html) | |
import Html.Attributes | |
import Html.Events | |
import Signal exposing (Address) | |
import List | |
import Window | |
----------------- | |
-- HELPER CODE -- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Html exposing (Html) | |
import Html.Attributes | |
import Signal exposing (Address) | |
import List | |
infixl 2 => | |
(=>) = (,) | |
type alias Vector = | |
{ x : Float , y : Float } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Html exposing (Html) | |
import Html.Attributes | |
import Html.Events | |
import Signal exposing (Address) | |
import Json.Decode exposing (Decoder, (:=)) | |
import List | |
------- |