Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Icon courtesy of Icograms.com

Christopher William Schankula CSchank

💭
Icon courtesy of Icograms.com
View GitHub Profile
@CSchank
CSchank / Hearts.elm
Last active May 19, 2020
Many different hearts in Elm, using functions!!
View Hearts.elm
myShapes model = [
{-
This code is for a picture of a playing card.
The card is a 6 of hearts.
-}
text "Example 1" |> centered |> filled black |> move(0,55)
, heart red orange |> move (0, 40)
, heart yellow blue |> move (20,40)
, heart green pink |> move (40,40)
, heart purple red |> move (60,40)
View Blank.elm
-- Copy to macoutreach.rocks animation slot
myShapes model =
[
myFunction 5 -- replace 5 with different number for different depth
]
myFunction n =
if n <= 0 then
group []