Skip to content

Commit

Permalink
Fix line test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitvarkey committed Sep 11, 2016
1 parent f7ec8fc commit 11489ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/render.jl
Expand Up @@ -387,7 +387,7 @@ as the rotation about the X, Y and Z axes respectively.
Colors for the vertices can be set by passing in a `Vector` of
`Color` as the `vertexcolors` kwarg.
"""
function line(
function line{T <: Color}(
vertices::Vector{Tuple{Float64, Float64, Float64}};
x::Float64 = 0.0,
y::Float64 = 0.0,
Expand All @@ -396,7 +396,7 @@ function line(
ry::Float64 = 0.0,
rz::Float64 = 0.0,
kind::AbstractString = "strip",
vertexcolors::Vector{Color} = Color[]
vertexcolors::Vector{T} = Color[]
)
xs = [coords[1] for coords in vertices]
ys = [coords[2] for coords in vertices]
Expand Down Expand Up @@ -425,8 +425,8 @@ Helper function to make creating `line` easier.
`Tuples` of vertices with their color also as part of the `Tuple`
is expected as the argument.
"""
function line(
verticeswithcolor::Vector{Tuple{Float64, Float64, Float64, Color}};
function line{T <: Color}(
verticeswithcolor::Vector{Tuple{Float64, Float64, Float64, T}};
x::Float64 = 0.0,
y::Float64 = 0.0,
z::Float64 = 0.0,
Expand Down

0 comments on commit 11489ee

Please sign in to comment.