diff --git a/.codesandbox/Dockerfile b/.codesandbox/Dockerfile new file mode 100644 index 0000000..81aeecc --- /dev/null +++ b/.codesandbox/Dockerfile @@ -0,0 +1,4 @@ +# CodeSandbox supports debian & ubuntu based images +FROM elixir:1.14 + +RUN mix local.hex --force && mix local.rebar --force diff --git a/.codesandbox/tasks.json b/.codesandbox/tasks.json new file mode 100644 index 0000000..2719e6a --- /dev/null +++ b/.codesandbox/tasks.json @@ -0,0 +1,18 @@ +{ + // These tasks will run in order when initializing your CodeSandbox project. + "setupTasks": [ + { + "name": "Get Dependencies", + "command": "mix deps.get" + } + ], + + // These tasks can be run from CodeSandbox. Running one will open a log in the app. + "tasks": { + "test": { + "name": "Run Tests", + "command": "mix test", + "runAtStart": true + } + } +} diff --git a/README.md b/README.md index ee2913c..02c34b6 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ any reasons why things _shouldn't_ work as expected on other operating systems, ```elixir Sketch.new() -|> Sketch.set_fill({100, 100, 100}) +|> Sketch.fill({100, 100, 100}) |> Sketch.square(%{origin: {0, 0}, size: 50}) |> Sketch.run() ```