Skip to content

Commit 1167139

Browse files
authored
Merge pull request #196 from nschulzke/nschulzke-overview-scene-md
Fix a few code snippets in the guides Thank you Nathan!
2 parents 4123b78 + a4ed911 commit 1167139

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

guides/overview_graph.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ one thing. When multiple primitives are put together, almost any standard UI can
1111
For example, the graph below shows the words "Hello World" around them.
1212

1313
@graph Graph.build(font: :roboto, font_size: 24)
14-
|> text("Hello World", text_align: center, translate: {300, 300})
14+
|> text("Hello World", text_align: :center, translate: {300, 300})
1515
|> circle(100, stroke: {2, :green}, translate: {300, 300})
1616

1717
In the example above, the first line creates a new graph and assigns two font styles to its root. The next two lines form a pipeline that adds primitives to the root

guides/overview_scene.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ whose helper function is imported from the `Scenic.Components` module.
5252

5353
@graph Graph.build()
5454
|> text("Hello World", font_size: 22, translate: {20, 80})
55-
|> button({"Do Something", :btn_something}, translate: {20, 180})
55+
|> button("Do Something", translate: {20, 180})
5656

5757
def init( _scene_args, _options ) do
5858
{:ok, @graph, push: @graph}

0 commit comments

Comments
 (0)