Skip to content

Commit

Permalink
Merge pull request #26 from sisl/graytext
Browse files Browse the repository at this point in the history
made text gray by default and moved car in readme
  • Loading branch information
MaximeBouton committed Jul 26, 2019
2 parents 83c9fff + a7b6b09 commit a1a82a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ where scene is an iterable of renderable objects including cars and roadways.
Example:
```julia
roadway = gen_straight_roadway(3, 100.0)
car = ArrowCar([0.0, 0.0], 0.0, color=colorant"blue") # [north, east], angle
car = ArrowCar([50.0, 0.0], 0.0, color=colorant"blue") # [north, east], angle
render([roadway, car, "some text"])
```

Expand Down
2 changes: 1 addition & 1 deletion src/text.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function render!(rm::RenderModel, t::String)
y = 1.5*font_size
y_jump = 1.5 * font_size
for line in split(t, '\n')
add_instruction!(rm, render_text, (line, x, y, font_size, colorant"white"), incameraframe=false)
add_instruction!(rm, render_text, (line, x, y, font_size, colorant"gray75"), incameraframe=false)
y += y_jump
end
return rm
Expand Down

0 comments on commit a1a82a9

Please sign in to comment.