Skip to content

Commit

Permalink
Merge pull request #309 from rdeits/rd/deprecations
Browse files Browse the repository at this point in the history
fix more deprecations on 0.7-rc2
  • Loading branch information
timholy authored Aug 5, 2018
2 parents cac789c + 183e704 commit 106abae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
julia 0.7-alpha
julia 0.7-rc2
ColorTypes 0.7.0
FixedPointNumbers 0.5.0
Reexport
2 changes: 0 additions & 2 deletions src/Colors.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
__precompile__()

module Colors

using FixedPointNumbers, ColorTypes, Reexport, Printf
Expand Down
4 changes: 2 additions & 2 deletions src/conversions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ cnvt(::Type{CV}, c::LCHab) where {CV<:AbstractRGB} = cnvt(CV, convert(Lab{eltyp
cnvt(::Type{CV}, c::LCHuv) where {CV<:AbstractRGB} = cnvt(CV, convert(Luv{eltype(c)}, c))
cnvt(::Type{CV}, c::Color3) where {CV<:AbstractRGB} = cnvt(CV, convert(XYZ{eltype(c)}, c))

cnvt(::Type{CV}, c::RGB24) where {CV<:AbstractRGB{N0f8}} = CV(N0f8(c.color&0x00ff0000>>>16,0), N0f8(c.color&0x0000ff00>>>8,0), N0f8(c.color&0x000000ff,0))
cnvt(::Type{CV}, c::RGB24) where {CV<:AbstractRGB} = CV((c.color&0x00ff0000>>>16)/255, ((c.color&0x0000ff00)>>>8)/255, (c.color&0x000000ff)/255)
cnvt(::Type{CV}, c::RGB24) where {CV<:AbstractRGB{N0f8}} = CV(N0f8((c.color&0x00ff0000)>>>16,0), N0f8((c.color&0x0000ff00)>>>8,0), N0f8(c.color&0x000000ff,0))
cnvt(::Type{CV}, c::RGB24) where {CV<:AbstractRGB} = CV(((c.color&0x00ff0000)>>>16)/255, (((c.color&0x0000ff00))>>>8)/255, (c.color&0x000000ff)/255)

function cnvt(::Type{CV}, c::AbstractGray) where CV<:AbstractRGB
g = convert(eltype(CV), gray(c))
Expand Down

0 comments on commit 106abae

Please sign in to comment.